Skip to content

Commit 1f96937

Browse files
authored
Rename InterSystems WebSocket Terminal to InterSystems Lite Terminal (#1418)
1 parent ef66f3a commit 1f96937

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,11 +1162,11 @@
11621162
{
11631163
"category": "ObjectScript",
11641164
"command": "vscode-objectscript.launchWebSocketTerminal",
1165-
"title": "Launch WebSocket Terminal"
1165+
"title": "Launch Lite Terminal"
11661166
},
11671167
{
11681168
"command": "vscode-objectscript.intersystems-servermanager.webterminal",
1169-
"title": "Launch WebSocket Terminal",
1169+
"title": "Launch Lite Terminal",
11701170
"icon": "$(terminal)"
11711171
},
11721172
{
@@ -1555,7 +1555,7 @@
15551555
"default": true
15561556
},
15571557
"objectscript.webSocketTerminal.syntaxColoring": {
1558-
"description": "Enable syntax coloring for command input in the InterSystems WebSocket Terminal.",
1558+
"description": "Enable syntax coloring for command input in the InterSystems Lite Terminal.",
15591559
"type": "boolean",
15601560
"default": true
15611561
},
@@ -1782,7 +1782,7 @@
17821782
"profiles": [
17831783
{
17841784
"id": "vscode-objectscript.webSocketTerminal",
1785-
"title": "InterSystems WebSocket Terminal",
1785+
"title": "InterSystems Lite Terminal",
17861786
"icon": "./images/fileIcon.svg"
17871787
}
17881788
]

src/commands/webSocketTerminal.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class WebSocketTerminal implements vscode.Pseudoterminal {
173173
outputChannel.appendLine("Check that the InterSystems server's web server supports WebSockets.");
174174
outputChannel.show(true);
175175
vscode.window.showErrorMessage(
176-
"Failed to initialize WebSocket Terminal. Check 'ObjectScript' Output channel for details.",
176+
"Failed to initialize Lite Terminal. Check 'ObjectScript' Output channel for details.",
177177
"Dismiss"
178178
);
179179
this._closeEmitter.fire();
@@ -190,7 +190,7 @@ class WebSocketTerminal implements vscode.Pseudoterminal {
190190
outputChannel.appendLine(`WebSocket error: ${error.toString()}`);
191191
outputChannel.show(true);
192192
vscode.window.showErrorMessage(
193-
"WebSocket Terminal failed. Check 'ObjectScript' Output channel for details.",
193+
"Lite Terminal failed. Check 'ObjectScript' Output channel for details.",
194194
"Dismiss"
195195
);
196196
this._closeEmitter.fire();
@@ -212,7 +212,7 @@ class WebSocketTerminal implements vscode.Pseudoterminal {
212212
outputChannel.appendLine(message.text);
213213
outputChannel.show(true);
214214
vscode.window.showErrorMessage(
215-
"WebSocket Terminal failed. Check 'ObjectScript' Output channel for details.",
215+
"Lite Terminal failed. Check 'ObjectScript' Output channel for details.",
216216
"Dismiss"
217217
);
218218
this._closeEmitter.fire();
@@ -614,12 +614,12 @@ function terminalConfigForUri(
614614
): vscode.ExtensionTerminalOptions | undefined {
615615
// Make sure the server connection is active
616616
if (!api.active || api.ns == "") {
617-
reportError("WebSocket Terminal requires an active server connection.", throwErrors);
617+
reportError("Lite Terminal requires an active server connection.", throwErrors);
618618
return;
619619
}
620620
// Make sure the server has the terminal endpoint
621621
if (api.config.apiVersion < 7) {
622-
reportError("WebSocket Terminal requires InterSystems IRIS version 2023.2 or above.", throwErrors);
622+
reportError("Lite Terminal requires InterSystems IRIS version 2023.2 or above.", throwErrors);
623623
return;
624624
}
625625

@@ -642,7 +642,7 @@ async function workspaceUriForTerminal(throwErrors = false) {
642642
let uri: vscode.Uri;
643643
const workspaceFolders = vscode.workspace.workspaceFolders || [];
644644
if (workspaceFolders.length == 0) {
645-
reportError("WebSocket Terminal requires an open workspace.", throwErrors);
645+
reportError("Lite Terminal requires an open workspace.", throwErrors);
646646
} else if (workspaceFolders.length == 1) {
647647
// Use the current connection
648648
uri = workspaceFolders[0].uri;
@@ -696,7 +696,7 @@ export class WebSocketTerminalProfileProvider implements vscode.TerminalProfileP
696696
const terminalOpts = terminalConfigForUri(new AtelierAPI(uri), uri, true);
697697
return new vscode.TerminalProfile(terminalOpts);
698698
} else {
699-
throw new Error("WebSocket Terminal requires a selected workspace folder.");
699+
throw new Error("Lite Terminal requires a selected workspace folder.");
700700
}
701701
}
702702
}

0 commit comments

Comments
 (0)