提交 ee23705c 编写于 作者: F Felix Becker

Fix multi-workspace support detection

上级 4f074abe
......@@ -29,7 +29,7 @@ export class WorkspaceEditingService implements IWorkspaceEditingService {
}
public addRoots(rootsToAdd: URI[]): TPromise<void> {
if (!this.supported) {
if (!this.isSupported()) {
return TPromise.as(void 0); // we need a workspace to begin with
}
......@@ -39,7 +39,7 @@ export class WorkspaceEditingService implements IWorkspaceEditingService {
}
public removeRoots(rootsToRemove: URI[]): TPromise<void> {
if (!this.supported) {
if (!this.isSupported()) {
return TPromise.as(void 0); // we need a workspace to begin with
}
......@@ -49,7 +49,7 @@ export class WorkspaceEditingService implements IWorkspaceEditingService {
return this.doSetRoots(roots.filter(root => rootsToRemoveRaw.indexOf(root.toString()) === -1));
}
private supported(): boolean {
private isSupported(): boolean {
if (this.contextService.hasMultiFolderWorkspace()) {
return false; // we need a multi folder workspace to begin with
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册