Git - extension should only open repositories for resources with the file scheme (#225024)

This commit is contained in:
Ladislau Szomoru
2024-08-07 11:20:56 +02:00
committed by GitHub
parent a2547631a8
commit 6b0fa93c81

View File

@@ -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;
}