diff --git a/package-lock.json b/package-lock.json index b4d3df97..2cb5caed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vscode-objectscript", - "version": "2.12.8-SNAPSHOT", + "version": "2.12.9-SNAPSHOT", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "vscode-objectscript", - "version": "2.12.8-SNAPSHOT", + "version": "2.12.9-SNAPSHOT", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 3de5f8bc..0f02a80a 100644 --- a/package.json +++ b/package.json @@ -324,6 +324,10 @@ "command": "vscode-objectscript.intersystems-servermanager.webterminal", "when": "false" }, + { + "command": "vscode-objectscript.ObjectScriptExplorer.webterminal", + "when": "false" + }, { "command": "vscode-objectscript.importXMLFiles", "when": "vscode-objectscript.connectActive && workspaceFolderCount != 0" @@ -403,6 +407,11 @@ "when": "view == ObjectScriptExplorer && viewItem =~ /^serverNode.*:extra:/", "group": "inline@30" }, + { + "command": "vscode-objectscript.ObjectScriptExplorer.webterminal", + "when": "view == ObjectScriptExplorer && viewItem =~ /^serverNode/", + "group": "inline@25" + }, { "command": "vscode-objectscript.explorer.showGenerated", "when": "view == ObjectScriptExplorer && viewItem =~ /^serverNode((?!:generated:).)*$/", @@ -1170,6 +1179,11 @@ "title": "Launch Lite Terminal", "icon": "$(terminal)" }, + { + "command": "vscode-objectscript.ObjectScriptExplorer.webterminal", + "title": "Launch Lite Terminal", + "icon": "$(terminal)" + }, { "category": "ObjectScript", "command": "vscode-objectscript.importXMLFiles", diff --git a/src/extension.ts b/src/extension.ts index 339e6cc3..282ee401 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -1422,6 +1422,17 @@ export async function activate(context: vscode.ExtensionContext): Promise { launchWebSocketTerminal(targetUri); } ), + vscode.commands.registerCommand("vscode-objectscript.ObjectScriptExplorer.webterminal", (node: NodeBase) => { + const targetUri = DocumentContentProvider.getUri( + node.fullName, + node.workspaceFolder, + node.namespace, + undefined, + undefined, + true + ); + launchWebSocketTerminal(targetUri); + }), vscode.window.registerTerminalProfileProvider( "vscode-objectscript.webSocketTerminal", new WebSocketTerminalProfileProvider()