From ac70f38f94ab1f2d1cee481bef833e41f7050c5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=A4der?= Date: Fri, 22 Mar 2024 15:56:57 +0100 Subject: [PATCH] Addressing more review comments. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Mäder --- .theia/settings.json | 3 ++- packages/editor/package.json | 2 +- packages/monaco/src/browser/monaco-command.ts | 10 +++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.theia/settings.json b/.theia/settings.json index 6936717b471ea..23199246981cf 100644 --- a/.theia/settings.json +++ b/.theia/settings.json @@ -1,5 +1,6 @@ { - "editor.insertSpaces": true, + "editor.formatOnSave": true, + "editor.insertSpaces": true, "[typescript]": { "editor.tabSize": 4 }, diff --git a/packages/editor/package.json b/packages/editor/package.json index 684c04d2e74dd..6521ff71a9601 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -46,4 +46,4 @@ "nyc": { "extends": "../../configs/nyc.json" } -} \ No newline at end of file +} diff --git a/packages/monaco/src/browser/monaco-command.ts b/packages/monaco/src/browser/monaco-command.ts index 2b8e13fe188e1..c6687702c07f2 100644 --- a/packages/monaco/src/browser/monaco-command.ts +++ b/packages/monaco/src/browser/monaco-command.ts @@ -38,16 +38,16 @@ export namespace MonacoCommands { ['redo', CommonCommands.REDO.id], ['editor.action.selectAll', CommonCommands.SELECT_ALL.id], ['actions.find', CommonCommands.FIND.id], - ['editor.action.startFindReplaceAction', CommonCommands.REPLACE.id] + ['editor.action.startFindReplaceAction', CommonCommands.REPLACE.id], + ['editor.action.clipboardCutAction', CommonCommands.CUT.id], + ['editor.action.clipboardCopyAction', CommonCommands.COPY.id], + ['editor.action.clipboardPasteAction', CommonCommands.PASTE.id] ]); export const GO_TO_DEFINITION = 'editor.action.revealDefinition'; export const EXCLUDE_ACTIONS = new Set([ - 'editor.action.quickCommand', - 'editor.action.clipboardCutAction', - 'editor.action.clipboardCopyAction', - 'editor.action.clipboardPasteAction' + 'editor.action.quickCommand' ]); }