mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
Fix extHost crashing due to using vscode as a value (instead of only as types)
This commit is contained in:
@@ -155,10 +155,10 @@ export class ExtHostDebugService implements IExtHostDebugService, ExtHostDebugSe
|
||||
|
||||
debug += `${sep}ref=${source.sourceReference}`;
|
||||
|
||||
return vscode.Uri.parse(debug);
|
||||
return URI.parse(debug);
|
||||
} else if (source.path) {
|
||||
// src is just a local file path
|
||||
return vscode.Uri.file(source.path);
|
||||
return URI.file(source.path);
|
||||
} else {
|
||||
throw new Error(`cannot create uri from DAP 'source' object; properties 'path' and 'sourceReference' are both missing.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user