@@ -115,43 +115,43 @@ export class ECLWatchTree extends Tree {
115115 vscode . commands . registerCommand ( "hpccPlatform.setStateRunning" , ( wuNode : ECLWUNode ) => {
116116 wuNode . setStateRunning ( ) ;
117117 } ) ;
118-
118+
119119 vscode . commands . registerCommand ( "hpccPlatform.setStateCompleted" , ( wuNode : ECLWUNode ) => {
120120 wuNode . setStateCompleted ( ) ;
121121 } ) ;
122-
122+
123123 vscode . commands . registerCommand ( "hpccPlatform.setStateFailed" , ( wuNode : ECLWUNode ) => {
124124 wuNode . setStateFailed ( ) ;
125125 } ) ;
126-
126+
127127 vscode . commands . registerCommand ( "hpccPlatform.setStateArchived" , ( wuNode : ECLWUNode ) => {
128128 wuNode . setStateArchived ( ) ;
129129 } ) ;
130-
130+
131131 vscode . commands . registerCommand ( "hpccPlatform.setStateAborting" , ( wuNode : ECLWUNode ) => {
132132 wuNode . setStateAborting ( ) ;
133133 } ) ;
134-
134+
135135 vscode . commands . registerCommand ( "hpccPlatform.setStateAborted" , ( wuNode : ECLWUNode ) => {
136136 wuNode . setStateAborted ( ) ;
137137 } ) ;
138-
138+
139139 vscode . commands . registerCommand ( "hpccPlatform.setStateBlocked" , ( wuNode : ECLWUNode ) => {
140140 wuNode . setStateBlocked ( ) ;
141141 } ) ;
142-
142+
143143 vscode . commands . registerCommand ( "hpccPlatform.setStateSubmitted" , ( wuNode : ECLWUNode ) => {
144144 wuNode . setStateSubmitted ( ) ;
145145 } ) ;
146-
146+
147147 vscode . commands . registerCommand ( "hpccPlatform.setStateScheduled" , ( wuNode : ECLWUNode ) => {
148148 wuNode . setStateScheduled ( ) ;
149149 } ) ;
150-
150+
151151 vscode . commands . registerCommand ( "hpccPlatform.setStateCompiling" , ( wuNode : ECLWUNode ) => {
152152 wuNode . setStateCompiling ( ) ;
153153 } ) ;
154-
154+
155155 vscode . commands . registerCommand ( "hpccPlatform.setStateWait" , ( wuNode : ECLWUNode ) => {
156156 wuNode . setStateWait ( ) ;
157157 } ) ;
@@ -560,7 +560,15 @@ export class ECLWUNode extends Item<ECLWatchTree> {
560560 }
561561
562562 delete ( ) {
563- this . _wu . delete ( ) . then ( ( ) => this . _tree . refresh ( ) ) ;
563+ const items : vscode . QuickPickItem [ ] = [ ] ;
564+ items . push ( { label : localize ( "Yes" ) , description : `${ localize ( "Delete Workunit" ) } ${ this . _wu . Wuid } ` } ) ;
565+ items . push ( { label : localize ( "No" ) , description : localize ( "Do not delete" ) } ) ;
566+
567+ vscode . window . showQuickPick ( items , { title : localize ( "Delete Workunit" ) , canPickMany : false , placeHolder : localize ( "Choose Yes or No" ) } ) . then ( selection => {
568+ if ( ! selection || selection . label == localize ( "No" ) )
569+ return ;
570+ this . _wu . delete ( ) . then ( ( ) => this . _tree . refresh ( ) ) ;
571+ } ) ;
564572 }
565573
566574 hasChildren ( ) {
0 commit comments