mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 14:30:13 +00:00
bug with preventing saving an already open workspsace
This commit is contained in:
parent
146ab7b489
commit
4c7fed5523
|
@ -244,7 +244,7 @@ export class WorkspaceEditingService implements IWorkspaceEditingService {
|
|||
}
|
||||
|
||||
async createAndEnterWorkspace(folders: IWorkspaceFolderCreationData[], path?: URI): Promise<void> {
|
||||
if (path && !this.isValidTargetWorkspacePath(path)) {
|
||||
if (path && !await this.isValidTargetWorkspacePath(path)) {
|
||||
return Promise.reject(null);
|
||||
}
|
||||
const remoteAuthority = this.environmentService.configuration.remoteAuthority;
|
||||
|
@ -258,7 +258,7 @@ export class WorkspaceEditingService implements IWorkspaceEditingService {
|
|||
}
|
||||
|
||||
async saveAndEnterWorkspace(path: URI): Promise<void> {
|
||||
if (!this.isValidTargetWorkspacePath(path)) {
|
||||
if (!await this.isValidTargetWorkspacePath(path)) {
|
||||
return Promise.reject(null);
|
||||
}
|
||||
const workspaceIdentifier = this.getCurrentWorkspaceIdentifier();
|
||||
|
|
Loading…
Reference in a new issue