Skip to content

Commit 73c926d

Browse files
committed
Merge remote-tracking branch 'upstream/master' into fix-1278
2 parents ff7f63b + 2de83fd commit 73c926d

File tree

5 files changed

+33
-19
lines changed

5 files changed

+33
-19
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
# Change Log
22

3+
## [2.12.7] 05-Aug-2024
4+
- Enhancements
5+
- Fire source control hooks for opened and closed documents (#1414)
6+
- Always stop the debug target process when attaching (#1415)
7+
- Prompt user for workspace folder before process ID when attaching to a process in a multi-root workspace (#1417)
8+
- Rename `InterSystems WebSocket Terminal` to `InterSystems Lite Terminal` (#1418)
9+
- Fixes
10+
- Fix showing of CSP files in project folders (#1408)
11+
- Add confirmation dialog when deleting a project (#1410)
12+
- Fix attach debugging when no file is open (#1412)
13+
- Improve reliability of updating status bar panels (#1416)
14+
- Add CSPSHARE=1 to Studio Add-In links to align behavior with Studio (#1419)
15+
- Don't append CSPCHD for web applications that don't support it by default (#1420)
16+
317
## [2.12.6] 23-Jul-2024
18+
Minimum VS Code version is now 1.91.0.
419
- Enhancements
520
- Support command stepping in debugger (requires InterSystems IRIS 2023.1.5, 2024.1.1+, or 2024.2+) (#1385)
621
- Add `Compile` command to server-side file explorer (#1389)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ To unlock these features (optional):
5555

5656
1. Download and install a beta version from GitHub. This is necessary because Marketplace does not allow publication of extensions that use proposed APIs.
5757
- Go to https://github.com/intersystems-community/vscode-objectscript/releases
58-
- Locate the beta immediately above the release you installed from Marketplace. For instance, if you installed `2.12.6`, look for `2.12.7-beta.1`. This will be functionally identical to the Marketplace version apart from being able to use proposed APIs.
59-
- Download the VSIX file (for example `vscode-objectscript-2.12.7-beta.1.vsix`) and install it. One way to install a VSIX is to drag it from your download folder and drop it onto the list of extensions in the Extensions view of VS Code.
58+
- Locate the beta immediately above the release you installed from Marketplace. For instance, if you installed `2.12.7`, look for `2.12.8-beta.1`. This will be functionally identical to the Marketplace version apart from being able to use proposed APIs.
59+
- Download the VSIX file (for example `vscode-objectscript-2.12.8-beta.1.vsix`) and install it. One way to install a VSIX is to drag it from your download folder and drop it onto the list of extensions in the Extensions view of VS Code.
6060

6161
2. From [Command Palette](https://code.visualstudio.com/docs/getstarted/tips-and-tricks#_command-palette) choose `Preferences: Configure Runtime Arguments`.
6262
3. In the argv.json file that opens, add this line (required for both Stable and Insiders versions of VS Code):

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-objectscript",
33
"displayName": "InterSystems ObjectScript",
44
"description": "InterSystems ObjectScript language support for Visual Studio Code",
5-
"version": "2.12.7-SNAPSHOT",
5+
"version": "2.12.8-SNAPSHOT",
66
"icon": "images/logo.png",
77
"aiKey": "9cd75d51-697c-406c-a929-2bcf46e97c64",
88
"categories": [
@@ -1139,11 +1139,11 @@
11391139
{
11401140
"category": "ObjectScript",
11411141
"command": "vscode-objectscript.launchWebSocketTerminal",
1142-
"title": "Launch WebSocket Terminal"
1142+
"title": "Launch Lite Terminal"
11431143
},
11441144
{
11451145
"command": "vscode-objectscript.intersystems-servermanager.webterminal",
1146-
"title": "Launch WebSocket Terminal",
1146+
"title": "Launch Lite Terminal",
11471147
"icon": "$(terminal)"
11481148
},
11491149
{
@@ -1517,7 +1517,7 @@
15171517
"default": true
15181518
},
15191519
"objectscript.webSocketTerminal.syntaxColoring": {
1520-
"description": "Enable syntax coloring for command input in the InterSystems WebSocket Terminal.",
1520+
"description": "Enable syntax coloring for command input in the InterSystems Lite Terminal.",
15211521
"type": "boolean",
15221522
"default": true
15231523
},
@@ -1686,7 +1686,7 @@
16861686
"type": "objectscript",
16871687
"request": "attach",
16881688
"name": "Attach to running process"
1689-
}
1689+
}
16901690
],
16911691
"configurationSnippets": [
16921692
{
@@ -1744,7 +1744,7 @@
17441744
"profiles": [
17451745
{
17461746
"id": "vscode-objectscript.webSocketTerminal",
1747-
"title": "InterSystems WebSocket Terminal",
1747+
"title": "InterSystems Lite Terminal",
17481748
"icon": "./images/fileIcon.svg"
17491749
}
17501750
]

src/commands/serverActions.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,11 @@ export async function serverActions(): Promise<void> {
219219
}
220220
switch (action.id) {
221221
case "openPortal": {
222-
const token = await getCSPToken(api, portalPath);
223-
vscode.env.openExternal(vscode.Uri.parse(`${serverUrl}${portalPath}&CSPCHD=${token}`));
222+
vscode.env.openExternal(vscode.Uri.parse(`${serverUrl}${portalPath}`));
224223
break;
225224
}
226225
case "openClassReference": {
227-
const token = await getCSPToken(api, classRef);
228-
vscode.env.openExternal(vscode.Uri.parse(`${serverUrl}${classRef}&CSPCHD=${token}`));
226+
vscode.env.openExternal(vscode.Uri.parse(`${serverUrl}${classRef}`));
229227
break;
230228
}
231229
case "openStudioAddin": {
@@ -251,6 +249,7 @@ export async function serverActions(): Promise<void> {
251249
params += `&Project=${encodeURIComponent(project)}`;
252250
}
253251
params += `&CSPCHD=${token}`;
252+
params += "&CSPSHARE=1";
254253
vscode.env.openExternal(vscode.Uri.parse(`${serverUrl}${addin.id}?${params}`));
255254
}
256255
}

src/commands/webSocketTerminal.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class WebSocketTerminal implements vscode.Pseudoterminal {
167167
},
168168
});
169169
} catch (error) {
170-
handleError(error, "Failed to initialize WebSocket Terminal.");
170+
handleError(error, "Failed to initialize Lite Terminal.");
171171
outputChannel.appendLine("Check that the InterSystems server's web server supports WebSockets.");
172172
this._closeEmitter.fire();
173173
return;
@@ -180,7 +180,7 @@ class WebSocketTerminal implements vscode.Pseudoterminal {
180180
this._socket
181181
.on("error", (error) => {
182182
// Log the error and close
183-
handleError(`WebSocket error: ${error.toString()}`, "WebSocket Terminal failed.");
183+
handleError(`WebSocket error: ${error.toString()}`, "Lite Terminal failed.");
184184
this._closeEmitter.fire();
185185
})
186186
.on("close", () => {
@@ -197,7 +197,7 @@ class WebSocketTerminal implements vscode.Pseudoterminal {
197197
switch (message.type) {
198198
case "error":
199199
// Log the error and close
200-
handleError(message.text, "WebSocket Terminal failed.");
200+
handleError(message.text, "Lite Terminal failed.");
201201
this._closeEmitter.fire();
202202
break;
203203
case "output":
@@ -597,12 +597,12 @@ function terminalConfigForUri(
597597
): vscode.ExtensionTerminalOptions | undefined {
598598
// Make sure the server connection is active
599599
if (!api.active || api.ns == "") {
600-
reportError("WebSocket Terminal requires an active server connection.", throwErrors);
600+
reportError("Lite Terminal requires an active server connection.", throwErrors);
601601
return;
602602
}
603603
// Make sure the server has the terminal endpoint
604604
if (api.config.apiVersion < 7) {
605-
reportError("WebSocket Terminal requires InterSystems IRIS version 2023.2 or above.", throwErrors);
605+
reportError("Lite Terminal requires InterSystems IRIS version 2023.2 or above.", throwErrors);
606606
return;
607607
}
608608

@@ -625,7 +625,7 @@ async function workspaceUriForTerminal(throwErrors = false) {
625625
let uri: vscode.Uri;
626626
const workspaceFolders = vscode.workspace.workspaceFolders || [];
627627
if (workspaceFolders.length == 0) {
628-
reportError("WebSocket Terminal requires an open workspace.", throwErrors);
628+
reportError("Lite Terminal requires an open workspace.", throwErrors);
629629
} else if (workspaceFolders.length == 1) {
630630
// Use the current connection
631631
uri = workspaceFolders[0].uri;
@@ -679,7 +679,7 @@ export class WebSocketTerminalProfileProvider implements vscode.TerminalProfileP
679679
const terminalOpts = terminalConfigForUri(new AtelierAPI(uri), uri, true);
680680
return new vscode.TerminalProfile(terminalOpts);
681681
} else {
682-
throw new Error("WebSocket Terminal requires a selected workspace folder.");
682+
throw new Error("Lite Terminal requires a selected workspace folder.");
683683
}
684684
}
685685
}

0 commit comments

Comments
 (0)