mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:04:14 +08:00
Git - extension should only open repositories for resources with the file scheme (#225024)
This commit is contained in:
parent
a2547631a8
commit
6b0fa93c81
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user