From 1b05f83bb25130c84950a29ca59cf58d061311e8 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Tue, 22 Aug 2017 16:05:48 +0200 Subject: [PATCH] mr - do not leak to stable release --- .../workbench/parts/files/browser/views/explorerViewer.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/parts/files/browser/views/explorerViewer.ts b/src/vs/workbench/parts/files/browser/views/explorerViewer.ts index 8a410432757..f7a75b6a00c 100644 --- a/src/vs/workbench/parts/files/browser/views/explorerViewer.ts +++ b/src/vs/workbench/parts/files/browser/views/explorerViewer.ts @@ -53,6 +53,7 @@ import { IThemeService } from 'vs/platform/theme/common/themeService'; import { IWindowService } from 'vs/platform/windows/common/windows'; import { IWorkspaceEditingService } from 'vs/workbench/services/workspace/common/workspaceEditing'; import { distinct } from 'vs/base/common/arrays'; +import { IEnvironmentService } from 'vs/platform/environment/common/environment'; export class FileDataSource implements IDataSource { constructor( @@ -698,7 +699,8 @@ export class FileDragAndDrop implements IDragAndDrop { @ITextFileService private textFileService: ITextFileService, @IBackupFileService private backupFileService: IBackupFileService, @IWindowService private windowService: IWindowService, - @IWorkspaceEditingService private workspaceEditingService: IWorkspaceEditingService + @IWorkspaceEditingService private workspaceEditingService: IWorkspaceEditingService, + @IEnvironmentService private environmentService: IEnvironmentService ) { this.toDispose = []; @@ -874,6 +876,10 @@ export class FileDragAndDrop implements IDragAndDrop { // Handle folders by adding to workspace if we are in workspace context const folders = result.filter(result => result.stat.isDirectory).map(result => result.stat.resource); if (folders.length > 0) { + if (this.environmentService.appQuality === 'stable') { + return void 0; // TODO@Ben multi root + } + if (this.contextService.hasMultiFolderWorkspace()) { return this.workspaceEditingService.addRoots(folders); } -- GitLab