From e642f12e6c95b6e25fabca0f89d65ce9c036ed78 Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Mon, 9 Dec 2024 09:45:39 +0100 Subject: [PATCH] Diffing `OUTDATED` comments with HEAD doesn't work in `github.dev` Fixes #6500 --- src/commands.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(