mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-16 22:14:20 -05:00
Git - extension should only open repositories for resources with the file scheme (#225024)
This commit is contained in:
@@ -322,6 +322,10 @@ export class ApiImpl implements API {
|
||||
}
|
||||
|
||||
async openRepository(root: Uri): Promise<Repository | null> {
|
||||
if (root.scheme !== 'file') {
|
||||
return null;
|
||||
}
|
||||
|
||||
await this._model.openRepository(root.fsPath);
|
||||
return this.getRepository(root) || null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user