From ed856d85f5916b690490ef8f2c81e4d7bb34da75 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Mon, 4 Feb 2019 09:50:26 +0100 Subject: [PATCH] Revert "disable save actions for webview" This reverts commit c3b9299c9d68bb566d946e8f7260177471be8de3. --- .../files/electron-browser/fileActions.contribution.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/vs/workbench/parts/files/electron-browser/fileActions.contribution.ts b/src/vs/workbench/parts/files/electron-browser/fileActions.contribution.ts index 99ad4630a14..3a75d49e119 100644 --- a/src/vs/workbench/parts/files/electron-browser/fileActions.contribution.ts +++ b/src/vs/workbench/parts/files/electron-browser/fileActions.contribution.ts @@ -24,8 +24,6 @@ import { WorkbenchListDoubleSelection } from 'vs/platform/list/browser/listServi import { URI } from 'vs/base/common/uri'; import { Schemas } from 'vs/base/common/network'; import { ServicesAccessor } from 'vs/platform/instantiation/common/instantiation'; -import { WebviewEditor } from 'vs/workbench/parts/webview/electron-browser/webviewEditor'; -import { WalkThroughPart } from 'vs/workbench/parts/welcome/walkThrough/electron-browser/walkThroughPart'; // Contribute Global Actions const category = nls.localize('filesCategory', "File"); @@ -550,8 +548,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, { group: '4_save', command: { id: SAVE_FILE_COMMAND_ID, - title: nls.localize({ key: 'miSave', comment: ['&& denotes a mnemonic'] }, "&&Save"), - precondition: ContextKeyExpr.and(ContextKeyExpr.notEquals('activeEditor', WebviewEditor.ID), ContextKeyExpr.notEquals('activeEditor', WalkThroughPart.ID)) + title: nls.localize({ key: 'miSave', comment: ['&& denotes a mnemonic'] }, "&&Save") }, order: 1 }); @@ -560,8 +557,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, { group: '4_save', command: { id: SAVE_FILE_AS_COMMAND_ID, - title: nls.localize({ key: 'miSaveAs', comment: ['&& denotes a mnemonic'] }, "Save &&As..."), - precondition: ContextKeyExpr.and(ContextKeyExpr.notEquals('activeEditor', WebviewEditor.ID), ContextKeyExpr.notEquals('activeEditor', WalkThroughPart.ID)) + title: nls.localize({ key: 'miSaveAs', comment: ['&& denotes a mnemonic'] }, "Save &&As...") }, order: 2 }); -- GitLab