From 9774590996be39972f6973eb8d413e7c5e95e855 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Wed, 8 Mar 2017 16:02:36 +0100 Subject: [PATCH] :bug: open file when git resource isnt there should work --- extensions/git/src/commands.ts | 4 ++++ 1 file changed, 4 insertions(+) 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) {