monaco-editor 0.56.0-dev-20260121 → 0.56.0-dev-20260123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dev/vs/assets/{css.worker-C1mHXZTT.js → css.worker-ffp49_cC.js} +58 -56
- package/dev/vs/assets/{editor.worker-DMuwmZqI.js → editor.worker-waqpqn9S.js} +58 -56
- package/dev/vs/assets/{editorWebWorkerMain-BF9MKtzx.js → editorWebWorkerMain-rsQTQBqS.js} +58 -56
- package/dev/vs/assets/{html.worker-CnU9mi9l.js → html.worker-B-Dhwg_P.js} +58 -56
- package/dev/vs/assets/{json.worker-CnKP0LWf.js → json.worker-Cz-hJJ-X.js} +58 -56
- package/dev/vs/assets/{ts.worker-Cw4JXdL0.js → ts.worker-BHSjxfUg.js} +58 -56
- package/dev/vs/basic-languages/monaco.contribution.js +18 -18
- package/dev/vs/{css.worker-B9TJsr2Z.js → css.worker-DbKG6W5b.js} +2 -2
- package/dev/vs/{cssMode-B0VkNrib.js → cssMode-C3CjCC4D.js} +1 -1
- package/dev/vs/editor/editor.main.css +20 -49
- package/dev/vs/editor/editor.main.js +2 -2
- package/dev/vs/editor/editor.worker.js +1 -1
- package/dev/vs/{editor-CR18QzPP.js → editor-ByVgNwiX.js} +1232 -1136
- package/dev/vs/editor.js +1 -1
- package/dev/vs/{editorWorkerHost--0eDLpc-.js → editorWorkerHost-CSCfA6JO.js} +60 -58
- package/dev/vs/{freemarker2-Byr9HmH9.js → freemarker2-Bnmb8_zY.js} +1 -1
- package/dev/vs/{handlebars-BEVXeROF.js → handlebars-Dc4pj4ST.js} +1 -1
- package/dev/vs/{html-CetHjWIf.js → html-Gx48L-1h.js} +1 -1
- package/dev/vs/{html.worker-B4TnFQEA.js → html.worker-Q3fLApWB.js} +2 -2
- package/dev/vs/{htmlMode-BNKYUVNo.js → htmlMode-C0cIjK2m.js} +1 -1
- package/dev/vs/{index-g_7JbDIY.js → index-BmuewTCy.js} +1 -1
- package/dev/vs/index.js +1 -1
- package/dev/vs/{initialize-Bfvoywyr.js → initialize-J9jkp405.js} +1 -1
- package/dev/vs/{javascript-BEgEU725.js → javascript-D0xbuIYt.js} +1 -1
- package/dev/vs/{json.worker-C2LEGBju.js → json.worker-Byvb_Y0q.js} +2 -2
- package/dev/vs/{jsonMode-CT2UkfFE.js → jsonMode-Dc1J228j.js} +1 -1
- package/dev/vs/language/css/css.worker.js +1 -1
- package/dev/vs/language/css/monaco.contribution.js +1 -1
- package/dev/vs/language/html/html.worker.js +1 -1
- package/dev/vs/language/html/monaco.contribution.js +1 -1
- package/dev/vs/language/json/json.worker.js +1 -1
- package/dev/vs/language/json/monaco.contribution.js +1 -1
- package/dev/vs/language/typescript/monaco.contribution.js +1 -1
- package/dev/vs/language/typescript/ts.worker.js +1 -1
- package/dev/vs/{liquid-D-aiCb1P.js → liquid-BS75ollB.js} +1 -1
- package/dev/vs/{lspLanguageFeatures-CE9Occyu.js → lspLanguageFeatures-9tffJ5tN.js} +1 -1
- package/dev/vs/{mdx-DchJ8pbq.js → mdx-BafRHPZZ.js} +1 -1
- package/dev/vs/{monaco.contribution-CVBrIlxn.js → monaco.contribution-BOrU-t9u.js} +2 -2
- package/dev/vs/{monaco.contribution-CZxuzvA9.js → monaco.contribution-BuTPNIwn.js} +2 -2
- package/dev/vs/{monaco.contribution-Cw4OdERZ.js → monaco.contribution-D_m9AMAg.js} +2 -2
- package/dev/vs/{monaco.contribution-CHqb1dWh.js → monaco.contribution-DhNNHvGu.js} +2 -2
- package/dev/vs/nls/lang/cs.js +2 -2
- package/dev/vs/nls/lang/de.js +2 -2
- package/dev/vs/nls/lang/es.js +2 -2
- package/dev/vs/nls/lang/fr.js +2 -2
- package/dev/vs/nls/lang/it.js +2 -2
- package/dev/vs/nls/lang/ja.js +2 -2
- package/dev/vs/nls/lang/ko.js +2 -2
- package/dev/vs/nls/lang/pl.js +2 -2
- package/dev/vs/nls/lang/pt-br.js +2 -2
- package/dev/vs/nls/lang/ru.js +2 -2
- package/dev/vs/nls/lang/tr.js +2 -2
- package/dev/vs/nls/lang/zh-cn.js +2 -2
- package/dev/vs/nls/lang/zh-tw.js +2 -2
- package/dev/vs/{python-BCOSaCC8.js → python-D-c3bdyL.js} +1 -1
- package/dev/vs/{razor-BM2tZCwj.js → razor-v7al5kd4.js} +1 -1
- package/dev/vs/{toggleHighContrast-CLgtrrIB.js → toggleHighContrast-DkOkzJmE.js} +952 -839
- package/dev/vs/{ts.worker-CArJhH03.js → ts.worker-D8b1uxsf.js} +2 -2
- package/dev/vs/{tsMode-jpkv3SbL.js → tsMode-KTRrMuzt.js} +1 -1
- package/dev/vs/{typescript-f8pt88eA.js → typescript-BSiaiq-E.js} +1 -1
- package/dev/vs/{workers-zrUx_2Gw.js → workers-CRiEObDp.js} +1 -1
- package/dev/vs/{xml-CmSjtiR0.js → xml-CNu5z8S7.js} +1 -1
- package/dev/vs/{yaml-PRriLGdw.js → yaml-3Fy2WUAc.js} +1 -1
- package/esm/vs/base/browser/markdownRenderer.js +0 -1
- package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/esm/vs/base/browser/ui/tree/abstractTree.js +15 -2
- package/esm/vs/base/common/actions.js +1 -1
- package/esm/vs/base/common/codiconsLibrary.js +2 -0
- package/esm/vs/base/common/errorMessage.js +6 -6
- package/esm/vs/base/common/keybindingLabels.js +20 -20
- package/esm/vs/base/common/network.js +0 -2
- package/esm/vs/base/common/observableInternal/observables/derivedImpl.js +10 -4
- package/esm/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +1 -1
- package/esm/vs/editor/browser/controller/editContext/screenReaderUtils.js +4 -4
- package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +1 -1
- package/esm/vs/editor/browser/coreCommands.js +3 -3
- package/esm/vs/editor/browser/editorExtensions.js +9 -9
- package/esm/vs/editor/browser/gpu/viewGpuContext.js +1 -1
- package/esm/vs/editor/browser/observableCodeEditor.js +41 -0
- package/esm/vs/editor/browser/services/inlineCompletionsService.js +4 -4
- package/esm/vs/editor/browser/services/renameSymbolTrackerService.js +18 -0
- package/esm/vs/editor/browser/view.js +3 -0
- package/esm/vs/editor/browser/viewParts/viewLines/viewLine.js +14 -0
- package/esm/vs/editor/browser/viewParts/viewLines/viewLines.js +7 -0
- package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +8 -2
- package/esm/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/esm/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +14 -14
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +7 -7
- package/esm/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/esm/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
- package/esm/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +2 -2
- package/esm/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
- package/esm/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/esm/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/esm/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
- package/esm/vs/editor/browser/widget/multiDiffEditor/style.css +2 -41
- package/esm/vs/editor/common/config/editorConfigurationSchema.js +55 -55
- package/esm/vs/editor/common/config/editorOptions.js +410 -410
- package/esm/vs/editor/common/core/editorColorRegistry.js +70 -70
- package/esm/vs/editor/common/editorContextKeys.js +48 -48
- package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
- package/esm/vs/editor/common/languages.js +56 -56
- package/esm/vs/editor/common/model/editStack.js +1 -1
- package/esm/vs/editor/common/standaloneStrings.js +11 -11
- package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/esm/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/esm/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/esm/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js +44 -34
- package/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +5 -4
- package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/esm/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/esm/vs/editor/contrib/find/browser/findController.js +16 -16
- package/esm/vs/editor/contrib/find/browser/findWidget.css +5 -6
- package/esm/vs/editor/contrib/find/browser/findWidget.js +26 -26
- package/esm/vs/editor/contrib/floatingMenu/browser/floatingMenu.css +2 -1
- package/esm/vs/editor/contrib/floatingMenu/browser/floatingMenu.js +55 -47
- package/esm/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/esm/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/esm/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +40 -40
- package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +7 -7
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -21
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +4 -4
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +107 -18
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +3 -3
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +2 -8
- package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/esm/vs/editor/contrib/links/browser/links.js +10 -10
- package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +10 -10
- package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
- package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggest.js +9 -9
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
- package/esm/vs/editor/standalone/browser/services/standaloneWebWorkerService.js +2 -1
- package/esm/vs/editor/standalone/browser/standaloneServices.js +2 -0
- package/esm/vs/nls/lang/cs.js +2 -2
- package/esm/vs/nls/lang/de.js +2 -2
- package/esm/vs/nls/lang/es.js +2 -2
- package/esm/vs/nls/lang/fr.js +2 -2
- package/esm/vs/nls/lang/it.js +2 -2
- package/esm/vs/nls/lang/ja.js +2 -2
- package/esm/vs/nls/lang/ko.js +2 -2
- package/esm/vs/nls/lang/pl.js +2 -2
- package/esm/vs/nls/lang/pt-br.js +2 -2
- package/esm/vs/nls/lang/ru.js +2 -2
- package/esm/vs/nls/lang/tr.js +2 -2
- package/esm/vs/nls/lang/zh-cn.js +2 -2
- package/esm/vs/nls/lang/zh-tw.js +2 -2
- package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
- package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/esm/vs/platform/actionWidget/browser/actionList.js +35 -12
- package/esm/vs/platform/actionWidget/browser/actionWidget.css +10 -0
- package/esm/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +3 -3
- package/esm/vs/platform/actions/browser/toolbar.js +2 -2
- package/esm/vs/platform/actions/common/actions.js +2 -0
- package/esm/vs/platform/actions/common/menuService.js +2 -2
- package/esm/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
- package/esm/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/esm/vs/platform/contextkey/common/scanner.js +5 -5
- package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/esm/vs/platform/hover/browser/hoverWidget.js +1 -1
- package/esm/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
- package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
- package/esm/vs/platform/list/browser/listService.js +27 -27
- package/esm/vs/platform/markers/common/markerService.js +2 -2
- package/esm/vs/platform/markers/common/markers.js +6 -6
- package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +8 -8
- package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/esm/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
- package/esm/vs/platform/theme/common/colorUtils.js +2 -2
- package/esm/vs/platform/theme/common/colors/baseColors.js +18 -18
- package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/esm/vs/platform/theme/common/colors/inputColors.js +47 -47
- package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
- package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/esm/vs/platform/theme/common/colors/miscColors.js +16 -16
- package/esm/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
- package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/esm/vs/platform/workspace/common/workspace.js +1 -1
- package/min/vs/assets/{css.worker-57ylMqdQ.js → css.worker-vaqto7sr.js} +1 -1
- package/min/vs/assets/{editor.worker-C7rTzOHm.js → editor.worker-BuSZtiLy.js} +1 -1
- package/min/vs/assets/{editorWebWorkerMain-CRWuSSWk.js → editorWebWorkerMain-CcySIMs1.js} +1 -1
- package/min/vs/assets/{html.worker-DUkJXKh4.js → html.worker-tjoOkh5c.js} +29 -29
- package/min/vs/assets/{json.worker-DHFIjIvp.js → json.worker-ChdyNJDo.js} +1 -1
- package/min/vs/assets/{ts.worker-CKcSPjM2.js → ts.worker-2vlHj5mS.js} +1 -1
- package/min/vs/basic-languages/monaco.contribution.js +1 -1
- package/min/vs/css.worker-BZUqk_6e.js +1 -0
- package/min/vs/{cssMode-CheCY05R.js → cssMode-EV9AppWM.js} +1 -1
- package/min/vs/editor/editor.main.css +1 -1
- package/min/vs/editor/editor.main.js +1 -1
- package/min/vs/editor/editor.worker.js +1 -1
- package/min/vs/{editor-DxYWA3-X.js → editor-CWlwBnTd.js} +100 -100
- package/min/vs/editor.js +1 -1
- package/min/vs/{editorWorkerHost-DnKHgOKB.js → editorWorkerHost-BdAdaHF2.js} +2 -2
- package/min/vs/{freemarker2-C7J7V1Hp.js → freemarker2-CVBBrC8k.js} +1 -1
- package/min/vs/{handlebars-DsCar5Ix.js → handlebars-jFcyrSuz.js} +1 -1
- package/min/vs/{html-BGLIaUZV.js → html-IMKtsVBe.js} +1 -1
- package/min/vs/html.worker-BWiqWL_n.js +1 -0
- package/min/vs/{htmlMode-BB6WOoy3.js → htmlMode-GF6ANT1a.js} +1 -1
- package/min/vs/{index-BdR0nSqf.js → index-Duco_ua_.js} +1 -1
- package/min/vs/index.js +1 -1
- package/min/vs/{initialize-BZ6ciHHH.js → initialize-ChT-7fRb.js} +1 -1
- package/min/vs/{javascript-CXE3i1eX.js → javascript-CBNkgHAf.js} +1 -1
- package/min/vs/json.worker-ByICzyV2.js +1 -0
- package/min/vs/{jsonMode-rtaE9alu.js → jsonMode-Dcnh-7Ad.js} +1 -1
- package/min/vs/language/css/css.worker.js +1 -1
- package/min/vs/language/css/monaco.contribution.js +1 -1
- package/min/vs/language/html/html.worker.js +1 -1
- package/min/vs/language/html/monaco.contribution.js +1 -1
- package/min/vs/language/json/json.worker.js +1 -1
- package/min/vs/language/json/monaco.contribution.js +1 -1
- package/min/vs/language/typescript/monaco.contribution.js +1 -1
- package/min/vs/language/typescript/ts.worker.js +1 -1
- package/min/vs/{liquid-CEdn0ovR.js → liquid-_SgSuP3b.js} +1 -1
- package/min/vs/{lspLanguageFeatures-CRAjJmzF.js → lspLanguageFeatures-GNn6MJbu.js} +1 -1
- package/min/vs/{mdx-DLDMIqnu.js → mdx-Erxbe_-t.js} +1 -1
- package/min/vs/{monaco.contribution-C67XgReK.js → monaco.contribution-0dpFCE3L.js} +1 -1
- package/min/vs/{monaco.contribution-DjiQkKLa.js → monaco.contribution-BnqxFPvj.js} +1 -1
- package/min/vs/{monaco.contribution-BrRAk-VA.js → monaco.contribution-BxCvVJFk.js} +1 -1
- package/min/vs/{monaco.contribution-CYT-Sx3l.js → monaco.contribution-CeyPlyhD.js} +1 -1
- package/min/vs/nls/lang/cs.js +2 -2
- package/min/vs/nls/lang/de.js +2 -2
- package/min/vs/nls/lang/es.js +2 -2
- package/min/vs/nls/lang/fr.js +2 -2
- package/min/vs/nls/lang/it.js +2 -2
- package/min/vs/nls/lang/ja.js +2 -2
- package/min/vs/nls/lang/ko.js +2 -2
- package/min/vs/nls/lang/pl.js +2 -2
- package/min/vs/nls/lang/pt-br.js +2 -2
- package/min/vs/nls/lang/ru.js +2 -2
- package/min/vs/nls/lang/tr.js +2 -2
- package/min/vs/nls/lang/zh-cn.js +2 -2
- package/min/vs/nls/lang/zh-tw.js +2 -2
- package/min/vs/{python-CKbl_I3e.js → python-DzOjdI_x.js} +1 -1
- package/min/vs/{razor--RjiPxbd.js → razor-Dwx3J3cB.js} +1 -1
- package/min/vs/{toggleHighContrast-BKDMxisH.js → toggleHighContrast-Bg5GLQ5J.js} +32 -32
- package/min/vs/ts.worker-GOUX_DXT.js +1 -0
- package/min/vs/{tsMode-C48d5M22.js → tsMode-DxnLySbu.js} +1 -1
- package/min/vs/{typescript-e7oUhPyX.js → typescript-Blb6Hbmt.js} +1 -1
- package/min/vs/{workers-CtpYUoCo.js → workers-BmNNZ7XJ.js} +1 -1
- package/min/vs/{xml-tOyfgws7.js → xml-VvrpA2Ly.js} +1 -1
- package/min/vs/{yaml-Cmf9NYDf.js → yaml-CsmbXG_T.js} +1 -1
- package/package.json +3 -3
- package/min/vs/css.worker-CkPP9VjP.js +0 -1
- package/min/vs/html.worker-uHOusrcK.js +0 -1
- package/min/vs/json.worker-DGsNKzKv.js +0 -1
- package/min/vs/ts.worker-DyDnfuDL.js +0 -1
|
@@ -44,12 +44,12 @@ let SelectionAnchorController = class SelectionAnchorController {
|
|
|
44
44
|
this.decorationId = accessor.addDecoration(Selection.fromPositions(position, position), {
|
|
45
45
|
description: 'selection-anchor',
|
|
46
46
|
stickiness: 1 /* TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges */,
|
|
47
|
-
hoverMessage: new MarkdownString().appendText(localize(
|
|
47
|
+
hoverMessage: new MarkdownString().appendText(localize(809, "Selection Anchor")),
|
|
48
48
|
className: 'selection-anchor'
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
51
|
this.selectionAnchorSetContextKey.set(!!this.decorationId);
|
|
52
|
-
alert(localize(
|
|
52
|
+
alert(localize(810, "Anchor set at {0}:{1}", position.lineNumber, position.column));
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
goToSelectionAnchor() {
|
|
@@ -92,7 +92,7 @@ class SetSelectionAnchor extends EditorAction {
|
|
|
92
92
|
constructor() {
|
|
93
93
|
super({
|
|
94
94
|
id: 'editor.action.setSelectionAnchor',
|
|
95
|
-
label: localize2(
|
|
95
|
+
label: localize2(811, "Set Selection Anchor"),
|
|
96
96
|
precondition: undefined,
|
|
97
97
|
kbOpts: {
|
|
98
98
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -109,7 +109,7 @@ class GoToSelectionAnchor extends EditorAction {
|
|
|
109
109
|
constructor() {
|
|
110
110
|
super({
|
|
111
111
|
id: 'editor.action.goToSelectionAnchor',
|
|
112
|
-
label: localize2(
|
|
112
|
+
label: localize2(812, "Go to Selection Anchor"),
|
|
113
113
|
precondition: SelectionAnchorSet,
|
|
114
114
|
});
|
|
115
115
|
}
|
|
@@ -121,7 +121,7 @@ class SelectFromAnchorToCursor extends EditorAction {
|
|
|
121
121
|
constructor() {
|
|
122
122
|
super({
|
|
123
123
|
id: 'editor.action.selectFromAnchorToCursor',
|
|
124
|
-
label: localize2(
|
|
124
|
+
label: localize2(813, "Select from Anchor to Cursor"),
|
|
125
125
|
precondition: SelectionAnchorSet,
|
|
126
126
|
kbOpts: {
|
|
127
127
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -138,7 +138,7 @@ class CancelSelectionAnchor extends EditorAction {
|
|
|
138
138
|
constructor() {
|
|
139
139
|
super({
|
|
140
140
|
id: 'editor.action.cancelSelectionAnchor',
|
|
141
|
-
label: localize2(
|
|
141
|
+
label: localize2(814, "Cancel Selection Anchor"),
|
|
142
142
|
precondition: SelectionAnchorSet,
|
|
143
143
|
kbOpts: {
|
|
144
144
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -28,12 +28,12 @@ import { editorBracketMatchForeground } from '../../../common/core/editorColorRe
|
|
|
28
28
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
29
29
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
30
30
|
*--------------------------------------------------------------------------------------------*/
|
|
31
|
-
const overviewRulerBracketMatchForeground = registerColor('editorOverviewRuler.bracketMatchForeground', '#A0A0A0', localize(
|
|
31
|
+
const overviewRulerBracketMatchForeground = registerColor('editorOverviewRuler.bracketMatchForeground', '#A0A0A0', localize(815, 'Overview ruler marker color for matching brackets.'));
|
|
32
32
|
class JumpToBracketAction extends EditorAction {
|
|
33
33
|
constructor() {
|
|
34
34
|
super({
|
|
35
35
|
id: 'editor.action.jumpToBracket',
|
|
36
|
-
label: localize2(
|
|
36
|
+
label: localize2(817, "Go to Bracket"),
|
|
37
37
|
precondition: undefined,
|
|
38
38
|
kbOpts: {
|
|
39
39
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -50,10 +50,10 @@ class SelectToBracketAction extends EditorAction {
|
|
|
50
50
|
constructor() {
|
|
51
51
|
super({
|
|
52
52
|
id: 'editor.action.selectToBracket',
|
|
53
|
-
label: localize2(
|
|
53
|
+
label: localize2(818, "Select to Bracket"),
|
|
54
54
|
precondition: undefined,
|
|
55
55
|
metadata: {
|
|
56
|
-
description: localize2(
|
|
56
|
+
description: localize2(819, "Select the text inside and including the brackets or curly braces"),
|
|
57
57
|
args: [{
|
|
58
58
|
name: 'args',
|
|
59
59
|
schema: {
|
|
@@ -81,7 +81,7 @@ class RemoveBracketsAction extends EditorAction {
|
|
|
81
81
|
constructor() {
|
|
82
82
|
super({
|
|
83
83
|
id: 'editor.action.removeBrackets',
|
|
84
|
-
label: localize2(
|
|
84
|
+
label: localize2(820, "Remove Brackets"),
|
|
85
85
|
precondition: undefined,
|
|
86
86
|
kbOpts: {
|
|
87
87
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -354,7 +354,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
354
354
|
group: '5_infile_nav',
|
|
355
355
|
command: {
|
|
356
356
|
id: 'editor.action.jumpToBracket',
|
|
357
|
-
title: localize(
|
|
357
|
+
title: localize(816, "Go to &&Bracket")
|
|
358
358
|
},
|
|
359
359
|
order: 2
|
|
360
360
|
});
|
|
@@ -30,7 +30,7 @@ class MoveCaretLeftAction extends MoveCaretAction {
|
|
|
30
30
|
constructor() {
|
|
31
31
|
super(true, {
|
|
32
32
|
id: 'editor.action.moveCarretLeftAction',
|
|
33
|
-
label: localize2(
|
|
33
|
+
label: localize2(821, "Move Selected Text Left"),
|
|
34
34
|
precondition: EditorContextKeys.writable
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -39,7 +39,7 @@ class MoveCaretRightAction extends MoveCaretAction {
|
|
|
39
39
|
constructor() {
|
|
40
40
|
super(false, {
|
|
41
41
|
id: 'editor.action.moveCarretRightAction',
|
|
42
|
-
label: localize2(
|
|
42
|
+
label: localize2(822, "Move Selected Text Right"),
|
|
43
43
|
precondition: EditorContextKeys.writable
|
|
44
44
|
});
|
|
45
45
|
}
|
|
@@ -13,7 +13,7 @@ class TransposeLettersAction extends EditorAction {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: 'editor.action.transposeLetters',
|
|
16
|
-
label: localize2(
|
|
16
|
+
label: localize2(823, "Transpose Letters"),
|
|
17
17
|
precondition: EditorContextKeys.writable,
|
|
18
18
|
kbOpts: {
|
|
19
19
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -42,23 +42,23 @@ const CutAction = supportsCut ? registerCommand(new MultiCommand({
|
|
|
42
42
|
menuOpts: [{
|
|
43
43
|
menuId: MenuId.MenubarEditMenu,
|
|
44
44
|
group: '2_ccp',
|
|
45
|
-
title: localize(
|
|
45
|
+
title: localize(824, "Cu&&t"),
|
|
46
46
|
order: 1
|
|
47
47
|
}, {
|
|
48
48
|
menuId: MenuId.EditorContext,
|
|
49
49
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
50
|
-
title: localize(
|
|
50
|
+
title: localize(825, "Cut"),
|
|
51
51
|
when: EditorContextKeys.writable,
|
|
52
52
|
order: 1,
|
|
53
53
|
}, {
|
|
54
54
|
menuId: MenuId.CommandPalette,
|
|
55
55
|
group: '',
|
|
56
|
-
title: localize(
|
|
56
|
+
title: localize(826, "Cut"),
|
|
57
57
|
order: 1
|
|
58
58
|
}, {
|
|
59
59
|
menuId: MenuId.SimpleEditorContext,
|
|
60
60
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
61
|
-
title: localize(
|
|
61
|
+
title: localize(827, "Cut"),
|
|
62
62
|
when: EditorContextKeys.writable,
|
|
63
63
|
order: 1,
|
|
64
64
|
}]
|
|
@@ -77,29 +77,29 @@ const CopyAction = supportsCopy ? registerCommand(new MultiCommand({
|
|
|
77
77
|
menuOpts: [{
|
|
78
78
|
menuId: MenuId.MenubarEditMenu,
|
|
79
79
|
group: '2_ccp',
|
|
80
|
-
title: localize(
|
|
80
|
+
title: localize(828, "&&Copy"),
|
|
81
81
|
order: 2
|
|
82
82
|
}, {
|
|
83
83
|
menuId: MenuId.EditorContext,
|
|
84
84
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
85
|
-
title: localize(
|
|
85
|
+
title: localize(829, "Copy"),
|
|
86
86
|
order: 2,
|
|
87
87
|
}, {
|
|
88
88
|
menuId: MenuId.CommandPalette,
|
|
89
89
|
group: '',
|
|
90
|
-
title: localize(
|
|
90
|
+
title: localize(830, "Copy"),
|
|
91
91
|
order: 1
|
|
92
92
|
}, {
|
|
93
93
|
menuId: MenuId.SimpleEditorContext,
|
|
94
94
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
95
|
-
title: localize(
|
|
95
|
+
title: localize(831, "Copy"),
|
|
96
96
|
order: 2,
|
|
97
97
|
}]
|
|
98
98
|
})) : undefined;
|
|
99
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarEditMenu, { submenu: MenuId.MenubarCopy, title: localize2(
|
|
100
|
-
MenuRegistry.appendMenuItem(MenuId.EditorContext, { submenu: MenuId.EditorContextCopy, title: localize2(
|
|
101
|
-
MenuRegistry.appendMenuItem(MenuId.EditorContext, { submenu: MenuId.EditorContextShare, title: localize2(
|
|
102
|
-
MenuRegistry.appendMenuItem(MenuId.ExplorerContext, { submenu: MenuId.ExplorerContextShare, title: localize2(
|
|
99
|
+
MenuRegistry.appendMenuItem(MenuId.MenubarEditMenu, { submenu: MenuId.MenubarCopy, title: localize2(836, "Copy As"), group: '2_ccp', order: 3 });
|
|
100
|
+
MenuRegistry.appendMenuItem(MenuId.EditorContext, { submenu: MenuId.EditorContextCopy, title: localize2(837, "Copy As"), group: CLIPBOARD_CONTEXT_MENU_GROUP, order: 3 });
|
|
101
|
+
MenuRegistry.appendMenuItem(MenuId.EditorContext, { submenu: MenuId.EditorContextShare, title: localize2(838, "Share"), group: '11_share', order: -1, when: ContextKeyExpr.and(ContextKeyExpr.notEquals('resourceScheme', 'output'), EditorContextKeys.editorTextFocus) });
|
|
102
|
+
MenuRegistry.appendMenuItem(MenuId.ExplorerContext, { submenu: MenuId.ExplorerContextShare, title: localize2(839, "Share"), group: '11_share', order: -1 });
|
|
103
103
|
const PasteAction = supportsPaste ? registerCommand(new MultiCommand({
|
|
104
104
|
id: 'editor.action.clipboardPasteAction',
|
|
105
105
|
precondition: undefined,
|
|
@@ -115,23 +115,23 @@ const PasteAction = supportsPaste ? registerCommand(new MultiCommand({
|
|
|
115
115
|
menuOpts: [{
|
|
116
116
|
menuId: MenuId.MenubarEditMenu,
|
|
117
117
|
group: '2_ccp',
|
|
118
|
-
title: localize(
|
|
118
|
+
title: localize(832, "&&Paste"),
|
|
119
119
|
order: 4
|
|
120
120
|
}, {
|
|
121
121
|
menuId: MenuId.EditorContext,
|
|
122
122
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
123
|
-
title: localize(
|
|
123
|
+
title: localize(833, "Paste"),
|
|
124
124
|
when: EditorContextKeys.writable,
|
|
125
125
|
order: 4,
|
|
126
126
|
}, {
|
|
127
127
|
menuId: MenuId.CommandPalette,
|
|
128
128
|
group: '',
|
|
129
|
-
title: localize(
|
|
129
|
+
title: localize(834, "Paste"),
|
|
130
130
|
order: 1
|
|
131
131
|
}, {
|
|
132
132
|
menuId: MenuId.SimpleEditorContext,
|
|
133
133
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
134
|
-
title: localize(
|
|
134
|
+
title: localize(835, "Paste"),
|
|
135
135
|
when: EditorContextKeys.writable,
|
|
136
136
|
order: 4,
|
|
137
137
|
}]
|
|
@@ -140,7 +140,7 @@ class ExecCommandCopyWithSyntaxHighlightingAction extends EditorAction {
|
|
|
140
140
|
constructor() {
|
|
141
141
|
super({
|
|
142
142
|
id: 'editor.action.clipboardCopyWithSyntaxHighlightingAction',
|
|
143
|
-
label: localize2(
|
|
143
|
+
label: localize2(840, "Copy with Syntax Highlighting"),
|
|
144
144
|
precondition: undefined,
|
|
145
145
|
kbOpts: {
|
|
146
146
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -253,7 +253,7 @@ async function applyCodeAction(accessor, item, codeActionReason, options, token
|
|
|
253
253
|
const message = asMessage(err);
|
|
254
254
|
notificationService.error(typeof message === 'string'
|
|
255
255
|
? message
|
|
256
|
-
: localize(
|
|
256
|
+
: localize(841, "An unknown error occurred while applying the code action"));
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
// ensure the start sound and end sound do not overlap
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { HierarchicalKind } from '../../../../base/common/hierarchicalKind.js';
|
|
2
2
|
import { escapeRegExpCharacters } from '../../../../base/common/strings.js';
|
|
3
|
-
import { EditorAction, EditorCommand } from '../../../browser/editorExtensions.js';
|
|
3
|
+
import { EditorAction2, EditorAction, EditorCommand } from '../../../browser/editorExtensions.js';
|
|
4
4
|
import { EditorContextKeys } from '../../../common/editorContextKeys.js';
|
|
5
5
|
import { quickFixCommandId, refactorCommandId, sourceActionCommandId, organizeImportsCommandId, autoFixCommandId, fixAllCommandId, codeActionCommandId } from './codeAction.js';
|
|
6
6
|
import { localize, localize2 } from '../../../../nls.js';
|
|
7
|
+
import { MenuId } from '../../../../platform/actions/common/actions.js';
|
|
7
8
|
import { ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js';
|
|
8
9
|
import { CodeActionTriggerSource, CodeActionKind, CodeActionCommandArgs } from '../common/types.js';
|
|
9
10
|
import { CodeActionController } from './codeActionController.js';
|
|
10
11
|
import { SUPPORTED_CODE_ACTIONS } from './codeActionModel.js';
|
|
12
|
+
import { Codicon } from '../../../../base/common/codicons.js';
|
|
11
13
|
|
|
12
14
|
/*---------------------------------------------------------------------------------------------
|
|
13
15
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -22,23 +24,23 @@ const argsSchema = {
|
|
|
22
24
|
properties: {
|
|
23
25
|
'kind': {
|
|
24
26
|
type: 'string',
|
|
25
|
-
description: localize(
|
|
27
|
+
description: localize(842, "Kind of the code action to run."),
|
|
26
28
|
},
|
|
27
29
|
'apply': {
|
|
28
30
|
type: 'string',
|
|
29
|
-
description: localize(
|
|
31
|
+
description: localize(843, "Controls when the returned actions are applied."),
|
|
30
32
|
default: "ifSingle" /* CodeActionAutoApply.IfSingle */,
|
|
31
33
|
enum: ["first" /* CodeActionAutoApply.First */, "ifSingle" /* CodeActionAutoApply.IfSingle */, "never" /* CodeActionAutoApply.Never */],
|
|
32
34
|
enumDescriptions: [
|
|
33
|
-
localize(
|
|
34
|
-
localize(
|
|
35
|
-
localize(
|
|
35
|
+
localize(844, "Always apply the first returned code action."),
|
|
36
|
+
localize(845, "Apply the first returned code action if it is the only one."),
|
|
37
|
+
localize(846, "Do not apply the returned code actions."),
|
|
36
38
|
]
|
|
37
39
|
},
|
|
38
40
|
'preferred': {
|
|
39
41
|
type: 'boolean',
|
|
40
42
|
default: false,
|
|
41
|
-
description: localize(
|
|
43
|
+
description: localize(847, "Controls if only preferred code actions should be returned."),
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
};
|
|
@@ -48,21 +50,29 @@ function triggerCodeActionsForEditorSelection(editor, notAvailableMessage, filte
|
|
|
48
50
|
controller?.manualTriggerAtCurrentPosition(notAvailableMessage, triggerAction, filter, autoApply);
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
|
-
class QuickFixAction extends
|
|
53
|
+
class QuickFixAction extends EditorAction2 {
|
|
52
54
|
constructor() {
|
|
53
55
|
super({
|
|
54
56
|
id: quickFixCommandId,
|
|
55
|
-
|
|
57
|
+
title: localize2(864, "Quick Fix..."),
|
|
56
58
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasCodeActionsProvider),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
icon: Codicon.lightBulb,
|
|
60
|
+
f1: true,
|
|
61
|
+
keybinding: {
|
|
62
|
+
when: EditorContextKeys.textInputFocus,
|
|
59
63
|
primary: 2048 /* KeyMod.CtrlCmd */ | 89 /* KeyCode.Period */,
|
|
60
64
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
65
|
+
},
|
|
66
|
+
menu: {
|
|
67
|
+
id: MenuId.InlineChatEditorAffordance,
|
|
68
|
+
group: '0_quickfix',
|
|
69
|
+
order: 0,
|
|
70
|
+
when: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasCodeActionsProvider)
|
|
61
71
|
}
|
|
62
72
|
});
|
|
63
73
|
}
|
|
64
|
-
|
|
65
|
-
return triggerCodeActionsForEditorSelection(editor, localize(
|
|
74
|
+
runEditorCommand(_accessor, editor) {
|
|
75
|
+
return triggerCodeActionsForEditorSelection(editor, localize(848, "No code actions available"), undefined, undefined, CodeActionTriggerSource.QuickFix);
|
|
66
76
|
}
|
|
67
77
|
}
|
|
68
78
|
class CodeActionCommand extends EditorCommand {
|
|
@@ -83,11 +93,11 @@ class CodeActionCommand extends EditorCommand {
|
|
|
83
93
|
});
|
|
84
94
|
return triggerCodeActionsForEditorSelection(editor, typeof userArgs?.kind === 'string'
|
|
85
95
|
? args.preferred
|
|
86
|
-
? localize(
|
|
87
|
-
: localize(
|
|
96
|
+
? localize(849, "No preferred code actions for '{0}' available", userArgs.kind)
|
|
97
|
+
: localize(850, "No code actions for '{0}' available", userArgs.kind)
|
|
88
98
|
: args.preferred
|
|
89
|
-
? localize(
|
|
90
|
-
: localize(
|
|
99
|
+
? localize(851, "No preferred code actions available")
|
|
100
|
+
: localize(852, "No code actions available"), {
|
|
91
101
|
include: args.kind,
|
|
92
102
|
includeSourceActions: true,
|
|
93
103
|
onlyIncludePreferredActions: args.preferred,
|
|
@@ -98,7 +108,7 @@ class RefactorAction extends EditorAction {
|
|
|
98
108
|
constructor() {
|
|
99
109
|
super({
|
|
100
110
|
id: refactorCommandId,
|
|
101
|
-
label: localize2(
|
|
111
|
+
label: localize2(865, "Refactor..."),
|
|
102
112
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasCodeActionsProvider),
|
|
103
113
|
kbOpts: {
|
|
104
114
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -126,11 +136,11 @@ class RefactorAction extends EditorAction {
|
|
|
126
136
|
});
|
|
127
137
|
return triggerCodeActionsForEditorSelection(editor, typeof userArgs?.kind === 'string'
|
|
128
138
|
? args.preferred
|
|
129
|
-
? localize(
|
|
130
|
-
: localize(
|
|
139
|
+
? localize(853, "No preferred refactorings for '{0}' available", userArgs.kind)
|
|
140
|
+
: localize(854, "No refactorings for '{0}' available", userArgs.kind)
|
|
131
141
|
: args.preferred
|
|
132
|
-
? localize(
|
|
133
|
-
: localize(
|
|
142
|
+
? localize(855, "No preferred refactorings available")
|
|
143
|
+
: localize(856, "No refactorings available"), {
|
|
134
144
|
include: CodeActionKind.Refactor.contains(args.kind) ? args.kind : HierarchicalKind.None,
|
|
135
145
|
onlyIncludePreferredActions: args.preferred
|
|
136
146
|
}, args.apply, CodeActionTriggerSource.Refactor);
|
|
@@ -140,7 +150,7 @@ class SourceAction extends EditorAction {
|
|
|
140
150
|
constructor() {
|
|
141
151
|
super({
|
|
142
152
|
id: sourceActionCommandId,
|
|
143
|
-
label: localize2(
|
|
153
|
+
label: localize2(866, "Source Action..."),
|
|
144
154
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasCodeActionsProvider),
|
|
145
155
|
contextMenuOpts: {
|
|
146
156
|
group: '1_modification',
|
|
@@ -160,11 +170,11 @@ class SourceAction extends EditorAction {
|
|
|
160
170
|
});
|
|
161
171
|
return triggerCodeActionsForEditorSelection(editor, typeof userArgs?.kind === 'string'
|
|
162
172
|
? args.preferred
|
|
163
|
-
? localize(
|
|
164
|
-
: localize(
|
|
173
|
+
? localize(857, "No preferred source actions for '{0}' available", userArgs.kind)
|
|
174
|
+
: localize(858, "No source actions for '{0}' available", userArgs.kind)
|
|
165
175
|
: args.preferred
|
|
166
|
-
? localize(
|
|
167
|
-
: localize(
|
|
176
|
+
? localize(859, "No preferred source actions available")
|
|
177
|
+
: localize(860, "No source actions available"), {
|
|
168
178
|
include: CodeActionKind.Source.contains(args.kind) ? args.kind : HierarchicalKind.None,
|
|
169
179
|
includeSourceActions: true,
|
|
170
180
|
onlyIncludePreferredActions: args.preferred,
|
|
@@ -175,7 +185,7 @@ class OrganizeImportsAction extends EditorAction {
|
|
|
175
185
|
constructor() {
|
|
176
186
|
super({
|
|
177
187
|
id: organizeImportsCommandId,
|
|
178
|
-
label: localize2(
|
|
188
|
+
label: localize2(867, "Organize Imports"),
|
|
179
189
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, contextKeyForSupportedActions(CodeActionKind.SourceOrganizeImports)),
|
|
180
190
|
kbOpts: {
|
|
181
191
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -183,31 +193,31 @@ class OrganizeImportsAction extends EditorAction {
|
|
|
183
193
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
184
194
|
},
|
|
185
195
|
metadata: {
|
|
186
|
-
description: localize2(
|
|
196
|
+
description: localize2(868, "Organize imports in the current file. Also called 'Optimize Imports' by some tools")
|
|
187
197
|
}
|
|
188
198
|
});
|
|
189
199
|
}
|
|
190
200
|
run(_accessor, editor) {
|
|
191
|
-
return triggerCodeActionsForEditorSelection(editor, localize(
|
|
201
|
+
return triggerCodeActionsForEditorSelection(editor, localize(861, "No organize imports action available"), { include: CodeActionKind.SourceOrganizeImports, includeSourceActions: true }, "ifSingle" /* CodeActionAutoApply.IfSingle */, CodeActionTriggerSource.OrganizeImports);
|
|
192
202
|
}
|
|
193
203
|
}
|
|
194
204
|
class FixAllAction extends EditorAction {
|
|
195
205
|
constructor() {
|
|
196
206
|
super({
|
|
197
207
|
id: fixAllCommandId,
|
|
198
|
-
label: localize2(
|
|
208
|
+
label: localize2(869, "Fix All"),
|
|
199
209
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, contextKeyForSupportedActions(CodeActionKind.SourceFixAll))
|
|
200
210
|
});
|
|
201
211
|
}
|
|
202
212
|
run(_accessor, editor) {
|
|
203
|
-
return triggerCodeActionsForEditorSelection(editor, localize(
|
|
213
|
+
return triggerCodeActionsForEditorSelection(editor, localize(862, "No fix all action available"), { include: CodeActionKind.SourceFixAll, includeSourceActions: true }, "ifSingle" /* CodeActionAutoApply.IfSingle */, CodeActionTriggerSource.FixAll);
|
|
204
214
|
}
|
|
205
215
|
}
|
|
206
216
|
class AutoFixAction extends EditorAction {
|
|
207
217
|
constructor() {
|
|
208
218
|
super({
|
|
209
219
|
id: autoFixCommandId,
|
|
210
|
-
label: localize2(
|
|
220
|
+
label: localize2(870, "Auto Fix..."),
|
|
211
221
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, contextKeyForSupportedActions(CodeActionKind.QuickFix)),
|
|
212
222
|
kbOpts: {
|
|
213
223
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -220,7 +230,7 @@ class AutoFixAction extends EditorAction {
|
|
|
220
230
|
});
|
|
221
231
|
}
|
|
222
232
|
run(_accessor, editor) {
|
|
223
|
-
return triggerCodeActionsForEditorSelection(editor, localize(
|
|
233
|
+
return triggerCodeActionsForEditorSelection(editor, localize(863, "No auto fixes available"), {
|
|
224
234
|
include: CodeActionKind.QuickFix,
|
|
225
235
|
onlyIncludePreferredActions: true
|
|
226
236
|
}, "ifSingle" /* CodeActionAutoApply.IfSingle */, CodeActionTriggerSource.AutoFix);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { registerEditorContribution, registerEditorAction, registerEditorCommand } from '../../../browser/editorExtensions.js';
|
|
2
|
+
import { registerAction2 } from '../../../../platform/actions/common/actions.js';
|
|
2
3
|
import { editorConfigurationBaseNode } from '../../../common/config/editorConfigurationSchema.js';
|
|
3
4
|
import { QuickFixAction, RefactorAction, SourceAction, OrganizeImportsAction, AutoFixAction, FixAllAction, CodeActionCommand } from './codeActionCommands.js';
|
|
4
5
|
import { CodeActionController } from './codeActionController.js';
|
|
@@ -13,7 +14,7 @@ import { Registry } from '../../../../platform/registry/common/platform.js';
|
|
|
13
14
|
*--------------------------------------------------------------------------------------------*/
|
|
14
15
|
registerEditorContribution(CodeActionController.ID, CodeActionController, 3 /* EditorContributionInstantiation.Eventually */);
|
|
15
16
|
registerEditorContribution(LightBulbWidget.ID, LightBulbWidget, 4 /* EditorContributionInstantiation.Lazy */);
|
|
16
|
-
|
|
17
|
+
registerAction2(QuickFixAction);
|
|
17
18
|
registerEditorAction(RefactorAction);
|
|
18
19
|
registerEditorAction(SourceAction);
|
|
19
20
|
registerEditorAction(OrganizeImportsAction);
|
|
@@ -26,7 +27,7 @@ Registry.as(Extensions.Configuration).registerConfiguration({
|
|
|
26
27
|
'editor.codeActionWidget.showHeaders': {
|
|
27
28
|
type: 'boolean',
|
|
28
29
|
scope: 6 /* ConfigurationScope.LANGUAGE_OVERRIDABLE */,
|
|
29
|
-
description: localize(
|
|
30
|
+
description: localize(871, "Enable/disable showing group headers in the Code Action menu."),
|
|
30
31
|
default: true,
|
|
31
32
|
},
|
|
32
33
|
}
|
|
@@ -37,7 +38,7 @@ Registry.as(Extensions.Configuration).registerConfiguration({
|
|
|
37
38
|
'editor.codeActionWidget.includeNearbyQuickFixes': {
|
|
38
39
|
type: 'boolean',
|
|
39
40
|
scope: 6 /* ConfigurationScope.LANGUAGE_OVERRIDABLE */,
|
|
40
|
-
description: localize(
|
|
41
|
+
description: localize(872, "Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),
|
|
41
42
|
default: true,
|
|
42
43
|
},
|
|
43
44
|
}
|
|
@@ -48,7 +49,7 @@ Registry.as(Extensions.Configuration).registerConfiguration({
|
|
|
48
49
|
'editor.codeActions.triggerOnFocusChange': {
|
|
49
50
|
type: 'boolean',
|
|
50
51
|
scope: 6 /* ConfigurationScope.LANGUAGE_OVERRIDABLE */,
|
|
51
|
-
markdownDescription: localize(
|
|
52
|
+
markdownDescription: localize(873, 'Enable triggering {0} when {1} is set to {2}. Code Actions must be set to {3} to be triggered for window and focus changes.', '`#editor.codeActionsOnSave#`', '`#files.autoSave#`', '`afterDelay`', '`always`'),
|
|
52
53
|
default: false,
|
|
53
54
|
},
|
|
54
55
|
}
|
|
@@ -278,7 +278,7 @@ let CodeActionController = class CodeActionController extends Disposable {
|
|
|
278
278
|
const diagnostic = diagnostics[0];
|
|
279
279
|
if (diagnostic.startLineNumber && diagnostic.startColumn) {
|
|
280
280
|
const selectionText = this._editor.getModel()?.getWordAtPosition({ lineNumber: diagnostic.startLineNumber, column: diagnostic.startColumn })?.word;
|
|
281
|
-
status(localize(
|
|
281
|
+
status(localize(874, "Context: {0} at line {1} and column {2}.", selectionText, diagnostic.startLineNumber, diagnostic.startColumn));
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
}
|
|
@@ -321,7 +321,7 @@ let CodeActionController = class CodeActionController extends Disposable {
|
|
|
321
321
|
if (options.includeDisabledActions && actions.validActions.length > 0 && actions.allActions.length !== actions.validActions.length) {
|
|
322
322
|
resultActions.push(this._showDisabled ? {
|
|
323
323
|
id: 'hideMoreActions',
|
|
324
|
-
label: localize(
|
|
324
|
+
label: localize(875, 'Hide Disabled'),
|
|
325
325
|
enabled: true,
|
|
326
326
|
tooltip: '',
|
|
327
327
|
class: undefined,
|
|
@@ -331,7 +331,7 @@ let CodeActionController = class CodeActionController extends Disposable {
|
|
|
331
331
|
}
|
|
332
332
|
} : {
|
|
333
333
|
id: 'showMoreActions',
|
|
334
|
-
label: localize(
|
|
334
|
+
label: localize(876, 'Show Disabled'),
|
|
335
335
|
enabled: true,
|
|
336
336
|
tooltip: '',
|
|
337
337
|
class: undefined,
|
|
@@ -10,15 +10,15 @@ import { HierarchicalKind } from '../../../../base/common/hierarchicalKind.js';
|
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11
11
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
12
12
|
*--------------------------------------------------------------------------------------------*/
|
|
13
|
-
const uncategorizedCodeActionGroup = Object.freeze({ kind: HierarchicalKind.Empty, title: localize(
|
|
13
|
+
const uncategorizedCodeActionGroup = Object.freeze({ kind: HierarchicalKind.Empty, title: localize(877, 'More Actions...') });
|
|
14
14
|
const codeActionGroups = Object.freeze([
|
|
15
|
-
{ kind: CodeActionKind.QuickFix, title: localize(
|
|
16
|
-
{ kind: CodeActionKind.RefactorExtract, title: localize(
|
|
17
|
-
{ kind: CodeActionKind.RefactorInline, title: localize(
|
|
18
|
-
{ kind: CodeActionKind.RefactorRewrite, title: localize(
|
|
19
|
-
{ kind: CodeActionKind.RefactorMove, title: localize(
|
|
20
|
-
{ kind: CodeActionKind.SurroundWith, title: localize(
|
|
21
|
-
{ kind: CodeActionKind.Source, title: localize(
|
|
15
|
+
{ kind: CodeActionKind.QuickFix, title: localize(878, 'Quick Fix') },
|
|
16
|
+
{ kind: CodeActionKind.RefactorExtract, title: localize(879, 'Extract'), icon: Codicon.wrench },
|
|
17
|
+
{ kind: CodeActionKind.RefactorInline, title: localize(880, 'Inline'), icon: Codicon.wrench },
|
|
18
|
+
{ kind: CodeActionKind.RefactorRewrite, title: localize(881, 'Rewrite'), icon: Codicon.wrench },
|
|
19
|
+
{ kind: CodeActionKind.RefactorMove, title: localize(882, 'Move'), icon: Codicon.wrench },
|
|
20
|
+
{ kind: CodeActionKind.SurroundWith, title: localize(883, 'Surround With'), icon: Codicon.surroundWith },
|
|
21
|
+
{ kind: CodeActionKind.Source, title: localize(884, 'Source Action'), icon: Codicon.symbolFile },
|
|
22
22
|
uncategorizedCodeActionGroup,
|
|
23
23
|
]);
|
|
24
24
|
function toMenuItems(inputCodeActions, showHeaders, keybindingResolver) {
|
|
@@ -28,11 +28,11 @@ var __param = (undefined && undefined.__param) || function (paramIndex, decorato
|
|
|
28
28
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
29
29
|
};
|
|
30
30
|
var LightBulbWidget_1;
|
|
31
|
-
const GUTTER_LIGHTBULB_ICON = registerIcon('gutter-lightbulb', Codicon.lightBulb, localize(
|
|
32
|
-
const GUTTER_LIGHTBULB_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-auto-fix', Codicon.lightbulbAutofix, localize(
|
|
33
|
-
const GUTTER_LIGHTBULB_AIFIX_ICON = registerIcon('gutter-lightbulb-sparkle', Codicon.lightbulbSparkle, localize(
|
|
34
|
-
const GUTTER_LIGHTBULB_AIFIX_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-aifix-auto-fix', Codicon.lightbulbSparkleAutofix, localize(
|
|
35
|
-
const GUTTER_SPARKLE_FILLED_ICON = registerIcon('gutter-lightbulb-sparkle-filled', Codicon.sparkleFilled, localize(
|
|
31
|
+
const GUTTER_LIGHTBULB_ICON = registerIcon('gutter-lightbulb', Codicon.lightBulb, localize(885, 'Icon which spawns code actions menu from the gutter when there is no space in the editor.'));
|
|
32
|
+
const GUTTER_LIGHTBULB_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-auto-fix', Codicon.lightbulbAutofix, localize(886, 'Icon which spawns code actions menu from the gutter when there is no space in the editor and a quick fix is available.'));
|
|
33
|
+
const GUTTER_LIGHTBULB_AIFIX_ICON = registerIcon('gutter-lightbulb-sparkle', Codicon.lightbulbSparkle, localize(887, 'Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix is available.'));
|
|
34
|
+
const GUTTER_LIGHTBULB_AIFIX_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-aifix-auto-fix', Codicon.lightbulbSparkleAutofix, localize(888, 'Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.'));
|
|
35
|
+
const GUTTER_SPARKLE_FILLED_ICON = registerIcon('gutter-lightbulb-sparkle-filled', Codicon.sparkleFilled, localize(889, 'Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.'));
|
|
36
36
|
var LightBulbState;
|
|
37
37
|
(function (LightBulbState) {
|
|
38
38
|
LightBulbState.Hidden = { type: 0 /* Type.Hidden */ };
|
|
@@ -404,16 +404,16 @@ let LightBulbWidget = class LightBulbWidget extends Disposable {
|
|
|
404
404
|
return;
|
|
405
405
|
}
|
|
406
406
|
if (autoRun) {
|
|
407
|
-
this.title = localize(
|
|
407
|
+
this.title = localize(890, "Run: {0}", this.state.actions.validActions[0].action.title);
|
|
408
408
|
}
|
|
409
409
|
else if (autoFix && this._preferredKbLabel) {
|
|
410
|
-
this.title = localize(
|
|
410
|
+
this.title = localize(891, "Show Code Actions. Preferred Quick Fix Available ({0})", this._preferredKbLabel);
|
|
411
411
|
}
|
|
412
412
|
else if (!autoFix && this._quickFixKbLabel) {
|
|
413
|
-
this.title = localize(
|
|
413
|
+
this.title = localize(892, "Show Code Actions ({0})", this._quickFixKbLabel);
|
|
414
414
|
}
|
|
415
415
|
else if (!autoFix) {
|
|
416
|
-
this.title = localize(
|
|
416
|
+
this.title = localize(893, "Show Code Actions");
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
set title(value) {
|
|
@@ -404,7 +404,7 @@ registerEditorAction(class ShowLensesInCurrentLine extends EditorAction {
|
|
|
404
404
|
super({
|
|
405
405
|
id: 'codelens.showLensesInCurrentLine',
|
|
406
406
|
precondition: EditorContextKeys.hasCodeLensProvider,
|
|
407
|
-
label: localize2(
|
|
407
|
+
label: localize2(895, "Show CodeLens Commands for Current Line"),
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
async run(accessor, editor) {
|
|
@@ -439,7 +439,7 @@ registerEditorAction(class ShowLensesInCurrentLine extends EditorAction {
|
|
|
439
439
|
}
|
|
440
440
|
const item = await quickInputService.pick(items, {
|
|
441
441
|
canPickMany: false,
|
|
442
|
-
placeHolder: localize(
|
|
442
|
+
placeHolder: localize(894, "Select a command")
|
|
443
443
|
});
|
|
444
444
|
if (!item) {
|
|
445
445
|
// Nothing picked
|
package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js
CHANGED
|
@@ -23,7 +23,7 @@ class CloseButton extends Disposable {
|
|
|
23
23
|
const innerDiv = document.createElement('div');
|
|
24
24
|
innerDiv.classList.add('close-button-inner-div');
|
|
25
25
|
append(this._button, innerDiv);
|
|
26
|
-
const closeButton = append(innerDiv, $('.button' + ThemeIcon.asCSSSelector(registerIcon('color-picker-close', Codicon.close, localize(
|
|
26
|
+
const closeButton = append(innerDiv, $('.button' + ThemeIcon.asCSSSelector(registerIcon('color-picker-close', Codicon.close, localize(896, 'Icon to close the color picker')))));
|
|
27
27
|
closeButton.classList.add('close-icon');
|
|
28
28
|
this._register(addDisposableListener(this._button, EventType.CLICK, () => {
|
|
29
29
|
this._onClicked.fire();
|
|
@@ -33,7 +33,7 @@ class ColorPickerHeader extends Disposable {
|
|
|
33
33
|
append(this._pickedColorNode, $('span.codicon.codicon-color-mode'));
|
|
34
34
|
this._pickedColorPresentation = append(this._pickedColorNode, document.createElement('span'));
|
|
35
35
|
this._pickedColorPresentation.classList.add('picked-color-presentation');
|
|
36
|
-
const tooltip = localize(
|
|
36
|
+
const tooltip = localize(897, "Click to toggle color options (rgb/hsl/hex)");
|
|
37
37
|
this._pickedColorNode.setAttribute('title', tooltip);
|
|
38
38
|
this._originalColorNode = append(this._domNode, $('.original-color'));
|
|
39
39
|
this._originalColorNode.style.backgroundColor = Color.Format.CSS.format(this.model.originalColor) || '';
|
package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js
CHANGED
|
@@ -128,7 +128,7 @@ let HoverColorPickerParticipant = class HoverColorPickerParticipant {
|
|
|
128
128
|
return new RenderedHoverParts([renderedHoverPart]);
|
|
129
129
|
}
|
|
130
130
|
getAccessibleContent(hoverPart) {
|
|
131
|
-
return localize(
|
|
131
|
+
return localize(898, 'There is a color picker here.');
|
|
132
132
|
}
|
|
133
133
|
handleResize() {
|
|
134
134
|
this._colorPicker?.layout();
|