diff --git a/src/commands.ts b/src/commands.ts index b64ba59ebb..b55cce2b10 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -1021,7 +1021,8 @@ export function registerCommands( const localUriFromReviewUri = (reviewUri: vscode.Uri) => { const { path, rootPath } = fromReviewUri(reviewUri.query); - return vscode.Uri.joinPath(vscode.Uri.file(rootPath), path); + const workspaceFolder = vscode.workspace.workspaceFolders![0]; + return vscode.Uri.joinPath(vscode.Uri.file(rootPath), path).with({ scheme: workspaceFolder.uri.scheme, authority: workspaceFolder.uri.authority }); }; context.subscriptions.push(