Skip to content

Commit 3f6d815

Browse files
authored
Use open document's server for attach debug sessions (#961)
1 parent a664ddd commit 3f6d815

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/RunDebug.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ You can select a debug configuration from the list VS Code provides in the Run a
108108

109109
Clicking on the green arrow runs the currently selected debug configuration.
110110

111-
When starting **objectscript launch** debug session, make sure that the file containing the **program** that you are debugging is open in your editor and is the active tab. VS Code will start a debug session with the server of the file in the active editor (the tab that the user is focused on).
111+
When starting **objectscript launch** debug session, make sure that the file containing the **program** that you are debugging is open in your editor and is the active tab. VS Code will start a debug session with the server of the file in the active editor (the tab that the user is focused on). This also applies to **objectscript attach** debug sessions.
112112

113113
This extension uses WebSockets to communicate with the InterSystems server during debugging. If you are experiencing issues when trying to start a debugging session, check that the InterSystems server's web server allows WebSocket connections.
114114

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
860860
}),
861861
vscode.commands.registerCommand("vscode-objectscript.pickProcess", async (config) => {
862862
const system = config.system;
863-
const api = new AtelierAPI();
863+
const api = new AtelierAPI(vscode.window.activeTextEditor?.document.uri);
864864
const convert = (data) =>
865865
data.result.content.map(
866866
(process: AtelierJob): vscode.QuickPickItem => ({

0 commit comments

Comments
 (0)