diff --git a/src/vs/workbench/contrib/webview/browser/webview.contribution.ts b/src/vs/workbench/contrib/webview/browser/webview.contribution.ts index 098534ac..58d35ec1 100644 --- a/src/vs/workbench/contrib/webview/browser/webview.contribution.ts +++ b/src/vs/workbench/contrib/webview/browser/webview.contribution.ts @@ -5,8 +5,8 @@ import { MultiCommand, RedoCommand, SelectAllCommand, UndoCommand } from 'vs/editor/browser/editorExtensions'; import { CopyAction, CutAction, PasteAction } from 'vs/editor/contrib/clipboard/browser/clipboard'; -import * as nls from 'vs/nls'; -import { MenuId, MenuRegistry } from 'vs/platform/actions/common/actions'; +// import * as nls from 'vs/nls'; +// import { MenuId, MenuRegistry } from 'vs/platform/actions/common/actions'; import { IWebviewService, IWebview } from 'vs/workbench/contrib/webview/browser/webview'; import { WebviewInput } from 'vs/workbench/contrib/webviewPanel/browser/webviewEditorInput'; import { IEditorService } from 'vs/workbench/services/editor/common/editorService'; @@ -44,32 +44,32 @@ overrideCommandForWebview(CopyAction, webview => webview.copy()); overrideCommandForWebview(PasteAction, webview => webview.paste()); overrideCommandForWebview(CutAction, webview => webview.cut()); -if (CutAction) { - MenuRegistry.appendMenuItem(MenuId.WebviewContext, { - command: { - id: CutAction.id, - title: nls.localize('cut', "Cut"), - }, - order: 1, - }); -} +// if (CutAction) { +// MenuRegistry.appendMenuItem(MenuId.WebviewContext, { +// command: { +// id: CutAction.id, +// title: nls.localize('cut', "Cut"), +// }, +// order: 1, +// }); +// } -if (CopyAction) { - MenuRegistry.appendMenuItem(MenuId.WebviewContext, { - command: { - id: CopyAction.id, - title: nls.localize('copy', "Copy"), - }, - order: 2, - }); -} +// if (CopyAction) { +// MenuRegistry.appendMenuItem(MenuId.WebviewContext, { +// command: { +// id: CopyAction.id, +// title: nls.localize('copy', "Copy"), +// }, +// order: 2, +// }); +// } -if (PasteAction) { - MenuRegistry.appendMenuItem(MenuId.WebviewContext, { - command: { - id: PasteAction.id, - title: nls.localize('paste', "Paste"), - }, - order: 3, - }); -} +// if (PasteAction) { +// MenuRegistry.appendMenuItem(MenuId.WebviewContext, { +// command: { +// id: PasteAction.id, +// title: nls.localize('paste', "Paste"), +// }, +// order: 3, +// }); +// }