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
|
@@ -57,7 +57,7 @@ class ToggleCommentLineAction extends CommentLineAction {
|
|
|
57
57
|
constructor() {
|
|
58
58
|
super(0 /* Type.Toggle */, {
|
|
59
59
|
id: 'editor.action.commentLine',
|
|
60
|
-
label: localize2(
|
|
60
|
+
label: localize2(898, "Toggle Line Comment"),
|
|
61
61
|
precondition: EditorContextKeys.writable,
|
|
62
62
|
kbOpts: {
|
|
63
63
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -67,7 +67,7 @@ class ToggleCommentLineAction extends CommentLineAction {
|
|
|
67
67
|
menuOpts: {
|
|
68
68
|
menuId: MenuId.MenubarEditMenu,
|
|
69
69
|
group: '5_insert',
|
|
70
|
-
title: localize(
|
|
70
|
+
title: localize(896, "&&Toggle Line Comment"),
|
|
71
71
|
order: 1
|
|
72
72
|
}
|
|
73
73
|
});
|
|
@@ -77,7 +77,7 @@ class AddLineCommentAction extends CommentLineAction {
|
|
|
77
77
|
constructor() {
|
|
78
78
|
super(1 /* Type.ForceAdd */, {
|
|
79
79
|
id: 'editor.action.addCommentLine',
|
|
80
|
-
label: localize2(
|
|
80
|
+
label: localize2(899, "Add Line Comment"),
|
|
81
81
|
precondition: EditorContextKeys.writable,
|
|
82
82
|
kbOpts: {
|
|
83
83
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -91,7 +91,7 @@ class RemoveLineCommentAction extends CommentLineAction {
|
|
|
91
91
|
constructor() {
|
|
92
92
|
super(2 /* Type.ForceRemove */, {
|
|
93
93
|
id: 'editor.action.removeCommentLine',
|
|
94
|
-
label: localize2(
|
|
94
|
+
label: localize2(900, "Remove Line Comment"),
|
|
95
95
|
precondition: EditorContextKeys.writable,
|
|
96
96
|
kbOpts: {
|
|
97
97
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -105,7 +105,7 @@ class BlockCommentAction extends EditorAction {
|
|
|
105
105
|
constructor() {
|
|
106
106
|
super({
|
|
107
107
|
id: 'editor.action.blockComment',
|
|
108
|
-
label: localize2(
|
|
108
|
+
label: localize2(901, "Toggle Block Comment"),
|
|
109
109
|
precondition: EditorContextKeys.writable,
|
|
110
110
|
kbOpts: {
|
|
111
111
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -116,7 +116,7 @@ class BlockCommentAction extends EditorAction {
|
|
|
116
116
|
menuOpts: {
|
|
117
117
|
menuId: MenuId.MenubarEditMenu,
|
|
118
118
|
group: '5_insert',
|
|
119
|
-
title: localize(
|
|
119
|
+
title: localize(897, "Toggle &&Block Comment"),
|
|
120
120
|
order: 2
|
|
121
121
|
}
|
|
122
122
|
});
|
|
@@ -248,7 +248,7 @@ let ContextMenuController = class ContextMenuController {
|
|
|
248
248
|
};
|
|
249
249
|
const actions = [];
|
|
250
250
|
actions.push(createAction({
|
|
251
|
-
label: localize(
|
|
251
|
+
label: localize(902, "Minimap"),
|
|
252
252
|
checked: minimapOptions.enabled,
|
|
253
253
|
run: () => {
|
|
254
254
|
this._configurationService.updateValue(`editor.minimap.enabled`, !minimapOptions.enabled);
|
|
@@ -256,28 +256,28 @@ let ContextMenuController = class ContextMenuController {
|
|
|
256
256
|
}));
|
|
257
257
|
actions.push(new Separator());
|
|
258
258
|
actions.push(createAction({
|
|
259
|
-
label: localize(
|
|
259
|
+
label: localize(903, "Render Characters"),
|
|
260
260
|
enabled: minimapOptions.enabled,
|
|
261
261
|
checked: minimapOptions.renderCharacters,
|
|
262
262
|
run: () => {
|
|
263
263
|
this._configurationService.updateValue(`editor.minimap.renderCharacters`, !minimapOptions.renderCharacters);
|
|
264
264
|
}
|
|
265
265
|
}));
|
|
266
|
-
actions.push(createEnumAction(localize(
|
|
267
|
-
label: localize(
|
|
266
|
+
actions.push(createEnumAction(localize(904, "Vertical size"), minimapOptions.enabled, 'editor.minimap.size', minimapOptions.size, [{
|
|
267
|
+
label: localize(905, "Proportional"),
|
|
268
268
|
value: 'proportional'
|
|
269
269
|
}, {
|
|
270
|
-
label: localize(
|
|
270
|
+
label: localize(906, "Fill"),
|
|
271
271
|
value: 'fill'
|
|
272
272
|
}, {
|
|
273
|
-
label: localize(
|
|
273
|
+
label: localize(907, "Fit"),
|
|
274
274
|
value: 'fit'
|
|
275
275
|
}]));
|
|
276
|
-
actions.push(createEnumAction(localize(
|
|
277
|
-
label: localize(
|
|
276
|
+
actions.push(createEnumAction(localize(908, "Slider"), minimapOptions.enabled, 'editor.minimap.showSlider', minimapOptions.showSlider, [{
|
|
277
|
+
label: localize(909, "Mouse Over"),
|
|
278
278
|
value: 'mouseover'
|
|
279
279
|
}, {
|
|
280
|
-
label: localize(
|
|
280
|
+
label: localize(910, "Always"),
|
|
281
281
|
value: 'always'
|
|
282
282
|
}]));
|
|
283
283
|
const useShadowDOM = this._editor.getOption(144 /* EditorOption.useShadowDOM */) && !isIOS; // Do not use shadow dom on IOS #122035
|
|
@@ -315,7 +315,7 @@ class ShowContextMenu extends EditorAction {
|
|
|
315
315
|
constructor() {
|
|
316
316
|
super({
|
|
317
317
|
id: 'editor.action.showContextMenu',
|
|
318
|
-
label: localize2(
|
|
318
|
+
label: localize2(911, "Show Editor Context Menu"),
|
|
319
319
|
precondition: undefined,
|
|
320
320
|
kbOpts: {
|
|
321
321
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -101,7 +101,7 @@ class CursorUndo extends EditorAction {
|
|
|
101
101
|
constructor() {
|
|
102
102
|
super({
|
|
103
103
|
id: 'cursorUndo',
|
|
104
|
-
label: localize2(
|
|
104
|
+
label: localize2(912, "Cursor Undo"),
|
|
105
105
|
precondition: undefined,
|
|
106
106
|
kbOpts: {
|
|
107
107
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -118,7 +118,7 @@ class CursorRedo extends EditorAction {
|
|
|
118
118
|
constructor() {
|
|
119
119
|
super({
|
|
120
120
|
id: 'cursorRedo',
|
|
121
|
-
label: localize2(
|
|
121
|
+
label: localize2(913, "Cursor Redo"),
|
|
122
122
|
precondition: undefined
|
|
123
123
|
});
|
|
124
124
|
}
|
|
@@ -52,7 +52,7 @@ registerEditorAction(class PasteAsAction extends EditorAction {
|
|
|
52
52
|
properties: {
|
|
53
53
|
kind: {
|
|
54
54
|
type: 'string',
|
|
55
|
-
description: localize(
|
|
55
|
+
description: localize(914, "The kind of the paste edit to try pasting with.\nIf there are multiple edits for this kind, the editor will show a picker. If there are no edits of this kind, the editor will show an error message."),
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
},
|
|
@@ -62,7 +62,7 @@ registerEditorAction(class PasteAsAction extends EditorAction {
|
|
|
62
62
|
properties: {
|
|
63
63
|
preferences: {
|
|
64
64
|
type: 'array',
|
|
65
|
-
description: localize(
|
|
65
|
+
description: localize(915, "List of preferred paste edit kind to try applying.\nThe first edit matching the preferences will be applied."),
|
|
66
66
|
items: { type: 'string' }
|
|
67
67
|
}
|
|
68
68
|
},
|
|
@@ -72,7 +72,7 @@ registerEditorAction(class PasteAsAction extends EditorAction {
|
|
|
72
72
|
constructor() {
|
|
73
73
|
super({
|
|
74
74
|
id: pasteAsCommandId,
|
|
75
|
-
label: localize2(
|
|
75
|
+
label: localize2(916, "Paste As..."),
|
|
76
76
|
precondition: EditorContextKeys.writable,
|
|
77
77
|
metadata: {
|
|
78
78
|
description: 'Paste as',
|
|
@@ -100,7 +100,7 @@ registerEditorAction(class extends EditorAction {
|
|
|
100
100
|
constructor() {
|
|
101
101
|
super({
|
|
102
102
|
id: 'editor.action.pasteAsText',
|
|
103
|
-
label: localize2(
|
|
103
|
+
label: localize2(917, "Paste as Text"),
|
|
104
104
|
precondition: EditorContextKeys.writable,
|
|
105
105
|
});
|
|
106
106
|
}
|
|
@@ -48,7 +48,7 @@ var __param = (undefined && undefined.__param) || function (paramIndex, decorato
|
|
|
48
48
|
var CopyPasteController_1;
|
|
49
49
|
const changePasteTypeCommandId = 'editor.changePasteType';
|
|
50
50
|
const pasteAsPreferenceConfig = 'editor.pasteAs.preferences';
|
|
51
|
-
const pasteWidgetVisibleCtx = new RawContextKey('pasteWidgetVisible', false, localize(
|
|
51
|
+
const pasteWidgetVisibleCtx = new RawContextKey('pasteWidgetVisible', false, localize(918, "Whether the paste widget is showing"));
|
|
52
52
|
const vscodeClipboardMime = 'application/vnd.code.copymetadata';
|
|
53
53
|
let CopyPasteController = class CopyPasteController extends Disposable {
|
|
54
54
|
static { CopyPasteController_1 = this; }
|
|
@@ -72,7 +72,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
72
72
|
this._register(addDisposableListener(container, 'cut', e => this.handleCopy(e)));
|
|
73
73
|
this._register(addDisposableListener(container, 'paste', e => this.handlePaste(e), true));
|
|
74
74
|
this._pasteProgressManager = this._register(new InlineProgressManager('pasteIntoEditor', editor, instantiationService));
|
|
75
|
-
this._postPasteWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'pasteIntoEditor', editor, pasteWidgetVisibleCtx, { id: changePasteTypeCommandId, label: localize(
|
|
75
|
+
this._postPasteWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'pasteIntoEditor', editor, pasteWidgetVisibleCtx, { id: changePasteTypeCommandId, label: localize(919, "Show paste options...") }, () => CopyPasteController_1._configureDefaultAction ? [CopyPasteController_1._configureDefaultAction] : []));
|
|
76
76
|
}
|
|
77
77
|
changePasteType() {
|
|
78
78
|
this._postPasteWidgetManager.tryShowSelector();
|
|
@@ -246,9 +246,9 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
246
246
|
const kindLabel = 'only' in preference
|
|
247
247
|
? preference.only.value
|
|
248
248
|
: 'preferences' in preference
|
|
249
|
-
? (preference.preferences.length ? preference.preferences.map(preference => preference.value).join(', ') : localize(
|
|
249
|
+
? (preference.preferences.length ? preference.preferences.map(preference => preference.value).join(', ') : localize(920, "empty"))
|
|
250
250
|
: preference.providerId;
|
|
251
|
-
MessageController.get(this._editor)?.showMessage(localize(
|
|
251
|
+
MessageController.get(this._editor)?.showMessage(localize(921, "No paste edits for '{0}' found", kindLabel), selections[0].getStartPosition());
|
|
252
252
|
}
|
|
253
253
|
doPasteInline(allProviders, selections, dataTransfer, metadata, clipboardEvent) {
|
|
254
254
|
this._logService.trace('CopyPasteController#doPasteInline');
|
|
@@ -298,7 +298,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
298
298
|
}
|
|
299
299
|
const resolveP = edit.provider.resolveDocumentPasteEdit(edit, resolveToken);
|
|
300
300
|
const showP = new DeferredPromise();
|
|
301
|
-
const resolved = await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(
|
|
301
|
+
const resolved = await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(922, "Resolving paste edit for '{0}'. Click to cancel", edit.title), raceCancellation(Promise.race([showP.p, resolveP]), resolveToken), {
|
|
302
302
|
cancel: () => showP.cancel()
|
|
303
303
|
}, 0);
|
|
304
304
|
if (resolved) {
|
|
@@ -317,7 +317,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
});
|
|
320
|
-
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(
|
|
320
|
+
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(923, "Running paste handlers. Click to cancel and do basic paste"), p, {
|
|
321
321
|
cancel: async () => {
|
|
322
322
|
p.cancel();
|
|
323
323
|
if (editorStateCts.token.isCancellationRequested) {
|
|
@@ -389,7 +389,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
389
389
|
else {
|
|
390
390
|
const configureDefaultItem = {
|
|
391
391
|
id: 'editor.pasteAs.default',
|
|
392
|
-
label: localize(
|
|
392
|
+
label: localize(924, "Configure default paste action"),
|
|
393
393
|
edit: undefined,
|
|
394
394
|
};
|
|
395
395
|
const selected = await this._quickInputService.pick([
|
|
@@ -406,7 +406,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
406
406
|
}
|
|
407
407
|
] : [])
|
|
408
408
|
], {
|
|
409
|
-
placeHolder: localize(
|
|
409
|
+
placeHolder: localize(925, "Select Paste Action"),
|
|
410
410
|
});
|
|
411
411
|
if (selected === configureDefaultItem) {
|
|
412
412
|
CopyPasteController_1._configureDefaultAction?.run();
|
|
@@ -429,7 +429,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
429
429
|
});
|
|
430
430
|
this._progressService.withProgress({
|
|
431
431
|
location: 10 /* ProgressLocation.Window */,
|
|
432
|
-
title: localize(
|
|
432
|
+
title: localize(926, "Running paste handlers"),
|
|
433
433
|
}, () => p);
|
|
434
434
|
}
|
|
435
435
|
setCopyMetadata(dataTransfer, metadata) {
|
|
@@ -73,7 +73,7 @@ class DefaultTextPasteOrDropEditProvider extends SimplePasteAndDropProvider {
|
|
|
73
73
|
const insertText = await textEntry.asString();
|
|
74
74
|
return {
|
|
75
75
|
handledMimeType: Mimes.text,
|
|
76
|
-
title: localize(
|
|
76
|
+
title: localize(927, "Insert Plain Text"),
|
|
77
77
|
insertText,
|
|
78
78
|
kind: this.kind,
|
|
79
79
|
};
|
|
@@ -106,14 +106,14 @@ class PathProvider extends SimplePasteAndDropProvider {
|
|
|
106
106
|
if (uriCount > 0) {
|
|
107
107
|
// Dropping at least one generic uri (such as https) so use most generic label
|
|
108
108
|
label = entries.length > 1
|
|
109
|
-
? localize(
|
|
110
|
-
: localize(
|
|
109
|
+
? localize(928, "Insert Uris")
|
|
110
|
+
: localize(929, "Insert Uri");
|
|
111
111
|
}
|
|
112
112
|
else {
|
|
113
113
|
// All the paths are file paths
|
|
114
114
|
label = entries.length > 1
|
|
115
|
-
? localize(
|
|
116
|
-
: localize(
|
|
115
|
+
? localize(930, "Insert Paths")
|
|
116
|
+
: localize(931, "Insert Path");
|
|
117
117
|
}
|
|
118
118
|
return {
|
|
119
119
|
handledMimeType: Mimes.uriList,
|
|
@@ -146,8 +146,8 @@ let RelativePathProvider = class RelativePathProvider extends SimplePasteAndDrop
|
|
|
146
146
|
handledMimeType: Mimes.uriList,
|
|
147
147
|
insertText: relativeUris.join(' '),
|
|
148
148
|
title: entries.length > 1
|
|
149
|
-
? localize(
|
|
150
|
-
: localize(
|
|
149
|
+
? localize(932, "Insert Relative Paths")
|
|
150
|
+
: localize(933, "Insert Relative Path"),
|
|
151
151
|
kind: this.kind,
|
|
152
152
|
};
|
|
153
153
|
}
|
|
@@ -177,7 +177,7 @@ class PasteHtmlProvider {
|
|
|
177
177
|
edits: [{
|
|
178
178
|
insertText: htmlText,
|
|
179
179
|
yieldTo: this._yieldTo,
|
|
180
|
-
title: localize(
|
|
180
|
+
title: localize(934, 'Insert HTML'),
|
|
181
181
|
kind: this.kind,
|
|
182
182
|
}],
|
|
183
183
|
};
|
|
@@ -35,7 +35,7 @@ var __param = (undefined && undefined.__param) || function (paramIndex, decorato
|
|
|
35
35
|
var DropIntoEditorController_1;
|
|
36
36
|
const dropAsPreferenceConfig = 'editor.dropIntoEditor.preferences';
|
|
37
37
|
const changeDropTypeCommandId = 'editor.changeDropType';
|
|
38
|
-
const dropWidgetVisibleCtx = new RawContextKey('dropWidgetVisible', false, localize(
|
|
38
|
+
const dropWidgetVisibleCtx = new RawContextKey('dropWidgetVisible', false, localize(935, "Whether the drop widget is showing"));
|
|
39
39
|
let DropIntoEditorController = class DropIntoEditorController extends Disposable {
|
|
40
40
|
static { DropIntoEditorController_1 = this; }
|
|
41
41
|
static { this.ID = 'editor.contrib.dropIntoEditorController'; }
|
|
@@ -49,7 +49,7 @@ let DropIntoEditorController = class DropIntoEditorController extends Disposable
|
|
|
49
49
|
this._treeViewsDragAndDropService = _treeViewsDragAndDropService;
|
|
50
50
|
this.treeItemsTransfer = LocalSelectionTransfer.getInstance();
|
|
51
51
|
this._dropProgressManager = this._register(instantiationService.createInstance(InlineProgressManager, 'dropIntoEditor', editor));
|
|
52
|
-
this._postDropWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'dropIntoEditor', editor, dropWidgetVisibleCtx, { id: changeDropTypeCommandId, label: localize(
|
|
52
|
+
this._postDropWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'dropIntoEditor', editor, dropWidgetVisibleCtx, { id: changeDropTypeCommandId, label: localize(936, "Show drop options...") }, () => DropIntoEditorController_1._configureDefaultAction ? [DropIntoEditorController_1._configureDefaultAction] : []));
|
|
53
53
|
this._register(editor.onDropIntoEditor(e => this.onDropIntoEditor(editor, e.position, e.event)));
|
|
54
54
|
}
|
|
55
55
|
clearWidgets() {
|
|
@@ -104,7 +104,7 @@ let DropIntoEditorController = class DropIntoEditorController extends Disposable
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
|
-
this._dropProgressManager.showWhile(position, localize(
|
|
107
|
+
this._dropProgressManager.showWhile(position, localize(937, "Running drop handlers. Click to cancel"), p, { cancel: () => p.cancel() });
|
|
108
108
|
DropIntoEditorController_1._currentDropOperation = p;
|
|
109
109
|
}
|
|
110
110
|
async getDropEdits(providers, model, position, dataTransfer, token) {
|
|
@@ -163,7 +163,7 @@ let PostEditWidgetManager = class PostEditWidgetManager extends Disposable {
|
|
|
163
163
|
resolvedEdit = await raceCancellationError(resolve(edit, editorStateCts.token), editorStateCts.token);
|
|
164
164
|
}
|
|
165
165
|
catch (e) {
|
|
166
|
-
return handleError(e, localize(
|
|
166
|
+
return handleError(e, localize(938, "Error resolving edit '{0}':\n{1}", edit.title, toErrorMessage(e)));
|
|
167
167
|
}
|
|
168
168
|
finally {
|
|
169
169
|
editorStateCts.dispose();
|
|
@@ -186,7 +186,7 @@ let PostEditWidgetManager = class PostEditWidgetManager extends Disposable {
|
|
|
186
186
|
editRange = model.getDecorationRange(editTrackingDecoration[0]);
|
|
187
187
|
}
|
|
188
188
|
catch (e) {
|
|
189
|
-
return handleError(e, localize(
|
|
189
|
+
return handleError(e, localize(939, "Error applying edit '{0}':\n{1}", edit.title, toErrorMessage(e)));
|
|
190
190
|
}
|
|
191
191
|
finally {
|
|
192
192
|
model.deltaDecorations(editTrackingDecoration, []);
|
|
@@ -11,7 +11,7 @@ import { localize } from '../../../../nls.js';
|
|
|
11
11
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
12
12
|
*--------------------------------------------------------------------------------------------*/
|
|
13
13
|
const IEditorCancellationTokens = createDecorator('IEditorCancelService');
|
|
14
|
-
const ctxCancellableOperation = new RawContextKey('cancellableOperation', false, localize(
|
|
14
|
+
const ctxCancellableOperation = new RawContextKey('cancellableOperation', false, localize(940, 'Whether the editor runs a cancellable operation, e.g. like \'Peek References\''));
|
|
15
15
|
registerSingleton(IEditorCancellationTokens, class {
|
|
16
16
|
constructor() {
|
|
17
17
|
this._tokens = new WeakMap();
|
|
@@ -312,7 +312,7 @@ let CommonFindController = class CommonFindController extends Disposable {
|
|
|
312
312
|
replaceAll() {
|
|
313
313
|
if (this._model) {
|
|
314
314
|
if (this._editor.getModel()?.isTooLargeForHeapOperation()) {
|
|
315
|
-
this._notificationService.warn(localize(
|
|
315
|
+
this._notificationService.warn(localize(941, "The file is too large to perform a replace all operation."));
|
|
316
316
|
return false;
|
|
317
317
|
}
|
|
318
318
|
this._model.replaceAll();
|
|
@@ -425,7 +425,7 @@ FindController = __decorate([
|
|
|
425
425
|
], FindController);
|
|
426
426
|
const StartFindAction = registerMultiEditorAction(new MultiEditorAction({
|
|
427
427
|
id: FIND_IDS.StartFindAction,
|
|
428
|
-
label: localize2(
|
|
428
|
+
label: localize2(948, "Find"),
|
|
429
429
|
precondition: ContextKeyExpr.or(EditorContextKeys.focus, ContextKeyExpr.has('editorIsOpen')),
|
|
430
430
|
kbOpts: {
|
|
431
431
|
kbExpr: null,
|
|
@@ -435,7 +435,7 @@ const StartFindAction = registerMultiEditorAction(new MultiEditorAction({
|
|
|
435
435
|
menuOpts: {
|
|
436
436
|
menuId: MenuId.MenubarEditMenu,
|
|
437
437
|
group: '3_find',
|
|
438
|
-
title: localize(
|
|
438
|
+
title: localize(942, "&&Find"),
|
|
439
439
|
order: 1
|
|
440
440
|
}
|
|
441
441
|
}));
|
|
@@ -476,7 +476,7 @@ class StartFindWithArgsAction extends EditorAction {
|
|
|
476
476
|
constructor() {
|
|
477
477
|
super({
|
|
478
478
|
id: FIND_IDS.StartFindWithArgs,
|
|
479
|
-
label: localize2(
|
|
479
|
+
label: localize2(949, "Find with Arguments"),
|
|
480
480
|
precondition: undefined,
|
|
481
481
|
kbOpts: {
|
|
482
482
|
kbExpr: null,
|
|
@@ -520,7 +520,7 @@ class StartFindWithSelectionAction extends EditorAction {
|
|
|
520
520
|
constructor() {
|
|
521
521
|
super({
|
|
522
522
|
id: FIND_IDS.StartFindWithSelection,
|
|
523
|
-
label: localize2(
|
|
523
|
+
label: localize2(950, "Find with Selection"),
|
|
524
524
|
precondition: undefined,
|
|
525
525
|
kbOpts: {
|
|
526
526
|
kbExpr: null,
|
|
@@ -578,7 +578,7 @@ async function matchFindAction(editor, next) {
|
|
|
578
578
|
}
|
|
579
579
|
const NextMatchFindAction = registerMultiEditorAction(new MultiEditorAction({
|
|
580
580
|
id: FIND_IDS.NextMatchFindAction,
|
|
581
|
-
label: localize2(
|
|
581
|
+
label: localize2(951, "Find Next"),
|
|
582
582
|
precondition: undefined,
|
|
583
583
|
kbOpts: [{
|
|
584
584
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -596,7 +596,7 @@ NextMatchFindAction.addImplementation(0, async (accessor, editor, args) => {
|
|
|
596
596
|
});
|
|
597
597
|
const PreviousMatchFindAction = registerMultiEditorAction(new MultiEditorAction({
|
|
598
598
|
id: FIND_IDS.PreviousMatchFindAction,
|
|
599
|
-
label: localize2(
|
|
599
|
+
label: localize2(952, "Find Previous"),
|
|
600
600
|
precondition: undefined,
|
|
601
601
|
kbOpts: [{
|
|
602
602
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -616,7 +616,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
616
616
|
constructor() {
|
|
617
617
|
super({
|
|
618
618
|
id: FIND_IDS.GoToMatchFindAction,
|
|
619
|
-
label: localize2(
|
|
619
|
+
label: localize2(953, "Go to Match..."),
|
|
620
620
|
precondition: CONTEXT_FIND_WIDGET_VISIBLE
|
|
621
621
|
});
|
|
622
622
|
this._highlightDecorations = [];
|
|
@@ -631,14 +631,14 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
631
631
|
const notificationService = accessor.get(INotificationService);
|
|
632
632
|
notificationService.notify({
|
|
633
633
|
severity: Severity.Warning,
|
|
634
|
-
message: localize(
|
|
634
|
+
message: localize(943, "No matches. Try searching for something else.")
|
|
635
635
|
});
|
|
636
636
|
return;
|
|
637
637
|
}
|
|
638
638
|
const quickInputService = accessor.get(IQuickInputService);
|
|
639
639
|
const disposables = new DisposableStore();
|
|
640
640
|
const inputBox = disposables.add(quickInputService.createInputBox());
|
|
641
|
-
inputBox.placeholder = localize(
|
|
641
|
+
inputBox.placeholder = localize(944, "Type a number to go to a specific match (between 1 and {0})", matchesCount);
|
|
642
642
|
const toFindMatchIndex = (value) => {
|
|
643
643
|
const index = parseInt(value);
|
|
644
644
|
if (isNaN(index)) {
|
|
@@ -665,7 +665,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
667
|
else {
|
|
668
|
-
inputBox.validationMessage = localize(
|
|
668
|
+
inputBox.validationMessage = localize(945, "Please type a number between 1 and {0}", controller.getState().matchesCount);
|
|
669
669
|
this.clearDecorations(editor);
|
|
670
670
|
}
|
|
671
671
|
};
|
|
@@ -679,7 +679,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
679
679
|
inputBox.hide();
|
|
680
680
|
}
|
|
681
681
|
else {
|
|
682
|
-
inputBox.validationMessage = localize(
|
|
682
|
+
inputBox.validationMessage = localize(946, "Please type a number between 1 and {0}", controller.getState().matchesCount);
|
|
683
683
|
}
|
|
684
684
|
}));
|
|
685
685
|
disposables.add(inputBox.onDidHide(() => {
|
|
@@ -747,7 +747,7 @@ class NextSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
747
747
|
constructor() {
|
|
748
748
|
super({
|
|
749
749
|
id: FIND_IDS.NextSelectionMatchFindAction,
|
|
750
|
-
label: localize2(
|
|
750
|
+
label: localize2(954, "Find Next Selection"),
|
|
751
751
|
precondition: undefined,
|
|
752
752
|
kbOpts: {
|
|
753
753
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -764,7 +764,7 @@ class PreviousSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
764
764
|
constructor() {
|
|
765
765
|
super({
|
|
766
766
|
id: FIND_IDS.PreviousSelectionMatchFindAction,
|
|
767
|
-
label: localize2(
|
|
767
|
+
label: localize2(955, "Find Previous Selection"),
|
|
768
768
|
precondition: undefined,
|
|
769
769
|
kbOpts: {
|
|
770
770
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -779,7 +779,7 @@ class PreviousSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
779
779
|
}
|
|
780
780
|
const StartFindReplaceAction = registerMultiEditorAction(new MultiEditorAction({
|
|
781
781
|
id: FIND_IDS.StartFindReplaceAction,
|
|
782
|
-
label: localize2(
|
|
782
|
+
label: localize2(956, "Replace"),
|
|
783
783
|
precondition: ContextKeyExpr.or(EditorContextKeys.focus, ContextKeyExpr.has('editorIsOpen')),
|
|
784
784
|
kbOpts: {
|
|
785
785
|
kbExpr: null,
|
|
@@ -790,7 +790,7 @@ const StartFindReplaceAction = registerMultiEditorAction(new MultiEditorAction({
|
|
|
790
790
|
menuOpts: {
|
|
791
791
|
menuId: MenuId.MenubarEditMenu,
|
|
792
792
|
group: '3_find',
|
|
793
|
-
title: localize(
|
|
793
|
+
title: localize(947, "&&Replace"),
|
|
794
794
|
order: 2
|
|
795
795
|
}
|
|
796
796
|
}));
|
|
@@ -37,28 +37,28 @@ import { defaultToggleStyles, defaultInputBoxStyles } from '../../../../platform
|
|
|
37
37
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
38
38
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
39
39
|
*--------------------------------------------------------------------------------------------*/
|
|
40
|
-
const findCollapsedIcon = registerIcon('find-collapsed', Codicon.chevronRight, localize(
|
|
41
|
-
const findExpandedIcon = registerIcon('find-expanded', Codicon.chevronDown, localize(
|
|
42
|
-
const findSelectionIcon = registerIcon('find-selection', Codicon.selection, localize(
|
|
43
|
-
const findReplaceIcon = registerIcon('find-replace', Codicon.replace, localize(
|
|
44
|
-
const findReplaceAllIcon = registerIcon('find-replace-all', Codicon.replaceAll, localize(
|
|
45
|
-
const findPreviousMatchIcon = registerIcon('find-previous-match', Codicon.arrowUp, localize(
|
|
46
|
-
const findNextMatchIcon = registerIcon('find-next-match', Codicon.arrowDown, localize(
|
|
47
|
-
const NLS_FIND_DIALOG_LABEL = localize(
|
|
48
|
-
const NLS_FIND_INPUT_LABEL = localize(
|
|
49
|
-
const NLS_FIND_INPUT_PLACEHOLDER = localize(
|
|
50
|
-
const NLS_PREVIOUS_MATCH_BTN_LABEL = localize(
|
|
51
|
-
const NLS_NEXT_MATCH_BTN_LABEL = localize(
|
|
52
|
-
const NLS_TOGGLE_SELECTION_FIND_TITLE = localize(
|
|
53
|
-
const NLS_CLOSE_BTN_LABEL = localize(
|
|
54
|
-
const NLS_REPLACE_INPUT_LABEL = localize(
|
|
55
|
-
const NLS_REPLACE_INPUT_PLACEHOLDER = localize(
|
|
56
|
-
const NLS_REPLACE_BTN_LABEL = localize(
|
|
57
|
-
const NLS_REPLACE_ALL_BTN_LABEL = localize(
|
|
58
|
-
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = localize(
|
|
59
|
-
const NLS_MATCHES_COUNT_LIMIT_TITLE = localize(
|
|
60
|
-
const NLS_MATCHES_LOCATION = localize(
|
|
61
|
-
const NLS_NO_RESULTS = localize(
|
|
40
|
+
const findCollapsedIcon = registerIcon('find-collapsed', Codicon.chevronRight, localize(957, 'Icon to indicate that the editor find widget is collapsed.'));
|
|
41
|
+
const findExpandedIcon = registerIcon('find-expanded', Codicon.chevronDown, localize(958, 'Icon to indicate that the editor find widget is expanded.'));
|
|
42
|
+
const findSelectionIcon = registerIcon('find-selection', Codicon.selection, localize(959, 'Icon for \'Find in Selection\' in the editor find widget.'));
|
|
43
|
+
const findReplaceIcon = registerIcon('find-replace', Codicon.replace, localize(960, 'Icon for \'Replace\' in the editor find widget.'));
|
|
44
|
+
const findReplaceAllIcon = registerIcon('find-replace-all', Codicon.replaceAll, localize(961, 'Icon for \'Replace All\' in the editor find widget.'));
|
|
45
|
+
const findPreviousMatchIcon = registerIcon('find-previous-match', Codicon.arrowUp, localize(962, 'Icon for \'Find Previous\' in the editor find widget.'));
|
|
46
|
+
const findNextMatchIcon = registerIcon('find-next-match', Codicon.arrowDown, localize(963, 'Icon for \'Find Next\' in the editor find widget.'));
|
|
47
|
+
const NLS_FIND_DIALOG_LABEL = localize(964, "Find / Replace");
|
|
48
|
+
const NLS_FIND_INPUT_LABEL = localize(965, "Find");
|
|
49
|
+
const NLS_FIND_INPUT_PLACEHOLDER = localize(966, "Find");
|
|
50
|
+
const NLS_PREVIOUS_MATCH_BTN_LABEL = localize(967, "Previous Match");
|
|
51
|
+
const NLS_NEXT_MATCH_BTN_LABEL = localize(968, "Next Match");
|
|
52
|
+
const NLS_TOGGLE_SELECTION_FIND_TITLE = localize(969, "Find in Selection");
|
|
53
|
+
const NLS_CLOSE_BTN_LABEL = localize(970, "Close");
|
|
54
|
+
const NLS_REPLACE_INPUT_LABEL = localize(971, "Replace");
|
|
55
|
+
const NLS_REPLACE_INPUT_PLACEHOLDER = localize(972, "Replace");
|
|
56
|
+
const NLS_REPLACE_BTN_LABEL = localize(973, "Replace");
|
|
57
|
+
const NLS_REPLACE_ALL_BTN_LABEL = localize(974, "Replace All");
|
|
58
|
+
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = localize(975, "Toggle Replace");
|
|
59
|
+
const NLS_MATCHES_COUNT_LIMIT_TITLE = localize(976, "Only the first {0} results are highlighted, but all find operations work on the entire text.", MATCHES_LIMIT);
|
|
60
|
+
const NLS_MATCHES_LOCATION = localize(977, "{0} of {1}");
|
|
61
|
+
const NLS_NO_RESULTS = localize(978, "No results");
|
|
62
62
|
const FIND_WIDGET_INITIAL_WIDTH = 419;
|
|
63
63
|
const PART_WIDTH = 275;
|
|
64
64
|
const FIND_INPUT_AREA_WIDTH = PART_WIDTH - 54;
|
|
@@ -335,11 +335,11 @@ class FindWidget extends Widget {
|
|
|
335
335
|
_getAriaLabel(label, currentMatch, searchString) {
|
|
336
336
|
if (label === NLS_NO_RESULTS) {
|
|
337
337
|
return searchString === ''
|
|
338
|
-
? localize(
|
|
339
|
-
: localize(
|
|
338
|
+
? localize(979, "{0} found", label)
|
|
339
|
+
: localize(980, "{0} found for '{1}'", label, searchString);
|
|
340
340
|
}
|
|
341
341
|
if (currentMatch) {
|
|
342
|
-
const ariaLabel = localize(
|
|
342
|
+
const ariaLabel = localize(981, "{0} found for '{1}', at {2}", label, searchString, currentMatch.startLineNumber + ':' + currentMatch.startColumn);
|
|
343
343
|
const model = this._codeEditor.getModel();
|
|
344
344
|
if (model && (currentMatch.startLineNumber <= model.getLineCount()) && (currentMatch.startLineNumber >= 1)) {
|
|
345
345
|
const lineContent = model.getLineContent(currentMatch.startLineNumber);
|
|
@@ -347,7 +347,7 @@ class FindWidget extends Widget {
|
|
|
347
347
|
}
|
|
348
348
|
return ariaLabel;
|
|
349
349
|
}
|
|
350
|
-
return localize(
|
|
350
|
+
return localize(982, "{0} found for '{1}'", label, searchString);
|
|
351
351
|
}
|
|
352
352
|
/**
|
|
353
353
|
* If 'selection find' is ON we should not disable the button (its function is to cancel 'selection find').
|