monaco-editor 0.56.0-dev-20260113 → 0.56.0-dev-20260117
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-B4u8BWhg.js → css.worker-C1mHXZTT.js} +55 -55
- package/dev/vs/assets/{editor.worker-BCw6uAjg.js → editor.worker-DMuwmZqI.js} +55 -55
- package/dev/vs/assets/{editorWebWorkerMain-CeIXdrW0.js → editorWebWorkerMain-BF9MKtzx.js} +55 -55
- package/dev/vs/assets/{html.worker-B-Jcoci3.js → html.worker-CnU9mi9l.js} +55 -55
- package/dev/vs/assets/{json.worker-BpmVTt7n.js → json.worker-CnKP0LWf.js} +55 -55
- package/dev/vs/assets/{ts.worker-CPlP8nZ0.js → ts.worker-Cw4JXdL0.js} +55 -55
- package/dev/vs/basic-languages/monaco.contribution.js +18 -18
- package/dev/vs/css.worker-B9TJsr2Z.js +5 -0
- package/dev/vs/{cssMode-BEukq5u0.js → cssMode-VP5J4n2d.js} +2 -6
- package/dev/vs/editor/editor.main.css +37 -23
- package/dev/vs/editor/editor.main.js +10 -3178
- package/dev/vs/editor/editor.worker.js +1 -1
- package/dev/vs/{editor-BD6q8TI1.js → editor-ML6zs6Go.js} +709 -592
- package/dev/vs/editor.js +1 -1
- package/dev/vs/{editorWorkerHost-C6qzpbiG.js → editorWorkerHost--0eDLpc-.js} +57 -57
- package/dev/vs/{freemarker2-lOxAB__C.js → freemarker2-DOuHb9T9.js} +1 -1
- package/dev/vs/{handlebars-PlqQ1WFo.js → handlebars-CEHZxVsE.js} +1 -1
- package/dev/vs/{html-BHf3H_zO.js → html-CHMe_cBk.js} +1 -1
- package/dev/vs/html.worker-B4TnFQEA.js +5 -0
- package/dev/vs/{htmlMode-CAbblI08.js → htmlMode-D7MQf6Yp.js} +2 -6
- package/dev/vs/index-KO0Jv4kb.js +3169 -0
- package/dev/vs/index.js +23 -0
- package/dev/vs/{initialize-BCWs-0Hl.js → initialize-Bfvoywyr.js} +1 -1
- package/dev/vs/{javascript-BfBKHXS5.js → javascript-hfXEMgFg.js} +1 -1
- package/dev/vs/json.worker-C2LEGBju.js +5 -0
- package/dev/vs/{jsonMode-DjCUBCJf.js → jsonMode-Dp9qexJG.js} +2 -6
- package/dev/vs/language/css/css.worker.js +1 -1
- package/dev/vs/language/css/monaco.contribution.js +1 -1
- package/dev/vs/language/html/html.worker.js +1 -1
- package/dev/vs/language/html/monaco.contribution.js +1 -1
- package/dev/vs/language/json/json.worker.js +1 -1
- package/dev/vs/language/json/monaco.contribution.js +1 -1
- package/dev/vs/language/typescript/monaco.contribution.js +1 -1
- package/dev/vs/language/typescript/ts.worker.js +1 -1
- package/dev/vs/{liquid-ru5qQvh3.js → liquid-C5xy2cvN.js} +1 -1
- package/dev/vs/{lspLanguageFeatures-qP8Sjc4-.js → lspLanguageFeatures-D6ykJL1B.js} +1 -1
- package/dev/vs/{mdx-LPJIIjTi.js → mdx-DTsW_-Y_.js} +1 -1
- package/dev/vs/{monaco.contribution-Cn4sp0rT.js → monaco.contribution-CQ8dNY-Q.js} +2 -2
- package/dev/vs/{monaco.contribution-Dh6bcJ62.js → monaco.contribution-CcoogmES.js} +2 -2
- package/dev/vs/{monaco.contribution-CAodrNii.js → monaco.contribution-DuzmV_VZ.js} +2 -2
- package/dev/vs/{monaco.contribution-BUS19PbW.js → monaco.contribution-t7Hz4wVA.js} +2 -2
- package/dev/vs/nls/lang/cs.js +2 -2
- package/dev/vs/nls/lang/de.js +2 -2
- package/dev/vs/nls/lang/es.js +2 -2
- package/dev/vs/nls/lang/fr.js +2 -2
- package/dev/vs/nls/lang/it.js +2 -2
- package/dev/vs/nls/lang/ja.js +2 -2
- package/dev/vs/nls/lang/ko.js +2 -2
- package/dev/vs/nls/lang/pl.js +2 -2
- package/dev/vs/nls/lang/pt-br.js +2 -2
- package/dev/vs/nls/lang/ru.js +2 -2
- package/dev/vs/nls/lang/tr.js +2 -2
- package/dev/vs/nls/lang/zh-cn.js +2 -2
- package/dev/vs/nls/lang/zh-tw.js +2 -2
- package/dev/vs/{python-C3STc4Jq.js → python-1ZtmJ8bh.js} +1 -1
- package/dev/vs/{razor-C_h91a99.js → razor-D7Pdon_S.js} +1 -1
- package/dev/vs/{toggleHighContrast-BYijNqvT.js → toggleHighContrast-Btd2ryZF.js} +806 -759
- package/dev/vs/ts.worker-CArJhH03.js +5 -0
- package/dev/vs/{tsMode-LmHd2bVJ.js → tsMode-Dy3ckMs8.js} +2 -6
- package/dev/vs/{typescript-DrD88DNo.js → typescript-BBL8N09V.js} +1 -1
- package/dev/vs/{workers-jwm1wsc0.js → workers-B9Ao1ciR.js} +1 -1
- package/dev/vs/{xml-CIdZXDjG.js → xml-7BH7GgP4.js} +1 -1
- package/dev/vs/{yaml-F0FhO8OI.js → yaml-DvwGvgS8.js} +1 -1
- package/esm/vs/base/browser/domStylesheets.js +10 -19
- package/esm/vs/base/browser/ui/button/button.css +14 -5
- package/esm/vs/base/browser/ui/button/button.js +1 -0
- package/esm/vs/base/browser/ui/inputbox/inputBox.css +1 -1
- package/esm/vs/base/browser/ui/scrollbar/scrollbarArrow.js +1 -1
- package/esm/vs/base/browser/ui/selectBox/selectBox.css +2 -2
- package/esm/vs/base/browser/ui/selectBox/selectBoxCustom.css +1 -1
- package/esm/vs/base/browser/ui/toolbar/toolbar.css +14 -2
- package/esm/vs/base/browser/ui/toolbar/toolbar.js +42 -15
- package/esm/vs/base/common/async.js +1 -1
- package/esm/vs/base/common/network.js +2 -0
- package/esm/vs/base/common/observableInternal/reactions/autorun.js +1 -1
- package/esm/vs/base/common/validation.js +12 -1
- package/esm/vs/editor/browser/gpu/viewGpuContext.js +1 -1
- package/esm/vs/editor/browser/observableCodeEditor.js +3 -3
- package/esm/vs/editor/browser/view/viewController.js +66 -1
- package/esm/vs/editor/browser/viewParts/minimap/minimap.js +9 -9
- package/esm/vs/editor/browser/viewParts/rulers/rulers.css +1 -0
- package/esm/vs/editor/browser/viewParts/rulers/rulers.js +1 -1
- package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +4 -0
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +1 -1
- package/esm/vs/editor/common/core/editorColorRegistry.js +35 -34
- package/esm/vs/editor/common/editorContextKeys.js +48 -48
- package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
- package/esm/vs/editor/common/languages/supports/tokenization.js +12 -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/model/textModelSearch.js +1 -1
- package/esm/vs/editor/common/model/tokens/annotations.js +2 -2
- package/esm/vs/editor/common/model/tokens/tokenizationFontDecorationsProvider.js +4 -9
- package/esm/vs/editor/common/model/tokens/treeSitter/treeSitterTokenizationImpl.js +1 -1
- package/esm/vs/editor/common/standaloneStrings.js +11 -11
- package/esm/vs/editor/common/textModelEvents.js +2 -2
- package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/esm/vs/editor/common/viewModel/viewModelImpl.js +7 -3
- package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +20 -8
- 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/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/esm/vs/editor/contrib/find/browser/findController.js +16 -16
- package/esm/vs/editor/contrib/find/browser/findWidget.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 +13 -11
- package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +40 -40
- package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/esm/vs/editor/contrib/hover/browser/contentHoverController.js +8 -3
- package/esm/vs/editor/contrib/hover/browser/glyphHoverController.js +7 -1
- package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverUtils.js +10 -5
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +7 -7
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +24 -22
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +6 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +7 -4
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +3 -3
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/esm/vs/editor/contrib/links/browser/links.js +10 -10
- package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +10 -10
- package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/esm/vs/editor/contrib/rename/browser/renameWidget.css +1 -1
- package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
- package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggest.js +9 -9
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
- package/esm/vs/editor/editor.api.d.ts +23 -1
- package/esm/vs/editor/standalone/browser/services/standaloneWebWorkerService.js +4 -0
- package/esm/vs/features/anchorSelect/register.d.ts +2 -1
- package/esm/vs/features/bracketMatching/register.d.ts +2 -1
- package/esm/vs/features/caretOperations/register.d.ts +2 -1
- package/esm/vs/features/clipboard/register.d.ts +2 -1
- package/esm/vs/features/codeAction/register.d.ts +2 -1
- package/esm/vs/features/codeEditor/register.d.ts +2 -1
- package/esm/vs/features/codelens/register.d.ts +2 -1
- package/esm/vs/features/codicon/register.d.ts +2 -1
- package/esm/vs/features/colorPicker/register.d.ts +2 -1
- package/esm/vs/features/comment/register.d.ts +2 -1
- package/esm/vs/features/contextmenu/register.d.ts +2 -1
- package/esm/vs/features/cursorUndo/register.d.ts +2 -1
- package/esm/vs/features/diffEditor/register.d.ts +2 -1
- package/esm/vs/features/diffEditorBreadcrumbs/register.d.ts +2 -1
- package/esm/vs/features/dnd/register.d.ts +2 -1
- package/esm/vs/features/documentSymbols/register.d.ts +2 -1
- package/esm/vs/features/dropOrPasteInto/register.d.ts +2 -1
- package/esm/vs/features/find/register.d.ts +2 -1
- package/esm/vs/features/floatingMenu/register.d.ts +2 -1
- package/esm/vs/features/folding/register.d.ts +2 -1
- package/esm/vs/features/fontZoom/register.d.ts +2 -1
- package/esm/vs/features/format/register.d.ts +2 -1
- package/esm/vs/features/gotoError/register.d.ts +2 -1
- package/esm/vs/features/gotoLine/register.d.ts +2 -1
- package/esm/vs/features/gotoSymbol/register.d.ts +2 -1
- package/esm/vs/features/gpu/register.d.ts +2 -1
- package/esm/vs/features/hover/register.d.ts +2 -1
- package/esm/vs/features/iPadShowKeyboard/register.d.ts +2 -1
- package/esm/vs/features/inPlaceReplace/register.d.ts +2 -1
- package/esm/vs/features/indentation/register.d.ts +2 -1
- package/esm/vs/features/inlayHints/register.d.ts +2 -1
- package/esm/vs/features/inlineCompletions/register.d.ts +2 -1
- package/esm/vs/features/inlineProgress/register.d.ts +2 -1
- package/esm/vs/features/insertFinalNewLine/register.d.ts +2 -1
- package/esm/vs/features/inspectTokens/register.d.ts +2 -1
- package/esm/vs/features/lineSelection/register.d.ts +2 -1
- package/esm/vs/features/linesOperations/register.d.ts +2 -1
- package/esm/vs/features/linkedEditing/register.d.ts +2 -1
- package/esm/vs/features/links/register.d.ts +2 -1
- package/esm/vs/features/longLinesHelper/register.d.ts +2 -1
- package/esm/vs/features/middleScroll/register.d.ts +2 -1
- package/esm/vs/features/multicursor/register.d.ts +2 -1
- package/esm/vs/features/parameterHints/register.d.ts +2 -1
- package/esm/vs/features/placeholderText/register.d.ts +2 -1
- package/esm/vs/features/quickCommand/register.d.ts +2 -1
- package/esm/vs/features/quickHelp/register.d.ts +2 -1
- package/esm/vs/features/quickOutline/register.d.ts +2 -1
- package/esm/vs/features/readOnlyMessage/register.d.ts +2 -1
- package/esm/vs/features/referenceSearch/register.d.ts +2 -1
- package/esm/vs/features/rename/register.d.ts +2 -1
- package/esm/vs/features/sectionHeaders/register.d.ts +2 -1
- package/esm/vs/features/semanticTokens/register.d.ts +2 -1
- package/esm/vs/features/smartSelect/register.d.ts +2 -1
- package/esm/vs/features/snippet/register.d.ts +2 -1
- package/esm/vs/features/stickyScroll/register.d.ts +2 -1
- package/esm/vs/features/suggest/register.d.ts +2 -1
- package/esm/vs/features/toggleHighContrast/register.d.ts +2 -1
- package/esm/vs/features/toggleTabFocusMode/register.d.ts +2 -1
- package/esm/vs/features/tokenization/register.d.ts +2 -1
- package/esm/vs/features/unicodeHighlighter/register.d.ts +2 -1
- package/esm/vs/features/unusualLineTerminators/register.d.ts +2 -1
- package/esm/vs/features/wordHighlighter/register.d.ts +2 -1
- package/esm/vs/features/wordOperations/register.d.ts +2 -1
- package/esm/vs/features/wordPartOperations/register.d.ts +2 -1
- package/esm/vs/languages/definitions/abap/register.d.ts +2 -1
- package/esm/vs/languages/definitions/apex/register.d.ts +2 -1
- package/esm/vs/languages/definitions/azcli/register.d.ts +2 -1
- package/esm/vs/languages/definitions/bat/register.d.ts +2 -1
- package/esm/vs/languages/definitions/bicep/register.d.ts +2 -1
- package/esm/vs/languages/definitions/cameligo/register.d.ts +2 -1
- package/esm/vs/languages/definitions/clojure/register.d.ts +2 -1
- package/esm/vs/languages/definitions/coffee/register.d.ts +2 -1
- package/esm/vs/languages/definitions/cpp/register.d.ts +2 -1
- package/esm/vs/languages/definitions/csharp/register.d.ts +2 -1
- package/esm/vs/languages/definitions/csp/register.d.ts +2 -1
- package/esm/vs/languages/definitions/css/register.d.ts +2 -1
- package/esm/vs/languages/definitions/cypher/register.d.ts +2 -1
- package/esm/vs/languages/definitions/dart/register.d.ts +2 -1
- package/esm/vs/languages/definitions/dockerfile/register.d.ts +2 -1
- package/esm/vs/languages/definitions/ecl/register.d.ts +2 -1
- package/esm/vs/languages/definitions/elixir/register.d.ts +2 -1
- package/esm/vs/languages/definitions/flow9/register.d.ts +2 -1
- package/esm/vs/languages/definitions/freemarker2/register.d.ts +2 -1
- package/esm/vs/languages/definitions/fsharp/register.d.ts +2 -1
- package/esm/vs/languages/definitions/go/register.d.ts +2 -1
- package/esm/vs/languages/definitions/graphql/register.d.ts +2 -1
- package/esm/vs/languages/definitions/handlebars/register.d.ts +2 -1
- package/esm/vs/languages/definitions/hcl/register.d.ts +2 -1
- package/esm/vs/languages/definitions/html/register.d.ts +2 -1
- package/esm/vs/languages/definitions/ini/register.d.ts +2 -1
- package/esm/vs/languages/definitions/java/register.d.ts +2 -1
- package/esm/vs/languages/definitions/javascript/register.d.ts +2 -1
- package/esm/vs/languages/definitions/julia/register.d.ts +2 -1
- package/esm/vs/languages/definitions/kotlin/register.d.ts +2 -1
- package/esm/vs/languages/definitions/less/register.d.ts +2 -1
- package/esm/vs/languages/definitions/lexon/register.d.ts +2 -1
- package/esm/vs/languages/definitions/liquid/register.d.ts +2 -1
- package/esm/vs/languages/definitions/lua/register.d.ts +2 -1
- package/esm/vs/languages/definitions/m3/register.d.ts +2 -1
- package/esm/vs/languages/definitions/markdown/register.d.ts +2 -1
- package/esm/vs/languages/definitions/mdx/register.d.ts +2 -1
- package/esm/vs/languages/definitions/mips/register.d.ts +2 -1
- package/esm/vs/languages/definitions/msdax/register.d.ts +2 -1
- package/esm/vs/languages/definitions/mysql/register.d.ts +2 -1
- package/esm/vs/languages/definitions/objective-c/register.d.ts +2 -1
- package/esm/vs/languages/definitions/pascal/register.d.ts +2 -1
- package/esm/vs/languages/definitions/pascaligo/register.d.ts +2 -1
- package/esm/vs/languages/definitions/perl/register.d.ts +2 -1
- package/esm/vs/languages/definitions/pgsql/register.d.ts +2 -1
- package/esm/vs/languages/definitions/php/register.d.ts +2 -1
- package/esm/vs/languages/definitions/pla/register.d.ts +2 -1
- package/esm/vs/languages/definitions/postiats/register.d.ts +2 -1
- package/esm/vs/languages/definitions/powerquery/register.d.ts +2 -1
- package/esm/vs/languages/definitions/powershell/register.d.ts +2 -1
- package/esm/vs/languages/definitions/protobuf/register.d.ts +2 -1
- package/esm/vs/languages/definitions/pug/register.d.ts +2 -1
- package/esm/vs/languages/definitions/python/register.d.ts +2 -1
- package/esm/vs/languages/definitions/qsharp/register.d.ts +2 -1
- package/esm/vs/languages/definitions/r/register.d.ts +2 -1
- package/esm/vs/languages/definitions/razor/register.d.ts +2 -1
- package/esm/vs/languages/definitions/redis/register.d.ts +2 -1
- package/esm/vs/languages/definitions/redshift/register.d.ts +2 -1
- package/esm/vs/languages/definitions/restructuredtext/register.d.ts +2 -1
- package/esm/vs/languages/definitions/ruby/register.d.ts +2 -1
- package/esm/vs/languages/definitions/rust/register.d.ts +2 -1
- package/esm/vs/languages/definitions/sb/register.d.ts +2 -1
- package/esm/vs/languages/definitions/scala/register.d.ts +2 -1
- package/esm/vs/languages/definitions/scheme/register.d.ts +2 -1
- package/esm/vs/languages/definitions/scss/register.d.ts +2 -1
- package/esm/vs/languages/definitions/shell/register.d.ts +2 -1
- package/esm/vs/languages/definitions/solidity/register.d.ts +2 -1
- package/esm/vs/languages/definitions/sophia/register.d.ts +2 -1
- package/esm/vs/languages/definitions/sparql/register.d.ts +2 -1
- package/esm/vs/languages/definitions/sql/register.d.ts +2 -1
- package/esm/vs/languages/definitions/st/register.d.ts +2 -1
- package/esm/vs/languages/definitions/swift/register.d.ts +2 -1
- package/esm/vs/languages/definitions/systemverilog/register.d.ts +2 -1
- package/esm/vs/languages/definitions/tcl/register.d.ts +2 -1
- package/esm/vs/languages/definitions/twig/register.d.ts +2 -1
- package/esm/vs/languages/definitions/typescript/register.d.ts +2 -1
- package/esm/vs/languages/definitions/typespec/register.d.ts +2 -1
- package/esm/vs/languages/definitions/vb/register.d.ts +2 -1
- package/esm/vs/languages/definitions/wgsl/register.d.ts +2 -1
- package/esm/vs/languages/definitions/xml/register.d.ts +2 -1
- package/esm/vs/languages/definitions/yaml/register.d.ts +2 -1
- package/esm/vs/languages/features/css/register.d.ts +193 -1
- package/esm/vs/languages/features/css/workerManager.js +1 -1
- package/esm/vs/languages/features/html/register.d.ts +164 -1
- package/esm/vs/languages/features/html/workerManager.js +1 -1
- package/esm/vs/languages/features/json/register.d.ts +235 -1
- package/esm/vs/languages/features/json/workerManager.js +1 -1
- package/esm/vs/languages/features/typescript/register.d.ts +443 -1
- package/esm/vs/languages/features/typescript/workerManager.js +1 -1
- package/esm/vs/nls/lang/cs.js +2 -2
- package/esm/vs/nls/lang/de.js +2 -2
- package/esm/vs/nls/lang/es.js +2 -2
- package/esm/vs/nls/lang/fr.js +2 -2
- package/esm/vs/nls/lang/it.js +2 -2
- package/esm/vs/nls/lang/ja.js +2 -2
- package/esm/vs/nls/lang/ko.js +2 -2
- package/esm/vs/nls/lang/pl.js +2 -2
- package/esm/vs/nls/lang/pt-br.js +2 -2
- package/esm/vs/nls/lang/ru.js +2 -2
- package/esm/vs/nls/lang/tr.js +2 -2
- package/esm/vs/nls/lang/zh-cn.js +2 -2
- package/esm/vs/nls/lang/zh-tw.js +2 -2
- package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
- package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/esm/vs/platform/actionWidget/browser/actionList.js +4 -4
- package/esm/vs/platform/actionWidget/browser/actionWidget.js +8 -8
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +3 -3
- package/esm/vs/platform/actions/browser/toolbar.js +2 -2
- package/esm/vs/platform/actions/common/actions.js +2 -0
- package/esm/vs/platform/actions/common/menuService.js +2 -2
- package/esm/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
- package/esm/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/esm/vs/platform/contextkey/common/scanner.js +5 -5
- package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/esm/vs/platform/hover/browser/hoverWidget.js +1 -1
- package/esm/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
- package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
- package/esm/vs/platform/list/browser/listService.js +27 -27
- package/esm/vs/platform/markers/common/markerService.js +2 -2
- package/esm/vs/platform/markers/common/markers.js +6 -6
- package/esm/vs/platform/observable/common/platformObservableUtils.js +1 -1
- package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +8 -8
- package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- package/esm/vs/platform/quickinput/browser/media/quickInput.css +3 -11
- package/esm/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/esm/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
- package/esm/vs/platform/theme/common/colorUtils.js +2 -2
- package/esm/vs/platform/theme/common/colors/baseColors.js +18 -18
- package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/esm/vs/platform/theme/common/colors/inputColors.js +47 -47
- package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
- package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/esm/vs/platform/theme/common/colors/miscColors.js +16 -16
- package/esm/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
- package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/esm/vs/platform/webWorker/browser/webWorkerServiceImpl.js +7 -2
- package/esm/vs/platform/workspace/common/workspace.js +1 -1
- package/min/vs/assets/{css.worker-CTho1Z2s.js → css.worker-57ylMqdQ.js} +1 -1
- package/min/vs/assets/{editor.worker-Cj3y49Lu.js → editor.worker-C7rTzOHm.js} +1 -1
- package/min/vs/assets/{editorWebWorkerMain-N9BQrLTN.js → editorWebWorkerMain-CRWuSSWk.js} +1 -1
- package/min/vs/assets/{html.worker-B5eygcqw.js → html.worker-DUkJXKh4.js} +1 -1
- package/min/vs/assets/{json.worker-C6iI2Vxn.js → json.worker-DHFIjIvp.js} +1 -1
- package/min/vs/assets/{ts.worker-BAsDYLKY.js → ts.worker-CKcSPjM2.js} +1 -1
- package/min/vs/basic-languages/monaco.contribution.js +1 -1
- package/min/vs/css.worker-CkPP9VjP.js +1 -0
- package/min/vs/cssMode-CxJ_Cr_Z.js +1 -0
- package/min/vs/editor/editor.main.css +1 -1
- package/min/vs/editor/editor.main.js +1 -5
- package/min/vs/editor/editor.worker.js +1 -1
- package/min/vs/{editor-_RCEdmvY.js → editor-CyVlw8K4.js} +107 -106
- package/min/vs/editor.js +1 -1
- package/min/vs/{editorWorkerHost-CQ7aiWlF.js → editorWorkerHost-DnKHgOKB.js} +2 -2
- package/min/vs/{freemarker2-D4d_C6LW.js → freemarker2-CJcSu3nc.js} +1 -1
- package/min/vs/{handlebars-C6NNUzyJ.js → handlebars-DPLjS6oj.js} +1 -1
- package/min/vs/{html-BABEugMf.js → html-DUmbFRY-.js} +1 -1
- package/min/vs/html.worker-uHOusrcK.js +1 -0
- package/min/vs/htmlMode-DfUvYWkE.js +1 -0
- package/min/vs/{index-CNJX59UW.js → index-049xrXrp.js} +1 -1
- package/min/vs/index-DOycyDud.js +5 -0
- package/min/vs/index.js +1 -0
- package/min/vs/{initialize-B_j9nAKL.js → initialize-BZ6ciHHH.js} +1 -1
- package/min/vs/{javascript-NuiwrX-5.js → javascript-CQpB78Gy.js} +1 -1
- package/min/vs/json.worker-DGsNKzKv.js +1 -0
- package/min/vs/jsonMode-B1E1R3KS.js +1 -0
- package/min/vs/language/css/css.worker.js +1 -1
- package/min/vs/language/css/monaco.contribution.js +1 -1
- package/min/vs/language/html/html.worker.js +1 -1
- package/min/vs/language/html/monaco.contribution.js +1 -1
- package/min/vs/language/json/json.worker.js +3 -3
- package/min/vs/language/json/monaco.contribution.js +1 -1
- package/min/vs/language/typescript/monaco.contribution.js +1 -1
- package/min/vs/language/typescript/ts.worker.js +1 -1
- package/min/vs/{liquid-Bguw2x1v.js → liquid-Bh_nhvai.js} +1 -1
- package/min/vs/{lspLanguageFeatures-D6IPmlbJ.js → lspLanguageFeatures-CAWBopti.js} +1 -1
- package/min/vs/{mdx-t4SbqCJO.js → mdx-CvpAYI3X.js} +1 -1
- package/min/vs/{monaco.contribution-B6PO-qMO.js → monaco.contribution-6Rc9eWJ0.js} +1 -1
- package/min/vs/{monaco.contribution-DCqiCzUr.js → monaco.contribution-C3jTRlbI.js} +1 -1
- package/min/vs/{monaco.contribution-CS8nS4qi.js → monaco.contribution-Cmckd8EG.js} +1 -1
- package/min/vs/{monaco.contribution-DxVLeGt5.js → monaco.contribution-QIm8iN-Y.js} +1 -1
- package/min/vs/nls/lang/cs.js +2 -2
- package/min/vs/nls/lang/de.js +2 -2
- package/min/vs/nls/lang/es.js +2 -2
- package/min/vs/nls/lang/fr.js +2 -2
- package/min/vs/nls/lang/it.js +2 -2
- package/min/vs/nls/lang/ja.js +2 -2
- package/min/vs/nls/lang/ko.js +2 -2
- package/min/vs/nls/lang/pl.js +2 -2
- package/min/vs/nls/lang/pt-br.js +2 -2
- package/min/vs/nls/lang/ru.js +2 -2
- package/min/vs/nls/lang/tr.js +2 -2
- package/min/vs/nls/lang/zh-cn.js +2 -2
- package/min/vs/nls/lang/zh-tw.js +2 -2
- package/min/vs/{python-NI5xUoLf.js → python-BuY3uazV.js} +1 -1
- package/min/vs/{razor-DY059DxF.js → razor-DQBMGsJX.js} +1 -1
- package/min/vs/{toggleHighContrast-B_2Wj21t.js → toggleHighContrast-BTse4XBl.js} +32 -32
- package/min/vs/ts.worker-DyDnfuDL.js +1 -0
- package/min/vs/{tsMode-BIyo5lcL.js → tsMode-C8sInOMc.js} +4 -4
- package/min/vs/{typescript-Pa7G7GO1.js → typescript-DMigl3F4.js} +1 -1
- package/min/vs/{typespec-D-PIh9Xw.js → typespec-8OfoLt6R.js} +1 -1
- package/min/vs/{workers-BZfsJ0Zq.js → workers-BznOw4bL.js} +1 -1
- package/min/vs/{xml-BOHwjsBh.js → xml-C2bHWkWJ.js} +1 -1
- package/min/vs/{yaml-VcxPd5Wl.js → yaml-gtjQmyMa.js} +1 -1
- package/monaco.d.ts +23 -1
- package/package.json +12 -11
- package/min/vs/cssMode-DH3ZJTuM.js +0 -1
- package/min/vs/htmlMode-CZJida2w.js +0 -1
- package/min/vs/jsonMode-CD9KTNi5.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../../../base/common/observableInternal/index.js';
|
|
2
2
|
import { splitLines } from '../../../../../base/common/strings.js';
|
|
3
|
-
import { vUnion, vObj, vOptionalProp, vWithJsonSchemaRef, vUndefined, vBoolean, vString } from '../../../../../base/common/validation.js';
|
|
3
|
+
import { vUnion, vObj, vOptionalProp, vWithJsonSchemaRef, vUndefined, vUnchecked, vBoolean, vString } from '../../../../../base/common/validation.js';
|
|
4
4
|
import { localize2, localize } from '../../../../../nls.js';
|
|
5
5
|
import { CONTEXT_ACCESSIBILITY_MODE_ENABLED } from '../../../../../platform/accessibility/common/accessibility.js';
|
|
6
6
|
import { MenuId, Action2 } from '../../../../../platform/actions/common/actions.js';
|
|
@@ -27,7 +27,7 @@ class ShowNextInlineSuggestionAction extends EditorAction {
|
|
|
27
27
|
constructor() {
|
|
28
28
|
super({
|
|
29
29
|
id: ShowNextInlineSuggestionAction.ID,
|
|
30
|
-
label: localize2(
|
|
30
|
+
label: localize2(1190, "Show Next Inline Suggestion"),
|
|
31
31
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
32
32
|
kbOpts: {
|
|
33
33
|
weight: 100,
|
|
@@ -45,7 +45,7 @@ class ShowPreviousInlineSuggestionAction extends EditorAction {
|
|
|
45
45
|
constructor() {
|
|
46
46
|
super({
|
|
47
47
|
id: ShowPreviousInlineSuggestionAction.ID,
|
|
48
|
-
label: localize2(
|
|
48
|
+
label: localize2(1191, "Show Previous Inline Suggestion"),
|
|
49
49
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
50
50
|
kbOpts: {
|
|
51
51
|
weight: 100,
|
|
@@ -71,18 +71,19 @@ const argsValidator = vUnion(vObj({
|
|
|
71
71
|
showNoResultNotification: vOptionalProp(vBoolean()),
|
|
72
72
|
providerId: vOptionalProp(vWithJsonSchemaRef(providerIdSchemaUri, vString())),
|
|
73
73
|
explicit: vOptionalProp(vBoolean()),
|
|
74
|
+
changeHintData: vOptionalProp(vUnchecked()),
|
|
74
75
|
}), vUndefined());
|
|
75
76
|
class TriggerInlineSuggestionAction extends EditorAction {
|
|
76
77
|
constructor() {
|
|
77
78
|
super({
|
|
78
79
|
id: 'editor.action.inlineSuggest.trigger',
|
|
79
|
-
label: localize2(
|
|
80
|
+
label: localize2(1192, "Trigger Inline Suggestion"),
|
|
80
81
|
precondition: EditorContextKeys.writable,
|
|
81
82
|
metadata: {
|
|
82
|
-
description: localize(
|
|
83
|
+
description: localize(1179, "Triggers an inline suggestion in the editor."),
|
|
83
84
|
args: [{
|
|
84
85
|
name: 'args',
|
|
85
|
-
description: localize(
|
|
86
|
+
description: localize(1180, "Options for triggering inline suggestions."),
|
|
86
87
|
isOptional: true,
|
|
87
88
|
schema: argsValidator.getJSONSchema(),
|
|
88
89
|
}]
|
|
@@ -103,6 +104,7 @@ class TriggerInlineSuggestionAction extends EditorAction {
|
|
|
103
104
|
await controller?.model.get()?.trigger(tx, {
|
|
104
105
|
provider: provider,
|
|
105
106
|
explicit: validatedArgs?.explicit ?? true,
|
|
107
|
+
changeHint: validatedArgs?.changeHintData ? { data: validatedArgs.changeHintData } : undefined,
|
|
106
108
|
});
|
|
107
109
|
controller?.playAccessibilitySignal(tx);
|
|
108
110
|
});
|
|
@@ -110,7 +112,7 @@ class TriggerInlineSuggestionAction extends EditorAction {
|
|
|
110
112
|
if (!controller?.model.get()?.state.get()) {
|
|
111
113
|
notificationService.notify({
|
|
112
114
|
severity: Severity.Info,
|
|
113
|
-
message: localize(
|
|
115
|
+
message: localize(1181, "No inline suggestion is available.")
|
|
114
116
|
});
|
|
115
117
|
}
|
|
116
118
|
}
|
|
@@ -120,7 +122,7 @@ class AcceptNextWordOfInlineCompletion extends EditorAction {
|
|
|
120
122
|
constructor() {
|
|
121
123
|
super({
|
|
122
124
|
id: 'editor.action.inlineSuggest.acceptNextWord',
|
|
123
|
-
label: localize2(
|
|
125
|
+
label: localize2(1193, "Accept Next Word Of Inline Suggestion"),
|
|
124
126
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
125
127
|
kbOpts: {
|
|
126
128
|
weight: 100 /* KeybindingWeight.EditorContrib */ + 1,
|
|
@@ -129,7 +131,7 @@ class AcceptNextWordOfInlineCompletion extends EditorAction {
|
|
|
129
131
|
},
|
|
130
132
|
menuOpts: [{
|
|
131
133
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
132
|
-
title: localize(
|
|
134
|
+
title: localize(1182, 'Accept Word'),
|
|
133
135
|
group: 'primary',
|
|
134
136
|
order: 2,
|
|
135
137
|
}],
|
|
@@ -144,14 +146,14 @@ class AcceptNextLineOfInlineCompletion extends EditorAction {
|
|
|
144
146
|
constructor() {
|
|
145
147
|
super({
|
|
146
148
|
id: 'editor.action.inlineSuggest.acceptNextLine',
|
|
147
|
-
label: localize2(
|
|
149
|
+
label: localize2(1194, "Accept Next Line Of Inline Suggestion"),
|
|
148
150
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
149
151
|
kbOpts: {
|
|
150
152
|
weight: 100 /* KeybindingWeight.EditorContrib */ + 1,
|
|
151
153
|
},
|
|
152
154
|
menuOpts: [{
|
|
153
155
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
154
|
-
title: localize(
|
|
156
|
+
title: localize(1183, 'Accept Line'),
|
|
155
157
|
group: 'secondary',
|
|
156
158
|
order: 2,
|
|
157
159
|
}],
|
|
@@ -166,16 +168,16 @@ class AcceptInlineCompletion extends EditorAction {
|
|
|
166
168
|
constructor() {
|
|
167
169
|
super({
|
|
168
170
|
id: inlineSuggestCommitId,
|
|
169
|
-
label: localize2(
|
|
171
|
+
label: localize2(1195, "Accept Inline Suggestion"),
|
|
170
172
|
precondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineSuggestionVisible, InlineCompletionContextKeys.inlineEditVisible),
|
|
171
173
|
menuOpts: [{
|
|
172
174
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
173
|
-
title: localize(
|
|
175
|
+
title: localize(1184, "Accept"),
|
|
174
176
|
group: 'primary',
|
|
175
177
|
order: 2,
|
|
176
178
|
}, {
|
|
177
179
|
menuId: MenuId.InlineEditsActions,
|
|
178
|
-
title: localize(
|
|
180
|
+
title: localize(1185, "Accept"),
|
|
179
181
|
group: 'primary',
|
|
180
182
|
order: 2,
|
|
181
183
|
}],
|
|
@@ -206,7 +208,7 @@ class AcceptInlineCompletionAlternativeAction extends EditorAction {
|
|
|
206
208
|
constructor() {
|
|
207
209
|
super({
|
|
208
210
|
id: inlineSuggestCommitAlternativeActionId,
|
|
209
|
-
label: localize2(
|
|
211
|
+
label: localize2(1196, "Accept Inline Suggestion Alternative Action"),
|
|
210
212
|
precondition: ContextKeyExpr.and(InlineCompletionContextKeys.inlineSuggestionAlternativeActionVisible, InlineCompletionContextKeys.inlineEditVisible),
|
|
211
213
|
menuOpts: [],
|
|
212
214
|
kbOpts: [
|
|
@@ -235,11 +237,11 @@ class JumpToNextInlineEdit extends EditorAction {
|
|
|
235
237
|
constructor() {
|
|
236
238
|
super({
|
|
237
239
|
id: jumpToNextInlineEditId,
|
|
238
|
-
label: localize2(
|
|
240
|
+
label: localize2(1197, "Jump to next inline edit"),
|
|
239
241
|
precondition: InlineCompletionContextKeys.inlineEditVisible,
|
|
240
242
|
menuOpts: [{
|
|
241
243
|
menuId: MenuId.InlineEditsActions,
|
|
242
|
-
title: localize(
|
|
244
|
+
title: localize(1186, "Jump"),
|
|
243
245
|
group: 'primary',
|
|
244
246
|
order: 1,
|
|
245
247
|
when: InlineCompletionContextKeys.cursorAtInlineEdit.toNegated(),
|
|
@@ -263,7 +265,7 @@ class HideInlineCompletion extends EditorAction {
|
|
|
263
265
|
constructor() {
|
|
264
266
|
super({
|
|
265
267
|
id: HideInlineCompletion.ID,
|
|
266
|
-
label: localize2(
|
|
268
|
+
label: localize2(1198, "Hide Inline Suggestion"),
|
|
267
269
|
precondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineSuggestionVisible, InlineCompletionContextKeys.inlineEditVisible),
|
|
268
270
|
kbOpts: {
|
|
269
271
|
weight: 100 /* KeybindingWeight.EditorContrib */ + 90, // same as hiding the suggest widget
|
|
@@ -271,7 +273,7 @@ class HideInlineCompletion extends EditorAction {
|
|
|
271
273
|
},
|
|
272
274
|
menuOpts: [{
|
|
273
275
|
menuId: MenuId.InlineEditsActions,
|
|
274
|
-
title: localize(
|
|
276
|
+
title: localize(1187, "Reject"),
|
|
275
277
|
group: 'primary',
|
|
276
278
|
order: 3,
|
|
277
279
|
}]
|
|
@@ -290,7 +292,7 @@ class ToggleInlineCompletionShowCollapsed extends EditorAction {
|
|
|
290
292
|
constructor() {
|
|
291
293
|
super({
|
|
292
294
|
id: ToggleInlineCompletionShowCollapsed.ID,
|
|
293
|
-
label: localize2(
|
|
295
|
+
label: localize2(1199, "Toggle Inline Suggestions Show Collapsed"),
|
|
294
296
|
precondition: ContextKeyExpr.true(),
|
|
295
297
|
});
|
|
296
298
|
}
|
|
@@ -312,7 +314,7 @@ class ToggleAlwaysShowInlineSuggestionToolbar extends Action2 {
|
|
|
312
314
|
constructor() {
|
|
313
315
|
super({
|
|
314
316
|
id: ToggleAlwaysShowInlineSuggestionToolbar.ID,
|
|
315
|
-
title: localize(
|
|
317
|
+
title: localize(1188, "Always Show Toolbar"),
|
|
316
318
|
f1: false,
|
|
317
319
|
precondition: undefined,
|
|
318
320
|
menu: [{
|
|
@@ -334,7 +336,7 @@ class DevExtractReproSample extends EditorAction {
|
|
|
334
336
|
constructor() {
|
|
335
337
|
super({
|
|
336
338
|
id: 'editor.action.inlineSuggest.dev.extractRepro',
|
|
337
|
-
label: localize(
|
|
339
|
+
label: localize(1189, "Developer: Extract Inline Suggest State"),
|
|
338
340
|
alias: 'Developer: Inline Suggest Extract Repro',
|
|
339
341
|
precondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineEditVisible, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
340
342
|
});
|
package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js
CHANGED
|
@@ -6,19 +6,19 @@ import { localize } from '../../../../../nls.js';
|
|
|
6
6
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
7
7
|
*--------------------------------------------------------------------------------------------*/
|
|
8
8
|
class InlineCompletionContextKeys {
|
|
9
|
-
static { this.inlineSuggestionVisible = new RawContextKey('inlineSuggestionVisible', false, localize(
|
|
10
|
-
static { this.inlineSuggestionAlternativeActionVisible = new RawContextKey('inlineSuggestionAlternativeActionVisible', false, localize(
|
|
11
|
-
static { this.inlineSuggestionHasIndentation = new RawContextKey('inlineSuggestionHasIndentation', false, localize(
|
|
12
|
-
static { this.inlineSuggestionHasIndentationLessThanTabSize = new RawContextKey('inlineSuggestionHasIndentationLessThanTabSize', true, localize(
|
|
13
|
-
static { this.suppressSuggestions = new RawContextKey('inlineSuggestionSuppressSuggestions', undefined, localize(
|
|
14
|
-
static { this.cursorBeforeGhostText = new RawContextKey('cursorBeforeGhostText', false, localize(
|
|
15
|
-
static { this.cursorInIndentation = new RawContextKey('cursorInIndentation', false, localize(
|
|
16
|
-
static { this.hasSelection = new RawContextKey('editor.hasSelection', false, localize(
|
|
17
|
-
static { this.cursorAtInlineEdit = new RawContextKey('cursorAtInlineEdit', false, localize(
|
|
18
|
-
static { this.inlineEditVisible = new RawContextKey('inlineEditIsVisible', false, localize(
|
|
19
|
-
static { this.tabShouldJumpToInlineEdit = new RawContextKey('tabShouldJumpToInlineEdit', false, localize(
|
|
20
|
-
static { this.tabShouldAcceptInlineEdit = new RawContextKey('tabShouldAcceptInlineEdit', false, localize(
|
|
21
|
-
static { this.inInlineEditsPreviewEditor = new RawContextKey('inInlineEditsPreviewEditor', true, localize(
|
|
9
|
+
static { this.inlineSuggestionVisible = new RawContextKey('inlineSuggestionVisible', false, localize(1200, "Whether an inline suggestion is visible")); }
|
|
10
|
+
static { this.inlineSuggestionAlternativeActionVisible = new RawContextKey('inlineSuggestionAlternativeActionVisible', false, localize(1201, "Whether an alternative action for the inline suggestion is visible.")); }
|
|
11
|
+
static { this.inlineSuggestionHasIndentation = new RawContextKey('inlineSuggestionHasIndentation', false, localize(1202, "Whether the inline suggestion starts with whitespace")); }
|
|
12
|
+
static { this.inlineSuggestionHasIndentationLessThanTabSize = new RawContextKey('inlineSuggestionHasIndentationLessThanTabSize', true, localize(1203, "Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab")); }
|
|
13
|
+
static { this.suppressSuggestions = new RawContextKey('inlineSuggestionSuppressSuggestions', undefined, localize(1204, "Whether suggestions should be suppressed for the current suggestion")); }
|
|
14
|
+
static { this.cursorBeforeGhostText = new RawContextKey('cursorBeforeGhostText', false, localize(1205, "Whether the cursor is at ghost text")); }
|
|
15
|
+
static { this.cursorInIndentation = new RawContextKey('cursorInIndentation', false, localize(1206, "Whether the cursor is in indentation")); }
|
|
16
|
+
static { this.hasSelection = new RawContextKey('editor.hasSelection', false, localize(1207, "Whether the editor has a selection")); }
|
|
17
|
+
static { this.cursorAtInlineEdit = new RawContextKey('cursorAtInlineEdit', false, localize(1208, "Whether the cursor is at an inline edit")); }
|
|
18
|
+
static { this.inlineEditVisible = new RawContextKey('inlineEditIsVisible', false, localize(1209, "Whether an inline edit is visible")); }
|
|
19
|
+
static { this.tabShouldJumpToInlineEdit = new RawContextKey('tabShouldJumpToInlineEdit', false, localize(1210, "Whether tab should jump to an inline edit.")); }
|
|
20
|
+
static { this.tabShouldAcceptInlineEdit = new RawContextKey('tabShouldAcceptInlineEdit', false, localize(1211, "Whether tab should accept the inline edit.")); }
|
|
21
|
+
static { this.inInlineEditsPreviewEditor = new RawContextKey('inInlineEditsPreviewEditor', true, localize(1212, "Whether the current code editor is showing an inline edits preview")); }
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export { InlineCompletionContextKeys };
|
package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js
CHANGED
|
@@ -23,6 +23,7 @@ import { Position } from '../../../../common/core/position.js';
|
|
|
23
23
|
import { ILanguageFeatureDebounceService } from '../../../../common/services/languageFeatureDebounce.js';
|
|
24
24
|
import { ILanguageFeaturesService } from '../../../../common/services/languageFeatures.js';
|
|
25
25
|
import { FIND_IDS } from '../../../find/browser/findModel.js';
|
|
26
|
+
import { NextMarkerAction, PrevMarkerAction, NextMarkerInFilesAction, PrevMarkerInFilesAction } from '../../../gotoError/browser/gotoError.js';
|
|
26
27
|
import { InsertLineAfterAction, InsertLineBeforeAction } from '../../../linesOperations/browser/linesOperations.js';
|
|
27
28
|
import { InlineSuggestionHintsContentWidget } from '../hintsWidget/inlineCompletionsHintsWidget.js';
|
|
28
29
|
import { TextModelChangeRecorder } from '../model/changeRecorder.js';
|
|
@@ -203,6 +204,10 @@ let InlineCompletionsController = class InlineCompletionsController extends Disp
|
|
|
203
204
|
InsertLineAfterAction.ID,
|
|
204
205
|
InsertLineBeforeAction.ID,
|
|
205
206
|
FIND_IDS.NextMatchFindAction,
|
|
207
|
+
NextMarkerAction.ID,
|
|
208
|
+
PrevMarkerAction.ID,
|
|
209
|
+
NextMarkerInFilesAction.ID,
|
|
210
|
+
PrevMarkerInFilesAction.ID,
|
|
206
211
|
...TriggerInlineEditCommandsRegistry.getRegisteredCommands(),
|
|
207
212
|
]);
|
|
208
213
|
this._register(this._commandService.onDidExecuteCommand((e) => {
|
|
@@ -383,7 +388,7 @@ let InlineCompletionsController = class InlineCompletionsController extends Disp
|
|
|
383
388
|
const accessibleViewKeybinding = this._keybindingService.lookupKeybinding('editor.action.accessibleView');
|
|
384
389
|
let hint;
|
|
385
390
|
if (!accessibleViewShowing && accessibleViewKeybinding && this.editor.getOption(169 /* EditorOption.inlineCompletionsAccessibilityVerbose */)) {
|
|
386
|
-
hint = localize(
|
|
391
|
+
hint = localize(1213, "Inspect this in the accessible view ({0})", accessibleViewKeybinding.getAriaLabel());
|
|
387
392
|
}
|
|
388
393
|
alert(hint ? content + ', ' + hint : content);
|
|
389
394
|
}
|
|
@@ -118,7 +118,7 @@ let InlineCompletionsHoverParticipant = class InlineCompletionsHoverParticipant
|
|
|
118
118
|
return new RenderedHoverParts([renderedHoverPart]);
|
|
119
119
|
}
|
|
120
120
|
getAccessibleContent(hoverPart) {
|
|
121
|
-
return localize(
|
|
121
|
+
return localize(1214, 'There are inline completions here');
|
|
122
122
|
}
|
|
123
123
|
renderScreenReaderText(context, part) {
|
|
124
124
|
const disposables = new DisposableStore();
|
|
@@ -126,7 +126,7 @@ let InlineCompletionsHoverParticipant = class InlineCompletionsHoverParticipant
|
|
|
126
126
|
const markdownHoverElement = $$1('div.hover-row.markdown-hover');
|
|
127
127
|
const hoverContentsElement = append(markdownHoverElement, $$1('div.hover-contents', { ['aria-live']: 'assertive' }));
|
|
128
128
|
const render = (code) => {
|
|
129
|
-
const inlineSuggestionAvailable = localize(
|
|
129
|
+
const inlineSuggestionAvailable = localize(1215, "Suggestion:");
|
|
130
130
|
const renderedContents = disposables.add(this._markdownRendererService.render(new MarkdownString().appendText(inlineSuggestionAvailable).appendCodeblock('text', code), {
|
|
131
131
|
context: this._editor,
|
|
132
132
|
asyncRenderCallback: () => {
|
package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js
CHANGED
|
@@ -26,10 +26,10 @@ import { Position } from '../../../../common/core/position.js';
|
|
|
26
26
|
import { InlineCompletionTriggerKind } from '../../../../common/languages.js';
|
|
27
27
|
import { showPreviousInlineSuggestionActionId, showNextInlineSuggestionActionId } from '../controller/commandIds.js';
|
|
28
28
|
import './inlineCompletionsHintsWidget.css';
|
|
29
|
+
import { observableFromEvent } from '../../../../../base/common/observableInternal/observables/observableFromEvent.js';
|
|
30
|
+
import { autorun, autorunWithStore } from '../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
29
31
|
import { derivedObservableWithCache } from '../../../../../base/common/observableInternal/utils/utils.js';
|
|
30
32
|
import { derived } from '../../../../../base/common/observableInternal/observables/derived.js';
|
|
31
|
-
import { autorun, autorunWithStore } from '../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
32
|
-
import { observableFromEvent } from '../../../../../base/common/observableInternal/observables/observableFromEvent.js';
|
|
33
33
|
|
|
34
34
|
/*---------------------------------------------------------------------------------------------
|
|
35
35
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -101,8 +101,8 @@ let InlineCompletionsHintsWidget = class InlineCompletionsHintsWidget extends Di
|
|
|
101
101
|
InlineCompletionsHintsWidget = __decorate([
|
|
102
102
|
__param(2, IInstantiationService)
|
|
103
103
|
], InlineCompletionsHintsWidget);
|
|
104
|
-
const inlineSuggestionHintsNextIcon = registerIcon('inline-suggestion-hints-next', Codicon.chevronRight, localize(
|
|
105
|
-
const inlineSuggestionHintsPreviousIcon = registerIcon('inline-suggestion-hints-previous', Codicon.chevronLeft, localize(
|
|
104
|
+
const inlineSuggestionHintsNextIcon = registerIcon('inline-suggestion-hints-next', Codicon.chevronRight, localize(1216, 'Icon for show next parameter hint.'));
|
|
105
|
+
const inlineSuggestionHintsPreviousIcon = registerIcon('inline-suggestion-hints-previous', Codicon.chevronLeft, localize(1217, 'Icon for show previous parameter hint.'));
|
|
106
106
|
let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidget extends Disposable {
|
|
107
107
|
static { InlineSuggestionHintsContentWidget_1 = this; }
|
|
108
108
|
static { this.hot = createHotClass(this); }
|
|
@@ -157,9 +157,9 @@ let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidge
|
|
|
157
157
|
this._warningMessageNode.element,
|
|
158
158
|
h('div@toolBar'),
|
|
159
159
|
]);
|
|
160
|
-
this.previousAction = this._register(this.createCommandAction(showPreviousInlineSuggestionActionId, localize(
|
|
160
|
+
this.previousAction = this._register(this.createCommandAction(showPreviousInlineSuggestionActionId, localize(1218, 'Previous'), ThemeIcon.asClassName(inlineSuggestionHintsPreviousIcon)));
|
|
161
161
|
this.availableSuggestionCountAction = this._register(new Action('inlineSuggestionHints.availableSuggestionCount', '', undefined, false));
|
|
162
|
-
this.nextAction = this._register(this.createCommandAction(showNextInlineSuggestionActionId, localize(
|
|
162
|
+
this.nextAction = this._register(this.createCommandAction(showNextInlineSuggestionActionId, localize(1219, 'Next'), ThemeIcon.asClassName(inlineSuggestionHintsNextIcon)));
|
|
163
163
|
this.inlineCompletionsActionsMenus = this._register(this._menuService.createMenu(MenuId.InlineCompletionsActions, this._contextKeyService));
|
|
164
164
|
this.clearAvailableSuggestionCountLabelDebounced = this._register(new RunOnceScheduler(() => {
|
|
165
165
|
this.availableSuggestionCountAction.label = '';
|
|
@@ -140,6 +140,7 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
140
140
|
onlyRequestInlineEdits: false,
|
|
141
141
|
shouldDebounce: true,
|
|
142
142
|
provider: undefined,
|
|
143
|
+
changeHint: undefined,
|
|
143
144
|
textChange: false,
|
|
144
145
|
changeReason: '',
|
|
145
146
|
}),
|
|
@@ -164,7 +165,8 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
164
165
|
changeSummary.onlyRequestInlineEdits = true;
|
|
165
166
|
}
|
|
166
167
|
else if (ctx.didChange(this._fetchSpecificProviderSignal)) {
|
|
167
|
-
changeSummary.provider = ctx.change;
|
|
168
|
+
changeSummary.provider = ctx.change?.provider;
|
|
169
|
+
changeSummary.changeHint = ctx.change?.changeHint;
|
|
168
170
|
}
|
|
169
171
|
return true;
|
|
170
172
|
},
|
|
@@ -228,6 +230,7 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
228
230
|
includeInlineEdits: this._inlineEditsEnabled.read(reader),
|
|
229
231
|
requestIssuedDateTime: requestInfo.startTime,
|
|
230
232
|
earliestShownDateTime: requestInfo.startTime + (changeSummary.inlineCompletionTriggerKind === InlineCompletionTriggerKind.Explicit || this.inAcceptFlow.read(undefined) ? 0 : this._minShowDelay.read(undefined)),
|
|
233
|
+
changeHint: changeSummary.changeHint,
|
|
231
234
|
};
|
|
232
235
|
if (context.triggerKind === InlineCompletionTriggerKind.Automatic && changeSummary.textChange) {
|
|
233
236
|
if (this.textModel.getAlternativeVersionId() === this._lastShownInlineCompletionInfo?.alternateTextModelVersionId) {
|
|
@@ -600,7 +603,7 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
600
603
|
if (!provider.onDidChangeInlineCompletions) {
|
|
601
604
|
return;
|
|
602
605
|
}
|
|
603
|
-
store.add(provider.onDidChangeInlineCompletions(
|
|
606
|
+
store.add(provider.onDidChangeInlineCompletions(changeHint => {
|
|
604
607
|
if (!this._enabled.get()) {
|
|
605
608
|
return;
|
|
606
609
|
}
|
|
@@ -620,7 +623,7 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
620
623
|
return;
|
|
621
624
|
}
|
|
622
625
|
transaction(tx => {
|
|
623
|
-
this._fetchSpecificProviderSignal.trigger(tx, provider);
|
|
626
|
+
this._fetchSpecificProviderSignal.trigger(tx, { provider, changeHint: changeHint ?? undefined });
|
|
624
627
|
this.trigger(tx);
|
|
625
628
|
});
|
|
626
629
|
}));
|
|
@@ -696,7 +699,7 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
696
699
|
this._forceUpdateExplicitlySignal.trigger(tx);
|
|
697
700
|
}
|
|
698
701
|
if (options.provider) {
|
|
699
|
-
this._fetchSpecificProviderSignal.trigger(tx, options.provider);
|
|
702
|
+
this._fetchSpecificProviderSignal.trigger(tx, { provider: options.provider, changeHint: options.changeHint });
|
|
700
703
|
}
|
|
701
704
|
});
|
|
702
705
|
await this._fetchInlineCompletionsPromise.get();
|
|
@@ -348,11 +348,11 @@ let RenameSymbolProcessor = class RenameSymbolProcessor extends Disposable {
|
|
|
348
348
|
});
|
|
349
349
|
const command = {
|
|
350
350
|
id: renameSymbolCommandId,
|
|
351
|
-
title: localize(
|
|
351
|
+
title: localize(1220, "Rename"),
|
|
352
352
|
arguments: [source, this._renameRunnable],
|
|
353
353
|
};
|
|
354
354
|
const alternativeAction = {
|
|
355
|
-
label: localize(
|
|
355
|
+
label: localize(1221, "Rename"),
|
|
356
356
|
icon: Codicon.replaceAll,
|
|
357
357
|
command,
|
|
358
358
|
count: this._renameRunnable.getCount(),
|
|
@@ -78,13 +78,13 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
|
|
|
78
78
|
const title = header(this._data.displayName);
|
|
79
79
|
const gotoAndAccept = option(createOptionArgs({
|
|
80
80
|
id: 'gotoAndAccept',
|
|
81
|
-
title: `${localize(
|
|
81
|
+
title: `${localize(1222, "Go To")} / ${localize(1223, "Accept")}`,
|
|
82
82
|
icon: Codicon.check,
|
|
83
83
|
commandId: inlineSuggestCommitId,
|
|
84
84
|
}));
|
|
85
85
|
const reject = option(createOptionArgs({
|
|
86
86
|
id: 'reject',
|
|
87
|
-
title: localize(
|
|
87
|
+
title: localize(1224, "Reject"),
|
|
88
88
|
icon: Codicon.close,
|
|
89
89
|
commandId: hideInlineCompletionId
|
|
90
90
|
}));
|
|
@@ -105,25 +105,25 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
|
|
|
105
105
|
const toggleCollapsedMode = this._inlineEditsShowCollapsed.map(showCollapsed => showCollapsed ?
|
|
106
106
|
option(createOptionArgs({
|
|
107
107
|
id: 'showExpanded',
|
|
108
|
-
title: localize(
|
|
108
|
+
title: localize(1225, "Show Expanded"),
|
|
109
109
|
icon: Codicon.expandAll,
|
|
110
110
|
commandId: toggleShowCollapsedId
|
|
111
111
|
}))
|
|
112
112
|
: option(createOptionArgs({
|
|
113
113
|
id: 'showCollapsed',
|
|
114
|
-
title: localize(
|
|
114
|
+
title: localize(1226, "Show Collapsed"),
|
|
115
115
|
icon: Codicon.collapseAll,
|
|
116
116
|
commandId: toggleShowCollapsedId
|
|
117
117
|
})));
|
|
118
118
|
const snooze = option(createOptionArgs({
|
|
119
119
|
id: 'snooze',
|
|
120
|
-
title: localize(
|
|
120
|
+
title: localize(1227, "Snooze"),
|
|
121
121
|
icon: Codicon.bellSlash,
|
|
122
122
|
commandId: 'editor.action.inlineSuggest.snooze'
|
|
123
123
|
}));
|
|
124
124
|
const settings = option(createOptionArgs({
|
|
125
125
|
id: 'settings',
|
|
126
|
-
title: localize(
|
|
126
|
+
title: localize(1228, "Settings"),
|
|
127
127
|
icon: Codicon.gear,
|
|
128
128
|
commandId: 'workbench.action.openSettings',
|
|
129
129
|
commandArgs: ['@tag:nextEditSuggestions']
|
|
@@ -51,7 +51,7 @@ class InlineEditsGutterIndicatorData {
|
|
|
51
51
|
class InlineSuggestionGutterMenuData {
|
|
52
52
|
static fromInlineSuggestion(suggestion) {
|
|
53
53
|
const alternativeAction = suggestion.action?.kind === 'edit' ? suggestion.action.alternativeAction : undefined;
|
|
54
|
-
return new InlineSuggestionGutterMenuData(suggestion.gutterMenuLinkAction, suggestion.source.provider.displayName ?? localize(
|
|
54
|
+
return new InlineSuggestionGutterMenuData(suggestion.gutterMenuLinkAction, suggestion.source.provider.displayName ?? localize(1229, "Inline Suggestion"), suggestion.source.inlineSuggestions.commands ?? [], alternativeAction, suggestion.source.provider.modelInfo, suggestion.source.provider.setModelId?.bind(suggestion.source.provider));
|
|
55
55
|
}
|
|
56
56
|
constructor(action, displayName, extensionCommands, alternativeAction, modelInfo, setModelId) {
|
|
57
57
|
this.action = action;
|
|
@@ -123,10 +123,10 @@ let InlineEditsWordReplacementView = class InlineEditsWordReplacementView extend
|
|
|
123
123
|
const count = altCount.read(reader);
|
|
124
124
|
const active = altModifierActive.read(reader);
|
|
125
125
|
const occurrencesLabel = count !== undefined ? count === 1 ?
|
|
126
|
-
localize(
|
|
127
|
-
localize(
|
|
126
|
+
localize(1230, "{0} 1 occurrence", label) :
|
|
127
|
+
localize(1231, "{0} {1} occurrences", label, count)
|
|
128
128
|
: label;
|
|
129
|
-
const keybindingTooltip = localize(
|
|
129
|
+
const keybindingTooltip = localize(1232, "{0} show occurrences", '[shift]');
|
|
130
130
|
alternativeAction = {
|
|
131
131
|
label: count !== undefined ? (active ? occurrencesLabel : label) : label,
|
|
132
132
|
tooltip: occurrencesLabel ? `${occurrencesLabel}\n${keybindingTooltip}` : undefined,
|
|
@@ -21,63 +21,63 @@ import { observableFromEventOpts } from '../../../../../../base/common/observabl
|
|
|
21
21
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
22
22
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
23
23
|
*--------------------------------------------------------------------------------------------*/
|
|
24
|
-
const originalBackgroundColor = registerColor('inlineEdit.originalBackground', transparent(diffRemoved, 0.2), localize(
|
|
25
|
-
const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', transparent(diffInserted, 0.3), localize(
|
|
26
|
-
registerColor('inlineEdit.originalChangedLineBackground', transparent(diffRemoved, 0.8), localize(
|
|
27
|
-
const originalChangedTextOverlayColor = registerColor('inlineEdit.originalChangedTextBackground', transparent(diffRemoved, 0.8), localize(
|
|
24
|
+
const originalBackgroundColor = registerColor('inlineEdit.originalBackground', transparent(diffRemoved, 0.2), localize(1233, 'Background color for the original text in inline edits.'), true);
|
|
25
|
+
const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', transparent(diffInserted, 0.3), localize(1234, 'Background color for the modified text in inline edits.'), true);
|
|
26
|
+
registerColor('inlineEdit.originalChangedLineBackground', transparent(diffRemoved, 0.8), localize(1235, 'Background color for the changed lines in the original text of inline edits.'), true);
|
|
27
|
+
const originalChangedTextOverlayColor = registerColor('inlineEdit.originalChangedTextBackground', transparent(diffRemoved, 0.8), localize(1236, 'Overlay color for the changed text in the original text of inline edits.'), true);
|
|
28
28
|
const modifiedChangedLineBackgroundColor = registerColor('inlineEdit.modifiedChangedLineBackground', {
|
|
29
29
|
light: transparent(diffInsertedLine, 0.7),
|
|
30
30
|
dark: transparent(diffInsertedLine, 0.7),
|
|
31
31
|
hcDark: diffInsertedLine,
|
|
32
32
|
hcLight: diffInsertedLine
|
|
33
|
-
}, localize(
|
|
34
|
-
const modifiedChangedTextOverlayColor = registerColor('inlineEdit.modifiedChangedTextBackground', transparent(diffInserted, 0.7), localize(
|
|
33
|
+
}, localize(1237, 'Background color for the changed lines in the modified text of inline edits.'), true);
|
|
34
|
+
const modifiedChangedTextOverlayColor = registerColor('inlineEdit.modifiedChangedTextBackground', transparent(diffInserted, 0.7), localize(1238, 'Overlay color for the changed text in the modified text of inline edits.'), true);
|
|
35
35
|
// ------- GUTTER INDICATOR -------
|
|
36
|
-
const inlineEditIndicatorPrimaryForeground = registerColor('inlineEdit.gutterIndicator.primaryForeground', buttonForeground, localize(
|
|
37
|
-
const inlineEditIndicatorPrimaryBorder = registerColor('inlineEdit.gutterIndicator.primaryBorder', buttonBackground, localize(
|
|
36
|
+
const inlineEditIndicatorPrimaryForeground = registerColor('inlineEdit.gutterIndicator.primaryForeground', buttonForeground, localize(1239, 'Foreground color for the primary inline edit gutter indicator.'));
|
|
37
|
+
const inlineEditIndicatorPrimaryBorder = registerColor('inlineEdit.gutterIndicator.primaryBorder', buttonBackground, localize(1240, 'Border color for the primary inline edit gutter indicator.'));
|
|
38
38
|
const inlineEditIndicatorPrimaryBackground = registerColor('inlineEdit.gutterIndicator.primaryBackground', {
|
|
39
39
|
light: transparent(inlineEditIndicatorPrimaryBorder, 0.5),
|
|
40
40
|
dark: transparent(inlineEditIndicatorPrimaryBorder, 0.4),
|
|
41
41
|
hcDark: transparent(inlineEditIndicatorPrimaryBorder, 0.4),
|
|
42
42
|
hcLight: transparent(inlineEditIndicatorPrimaryBorder, 0.5),
|
|
43
|
-
}, localize(
|
|
44
|
-
const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, localize(
|
|
45
|
-
const inlineEditIndicatorSecondaryBorder = registerColor('inlineEdit.gutterIndicator.secondaryBorder', buttonSecondaryBackground, localize(
|
|
46
|
-
const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', inlineEditIndicatorSecondaryBorder, localize(
|
|
47
|
-
const inlineEditIndicatorSuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, localize(
|
|
48
|
-
const inlineEditIndicatorSuccessfulBorder = registerColor('inlineEdit.gutterIndicator.successfulBorder', buttonBackground, localize(
|
|
49
|
-
const inlineEditIndicatorSuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', inlineEditIndicatorSuccessfulBorder, localize(
|
|
43
|
+
}, localize(1241, 'Background color for the primary inline edit gutter indicator.'));
|
|
44
|
+
const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, localize(1242, 'Foreground color for the secondary inline edit gutter indicator.'));
|
|
45
|
+
const inlineEditIndicatorSecondaryBorder = registerColor('inlineEdit.gutterIndicator.secondaryBorder', buttonSecondaryBackground, localize(1243, 'Border color for the secondary inline edit gutter indicator.'));
|
|
46
|
+
const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', inlineEditIndicatorSecondaryBorder, localize(1244, 'Background color for the secondary inline edit gutter indicator.'));
|
|
47
|
+
const inlineEditIndicatorSuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, localize(1245, 'Foreground color for the successful inline edit gutter indicator.'));
|
|
48
|
+
const inlineEditIndicatorSuccessfulBorder = registerColor('inlineEdit.gutterIndicator.successfulBorder', buttonBackground, localize(1246, 'Border color for the successful inline edit gutter indicator.'));
|
|
49
|
+
const inlineEditIndicatorSuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', inlineEditIndicatorSuccessfulBorder, localize(1247, 'Background color for the successful inline edit gutter indicator.'));
|
|
50
50
|
const inlineEditIndicatorBackground = registerColor('inlineEdit.gutterIndicator.background', {
|
|
51
51
|
hcDark: transparent('tab.inactiveBackground', 0.5),
|
|
52
52
|
hcLight: transparent('tab.inactiveBackground', 0.5),
|
|
53
53
|
dark: transparent('tab.inactiveBackground', 0.5),
|
|
54
54
|
light: '#5f5f5f18',
|
|
55
|
-
}, localize(
|
|
55
|
+
}, localize(1248, 'Background color for the inline edit gutter indicator.'));
|
|
56
56
|
// ------- BORDER COLORS -------
|
|
57
57
|
const originalBorder = registerColor('inlineEdit.originalBorder', {
|
|
58
58
|
light: diffRemoved,
|
|
59
59
|
dark: diffRemoved,
|
|
60
60
|
hcDark: diffRemoved,
|
|
61
61
|
hcLight: diffRemoved
|
|
62
|
-
}, localize(
|
|
62
|
+
}, localize(1249, 'Border color for the original text in inline edits.'));
|
|
63
63
|
const modifiedBorder = registerColor('inlineEdit.modifiedBorder', {
|
|
64
64
|
light: darken(diffInserted, 0.6),
|
|
65
65
|
dark: diffInserted,
|
|
66
66
|
hcDark: diffInserted,
|
|
67
67
|
hcLight: diffInserted
|
|
68
|
-
}, localize(
|
|
68
|
+
}, localize(1250, 'Border color for the modified text in inline edits.'));
|
|
69
69
|
const tabWillAcceptModifiedBorder = registerColor('inlineEdit.tabWillAcceptModifiedBorder', {
|
|
70
70
|
light: darken(modifiedBorder, 0),
|
|
71
71
|
dark: darken(modifiedBorder, 0),
|
|
72
72
|
hcDark: darken(modifiedBorder, 0),
|
|
73
73
|
hcLight: darken(modifiedBorder, 0)
|
|
74
|
-
}, localize(
|
|
74
|
+
}, localize(1251, 'Modified border color for the inline edits widget when tab will accept it.'));
|
|
75
75
|
const tabWillAcceptOriginalBorder = registerColor('inlineEdit.tabWillAcceptOriginalBorder', {
|
|
76
76
|
light: darken(originalBorder, 0),
|
|
77
77
|
dark: darken(originalBorder, 0),
|
|
78
78
|
hcDark: darken(originalBorder, 0),
|
|
79
79
|
hcLight: darken(originalBorder, 0)
|
|
80
|
-
}, localize(
|
|
80
|
+
}, localize(1252, 'Original border color for the inline edits widget over the original text when tab will accept it.'));
|
|
81
81
|
function getModifiedBorderColor(tabAction) {
|
|
82
82
|
return tabAction.map(a => a === InlineEditTabAction.Accept ? tabWillAcceptModifiedBorder : modifiedBorder);
|
|
83
83
|
}
|
|
@@ -12,7 +12,7 @@ class InsertFinalNewLineAction extends EditorAction {
|
|
|
12
12
|
constructor() {
|
|
13
13
|
super({
|
|
14
14
|
id: InsertFinalNewLineAction.ID,
|
|
15
|
-
label: localize2(
|
|
15
|
+
label: localize2(1255, "Insert Final New Line"),
|
|
16
16
|
precondition: EditorContextKeys.writable
|
|
17
17
|
});
|
|
18
18
|
}
|
|
@@ -11,7 +11,7 @@ class ExpandLineSelectionAction extends EditorAction {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
super({
|
|
13
13
|
id: 'expandLineSelection',
|
|
14
|
-
label: localize2(
|
|
14
|
+
label: localize2(1256, "Expand Line Selection"),
|
|
15
15
|
precondition: undefined,
|
|
16
16
|
kbOpts: {
|
|
17
17
|
weight: 0 /* KeybindingWeight.EditorCore */,
|