mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-07 17:44:05 -05:00
🐛 open file when git resource isnt there should work
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user