monaco-editor 0.55.0-dev-20251021 → 0.55.0-dev-20251022
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-BdF74HVr.js → css.worker-CNVxDEHL.js} +57 -56
- package/dev/vs/assets/{editor.worker-Ci2aWZp5.js → editor.worker-CxT_Qhsk.js} +57 -56
- package/dev/vs/assets/{html.worker-PHv_zBMJ.js → html.worker-BkUmTRjE.js} +57 -56
- package/dev/vs/assets/{json.worker-Bu5ZSywK.js → json.worker-DK-97m-d.js} +57 -56
- package/dev/vs/assets/{ts.worker-DvEf1R_D.js → ts.worker-cHRPyRgi.js} +57 -56
- package/dev/vs/basic-languages/monaco.contribution.js +18 -18
- package/dev/vs/{cssMode-Bwd5iTwO.js → cssMode-D2ACZpcd.js} +2 -2
- package/dev/vs/editor/editor.main.css +3 -4
- package/dev/vs/editor/editor.main.js +6 -6
- package/dev/vs/{editor.api-DtdJriTE.js → editor.api-CMtrd0pO.js} +1917 -1944
- package/dev/vs/{freemarker2-vzq7IT1V.js → freemarker2-CnYj74J4.js} +1 -1
- package/dev/vs/{handlebars-voSBoDYq.js → handlebars-DExk9yf4.js} +1 -1
- package/dev/vs/{html-DgBvMxaw.js → html-Dql17k62.js} +1 -1
- package/dev/vs/{htmlMode-B73e0LQu.js → htmlMode-CCEnhGm2.js} +2 -2
- package/dev/vs/{javascript-B456O1TJ.js → javascript-CqoKoqPi.js} +1 -1
- package/dev/vs/{jsonMode-0j9Sufcy.js → jsonMode-Cz5IbqId.js} +2 -2
- package/dev/vs/language/css/monaco.contribution.js +1 -1
- package/dev/vs/language/html/monaco.contribution.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/{liquid-DtsObjyU.js → liquid-DxCkw3Wy.js} +1 -1
- package/dev/vs/{lspLanguageFeatures-BOGx43ac.js → lspLanguageFeatures-BQO5gQ_I.js} +1 -1
- package/dev/vs/{mdx-CpdAOlbp.js → mdx-DZF1Tct2.js} +1 -1
- package/dev/vs/{monaco.contribution-DgD6w475.js → monaco.contribution-BIhJP-zM.js} +2 -2
- package/dev/vs/{monaco.contribution-96LxvCLa.js → monaco.contribution-BLcNO6tV.js} +2 -2
- package/dev/vs/{monaco.contribution-BNV_Bhhz.js → monaco.contribution-Bpf9llGo.js} +2 -2
- package/dev/vs/{monaco.contribution-CLECD6oi.js → monaco.contribution-D1GYx7Ac.js} +2 -2
- package/dev/vs/nls.messages.cs.js +2 -2
- package/dev/vs/nls.messages.de.js +2 -2
- package/dev/vs/nls.messages.es.js +2 -2
- package/dev/vs/nls.messages.fr.js +2 -2
- package/dev/vs/nls.messages.it.js +2 -2
- package/dev/vs/nls.messages.ja.js +2 -2
- package/dev/vs/nls.messages.ko.js +2 -2
- package/dev/vs/nls.messages.pl.js +2 -2
- package/dev/vs/nls.messages.pt-br.js +2 -2
- package/dev/vs/nls.messages.ru.js +2 -2
- package/dev/vs/nls.messages.tr.js +2 -2
- package/dev/vs/nls.messages.zh-cn.js +2 -2
- package/dev/vs/nls.messages.zh-tw.js +2 -2
- package/dev/vs/{python-Bdcmm8So.js → python-DtVp4js9.js} +1 -1
- package/dev/vs/{razor-C2m7Vs0-.js → razor-C3g5CXT6.js} +1 -1
- package/dev/vs/{tsMode-qQDYDzQT.js → tsMode-B63tFZWa.js} +2 -2
- package/dev/vs/{typescript-BoBnM-0b.js → typescript-YutvBaV7.js} +1 -1
- package/dev/vs/{workers-B1DA8fIt.js → workers-D12Uf0L2.js} +1 -1
- package/dev/vs/{xml-DmpITxBR.js → xml-D1v3XWzg.js} +1 -1
- package/dev/vs/{yaml-Pd4qqIOC.js → yaml-D29Ou18G.js} +1 -1
- package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/esm/vs/base/browser/ui/iconLabel/iconlabel.css +2 -3
- package/esm/vs/base/common/codiconsLibrary.js +1 -0
- 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/services/hoverService/hoverWidget.js +1 -1
- package/esm/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
- package/esm/vs/editor/browser/services/inlineCompletionsService.js +4 -4
- package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -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/copySelection.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/common/config/editorConfigurationSchema.js +54 -54
- package/esm/vs/editor/common/config/editorOptions.js +406 -406
- package/esm/vs/editor/common/core/editorColorRegistry.js +68 -68
- package/esm/vs/editor/common/editorContextKeys.js +46 -46
- 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 +10 -10
- 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 +29 -29
- package/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- 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/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.js +26 -26
- 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 +39 -39
- 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/markdownHoverParticipant.js +9 -9
- 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 +19 -52
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +2 -4
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- 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 +35 -28
- 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 +8 -8
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- 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 +1 -1
- 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 +4 -4
- package/esm/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/esm/vs/platform/actions/browser/toolbar.js +2 -2
- 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/keybinding/common/abstractKeybindingService.js +4 -4
- 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 +7 -7
- 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/theme/common/colorUtils.js +2 -2
- package/esm/vs/platform/theme/common/colors/baseColors.js +17 -17
- 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 +15 -15
- 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-DpW7RrDt.js → css.worker-BHMeXSeR.js} +1 -1
- package/min/vs/assets/{editor.worker-BvjSTWxN.js → editor.worker-DTWRgIAS.js} +1 -1
- package/min/vs/assets/{html.worker-zYFVFHK_.js → html.worker-CXhlyGiJ.js} +1 -1
- package/min/vs/assets/{json.worker-BCgqF_m2.js → json.worker-DzYjDoHF.js} +1 -1
- package/min/vs/assets/{ts.worker-CQxe4KB6.js → ts.worker-CW5rcuCX.js} +1 -1
- package/min/vs/basic-languages/monaco.contribution.js +1 -1
- package/min/vs/{cssMode-CvaUVk1W.js → cssMode-1TDQPhHq.js} +1 -1
- package/min/vs/editor/editor.main.css +1 -1
- package/min/vs/editor/editor.main.js +3 -3
- package/min/vs/{editor.api-DGkWFOQA.js → editor.api-wrjhPWGt.js} +123 -123
- package/min/vs/{freemarker2-B_vQOikd.js → freemarker2-B8YhwE9w.js} +1 -1
- package/min/vs/{handlebars-DqjIuZnJ.js → handlebars-DxIz966T.js} +1 -1
- package/min/vs/{html-DAxAlcjQ.js → html-TUDpfuzj.js} +1 -1
- package/min/vs/{htmlMode-C37mDTXf.js → htmlMode-BTG6W7ly.js} +1 -1
- package/min/vs/{javascript-CmHtjIt-.js → javascript-DjDRFeo7.js} +1 -1
- package/min/vs/{jsonMode-D1uvcOsy.js → jsonMode-cxGzlpDo.js} +4 -4
- package/min/vs/language/css/monaco.contribution.js +1 -1
- package/min/vs/language/html/monaco.contribution.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/{liquid-CQBeFlV7.js → liquid-Bsimqao4.js} +1 -1
- package/min/vs/{lspLanguageFeatures-DTAub2tJ.js → lspLanguageFeatures-B9vCOFZO.js} +1 -1
- package/min/vs/{mdx-BFnE9qyd.js → mdx-DAXjads7.js} +1 -1
- package/min/vs/{monaco.contribution-Ba-90VRW.js → monaco.contribution-B40WJdZo.js} +1 -1
- package/min/vs/{monaco.contribution-bCyc25XC.js → monaco.contribution-Bck58VVU.js} +1 -1
- package/min/vs/{monaco.contribution-D4gtmCUd.js → monaco.contribution-CTUxDbdl.js} +1 -1
- package/min/vs/{monaco.contribution-DBV8hY3j.js → monaco.contribution-Dng4cbIh.js} +1 -1
- package/min/vs/nls.messages.cs.js +3 -3
- package/min/vs/nls.messages.de.js +3 -3
- package/min/vs/nls.messages.es.js +3 -3
- package/min/vs/nls.messages.fr.js +3 -3
- package/min/vs/nls.messages.it.js +3 -3
- package/min/vs/nls.messages.ja.js +3 -3
- package/min/vs/nls.messages.ko.js +3 -3
- package/min/vs/nls.messages.pl.js +3 -3
- package/min/vs/nls.messages.pt-br.js +2 -2
- package/min/vs/nls.messages.ru.js +3 -3
- package/min/vs/nls.messages.tr.js +3 -3
- package/min/vs/nls.messages.zh-cn.js +3 -3
- package/min/vs/nls.messages.zh-tw.js +3 -3
- package/min/vs/{python-BX875IYK.js → python-k7tPtlws.js} +1 -1
- package/min/vs/{razor-BBB6Wn5s.js → razor-9j5Idzae.js} +1 -1
- package/min/vs/{tsMode-DYyNPclY.js → tsMode-BDVJ4HNT.js} +5 -5
- package/min/vs/{typescript-AvfgkAyn.js → typescript-1Ue-gdOx.js} +1 -1
- package/min/vs/{workers-DnTKLxL6.js → workers-jkActJYc.js} +1 -1
- package/min/vs/{xml-BVhc_vbm.js → xml-BsAArBP5.js} +1 -1
- package/min/vs/{yaml-a9dM1cQx.js → yaml-2dSzUkHA.js} +1 -1
- package/package.json +5 -5
|
@@ -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(800, "Selection Anchor")),
|
|
48
48
|
className: 'selection-anchor'
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
51
|
this.selectionAnchorSetContextKey.set(!!this.decorationId);
|
|
52
|
-
alert(localize(
|
|
52
|
+
alert(localize(801, "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(802, "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(803, "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(804, "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(805, "Cancel Selection Anchor"),
|
|
142
142
|
precondition: SelectionAnchorSet,
|
|
143
143
|
kbOpts: {
|
|
144
144
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -27,12 +27,12 @@ import { themeColorFromId } from '../../../../platform/theme/common/themeService
|
|
|
27
27
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
28
28
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
29
29
|
*--------------------------------------------------------------------------------------------*/
|
|
30
|
-
const overviewRulerBracketMatchForeground = registerColor('editorOverviewRuler.bracketMatchForeground', '#A0A0A0', localize(
|
|
30
|
+
const overviewRulerBracketMatchForeground = registerColor('editorOverviewRuler.bracketMatchForeground', '#A0A0A0', localize(806, 'Overview ruler marker color for matching brackets.'));
|
|
31
31
|
class JumpToBracketAction extends EditorAction {
|
|
32
32
|
constructor() {
|
|
33
33
|
super({
|
|
34
34
|
id: 'editor.action.jumpToBracket',
|
|
35
|
-
label: localize2(
|
|
35
|
+
label: localize2(808, "Go to Bracket"),
|
|
36
36
|
precondition: undefined,
|
|
37
37
|
kbOpts: {
|
|
38
38
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -49,10 +49,10 @@ class SelectToBracketAction extends EditorAction {
|
|
|
49
49
|
constructor() {
|
|
50
50
|
super({
|
|
51
51
|
id: 'editor.action.selectToBracket',
|
|
52
|
-
label: localize2(
|
|
52
|
+
label: localize2(809, "Select to Bracket"),
|
|
53
53
|
precondition: undefined,
|
|
54
54
|
metadata: {
|
|
55
|
-
description: localize2(
|
|
55
|
+
description: localize2(810, "Select the text inside and including the brackets or curly braces"),
|
|
56
56
|
args: [{
|
|
57
57
|
name: 'args',
|
|
58
58
|
schema: {
|
|
@@ -80,7 +80,7 @@ class RemoveBracketsAction extends EditorAction {
|
|
|
80
80
|
constructor() {
|
|
81
81
|
super({
|
|
82
82
|
id: 'editor.action.removeBrackets',
|
|
83
|
-
label: localize2(
|
|
83
|
+
label: localize2(811, "Remove Brackets"),
|
|
84
84
|
precondition: undefined,
|
|
85
85
|
kbOpts: {
|
|
86
86
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -350,7 +350,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
350
350
|
group: '5_infile_nav',
|
|
351
351
|
command: {
|
|
352
352
|
id: 'editor.action.jumpToBracket',
|
|
353
|
-
title: localize(
|
|
353
|
+
title: localize(807, "Go to &&Bracket")
|
|
354
354
|
},
|
|
355
355
|
order: 2
|
|
356
356
|
});
|
|
@@ -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(812, "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(813, "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(814, "Transpose Letters"),
|
|
17
17
|
precondition: EditorContextKeys.writable,
|
|
18
18
|
kbOpts: {
|
|
19
19
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -45,23 +45,23 @@ const CutAction = supportsCut ? registerCommand(new MultiCommand({
|
|
|
45
45
|
menuOpts: [{
|
|
46
46
|
menuId: MenuId.MenubarEditMenu,
|
|
47
47
|
group: '2_ccp',
|
|
48
|
-
title: localize(
|
|
48
|
+
title: localize(815, "Cu&&t"),
|
|
49
49
|
order: 1
|
|
50
50
|
}, {
|
|
51
51
|
menuId: MenuId.EditorContext,
|
|
52
52
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
53
|
-
title: localize(
|
|
53
|
+
title: localize(816, "Cut"),
|
|
54
54
|
when: EditorContextKeys.writable,
|
|
55
55
|
order: 1,
|
|
56
56
|
}, {
|
|
57
57
|
menuId: MenuId.CommandPalette,
|
|
58
58
|
group: '',
|
|
59
|
-
title: localize(
|
|
59
|
+
title: localize(817, "Cut"),
|
|
60
60
|
order: 1
|
|
61
61
|
}, {
|
|
62
62
|
menuId: MenuId.SimpleEditorContext,
|
|
63
63
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
64
|
-
title: localize(
|
|
64
|
+
title: localize(818, "Cut"),
|
|
65
65
|
when: EditorContextKeys.writable,
|
|
66
66
|
order: 1,
|
|
67
67
|
}]
|
|
@@ -80,29 +80,29 @@ const CopyAction = supportsCopy ? registerCommand(new MultiCommand({
|
|
|
80
80
|
menuOpts: [{
|
|
81
81
|
menuId: MenuId.MenubarEditMenu,
|
|
82
82
|
group: '2_ccp',
|
|
83
|
-
title: localize(
|
|
83
|
+
title: localize(819, "&&Copy"),
|
|
84
84
|
order: 2
|
|
85
85
|
}, {
|
|
86
86
|
menuId: MenuId.EditorContext,
|
|
87
87
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
88
|
-
title: localize(
|
|
88
|
+
title: localize(820, "Copy"),
|
|
89
89
|
order: 2,
|
|
90
90
|
}, {
|
|
91
91
|
menuId: MenuId.CommandPalette,
|
|
92
92
|
group: '',
|
|
93
|
-
title: localize(
|
|
93
|
+
title: localize(821, "Copy"),
|
|
94
94
|
order: 1
|
|
95
95
|
}, {
|
|
96
96
|
menuId: MenuId.SimpleEditorContext,
|
|
97
97
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
98
|
-
title: localize(
|
|
98
|
+
title: localize(822, "Copy"),
|
|
99
99
|
order: 2,
|
|
100
100
|
}]
|
|
101
101
|
})) : undefined;
|
|
102
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarEditMenu, { submenu: MenuId.MenubarCopy, title: localize2(
|
|
103
|
-
MenuRegistry.appendMenuItem(MenuId.EditorContext, { submenu: MenuId.EditorContextCopy, title: localize2(
|
|
104
|
-
MenuRegistry.appendMenuItem(MenuId.EditorContext, { submenu: MenuId.EditorContextShare, title: localize2(
|
|
105
|
-
MenuRegistry.appendMenuItem(MenuId.ExplorerContext, { submenu: MenuId.ExplorerContextShare, title: localize2(
|
|
102
|
+
MenuRegistry.appendMenuItem(MenuId.MenubarEditMenu, { submenu: MenuId.MenubarCopy, title: localize2(827, "Copy As"), group: '2_ccp', order: 3 });
|
|
103
|
+
MenuRegistry.appendMenuItem(MenuId.EditorContext, { submenu: MenuId.EditorContextCopy, title: localize2(828, "Copy As"), group: CLIPBOARD_CONTEXT_MENU_GROUP, order: 3 });
|
|
104
|
+
MenuRegistry.appendMenuItem(MenuId.EditorContext, { submenu: MenuId.EditorContextShare, title: localize2(829, "Share"), group: '11_share', order: -1, when: ContextKeyExpr.and(ContextKeyExpr.notEquals('resourceScheme', 'output'), EditorContextKeys.editorTextFocus) });
|
|
105
|
+
MenuRegistry.appendMenuItem(MenuId.ExplorerContext, { submenu: MenuId.ExplorerContextShare, title: localize2(830, "Share"), group: '11_share', order: -1 });
|
|
106
106
|
const PasteAction = supportsPaste ? registerCommand(new MultiCommand({
|
|
107
107
|
id: 'editor.action.clipboardPasteAction',
|
|
108
108
|
precondition: undefined,
|
|
@@ -118,23 +118,23 @@ const PasteAction = supportsPaste ? registerCommand(new MultiCommand({
|
|
|
118
118
|
menuOpts: [{
|
|
119
119
|
menuId: MenuId.MenubarEditMenu,
|
|
120
120
|
group: '2_ccp',
|
|
121
|
-
title: localize(
|
|
121
|
+
title: localize(823, "&&Paste"),
|
|
122
122
|
order: 4
|
|
123
123
|
}, {
|
|
124
124
|
menuId: MenuId.EditorContext,
|
|
125
125
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
126
|
-
title: localize(
|
|
126
|
+
title: localize(824, "Paste"),
|
|
127
127
|
when: EditorContextKeys.writable,
|
|
128
128
|
order: 4,
|
|
129
129
|
}, {
|
|
130
130
|
menuId: MenuId.CommandPalette,
|
|
131
131
|
group: '',
|
|
132
|
-
title: localize(
|
|
132
|
+
title: localize(825, "Paste"),
|
|
133
133
|
order: 1
|
|
134
134
|
}, {
|
|
135
135
|
menuId: MenuId.SimpleEditorContext,
|
|
136
136
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
137
|
-
title: localize(
|
|
137
|
+
title: localize(826, "Paste"),
|
|
138
138
|
when: EditorContextKeys.writable,
|
|
139
139
|
order: 4,
|
|
140
140
|
}]
|
|
@@ -143,7 +143,7 @@ class ExecCommandCopyWithSyntaxHighlightingAction extends EditorAction {
|
|
|
143
143
|
constructor() {
|
|
144
144
|
super({
|
|
145
145
|
id: 'editor.action.clipboardCopyWithSyntaxHighlightingAction',
|
|
146
|
-
label: localize2(
|
|
146
|
+
label: localize2(831, "Copy with Syntax Highlighting"),
|
|
147
147
|
precondition: undefined,
|
|
148
148
|
kbOpts: {
|
|
149
149
|
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(832, "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
|
|
@@ -22,23 +22,23 @@ const argsSchema = {
|
|
|
22
22
|
properties: {
|
|
23
23
|
'kind': {
|
|
24
24
|
type: 'string',
|
|
25
|
-
description: localize(
|
|
25
|
+
description: localize(833, "Kind of the code action to run."),
|
|
26
26
|
},
|
|
27
27
|
'apply': {
|
|
28
28
|
type: 'string',
|
|
29
|
-
description: localize(
|
|
29
|
+
description: localize(834, "Controls when the returned actions are applied."),
|
|
30
30
|
default: "ifSingle" /* CodeActionAutoApply.IfSingle */,
|
|
31
31
|
enum: ["first" /* CodeActionAutoApply.First */, "ifSingle" /* CodeActionAutoApply.IfSingle */, "never" /* CodeActionAutoApply.Never */],
|
|
32
32
|
enumDescriptions: [
|
|
33
|
-
localize(
|
|
34
|
-
localize(
|
|
35
|
-
localize(
|
|
33
|
+
localize(835, "Always apply the first returned code action."),
|
|
34
|
+
localize(836, "Apply the first returned code action if it is the only one."),
|
|
35
|
+
localize(837, "Do not apply the returned code actions."),
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
38
|
'preferred': {
|
|
39
39
|
type: 'boolean',
|
|
40
40
|
default: false,
|
|
41
|
-
description: localize(
|
|
41
|
+
description: localize(838, "Controls if only preferred code actions should be returned."),
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
};
|
|
@@ -52,7 +52,7 @@ class QuickFixAction extends EditorAction {
|
|
|
52
52
|
constructor() {
|
|
53
53
|
super({
|
|
54
54
|
id: quickFixCommandId,
|
|
55
|
-
label: localize2(
|
|
55
|
+
label: localize2(855, "Quick Fix..."),
|
|
56
56
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasCodeActionsProvider),
|
|
57
57
|
kbOpts: {
|
|
58
58
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -62,7 +62,7 @@ class QuickFixAction extends EditorAction {
|
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
run(_accessor, editor) {
|
|
65
|
-
return triggerCodeActionsForEditorSelection(editor, localize(
|
|
65
|
+
return triggerCodeActionsForEditorSelection(editor, localize(839, "No code actions available"), undefined, undefined, CodeActionTriggerSource.QuickFix);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
class CodeActionCommand extends EditorCommand {
|
|
@@ -83,11 +83,11 @@ class CodeActionCommand extends EditorCommand {
|
|
|
83
83
|
});
|
|
84
84
|
return triggerCodeActionsForEditorSelection(editor, typeof userArgs?.kind === 'string'
|
|
85
85
|
? args.preferred
|
|
86
|
-
? localize(
|
|
87
|
-
: localize(
|
|
86
|
+
? localize(840, "No preferred code actions for '{0}' available", userArgs.kind)
|
|
87
|
+
: localize(841, "No code actions for '{0}' available", userArgs.kind)
|
|
88
88
|
: args.preferred
|
|
89
|
-
? localize(
|
|
90
|
-
: localize(
|
|
89
|
+
? localize(842, "No preferred code actions available")
|
|
90
|
+
: localize(843, "No code actions available"), {
|
|
91
91
|
include: args.kind,
|
|
92
92
|
includeSourceActions: true,
|
|
93
93
|
onlyIncludePreferredActions: args.preferred,
|
|
@@ -98,7 +98,7 @@ class RefactorAction extends EditorAction {
|
|
|
98
98
|
constructor() {
|
|
99
99
|
super({
|
|
100
100
|
id: refactorCommandId,
|
|
101
|
-
label: localize2(
|
|
101
|
+
label: localize2(856, "Refactor..."),
|
|
102
102
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasCodeActionsProvider),
|
|
103
103
|
kbOpts: {
|
|
104
104
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -126,11 +126,11 @@ class RefactorAction extends EditorAction {
|
|
|
126
126
|
});
|
|
127
127
|
return triggerCodeActionsForEditorSelection(editor, typeof userArgs?.kind === 'string'
|
|
128
128
|
? args.preferred
|
|
129
|
-
? localize(
|
|
130
|
-
: localize(
|
|
129
|
+
? localize(844, "No preferred refactorings for '{0}' available", userArgs.kind)
|
|
130
|
+
: localize(845, "No refactorings for '{0}' available", userArgs.kind)
|
|
131
131
|
: args.preferred
|
|
132
|
-
? localize(
|
|
133
|
-
: localize(
|
|
132
|
+
? localize(846, "No preferred refactorings available")
|
|
133
|
+
: localize(847, "No refactorings available"), {
|
|
134
134
|
include: CodeActionKind.Refactor.contains(args.kind) ? args.kind : HierarchicalKind.None,
|
|
135
135
|
onlyIncludePreferredActions: args.preferred
|
|
136
136
|
}, args.apply, CodeActionTriggerSource.Refactor);
|
|
@@ -140,7 +140,7 @@ class SourceAction extends EditorAction {
|
|
|
140
140
|
constructor() {
|
|
141
141
|
super({
|
|
142
142
|
id: sourceActionCommandId,
|
|
143
|
-
label: localize2(
|
|
143
|
+
label: localize2(857, "Source Action..."),
|
|
144
144
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasCodeActionsProvider),
|
|
145
145
|
contextMenuOpts: {
|
|
146
146
|
group: '1_modification',
|
|
@@ -160,11 +160,11 @@ class SourceAction extends EditorAction {
|
|
|
160
160
|
});
|
|
161
161
|
return triggerCodeActionsForEditorSelection(editor, typeof userArgs?.kind === 'string'
|
|
162
162
|
? args.preferred
|
|
163
|
-
? localize(
|
|
164
|
-
: localize(
|
|
163
|
+
? localize(848, "No preferred source actions for '{0}' available", userArgs.kind)
|
|
164
|
+
: localize(849, "No source actions for '{0}' available", userArgs.kind)
|
|
165
165
|
: args.preferred
|
|
166
|
-
? localize(
|
|
167
|
-
: localize(
|
|
166
|
+
? localize(850, "No preferred source actions available")
|
|
167
|
+
: localize(851, "No source actions available"), {
|
|
168
168
|
include: CodeActionKind.Source.contains(args.kind) ? args.kind : HierarchicalKind.None,
|
|
169
169
|
includeSourceActions: true,
|
|
170
170
|
onlyIncludePreferredActions: args.preferred,
|
|
@@ -175,7 +175,7 @@ class OrganizeImportsAction extends EditorAction {
|
|
|
175
175
|
constructor() {
|
|
176
176
|
super({
|
|
177
177
|
id: organizeImportsCommandId,
|
|
178
|
-
label: localize2(
|
|
178
|
+
label: localize2(858, "Organize Imports"),
|
|
179
179
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, contextKeyForSupportedActions(CodeActionKind.SourceOrganizeImports)),
|
|
180
180
|
kbOpts: {
|
|
181
181
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -183,31 +183,31 @@ class OrganizeImportsAction extends EditorAction {
|
|
|
183
183
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
184
184
|
},
|
|
185
185
|
metadata: {
|
|
186
|
-
description: localize2(
|
|
186
|
+
description: localize2(859, "Organize imports in the current file. Also called 'Optimize Imports' by some tools")
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
run(_accessor, editor) {
|
|
191
|
-
return triggerCodeActionsForEditorSelection(editor, localize(
|
|
191
|
+
return triggerCodeActionsForEditorSelection(editor, localize(852, "No organize imports action available"), { include: CodeActionKind.SourceOrganizeImports, includeSourceActions: true }, "ifSingle" /* CodeActionAutoApply.IfSingle */, CodeActionTriggerSource.OrganizeImports);
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
class FixAllAction extends EditorAction {
|
|
195
195
|
constructor() {
|
|
196
196
|
super({
|
|
197
197
|
id: fixAllCommandId,
|
|
198
|
-
label: localize2(
|
|
198
|
+
label: localize2(860, "Fix All"),
|
|
199
199
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, contextKeyForSupportedActions(CodeActionKind.SourceFixAll))
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
run(_accessor, editor) {
|
|
203
|
-
return triggerCodeActionsForEditorSelection(editor, localize(
|
|
203
|
+
return triggerCodeActionsForEditorSelection(editor, localize(853, "No fix all action available"), { include: CodeActionKind.SourceFixAll, includeSourceActions: true }, "ifSingle" /* CodeActionAutoApply.IfSingle */, CodeActionTriggerSource.FixAll);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
class AutoFixAction extends EditorAction {
|
|
207
207
|
constructor() {
|
|
208
208
|
super({
|
|
209
209
|
id: autoFixCommandId,
|
|
210
|
-
label: localize2(
|
|
210
|
+
label: localize2(861, "Auto Fix..."),
|
|
211
211
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, contextKeyForSupportedActions(CodeActionKind.QuickFix)),
|
|
212
212
|
kbOpts: {
|
|
213
213
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -220,7 +220,7 @@ class AutoFixAction extends EditorAction {
|
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
run(_accessor, editor) {
|
|
223
|
-
return triggerCodeActionsForEditorSelection(editor, localize(
|
|
223
|
+
return triggerCodeActionsForEditorSelection(editor, localize(854, "No auto fixes available"), {
|
|
224
224
|
include: CodeActionKind.QuickFix,
|
|
225
225
|
onlyIncludePreferredActions: true
|
|
226
226
|
}, "ifSingle" /* CodeActionAutoApply.IfSingle */, CodeActionTriggerSource.AutoFix);
|
|
@@ -26,7 +26,7 @@ Registry.as(Extensions.Configuration).registerConfiguration({
|
|
|
26
26
|
'editor.codeActionWidget.showHeaders': {
|
|
27
27
|
type: 'boolean',
|
|
28
28
|
scope: 6 /* ConfigurationScope.LANGUAGE_OVERRIDABLE */,
|
|
29
|
-
description: localize(
|
|
29
|
+
description: localize(862, "Enable/disable showing group headers in the Code Action menu."),
|
|
30
30
|
default: true,
|
|
31
31
|
},
|
|
32
32
|
}
|
|
@@ -37,7 +37,7 @@ Registry.as(Extensions.Configuration).registerConfiguration({
|
|
|
37
37
|
'editor.codeActionWidget.includeNearbyQuickFixes': {
|
|
38
38
|
type: 'boolean',
|
|
39
39
|
scope: 6 /* ConfigurationScope.LANGUAGE_OVERRIDABLE */,
|
|
40
|
-
description: localize(
|
|
40
|
+
description: localize(863, "Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),
|
|
41
41
|
default: true,
|
|
42
42
|
},
|
|
43
43
|
}
|
|
@@ -48,7 +48,7 @@ Registry.as(Extensions.Configuration).registerConfiguration({
|
|
|
48
48
|
'editor.codeActions.triggerOnFocusChange': {
|
|
49
49
|
type: 'boolean',
|
|
50
50
|
scope: 6 /* ConfigurationScope.LANGUAGE_OVERRIDABLE */,
|
|
51
|
-
markdownDescription: localize(
|
|
51
|
+
markdownDescription: localize(864, '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
52
|
default: false,
|
|
53
53
|
},
|
|
54
54
|
}
|
|
@@ -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(865, "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(866, '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(867, '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(868, '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(869, 'Quick Fix') },
|
|
16
|
+
{ kind: CodeActionKind.RefactorExtract, title: localize(870, 'Extract'), icon: Codicon.wrench },
|
|
17
|
+
{ kind: CodeActionKind.RefactorInline, title: localize(871, 'Inline'), icon: Codicon.wrench },
|
|
18
|
+
{ kind: CodeActionKind.RefactorRewrite, title: localize(872, 'Rewrite'), icon: Codicon.wrench },
|
|
19
|
+
{ kind: CodeActionKind.RefactorMove, title: localize(873, 'Move'), icon: Codicon.wrench },
|
|
20
|
+
{ kind: CodeActionKind.SurroundWith, title: localize(874, 'Surround With'), icon: Codicon.surroundWith },
|
|
21
|
+
{ kind: CodeActionKind.Source, title: localize(875, '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(876, '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(877, '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(878, '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(879, '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(880, '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(881, "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(882, "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(883, "Show Code Actions ({0})", this._quickFixKbLabel);
|
|
414
414
|
}
|
|
415
415
|
else if (!autoFix) {
|
|
416
|
-
this.title = localize(
|
|
416
|
+
this.title = localize(884, "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(886, "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(885, "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(887, '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(888, "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) || '';
|
|
@@ -13,15 +13,15 @@ class ShowOrFocusStandaloneColorPicker extends EditorAction2 {
|
|
|
13
13
|
super({
|
|
14
14
|
id: 'editor.action.showOrFocusStandaloneColorPicker',
|
|
15
15
|
title: {
|
|
16
|
-
...localize2(
|
|
17
|
-
mnemonicTitle: localize(
|
|
16
|
+
...localize2(890, "Show or Focus Standalone Color Picker"),
|
|
17
|
+
mnemonicTitle: localize(889, "&&Show or Focus Standalone Color Picker"),
|
|
18
18
|
},
|
|
19
19
|
precondition: undefined,
|
|
20
20
|
menu: [
|
|
21
21
|
{ id: MenuId.CommandPalette },
|
|
22
22
|
],
|
|
23
23
|
metadata: {
|
|
24
|
-
description: localize2(
|
|
24
|
+
description: localize2(891, "Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors."),
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
}
|
|
@@ -33,7 +33,7 @@ class HideStandaloneColorPicker extends EditorAction {
|
|
|
33
33
|
constructor() {
|
|
34
34
|
super({
|
|
35
35
|
id: 'editor.action.hideColorPicker',
|
|
36
|
-
label: localize2(
|
|
36
|
+
label: localize2(892, "Hide the Color Picker"),
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
@@ -45,7 +45,7 @@ class HideStandaloneColorPicker extends EditorAction {
|
|
|
45
45
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
46
46
|
},
|
|
47
47
|
metadata: {
|
|
48
|
-
description: localize2(
|
|
48
|
+
description: localize2(893, "Hide the standalone color picker."),
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
}
|
|
@@ -57,7 +57,7 @@ class InsertColorWithStandaloneColorPicker extends EditorAction {
|
|
|
57
57
|
constructor() {
|
|
58
58
|
super({
|
|
59
59
|
id: 'editor.action.insertColorWithStandaloneColorPicker',
|
|
60
|
-
label: localize2(
|
|
60
|
+
label: localize2(894, "Insert Color with Standalone Color Picker"),
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
|
|
@@ -69,7 +69,7 @@ class InsertColorWithStandaloneColorPicker extends EditorAction {
|
|
|
69
69
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
70
70
|
},
|
|
71
71
|
metadata: {
|
|
72
|
-
description: localize2(
|
|
72
|
+
description: localize2(895, "Insert hex/rgb/hsl colors with the focused standalone color picker."),
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
75
|
}
|