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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define("vs/typescript-
|
|
1
|
+
define("vs/typescript-YutvBaV7", ["exports", "./editor.api-CMtrd0pO"], (function(exports, editor_api) {
|
|
2
2
|
"use strict";
|
|
3
3
|
const conf = {
|
|
4
4
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define("vs/workers-
|
|
1
|
+
define("vs/workers-D12Uf0L2", ["exports", "./editor.api-CMtrd0pO"], (function(exports, editor_api) {
|
|
2
2
|
"use strict";
|
|
3
3
|
function createTrustedTypesPolicy(policyName, policyOptions) {
|
|
4
4
|
const monacoEnvironment = globalThis.MonacoEnvironment;
|
|
Binary file
|
|
@@ -626,6 +626,7 @@ const codiconsLibrary = {
|
|
|
626
626
|
debugConnected: register('debug-connected', 0xec63),
|
|
627
627
|
strikethrough: register('strikethrough', 0xec64),
|
|
628
628
|
openInProduct: register('open-in-product', 0xec65),
|
|
629
|
+
indexZero: register('index-zero', 0xec66),
|
|
629
630
|
};
|
|
630
631
|
|
|
631
632
|
export { codiconsLibrary };
|
|
@@ -91,7 +91,7 @@ let ScreenReaderSupport = class ScreenReaderSupport extends Disposable {
|
|
|
91
91
|
this._domNode.domNode.setAttribute('aria-required', options.get(9 /* EditorOption.ariaRequired */) ? 'true' : 'false');
|
|
92
92
|
this._domNode.domNode.setAttribute('aria-multiline', 'true');
|
|
93
93
|
this._domNode.domNode.setAttribute('aria-autocomplete', options.get(104 /* EditorOption.readOnly */) ? 'none' : 'both');
|
|
94
|
-
this._domNode.domNode.setAttribute('aria-roledescription', localize(
|
|
94
|
+
this._domNode.domNode.setAttribute('aria-roledescription', localize(60, "editor"));
|
|
95
95
|
this._domNode.domNode.setAttribute('aria-label', ariaLabelForScreenReaderContent(options, this._keybindingService));
|
|
96
96
|
const tabSize = this._context.viewModel.model.getOptions().tabSize;
|
|
97
97
|
const spaceWidth = options.get(59 /* EditorOption.fontInfo */).spaceWidth;
|
|
@@ -78,15 +78,15 @@ function ariaLabelForScreenReaderContent(options, keybindingService) {
|
|
|
78
78
|
const toggleKeybindingLabel = keybindingService.lookupKeybinding('editor.action.toggleScreenReaderAccessibilityMode')?.getAriaLabel();
|
|
79
79
|
const runCommandKeybindingLabel = keybindingService.lookupKeybinding('workbench.action.showCommands')?.getAriaLabel();
|
|
80
80
|
const keybindingEditorKeybindingLabel = keybindingService.lookupKeybinding('workbench.action.openGlobalKeybindings')?.getAriaLabel();
|
|
81
|
-
const editorNotAccessibleMessage = localize(
|
|
81
|
+
const editorNotAccessibleMessage = localize(61, "The editor is not accessible at this time.");
|
|
82
82
|
if (toggleKeybindingLabel) {
|
|
83
|
-
return localize(
|
|
83
|
+
return localize(62, "{0} To enable screen reader optimized mode, use {1}", editorNotAccessibleMessage, toggleKeybindingLabel);
|
|
84
84
|
}
|
|
85
85
|
else if (runCommandKeybindingLabel) {
|
|
86
|
-
return localize(
|
|
86
|
+
return localize(63, "{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.", editorNotAccessibleMessage, runCommandKeybindingLabel);
|
|
87
87
|
}
|
|
88
88
|
else if (keybindingEditorKeybindingLabel) {
|
|
89
|
-
return localize(
|
|
89
|
+
return localize(64, "{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.", editorNotAccessibleMessage, keybindingEditorKeybindingLabel);
|
|
90
90
|
}
|
|
91
91
|
else {
|
|
92
92
|
// SOS
|
|
@@ -132,7 +132,7 @@ let TextAreaEditContext = class TextAreaEditContext extends AbstractEditContext
|
|
|
132
132
|
this.textArea.setAttribute('aria-required', options.get(9 /* EditorOption.ariaRequired */) ? 'true' : 'false');
|
|
133
133
|
this.textArea.setAttribute('tabindex', String(options.get(140 /* EditorOption.tabIndex */)));
|
|
134
134
|
this.textArea.setAttribute('role', 'textbox');
|
|
135
|
-
this.textArea.setAttribute('aria-roledescription', localize(
|
|
135
|
+
this.textArea.setAttribute('aria-roledescription', localize(65, "editor"));
|
|
136
136
|
this.textArea.setAttribute('aria-multiline', 'true');
|
|
137
137
|
this.textArea.setAttribute('aria-autocomplete', options.get(104 /* EditorOption.readOnly */) ? 'none' : 'both');
|
|
138
138
|
this._ensureReadOnlyAttribute();
|
|
@@ -861,7 +861,7 @@ var CoreNavigationCommands;
|
|
|
861
861
|
type: 'object',
|
|
862
862
|
properties: {
|
|
863
863
|
'sticky': {
|
|
864
|
-
description: localize(
|
|
864
|
+
description: localize(66, "Stick to the end even when going to longer lines"),
|
|
865
865
|
type: 'boolean',
|
|
866
866
|
default: false
|
|
867
867
|
}
|
|
@@ -889,7 +889,7 @@ var CoreNavigationCommands;
|
|
|
889
889
|
type: 'object',
|
|
890
890
|
properties: {
|
|
891
891
|
'sticky': {
|
|
892
|
-
description: localize(
|
|
892
|
+
description: localize(67, "Stick to the end even when going to longer lines"),
|
|
893
893
|
type: 'boolean',
|
|
894
894
|
default: false
|
|
895
895
|
}
|
|
@@ -1437,7 +1437,7 @@ var CoreNavigationCommands;
|
|
|
1437
1437
|
viewModel.getPrimaryCursorState()
|
|
1438
1438
|
]);
|
|
1439
1439
|
viewModel.revealAllCursors(args.source, true);
|
|
1440
|
-
status(localize(
|
|
1440
|
+
status(localize(68, "Removed secondary cursors"));
|
|
1441
1441
|
}
|
|
1442
1442
|
});
|
|
1443
1443
|
CoreNavigationCommands.RevealLine = registerEditorCommand(new class extends CoreEditorCommand {
|
|
@@ -413,17 +413,17 @@ const UndoCommand = registerCommand(new MultiCommand({
|
|
|
413
413
|
menuOpts: [{
|
|
414
414
|
menuId: MenuId.MenubarEditMenu,
|
|
415
415
|
group: '1_do',
|
|
416
|
-
title: localize(
|
|
416
|
+
title: localize(69, "&&Undo"),
|
|
417
417
|
order: 1
|
|
418
418
|
}, {
|
|
419
419
|
menuId: MenuId.CommandPalette,
|
|
420
420
|
group: '',
|
|
421
|
-
title: localize(
|
|
421
|
+
title: localize(70, "Undo"),
|
|
422
422
|
order: 1
|
|
423
423
|
}, {
|
|
424
424
|
menuId: MenuId.SimpleEditorContext,
|
|
425
425
|
group: '1_do',
|
|
426
|
-
title: localize(
|
|
426
|
+
title: localize(71, "Undo"),
|
|
427
427
|
order: 1
|
|
428
428
|
}]
|
|
429
429
|
}));
|
|
@@ -440,17 +440,17 @@ const RedoCommand = registerCommand(new MultiCommand({
|
|
|
440
440
|
menuOpts: [{
|
|
441
441
|
menuId: MenuId.MenubarEditMenu,
|
|
442
442
|
group: '1_do',
|
|
443
|
-
title: localize(
|
|
443
|
+
title: localize(72, "&&Redo"),
|
|
444
444
|
order: 2
|
|
445
445
|
}, {
|
|
446
446
|
menuId: MenuId.CommandPalette,
|
|
447
447
|
group: '',
|
|
448
|
-
title: localize(
|
|
448
|
+
title: localize(73, "Redo"),
|
|
449
449
|
order: 1
|
|
450
450
|
}, {
|
|
451
451
|
menuId: MenuId.SimpleEditorContext,
|
|
452
452
|
group: '1_do',
|
|
453
|
-
title: localize(
|
|
453
|
+
title: localize(74, "Redo"),
|
|
454
454
|
order: 2
|
|
455
455
|
}]
|
|
456
456
|
}));
|
|
@@ -466,17 +466,17 @@ const SelectAllCommand = registerCommand(new MultiCommand({
|
|
|
466
466
|
menuOpts: [{
|
|
467
467
|
menuId: MenuId.MenubarSelectionMenu,
|
|
468
468
|
group: '1_basic',
|
|
469
|
-
title: localize(
|
|
469
|
+
title: localize(75, "&&Select All"),
|
|
470
470
|
order: 1
|
|
471
471
|
}, {
|
|
472
472
|
menuId: MenuId.CommandPalette,
|
|
473
473
|
group: '',
|
|
474
|
-
title: localize(
|
|
474
|
+
title: localize(76, "Select All"),
|
|
475
475
|
order: 1
|
|
476
476
|
}, {
|
|
477
477
|
menuId: MenuId.SimpleEditorContext,
|
|
478
478
|
group: '9_select',
|
|
479
|
-
title: localize(
|
|
479
|
+
title: localize(77, "Select All"),
|
|
480
480
|
order: 1
|
|
481
481
|
}]
|
|
482
482
|
}));
|
|
@@ -86,7 +86,7 @@ let ViewGpuContext = class ViewGpuContext extends Disposable {
|
|
|
86
86
|
if (!ViewGpuContext_1.device) {
|
|
87
87
|
ViewGpuContext_1.device = GPULifecycle.requestDevice((message) => {
|
|
88
88
|
const choices = [{
|
|
89
|
-
label: localize(
|
|
89
|
+
label: localize(78, "Use DOM-based rendering"),
|
|
90
90
|
run: () => this.configurationService.updateValue('editor.experimentalGpuAcceleration', 'off'),
|
|
91
91
|
}];
|
|
92
92
|
this._notificationService.prompt(Severity.Warning, message, choices);
|
|
@@ -198,7 +198,7 @@ let HoverWidget = class HoverWidget extends Widget {
|
|
|
198
198
|
if (options.appearance?.showHoverHint) {
|
|
199
199
|
const statusBarElement = $('div.hover-row.status-bar');
|
|
200
200
|
const infoElement = $('div.info');
|
|
201
|
-
infoElement.textContent = localize(
|
|
201
|
+
infoElement.textContent = localize(79, 'Hold {0} key to mouse over', isMacintosh ? 'Option' : 'Alt');
|
|
202
202
|
statusBarElement.appendChild(infoElement);
|
|
203
203
|
this._hover.containerDomNode.appendChild(statusBarElement);
|
|
204
204
|
}
|
|
@@ -48,7 +48,7 @@ class ManagedHoverWidget {
|
|
|
48
48
|
if (managedContent instanceof Promise) {
|
|
49
49
|
// show 'Loading' if no hover is up yet
|
|
50
50
|
if (!this._hoverWidget) {
|
|
51
|
-
this.show(localize(
|
|
51
|
+
this.show(localize(80, "Loading..."), focus, options);
|
|
52
52
|
}
|
|
53
53
|
resolvedContent = await managedContent;
|
|
54
54
|
}
|
|
@@ -25,7 +25,7 @@ var __param = (undefined && undefined.__param) || function (paramIndex, decorato
|
|
|
25
25
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
26
26
|
};
|
|
27
27
|
const IInlineCompletionsService = createDecorator('IInlineCompletionsService');
|
|
28
|
-
const InlineCompletionsSnoozing = new RawContextKey('inlineCompletions.snoozed', false, localize(
|
|
28
|
+
const InlineCompletionsSnoozing = new RawContextKey('inlineCompletions.snoozed', false, localize(81, "Whether inline completions are currently snoozed"));
|
|
29
29
|
let InlineCompletionsService = class InlineCompletionsService extends Disposable {
|
|
30
30
|
get snoozeTimeLeft() {
|
|
31
31
|
if (this._snoozeTimeEnd === undefined) {
|
|
@@ -111,7 +111,7 @@ class SnoozeInlineCompletion extends Action2 {
|
|
|
111
111
|
constructor() {
|
|
112
112
|
super({
|
|
113
113
|
id: SnoozeInlineCompletion.ID,
|
|
114
|
-
title: localize2(
|
|
114
|
+
title: localize2(83, "Snooze Inline Suggestions"),
|
|
115
115
|
precondition: ContextKeyExpr.true(),
|
|
116
116
|
f1: true,
|
|
117
117
|
});
|
|
@@ -142,7 +142,7 @@ class SnoozeInlineCompletion extends Action2 {
|
|
|
142
142
|
{ label: '60 minutes', id: '60', value: 3_600_000 }
|
|
143
143
|
];
|
|
144
144
|
const picked = await quickInputService.pick(items, {
|
|
145
|
-
placeHolder: localize(
|
|
145
|
+
placeHolder: localize(82, "Select snooze duration for Inline Suggestions"),
|
|
146
146
|
activeItem: items.find(item => item.value === lastSelectedDuration),
|
|
147
147
|
});
|
|
148
148
|
if (picked) {
|
|
@@ -157,7 +157,7 @@ class CancelSnoozeInlineCompletion extends Action2 {
|
|
|
157
157
|
constructor() {
|
|
158
158
|
super({
|
|
159
159
|
id: CancelSnoozeInlineCompletion.ID,
|
|
160
|
-
title: localize2(
|
|
160
|
+
title: localize2(84, "Cancel Snooze Inline Suggestions"),
|
|
161
161
|
precondition: InlineCompletionsSnoozing,
|
|
162
162
|
f1: true,
|
|
163
163
|
});
|
|
@@ -1289,7 +1289,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
|
|
|
1289
1289
|
case 7 /* OutgoingViewModelEventKind.CursorStateChanged */: {
|
|
1290
1290
|
if (e.reachedMaxCursorCount) {
|
|
1291
1291
|
const multiCursorLimit = this.getOption(89 /* EditorOption.multiCursorLimit */);
|
|
1292
|
-
const message = localize(
|
|
1292
|
+
const message = localize(85, "The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.", multiCursorLimit);
|
|
1293
1293
|
this._notificationService.prompt(Severity.Warning, message, [
|
|
1294
1294
|
{
|
|
1295
1295
|
label: 'Find and Replace',
|
|
@@ -1298,7 +1298,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
},
|
|
1300
1300
|
{
|
|
1301
|
-
label: localize(
|
|
1301
|
+
label: localize(86, 'Increase Multi Cursor Limit'),
|
|
1302
1302
|
run: () => {
|
|
1303
1303
|
this._commandService.executeCommand('workbench.action.openSettings2', {
|
|
1304
1304
|
query: 'editor.multiCursorLimit'
|
|
@@ -18,7 +18,7 @@ class ToggleCollapseUnchangedRegions extends Action2 {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super({
|
|
20
20
|
id: 'diffEditor.toggleCollapseUnchangedRegions',
|
|
21
|
-
title: localize2(
|
|
21
|
+
title: localize2(87, 'Toggle Collapse Unchanged Regions'),
|
|
22
22
|
icon: Codicon.map,
|
|
23
23
|
toggled: ContextKeyExpr.has('config.diffEditor.hideUnchangedRegions.enabled'),
|
|
24
24
|
precondition: ContextKeyExpr.has('isInDiffEditor'),
|
|
@@ -40,7 +40,7 @@ class ToggleShowMovedCodeBlocks extends Action2 {
|
|
|
40
40
|
constructor() {
|
|
41
41
|
super({
|
|
42
42
|
id: 'diffEditor.toggleShowMovedCodeBlocks',
|
|
43
|
-
title: localize2(
|
|
43
|
+
title: localize2(88, 'Toggle Show Moved Code Blocks'),
|
|
44
44
|
precondition: ContextKeyExpr.has('isInDiffEditor'),
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -54,7 +54,7 @@ class ToggleUseInlineViewWhenSpaceIsLimited extends Action2 {
|
|
|
54
54
|
constructor() {
|
|
55
55
|
super({
|
|
56
56
|
id: 'diffEditor.toggleUseInlineViewWhenSpaceIsLimited',
|
|
57
|
-
title: localize2(
|
|
57
|
+
title: localize2(89, 'Toggle Use Inline View When Space Is Limited'),
|
|
58
58
|
precondition: ContextKeyExpr.has('isInDiffEditor'),
|
|
59
59
|
});
|
|
60
60
|
}
|
|
@@ -64,12 +64,12 @@ class ToggleUseInlineViewWhenSpaceIsLimited extends Action2 {
|
|
|
64
64
|
configurationService.updateValue('diffEditor.useInlineViewWhenSpaceIsLimited', newValue);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
const diffEditorCategory = localize2(
|
|
67
|
+
const diffEditorCategory = localize2(90, "Diff Editor");
|
|
68
68
|
class SwitchSide extends EditorAction2 {
|
|
69
69
|
constructor() {
|
|
70
70
|
super({
|
|
71
71
|
id: 'diffEditor.switchSide',
|
|
72
|
-
title: localize2(
|
|
72
|
+
title: localize2(91, 'Switch Side'),
|
|
73
73
|
icon: Codicon.arrowSwap,
|
|
74
74
|
precondition: ContextKeyExpr.has('isInDiffEditor'),
|
|
75
75
|
f1: true,
|
|
@@ -93,7 +93,7 @@ class ExitCompareMove extends EditorAction2 {
|
|
|
93
93
|
constructor() {
|
|
94
94
|
super({
|
|
95
95
|
id: 'diffEditor.exitCompareMove',
|
|
96
|
-
title: localize2(
|
|
96
|
+
title: localize2(92, 'Exit Compare Move'),
|
|
97
97
|
icon: Codicon.close,
|
|
98
98
|
precondition: EditorContextKeys.comparingMovedCode,
|
|
99
99
|
f1: false,
|
|
@@ -115,7 +115,7 @@ class CollapseAllUnchangedRegions extends EditorAction2 {
|
|
|
115
115
|
constructor() {
|
|
116
116
|
super({
|
|
117
117
|
id: 'diffEditor.collapseAllUnchangedRegions',
|
|
118
|
-
title: localize2(
|
|
118
|
+
title: localize2(93, 'Collapse All Unchanged Regions'),
|
|
119
119
|
icon: Codicon.fold,
|
|
120
120
|
precondition: ContextKeyExpr.has('isInDiffEditor'),
|
|
121
121
|
f1: true,
|
|
@@ -133,7 +133,7 @@ class ShowAllUnchangedRegions extends EditorAction2 {
|
|
|
133
133
|
constructor() {
|
|
134
134
|
super({
|
|
135
135
|
id: 'diffEditor.showAllUnchangedRegions',
|
|
136
|
-
title: localize2(
|
|
136
|
+
title: localize2(94, 'Show All Unchanged Regions'),
|
|
137
137
|
icon: Codicon.unfold,
|
|
138
138
|
precondition: ContextKeyExpr.has('isInDiffEditor'),
|
|
139
139
|
f1: true,
|
|
@@ -151,7 +151,7 @@ class RevertHunkOrSelection extends Action2 {
|
|
|
151
151
|
constructor() {
|
|
152
152
|
super({
|
|
153
153
|
id: 'diffEditor.revert',
|
|
154
|
-
title: localize2(
|
|
154
|
+
title: localize2(95, 'Revert'),
|
|
155
155
|
f1: true,
|
|
156
156
|
category: diffEditorCategory,
|
|
157
157
|
precondition: ContextKeyExpr.has('isInDiffEditor'),
|
|
@@ -175,13 +175,13 @@ class RevertHunkOrSelection extends Action2 {
|
|
|
175
175
|
return undefined;
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
const accessibleDiffViewerCategory = localize2(
|
|
178
|
+
const accessibleDiffViewerCategory = localize2(96, "Accessible Diff Viewer");
|
|
179
179
|
class AccessibleDiffViewerNext extends Action2 {
|
|
180
180
|
static { this.id = 'editor.action.accessibleDiffViewer.next'; }
|
|
181
181
|
constructor() {
|
|
182
182
|
super({
|
|
183
183
|
id: AccessibleDiffViewerNext.id,
|
|
184
|
-
title: localize2(
|
|
184
|
+
title: localize2(97, 'Go to Next Difference'),
|
|
185
185
|
category: accessibleDiffViewerCategory,
|
|
186
186
|
precondition: ContextKeyExpr.has('isInDiffEditor'),
|
|
187
187
|
keybinding: {
|
|
@@ -201,7 +201,7 @@ class AccessibleDiffViewerPrev extends Action2 {
|
|
|
201
201
|
constructor() {
|
|
202
202
|
super({
|
|
203
203
|
id: AccessibleDiffViewerPrev.id,
|
|
204
|
-
title: localize2(
|
|
204
|
+
title: localize2(98, 'Go to Previous Difference'),
|
|
205
205
|
category: accessibleDiffViewerCategory,
|
|
206
206
|
precondition: ContextKeyExpr.has('isInDiffEditor'),
|
|
207
207
|
keybinding: {
|
|
@@ -43,9 +43,9 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
|
43
43
|
var __param = (undefined && undefined.__param) || function (paramIndex, decorator) {
|
|
44
44
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
45
45
|
};
|
|
46
|
-
const accessibleDiffViewerInsertIcon = registerIcon('diff-review-insert', Codicon.add, localize(
|
|
47
|
-
const accessibleDiffViewerRemoveIcon = registerIcon('diff-review-remove', Codicon.remove, localize(
|
|
48
|
-
const accessibleDiffViewerCloseIcon = registerIcon('diff-review-close', Codicon.close, localize(
|
|
46
|
+
const accessibleDiffViewerInsertIcon = registerIcon('diff-review-insert', Codicon.add, localize(99, 'Icon for \'Insert\' in accessible diff viewer.'));
|
|
47
|
+
const accessibleDiffViewerRemoveIcon = registerIcon('diff-review-remove', Codicon.remove, localize(100, 'Icon for \'Remove\' in accessible diff viewer.'));
|
|
48
|
+
const accessibleDiffViewerCloseIcon = registerIcon('diff-review-close', Codicon.close, localize(101, 'Icon for \'Close\' in accessible diff viewer.'));
|
|
49
49
|
let AccessibleDiffViewer = class AccessibleDiffViewer extends Disposable {
|
|
50
50
|
static { this._ttPolicy = createTrustedTypesPolicy('diffReview', { createHTML: value => value }); }
|
|
51
51
|
constructor(_parentNode, _visible, _setVisible, _canClose, _width, _height, _diffs, _models, _instantiationService) {
|
|
@@ -302,7 +302,7 @@ let View = class View extends Disposable {
|
|
|
302
302
|
if (this._model.canClose.read(reader)) {
|
|
303
303
|
this._actionBar.push(toAction({
|
|
304
304
|
id: 'diffreview.close',
|
|
305
|
-
label: localize(
|
|
305
|
+
label: localize(102, "Close"),
|
|
306
306
|
class: 'close-diff-review ' + ThemeIcon.asClassName(accessibleDiffViewerCloseIcon),
|
|
307
307
|
enabled: true,
|
|
308
308
|
run: async () => _model.close()
|
|
@@ -361,7 +361,7 @@ let View = class View extends Disposable {
|
|
|
361
361
|
const container = document.createElement('div');
|
|
362
362
|
container.className = 'diff-review-table';
|
|
363
363
|
container.setAttribute('role', 'list');
|
|
364
|
-
container.setAttribute('aria-label', localize(
|
|
364
|
+
container.setAttribute('aria-label', localize(103, 'Accessible Diff Viewer. Use arrow up and down to navigate.'));
|
|
365
365
|
applyFontInfo(container, modifiedOptions.get(59 /* EditorOption.fontInfo */));
|
|
366
366
|
reset(this._content, container);
|
|
367
367
|
const originalModel = this._models.getOriginalModel();
|
|
@@ -385,12 +385,12 @@ let View = class View extends Disposable {
|
|
|
385
385
|
const r = group.range;
|
|
386
386
|
const diffIndex = this._model.currentGroupIndex.get();
|
|
387
387
|
const diffsLength = this._model.groups.get().length;
|
|
388
|
-
const getAriaLines = (lines) => lines === 0 ? localize(
|
|
389
|
-
: lines === 1 ? localize(
|
|
390
|
-
: localize(
|
|
388
|
+
const getAriaLines = (lines) => lines === 0 ? localize(104, "no lines changed")
|
|
389
|
+
: lines === 1 ? localize(105, "1 line changed")
|
|
390
|
+
: localize(106, "{0} lines changed", lines);
|
|
391
391
|
const originalChangedLinesCntAria = getAriaLines(r.original.length);
|
|
392
392
|
const modifiedChangedLinesCntAria = getAriaLines(r.modified.length);
|
|
393
|
-
header.setAttribute('aria-label', localize(
|
|
393
|
+
header.setAttribute('aria-label', localize(107, "Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}", (diffIndex + 1), diffsLength, r.original.startLineNumber, originalChangedLinesCntAria, r.modified.startLineNumber, modifiedChangedLinesCntAria));
|
|
394
394
|
|
|
395
395
|
|
|
396
396
|
|
|
@@ -510,23 +510,23 @@ let View = class View extends Disposable {
|
|
|
510
510
|
lineContent = originalModel.getLineContent(item.originalLineNumber);
|
|
511
511
|
}
|
|
512
512
|
if (lineContent.length === 0) {
|
|
513
|
-
lineContent = localize(
|
|
513
|
+
lineContent = localize(108, "blank");
|
|
514
514
|
}
|
|
515
515
|
let ariaLabel = '';
|
|
516
516
|
switch (item.type) {
|
|
517
517
|
case LineType.Unchanged:
|
|
518
518
|
if (item.originalLineNumber === item.modifiedLineNumber) {
|
|
519
|
-
ariaLabel = localize(
|
|
519
|
+
ariaLabel = localize(109, "{0} unchanged line {1}", lineContent, item.originalLineNumber);
|
|
520
520
|
}
|
|
521
521
|
else {
|
|
522
|
-
ariaLabel = localize(
|
|
522
|
+
ariaLabel = localize(110, "{0} original line {1} modified line {2}", lineContent, item.originalLineNumber, item.modifiedLineNumber);
|
|
523
523
|
}
|
|
524
524
|
break;
|
|
525
525
|
case LineType.Added:
|
|
526
|
-
ariaLabel = localize(
|
|
526
|
+
ariaLabel = localize(111, "+ {0} modified line {1}", lineContent, item.modifiedLineNumber);
|
|
527
527
|
break;
|
|
528
528
|
case LineType.Deleted:
|
|
529
|
-
ariaLabel = localize(
|
|
529
|
+
ariaLabel = localize(112, "- {0} original line {1}", lineContent, item.originalLineNumber);
|
|
530
530
|
break;
|
|
531
531
|
}
|
|
532
532
|
row.setAttribute('aria-label', ariaLabel);
|
|
@@ -171,7 +171,7 @@ let DiffEditorEditors = class DiffEditorEditors extends Disposable {
|
|
|
171
171
|
if (!ariaLabel) {
|
|
172
172
|
ariaLabel = '';
|
|
173
173
|
}
|
|
174
|
-
const ariaNavigationTip = localize(
|
|
174
|
+
const ariaNavigationTip = localize(113, ' use {0} to open the accessibility help.', this._keybindingService.lookupKeybinding('editor.action.accessibilityHelp')?.getAriaLabel());
|
|
175
175
|
if (this._options.accessibilityVerbose.get()) {
|
|
176
176
|
return ariaLabel + ariaNavigationTip;
|
|
177
177
|
}
|
package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/copySelection.js
CHANGED
|
@@ -54,7 +54,7 @@ function enableCopySelection(options) {
|
|
|
54
54
|
clipboardService.writeText(selectedText);
|
|
55
55
|
}));
|
|
56
56
|
showContextMenu({ x: e.event.posx, y: e.event.posy + editorLineHeight }, selectedText ?
|
|
57
|
-
[new Action('diff.clipboard.copySelectedDeletedContent', localize(
|
|
57
|
+
[new Action('diff.clipboard.copySelectedDeletedContent', localize(114, 'Copy Selection'), undefined, true, async () => clipboardService.writeText(selectedText))] :
|
|
58
58
|
[], () => {
|
|
59
59
|
onCopy.dispose();
|
|
60
60
|
});
|
|
@@ -58,18 +58,18 @@ class InlineDiffDeletedCodeMargin extends Disposable {
|
|
|
58
58
|
// default action
|
|
59
59
|
actions.push(new Action('diff.clipboard.copyDeletedContent', isDeletion
|
|
60
60
|
? (_diff.original.length > 1
|
|
61
|
-
? localize(
|
|
62
|
-
: localize(
|
|
61
|
+
? localize(115, "Copy deleted lines")
|
|
62
|
+
: localize(116, "Copy deleted line"))
|
|
63
63
|
: (_diff.original.length > 1
|
|
64
|
-
? localize(
|
|
65
|
-
: localize(
|
|
64
|
+
? localize(117, "Copy changed lines")
|
|
65
|
+
: localize(118, "Copy changed line")), undefined, true, async () => {
|
|
66
66
|
const originalText = this._originalTextModel.getValueInRange(_diff.original.toExclusiveRange());
|
|
67
67
|
await this._clipboardService.writeText(originalText);
|
|
68
68
|
}));
|
|
69
69
|
if (_diff.original.length > 1) {
|
|
70
70
|
actions.push(new Action('diff.clipboard.copyDeletedLineContent', isDeletion
|
|
71
|
-
? localize(
|
|
72
|
-
: localize(
|
|
71
|
+
? localize(119, "Copy deleted line ({0})", _diff.original.startLineNumber + currentLineNumberOffset)
|
|
72
|
+
: localize(120, "Copy changed line ({0})", _diff.original.startLineNumber + currentLineNumberOffset), undefined, true, async () => {
|
|
73
73
|
let lineContent = this._originalTextModel.getLineContent(_diff.original.startLineNumber + currentLineNumberOffset);
|
|
74
74
|
if (lineContent === '') {
|
|
75
75
|
// empty line -> new line
|
|
@@ -81,7 +81,7 @@ class InlineDiffDeletedCodeMargin extends Disposable {
|
|
|
81
81
|
}
|
|
82
82
|
const readOnly = _modifiedEditor.getOption(104 /* EditorOption.readOnly */);
|
|
83
83
|
if (!readOnly) {
|
|
84
|
-
actions.push(new Action('diff.inline.revertChange', localize(
|
|
84
|
+
actions.push(new Action('diff.inline.revertChange', localize(121, "Revert this change"), undefined, true, async () => {
|
|
85
85
|
this._editor.revert(this._diff);
|
|
86
86
|
}));
|
|
87
87
|
}
|
|
@@ -17,7 +17,7 @@ registerAction2(ToggleUseInlineViewWhenSpaceIsLimited);
|
|
|
17
17
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
18
18
|
command: {
|
|
19
19
|
id: new ToggleUseInlineViewWhenSpaceIsLimited().desc.id,
|
|
20
|
-
title: localize(
|
|
20
|
+
title: localize(122, "Use Inline View When Space Is Limited"),
|
|
21
21
|
toggled: ContextKeyExpr.has('config.diffEditor.useInlineViewWhenSpaceIsLimited'),
|
|
22
22
|
precondition: ContextKeyExpr.has('isInDiffEditor'),
|
|
23
23
|
},
|
|
@@ -28,7 +28,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
|
28
28
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
29
29
|
command: {
|
|
30
30
|
id: new ToggleShowMovedCodeBlocks().desc.id,
|
|
31
|
-
title: localize(
|
|
31
|
+
title: localize(123, "Show Moved Code Blocks"),
|
|
32
32
|
icon: Codicon.move,
|
|
33
33
|
toggled: ContextKeyEqualsExpr.create('config.diffEditor.experimental.showMoves', true),
|
|
34
34
|
precondition: ContextKeyExpr.has('isInDiffEditor'),
|
|
@@ -45,7 +45,7 @@ for (const ctx of [
|
|
|
45
45
|
MenuRegistry.appendMenuItem(MenuId.DiffEditorHunkToolbar, {
|
|
46
46
|
command: {
|
|
47
47
|
id: new RevertHunkOrSelection().desc.id,
|
|
48
|
-
title: localize(
|
|
48
|
+
title: localize(124, "Revert Block"),
|
|
49
49
|
icon: ctx.icon,
|
|
50
50
|
},
|
|
51
51
|
when: ContextKeyExpr.and(EditorContextKeys.diffEditorModifiedWritable, ctx.key),
|
|
@@ -55,7 +55,7 @@ for (const ctx of [
|
|
|
55
55
|
MenuRegistry.appendMenuItem(MenuId.DiffEditorSelectionToolbar, {
|
|
56
56
|
command: {
|
|
57
57
|
id: new RevertHunkOrSelection().desc.id,
|
|
58
|
-
title: localize(
|
|
58
|
+
title: localize(125, "Revert Selection"),
|
|
59
59
|
icon: ctx.icon,
|
|
60
60
|
},
|
|
61
61
|
when: ContextKeyExpr.and(EditorContextKeys.diffEditorModifiedWritable, ctx.key),
|
|
@@ -70,7 +70,7 @@ registerAction2(ShowAllUnchangedRegions);
|
|
|
70
70
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
71
71
|
command: {
|
|
72
72
|
id: AccessibleDiffViewerNext.id,
|
|
73
|
-
title: localize(
|
|
73
|
+
title: localize(126, "Open Accessible Diff Viewer"),
|
|
74
74
|
precondition: ContextKeyExpr.has('isInDiffEditor'),
|
|
75
75
|
},
|
|
76
76
|
order: 10,
|
|
@@ -150,7 +150,7 @@ let HideUnchangedRegionsFeature = class HideUnchangedRegionsFeature extends Disp
|
|
|
150
150
|
const unchangedLinesDecorationShow = {
|
|
151
151
|
description: 'Fold Unchanged',
|
|
152
152
|
glyphMarginHoverMessage: new MarkdownString(undefined, { isTrusted: true, supportThemeIcons: true })
|
|
153
|
-
.appendMarkdown(localize(
|
|
153
|
+
.appendMarkdown(localize(127, 'Fold Unchanged Region')),
|
|
154
154
|
glyphMarginClassName: 'fold-unchanged ' + ThemeIcon.asClassName(Codicon.fold),
|
|
155
155
|
zIndex: 10001,
|
|
156
156
|
};
|
|
@@ -256,7 +256,7 @@ class CompactCollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
256
256
|
/** @description update labels */
|
|
257
257
|
if (!this._hide) {
|
|
258
258
|
const lineCount = this._unchangedRegion.getHiddenModifiedRange(reader).length;
|
|
259
|
-
const linesHiddenText = localize(
|
|
259
|
+
const linesHiddenText = localize(128, '{0} hidden lines', lineCount);
|
|
260
260
|
this._nodes.text.innerText = linesHiddenText;
|
|
261
261
|
}
|
|
262
262
|
}));
|
|
@@ -274,12 +274,12 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
274
274
|
this._revealModifiedHiddenLine = _revealModifiedHiddenLine;
|
|
275
275
|
this._options = _options;
|
|
276
276
|
this._nodes = h('div.diff-hidden-lines', [
|
|
277
|
-
h('div.top@top', { title: localize(
|
|
277
|
+
h('div.top@top', { title: localize(129, 'Click or drag to show more above') }),
|
|
278
278
|
h('div.center@content', { style: { display: 'flex' } }, [
|
|
279
|
-
h('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$('a', { title: localize(
|
|
279
|
+
h('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$('a', { title: localize(130, 'Show Unchanged Region'), role: 'button', onclick: () => { this._unchangedRegion.showAll(undefined); } }, ...renderLabelWithIcons('$(unfold)'))]),
|
|
280
280
|
h('div@others', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } }),
|
|
281
281
|
]),
|
|
282
|
-
h('div.bottom@bottom', { title: localize(
|
|
282
|
+
h('div.bottom@bottom', { title: localize(131, 'Click or drag to show more below'), role: 'button' }),
|
|
283
283
|
]);
|
|
284
284
|
root.root.appendChild(this._nodes.root);
|
|
285
285
|
if (!this._hide) {
|
|
@@ -391,8 +391,8 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
391
391
|
const children = [];
|
|
392
392
|
if (!this._hide) {
|
|
393
393
|
const lineCount = _unchangedRegion.getHiddenModifiedRange(reader).length;
|
|
394
|
-
const linesHiddenText = localize(
|
|
395
|
-
const span = $('span', { title: localize(
|
|
394
|
+
const linesHiddenText = localize(132, '{0} hidden lines', lineCount);
|
|
395
|
+
const span = $('span', { title: localize(133, 'Double click to unfold') }, linesHiddenText);
|
|
396
396
|
span.addEventListener('dblclick', e => {
|
|
397
397
|
if (e.button !== 0) {
|
|
398
398
|
return;
|
|
@@ -252,10 +252,10 @@ class MovedBlockOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
252
252
|
}));
|
|
253
253
|
let text;
|
|
254
254
|
if (_move.changes.length > 0) {
|
|
255
|
-
text = this._kind === 'original' ? localize(
|
|
255
|
+
text = this._kind === 'original' ? localize(134, 'Code moved with changes to line {0}-{1}', this._move.lineRangeMapping.modified.startLineNumber, this._move.lineRangeMapping.modified.endLineNumberExclusive - 1) : localize(135, 'Code moved with changes from line {0}-{1}', this._move.lineRangeMapping.original.startLineNumber, this._move.lineRangeMapping.original.endLineNumberExclusive - 1);
|
|
256
256
|
}
|
|
257
257
|
else {
|
|
258
|
-
text = this._kind === 'original' ? localize(
|
|
258
|
+
text = this._kind === 'original' ? localize(136, 'Code moved to line {0}-{1}', this._move.lineRangeMapping.modified.startLineNumber, this._move.lineRangeMapping.modified.endLineNumberExclusive - 1) : localize(137, 'Code moved from line {0}-{1}', this._move.lineRangeMapping.original.startLineNumber, this._move.lineRangeMapping.original.endLineNumberExclusive - 1);
|
|
259
259
|
}
|
|
260
260
|
const actionBar = this._register(new ActionBar(this._nodes.actionBar, {
|
|
261
261
|
highlightToggledItems: true,
|