🐛 open file when git resource isnt there should work

This commit is contained in:
Joao Moreno
2017-03-08 16:02:36 +01:00
parent 06f02d74bc
commit 9774590996

View File

@@ -242,6 +242,10 @@ export class CommandCenter {
@command('git.openFile')
async openFile(uri?: Uri): Promise<void> {
if (uri && uri.scheme === 'file') {
return await commands.executeCommand<void>('vscode.open', uri);
}
const resource = this.resolveSCMResource(uri);
if (!resource) {