We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13bf88f commit 186baccCopy full SHA for 186bacc
src/extension/noConfigDebugInit.ts
@@ -37,7 +37,10 @@ export async function registerNoConfigDebug(
37
38
// create a temp directory for the noConfigDebugAdapterEndpoints
39
// file path format: extPath/.noConfigDebugAdapterEndpoints/endpoint-stableWorkspaceHash.txt
40
- const workspaceUri = workspace.workspaceFolders?.[0]?.uri;
+ let workspaceUri = workspace.workspaceFile?.fsPath;
41
+ if (!workspaceUri) {
42
+ workspaceUri = workspace.workspaceFolders?.map((e) => e.uri.fsPath).join(';');
43
+ }
44
if (!workspaceUri) {
45
traceError('No workspace folder found');
46
return Promise.resolve(new Disposable(() => {}));
0 commit comments