Always disable on stable build

This commit is contained in:
Felix Becker 2017-07-22 12:59:45 +02:00 committed by GitHub
parent fea0743c00
commit 8b77141b7a

View file

@ -50,12 +50,11 @@ export class WorkspaceEditingService implements IWorkspaceEditingService {
}
private isSupported(): boolean {
if (!this.contextService.hasMultiFolderWorkspace()) {
return false; // we need a multi folder workspace to begin with
}
// TODO@Ben multi root
return this.environmentService.appQuality !== 'stable'; // not yet enabled in stable
return (
this.environmentService.appQuality !== 'stable' // not yet enabled in stable
&& this.contextService.hasMultiFolderWorkspace() // we need a multi folder workspace to begin with
);
}
private doSetRoots(newRoots: URI[]): TPromise<void> {
@ -87,4 +86,4 @@ export class WorkspaceEditingService implements IWorkspaceEditingService {
const validatedRoots = distinct(roots.map(root => root.toString(true /* skip encoding */)));
return validatedRoots;
}
}
}