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 a868865 commit 58146d0Copy full SHA for 58146d0
src/debug/debugSession.ts
@@ -361,7 +361,11 @@ export class ObjectScriptDebugSession extends LoggingDebugSession {
361
try {
362
await this._waitForDebugTarget();
363
364
- const uri = vscode.Uri.parse(args.source.path);
+ // args.source.path is a file path if the file is local and is a stringified Uri if the file is virtual
365
+ const uri =
366
+ (this._workspaceFolderUri ?? vscode.workspace.workspaceFolders[0]?.uri)?.scheme == "file"
367
+ ? vscode.Uri.file(args.source.path)
368
+ : vscode.Uri.parse(args.source.path);
369
const wsFolder = vscode.workspace.getWorkspaceFolder(uri);
370
if (!wsFolder || (this._workspaceFolderUri && wsFolder.uri.toString() != this._workspaceFolderUri.toString())) {
371
response.body = {
0 commit comments