File tree Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 324
324
"command" : " vscode-objectscript.intersystems-servermanager.webterminal" ,
325
325
"when" : " false"
326
326
},
327
+ {
328
+ "command" : " vscode-objectscript.ObjectScriptExplorer.webterminal" ,
329
+ "when" : " false"
330
+ },
327
331
{
328
332
"command" : " vscode-objectscript.importXMLFiles" ,
329
333
"when" : " vscode-objectscript.connectActive && workspaceFolderCount != 0"
403
407
"when" : " view == ObjectScriptExplorer && viewItem =~ /^serverNode.*:extra:/" ,
404
408
"group" : " inline@30"
405
409
},
410
+ {
411
+ "command" : " vscode-objectscript.ObjectScriptExplorer.webterminal" ,
412
+ "when" : " view == ObjectScriptExplorer && viewItem =~ /^serverNode/" ,
413
+ "group" : " inline@25"
414
+ },
406
415
{
407
416
"command" : " vscode-objectscript.explorer.showGenerated" ,
408
417
"when" : " view == ObjectScriptExplorer && viewItem =~ /^serverNode((?!:generated:).)*$/" ,
1170
1179
"title" : " Launch Lite Terminal" ,
1171
1180
"icon" : " $(terminal)"
1172
1181
},
1182
+ {
1183
+ "command" : " vscode-objectscript.ObjectScriptExplorer.webterminal" ,
1184
+ "title" : " Launch Lite Terminal" ,
1185
+ "icon" : " $(terminal)"
1186
+ },
1173
1187
{
1174
1188
"category" : " ObjectScript" ,
1175
1189
"command" : " vscode-objectscript.importXMLFiles" ,
Original file line number Diff line number Diff line change @@ -1422,6 +1422,17 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
1422
1422
launchWebSocketTerminal ( targetUri ) ;
1423
1423
}
1424
1424
) ,
1425
+ vscode . commands . registerCommand ( "vscode-objectscript.ObjectScriptExplorer.webterminal" , ( node : NodeBase ) => {
1426
+ const targetUri = DocumentContentProvider . getUri (
1427
+ node . fullName ,
1428
+ node . workspaceFolder ,
1429
+ node . namespace ,
1430
+ undefined ,
1431
+ undefined ,
1432
+ true
1433
+ ) ;
1434
+ launchWebSocketTerminal ( targetUri ) ;
1435
+ } ) ,
1425
1436
vscode . window . registerTerminalProfileProvider (
1426
1437
"vscode-objectscript.webSocketTerminal" ,
1427
1438
new WebSocketTerminalProfileProvider ( )
You can’t perform that action at this time.
0 commit comments