Fix extHost crashing due to using vscode as a value (instead of only as types)

This commit is contained in:
Matt Bierner
2019-11-13 14:51:06 -08:00
parent a77da1b1d8
commit 84c882df68

View File

@@ -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.`);
}