提交 4c7fed55 编写于 作者: M Martin Aeschlimann

bug with preventing saving an already open workspsace

上级 146ab7b4
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册