diff --git a/package.json b/package.json index 8ad4631..dd797ed 100644 --- a/package.json +++ b/package.json @@ -230,6 +230,17 @@ }, "enablement": "ecl.connected" }, + { + "command": "hpccPlatform.resubmitWU", + "category": "ECL", + "title": "%Resubmit%", + "description": "%Resubmit ECL to HPCC Platform%", + "icon": { + "light": "resources/light/play.svg", + "dark": "resources/dark/play.svg" + }, + "enablement": "ecl.connected" + }, { "command": "ecl.submitNoArchive", "category": "ECL", @@ -1007,6 +1018,11 @@ "when": "view == hpccPlatform && viewItem =~ /^ECLWUNode/", "group": "3action@910" }, + { + "command": "hpccPlatform.resubmitWU", + "when": "view == hpccPlatform && viewItem =~ /^ECLWUNode/", + "group": "3action@915" + }, { "command": "hpccPlatform.deleteWU", "when": "view == hpccPlatform && viewItem =~ /^ECLWUNode/", diff --git a/package.nls.json b/package.nls.json index 61ac14c..fe0dfe2 100644 --- a/package.nls.json +++ b/package.nls.json @@ -89,6 +89,8 @@ "Refresh": "Refresh", "Refresh Tree": "Refresh Tree", "Reject unauthorized calls e.g. SSL certificate errors": "Reject unauthorized calls e.g. SSL certificate errors", + "Resubmit": "Resubmit", + "Resubmit ECL to HPCC Platform": "Resubmit ECL to HPCC Platform", "Reveal Generated ECL in File Explorer": "Reveal Generated ECL in File Explorer", "Reveals Generated ECL in File Explorer": "Reveals Generated ECL in File Explorer", "Run 'eclcc -syntax' on load": "Run 'eclcc -syntax' on load", diff --git a/src/ecl/eclWatchTree.ts b/src/ecl/eclWatchTree.ts index 8a17381..e39b7d4 100644 --- a/src/ecl/eclWatchTree.ts +++ b/src/ecl/eclWatchTree.ts @@ -89,6 +89,10 @@ export class ECLWatchTree extends Tree { wuNode.abort(); }); + vscode.commands.registerCommand("hpccPlatform.resubmitWU", (wuNode: ECLWUNode) => { + wuNode.resubmit(); + }); + vscode.commands.registerCommand("hpccPlatform.deleteWU", (wuNode: ECLWUNode) => { wuNode.delete(); }); @@ -463,6 +467,10 @@ export class ECLWUNode extends Item { this._wu.abort().then(() => this._tree.refresh(this)); } + resubmit() { + this._wu.resubmit().then(() => this._tree.refresh(this)); + } + moveJobUp() { const service = new SMCService({ baseUrl: this._wu.BaseUrl }); return service.MoveJobUp({