Skip to content

Commit 84c882d

Browse files
committed
Fix extHost crashing due to using vscode as a value (instead of only as types)
1 parent a77da1b commit 84c882d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/api/node/extHostDebugService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ export class ExtHostDebugService implements IExtHostDebugService, ExtHostDebugSe
155155

156156
debug += `${sep}ref=${source.sourceReference}`;
157157

158-
return vscode.Uri.parse(debug);
158+
return URI.parse(debug);
159159
} else if (source.path) {
160160
// src is just a local file path
161-
return vscode.Uri.file(source.path);
161+
return URI.file(source.path);
162162
} else {
163163
throw new Error(`cannot create uri from DAP 'source' object; properties 'path' and 'sourceReference' are both missing.`);
164164
}

0 commit comments

Comments
 (0)