Skip to content

Commit 493276c

Browse files
committed
fix for relative path elements in scriptFiles patterns
1 parent c4da87f commit 493276c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extension/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ const configurationProvider: vscode.DebugConfigurationProvider = {
8181
if (typeof nonString !== "undefined") {
8282
return abortLaunch(`invalid value in scriptFiles: "${nonString}"`);
8383
} else {
84-
const uris = await Promise.all(config.scriptFiles.map(p => vscode.workspace.findFiles(p)));
84+
const uris = await Promise.all(
85+
config.scriptFiles.map(p => vscode.workspace.findFiles(path.normalize(p)))
86+
);
8587
config.scriptFiles = uris.flatMap(u => u.map(uri => uri.fsPath));
8688
}
8789
}

0 commit comments

Comments
 (0)