mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
Git - open repositories in an empty workspace without seeing the notification about parent folders (#290433)
This commit is contained in:
@@ -1085,7 +1085,12 @@ export class Model implements IRepositoryResolver, IBranchProtectionProviderRegi
|
||||
}
|
||||
|
||||
private async isRepositoryOutsideWorkspace(repositoryPath: string): Promise<boolean> {
|
||||
const workspaceFolders = (workspace.workspaceFolders || [])
|
||||
// Allow opening repositories in the empty workspace
|
||||
if (workspace.workspaceFolders === undefined) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const workspaceFolders = workspace.workspaceFolders
|
||||
.filter(folder => folder.uri.scheme === 'file');
|
||||
|
||||
if (workspaceFolders.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user