diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index 46fe7e89fea..1576b4b60e6 100644 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -242,6 +242,10 @@ export class CommandCenter { @command('git.openFile') async openFile(uri?: Uri): Promise { + if (uri && uri.scheme === 'file') { + return await commands.executeCommand('vscode.open', uri); + } + const resource = this.resolveSCMResource(uri); if (!resource) {