Skip to content

Commit e9d330f

Browse files
committed
fix: terminal links not setting the first workspace folder
Fixes #701
1 parent afc7d94 commit e9d330f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ui/terminalLinkHandler.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,10 @@ export class TerminalLinkHandler
163163
// ignored
164164
}
165165

166-
const cwd = terminal.workspaceFolder
167-
? vscode.workspace.workspaceFolders?.[terminal.workspaceFolder]
168-
: undefined;
166+
const cwd =
167+
terminal.workspaceFolder !== undefined
168+
? vscode.workspace.workspaceFolders?.[terminal.workspaceFolder]
169+
: undefined;
169170

170171
vscode.debug.startDebugging(cwd, {
171172
...this.baseConfiguration,

0 commit comments

Comments
 (0)