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
|
@@ -83,7 +83,7 @@ let InlayHintsHover = class InlayHintsHover extends MarkdownHoverParticipant {
|
|
|
83
83
|
}
|
|
84
84
|
// (1.2) Inlay dbl-click gesture
|
|
85
85
|
if (isNonEmptyArray(part.item.hint.textEdits)) {
|
|
86
|
-
executor.emitOne(new MarkdownHover(this, anchor.range, [new MarkdownString().appendText(localize(
|
|
86
|
+
executor.emitOne(new MarkdownHover(this, anchor.range, [new MarkdownString().appendText(localize(1163, "Double-click to insert"))], false, 10001));
|
|
87
87
|
}
|
|
88
88
|
// (2) Inlay Label Part Tooltip
|
|
89
89
|
let partTooltip;
|
|
@@ -102,19 +102,19 @@ let InlayHintsHover = class InlayHintsHover extends MarkdownHoverParticipant {
|
|
|
102
102
|
const useMetaKey = this._editor.getOption(86 /* EditorOption.multiCursorModifier */) === 'altKey';
|
|
103
103
|
const kb = useMetaKey
|
|
104
104
|
? isMacintosh
|
|
105
|
-
? localize(
|
|
106
|
-
: localize(
|
|
105
|
+
? localize(1164, "cmd + click")
|
|
106
|
+
: localize(1165, "ctrl + click")
|
|
107
107
|
: isMacintosh
|
|
108
|
-
? localize(
|
|
109
|
-
: localize(
|
|
108
|
+
? localize(1166, "option + click")
|
|
109
|
+
: localize(1167, "alt + click");
|
|
110
110
|
if (part.part.location && part.part.command) {
|
|
111
|
-
linkHint = new MarkdownString().appendText(localize(
|
|
111
|
+
linkHint = new MarkdownString().appendText(localize(1168, 'Go to Definition ({0}), right click for more', kb));
|
|
112
112
|
}
|
|
113
113
|
else if (part.part.location) {
|
|
114
|
-
linkHint = new MarkdownString().appendText(localize(
|
|
114
|
+
linkHint = new MarkdownString().appendText(localize(1169, 'Go to Definition ({0})', kb));
|
|
115
115
|
}
|
|
116
116
|
else if (part.part.command) {
|
|
117
|
-
linkHint = new MarkdownString(`[${localize(
|
|
117
|
+
linkHint = new MarkdownString(`[${localize(1170, "Execute Command")}](${asCommandLink(part.part.command)} "${part.part.command.title}") (${kb})`, { isTrusted: true });
|
|
118
118
|
}
|
|
119
119
|
if (linkHint) {
|
|
120
120
|
executor.emitOne(new MarkdownHover(this, anchor.range, [linkHint], false, 10000));
|
|
@@ -7,8 +7,7 @@ import { IClipboardService } from '../../../../../platform/clipboard/common/clip
|
|
|
7
7
|
import { IConfigurationService } from '../../../../../platform/configuration/common/configuration.js';
|
|
8
8
|
import { ContextKeyExpr } from '../../../../../platform/contextkey/common/contextkey.js';
|
|
9
9
|
import { KeybindingsRegistry } from '../../../../../platform/keybinding/common/keybindingsRegistry.js';
|
|
10
|
-
import {
|
|
11
|
-
import { EditorAction, EditorCommand } from '../../../../browser/editorExtensions.js';
|
|
10
|
+
import { EditorAction } from '../../../../browser/editorExtensions.js';
|
|
12
11
|
import { EditorContextKeys } from '../../../../common/editorContextKeys.js';
|
|
13
12
|
import { Context } from '../../../suggest/browser/suggest.js';
|
|
14
13
|
import { showNextInlineSuggestionActionId, showPreviousInlineSuggestionActionId, inlineSuggestCommitId, hideInlineCompletionId, toggleShowCollapsedId, jumpToNextInlineEditId } from './commandIds.js';
|
|
@@ -25,7 +24,7 @@ class ShowNextInlineSuggestionAction extends EditorAction {
|
|
|
25
24
|
constructor() {
|
|
26
25
|
super({
|
|
27
26
|
id: ShowNextInlineSuggestionAction.ID,
|
|
28
|
-
label: localize2(
|
|
27
|
+
label: localize2(1179, "Show Next Inline Suggestion"),
|
|
29
28
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
30
29
|
kbOpts: {
|
|
31
30
|
weight: 100,
|
|
@@ -43,7 +42,7 @@ class ShowPreviousInlineSuggestionAction extends EditorAction {
|
|
|
43
42
|
constructor() {
|
|
44
43
|
super({
|
|
45
44
|
id: ShowPreviousInlineSuggestionAction.ID,
|
|
46
|
-
label: localize2(
|
|
45
|
+
label: localize2(1180, "Show Previous Inline Suggestion"),
|
|
47
46
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
48
47
|
kbOpts: {
|
|
49
48
|
weight: 100,
|
|
@@ -60,7 +59,7 @@ class TriggerInlineSuggestionAction extends EditorAction {
|
|
|
60
59
|
constructor() {
|
|
61
60
|
super({
|
|
62
61
|
id: 'editor.action.inlineSuggest.trigger',
|
|
63
|
-
label: localize2(
|
|
62
|
+
label: localize2(1181, "Trigger Inline Suggestion"),
|
|
64
63
|
precondition: EditorContextKeys.writable
|
|
65
64
|
});
|
|
66
65
|
}
|
|
@@ -73,43 +72,11 @@ class TriggerInlineSuggestionAction extends EditorAction {
|
|
|
73
72
|
});
|
|
74
73
|
}
|
|
75
74
|
}
|
|
76
|
-
class ExplicitTriggerInlineEditAction extends EditorAction {
|
|
77
|
-
constructor() {
|
|
78
|
-
super({
|
|
79
|
-
id: 'editor.action.inlineSuggest.triggerInlineEditExplicit',
|
|
80
|
-
label: localize2(1178, "Trigger Next Edit Suggestion"),
|
|
81
|
-
precondition: EditorContextKeys.writable,
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
async run(accessor, editor) {
|
|
85
|
-
const notificationService = accessor.get(INotificationService);
|
|
86
|
-
const controller = InlineCompletionsController.get(editor);
|
|
87
|
-
await controller?.model.get()?.triggerExplicitly(undefined, true);
|
|
88
|
-
if (!controller?.model.get()?.inlineEditAvailable.get()) {
|
|
89
|
-
notificationService.notify({
|
|
90
|
-
severity: Severity.Info,
|
|
91
|
-
message: localize(1166, "No inline edit is available.")
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
class TriggerInlineEditAction extends EditorCommand {
|
|
97
|
-
constructor() {
|
|
98
|
-
super({
|
|
99
|
-
id: 'editor.action.inlineSuggest.triggerInlineEdit',
|
|
100
|
-
precondition: EditorContextKeys.writable,
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
async runEditorCommand(accessor, editor, args) {
|
|
104
|
-
const controller = InlineCompletionsController.get(editor);
|
|
105
|
-
await controller?.model.get()?.trigger(undefined, { onlyFetchInlineEdits: true });
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
75
|
class AcceptNextWordOfInlineCompletion extends EditorAction {
|
|
109
76
|
constructor() {
|
|
110
77
|
super({
|
|
111
78
|
id: 'editor.action.inlineSuggest.acceptNextWord',
|
|
112
|
-
label: localize2(
|
|
79
|
+
label: localize2(1182, "Accept Next Word Of Inline Suggestion"),
|
|
113
80
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
114
81
|
kbOpts: {
|
|
115
82
|
weight: 100 /* KeybindingWeight.EditorContrib */ + 1,
|
|
@@ -118,7 +85,7 @@ class AcceptNextWordOfInlineCompletion extends EditorAction {
|
|
|
118
85
|
},
|
|
119
86
|
menuOpts: [{
|
|
120
87
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
121
|
-
title: localize(
|
|
88
|
+
title: localize(1171, 'Accept Word'),
|
|
122
89
|
group: 'primary',
|
|
123
90
|
order: 2,
|
|
124
91
|
}],
|
|
@@ -133,14 +100,14 @@ class AcceptNextLineOfInlineCompletion extends EditorAction {
|
|
|
133
100
|
constructor() {
|
|
134
101
|
super({
|
|
135
102
|
id: 'editor.action.inlineSuggest.acceptNextLine',
|
|
136
|
-
label: localize2(
|
|
103
|
+
label: localize2(1183, "Accept Next Line Of Inline Suggestion"),
|
|
137
104
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
138
105
|
kbOpts: {
|
|
139
106
|
weight: 100 /* KeybindingWeight.EditorContrib */ + 1,
|
|
140
107
|
},
|
|
141
108
|
menuOpts: [{
|
|
142
109
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
143
|
-
title: localize(
|
|
110
|
+
title: localize(1172, 'Accept Line'),
|
|
144
111
|
group: 'secondary',
|
|
145
112
|
order: 2,
|
|
146
113
|
}],
|
|
@@ -155,16 +122,16 @@ class AcceptInlineCompletion extends EditorAction {
|
|
|
155
122
|
constructor() {
|
|
156
123
|
super({
|
|
157
124
|
id: inlineSuggestCommitId,
|
|
158
|
-
label: localize2(
|
|
125
|
+
label: localize2(1184, "Accept Inline Suggestion"),
|
|
159
126
|
precondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineSuggestionVisible, InlineCompletionContextKeys.inlineEditVisible),
|
|
160
127
|
menuOpts: [{
|
|
161
128
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
162
|
-
title: localize(
|
|
129
|
+
title: localize(1173, "Accept"),
|
|
163
130
|
group: 'primary',
|
|
164
131
|
order: 2,
|
|
165
132
|
}, {
|
|
166
133
|
menuId: MenuId.InlineEditsActions,
|
|
167
|
-
title: localize(
|
|
134
|
+
title: localize(1174, "Accept"),
|
|
168
135
|
group: 'primary',
|
|
169
136
|
order: 2,
|
|
170
137
|
}],
|
|
@@ -195,11 +162,11 @@ class JumpToNextInlineEdit extends EditorAction {
|
|
|
195
162
|
constructor() {
|
|
196
163
|
super({
|
|
197
164
|
id: jumpToNextInlineEditId,
|
|
198
|
-
label: localize2(
|
|
165
|
+
label: localize2(1185, "Jump to next inline edit"),
|
|
199
166
|
precondition: InlineCompletionContextKeys.inlineEditVisible,
|
|
200
167
|
menuOpts: [{
|
|
201
168
|
menuId: MenuId.InlineEditsActions,
|
|
202
|
-
title: localize(
|
|
169
|
+
title: localize(1175, "Jump"),
|
|
203
170
|
group: 'primary',
|
|
204
171
|
order: 1,
|
|
205
172
|
when: InlineCompletionContextKeys.cursorAtInlineEdit.toNegated(),
|
|
@@ -223,7 +190,7 @@ class HideInlineCompletion extends EditorAction {
|
|
|
223
190
|
constructor() {
|
|
224
191
|
super({
|
|
225
192
|
id: HideInlineCompletion.ID,
|
|
226
|
-
label: localize2(
|
|
193
|
+
label: localize2(1186, "Hide Inline Suggestion"),
|
|
227
194
|
precondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineSuggestionVisible, InlineCompletionContextKeys.inlineEditVisible),
|
|
228
195
|
kbOpts: {
|
|
229
196
|
weight: 100 /* KeybindingWeight.EditorContrib */ + 90, // same as hiding the suggest widget
|
|
@@ -231,7 +198,7 @@ class HideInlineCompletion extends EditorAction {
|
|
|
231
198
|
},
|
|
232
199
|
menuOpts: [{
|
|
233
200
|
menuId: MenuId.InlineEditsActions,
|
|
234
|
-
title: localize(
|
|
201
|
+
title: localize(1176, "Reject"),
|
|
235
202
|
group: 'primary',
|
|
236
203
|
order: 3,
|
|
237
204
|
}]
|
|
@@ -250,7 +217,7 @@ class ToggleInlineCompletionShowCollapsed extends EditorAction {
|
|
|
250
217
|
constructor() {
|
|
251
218
|
super({
|
|
252
219
|
id: ToggleInlineCompletionShowCollapsed.ID,
|
|
253
|
-
label: localize2(
|
|
220
|
+
label: localize2(1187, "Toggle Inline Suggestions Show Collapsed"),
|
|
254
221
|
precondition: ContextKeyExpr.true(),
|
|
255
222
|
});
|
|
256
223
|
}
|
|
@@ -272,7 +239,7 @@ class ToggleAlwaysShowInlineSuggestionToolbar extends Action2 {
|
|
|
272
239
|
constructor() {
|
|
273
240
|
super({
|
|
274
241
|
id: ToggleAlwaysShowInlineSuggestionToolbar.ID,
|
|
275
|
-
title: localize(
|
|
242
|
+
title: localize(1177, "Always Show Toolbar"),
|
|
276
243
|
f1: false,
|
|
277
244
|
precondition: undefined,
|
|
278
245
|
menu: [{
|
|
@@ -294,7 +261,7 @@ class DevExtractReproSample extends EditorAction {
|
|
|
294
261
|
constructor() {
|
|
295
262
|
super({
|
|
296
263
|
id: 'editor.action.inlineSuggest.dev.extractRepro',
|
|
297
|
-
label: localize(
|
|
264
|
+
label: localize(1178, "Developer: Extract Inline Suggest State"),
|
|
298
265
|
alias: 'Developer: Inline Suggest Extract Repro',
|
|
299
266
|
precondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineEditVisible, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
300
267
|
});
|
|
@@ -315,4 +282,4 @@ class DevExtractReproSample extends EditorAction {
|
|
|
315
282
|
}
|
|
316
283
|
}
|
|
317
284
|
|
|
318
|
-
export { AcceptInlineCompletion, AcceptNextLineOfInlineCompletion, AcceptNextWordOfInlineCompletion, DevExtractReproSample,
|
|
285
|
+
export { AcceptInlineCompletion, AcceptNextLineOfInlineCompletion, AcceptNextWordOfInlineCompletion, DevExtractReproSample, HideInlineCompletion, JumpToNextInlineEdit, ShowNextInlineSuggestionAction, ShowPreviousInlineSuggestionAction, ToggleAlwaysShowInlineSuggestionToolbar, ToggleInlineCompletionShowCollapsed, TriggerInlineSuggestionAction };
|
package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js
CHANGED
|
@@ -6,18 +6,18 @@ 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.inlineSuggestionHasIndentation = new RawContextKey('inlineSuggestionHasIndentation', false, localize(
|
|
11
|
-
static { this.inlineSuggestionHasIndentationLessThanTabSize = new RawContextKey('inlineSuggestionHasIndentationLessThanTabSize', true, localize(
|
|
12
|
-
static { this.suppressSuggestions = new RawContextKey('inlineSuggestionSuppressSuggestions', undefined, localize(
|
|
13
|
-
static { this.cursorBeforeGhostText = new RawContextKey('cursorBeforeGhostText', false, localize(
|
|
14
|
-
static { this.cursorInIndentation = new RawContextKey('cursorInIndentation', false, localize(
|
|
15
|
-
static { this.hasSelection = new RawContextKey('editor.hasSelection', false, localize(
|
|
16
|
-
static { this.cursorAtInlineEdit = new RawContextKey('cursorAtInlineEdit', false, localize(
|
|
17
|
-
static { this.inlineEditVisible = new RawContextKey('inlineEditIsVisible', false, localize(
|
|
18
|
-
static { this.tabShouldJumpToInlineEdit = new RawContextKey('tabShouldJumpToInlineEdit', false, localize(
|
|
19
|
-
static { this.tabShouldAcceptInlineEdit = new RawContextKey('tabShouldAcceptInlineEdit', false, localize(
|
|
20
|
-
static { this.inInlineEditsPreviewEditor = new RawContextKey('inInlineEditsPreviewEditor', true, localize(
|
|
9
|
+
static { this.inlineSuggestionVisible = new RawContextKey('inlineSuggestionVisible', false, localize(1188, "Whether an inline suggestion is visible")); }
|
|
10
|
+
static { this.inlineSuggestionHasIndentation = new RawContextKey('inlineSuggestionHasIndentation', false, localize(1189, "Whether the inline suggestion starts with whitespace")); }
|
|
11
|
+
static { this.inlineSuggestionHasIndentationLessThanTabSize = new RawContextKey('inlineSuggestionHasIndentationLessThanTabSize', true, localize(1190, "Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab")); }
|
|
12
|
+
static { this.suppressSuggestions = new RawContextKey('inlineSuggestionSuppressSuggestions', undefined, localize(1191, "Whether suggestions should be suppressed for the current suggestion")); }
|
|
13
|
+
static { this.cursorBeforeGhostText = new RawContextKey('cursorBeforeGhostText', false, localize(1192, "Whether the cursor is at ghost text")); }
|
|
14
|
+
static { this.cursorInIndentation = new RawContextKey('cursorInIndentation', false, localize(1193, "Whether the cursor is in indentation")); }
|
|
15
|
+
static { this.hasSelection = new RawContextKey('editor.hasSelection', false, localize(1194, "Whether the editor has a selection")); }
|
|
16
|
+
static { this.cursorAtInlineEdit = new RawContextKey('cursorAtInlineEdit', false, localize(1195, "Whether the cursor is at an inline edit")); }
|
|
17
|
+
static { this.inlineEditVisible = new RawContextKey('inlineEditIsVisible', false, localize(1196, "Whether an inline edit is visible")); }
|
|
18
|
+
static { this.tabShouldJumpToInlineEdit = new RawContextKey('tabShouldJumpToInlineEdit', false, localize(1197, "Whether tab should jump to an inline edit.")); }
|
|
19
|
+
static { this.tabShouldAcceptInlineEdit = new RawContextKey('tabShouldAcceptInlineEdit', false, localize(1198, "Whether tab should accept the inline edit.")); }
|
|
20
|
+
static { this.inInlineEditsPreviewEditor = new RawContextKey('inInlineEditsPreviewEditor', true, localize(1199, "Whether the current code editor is showing an inline edits preview")); }
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export { InlineCompletionContextKeys };
|
package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js
CHANGED
|
@@ -373,7 +373,7 @@ let InlineCompletionsController = class InlineCompletionsController extends Disp
|
|
|
373
373
|
const accessibleViewKeybinding = this._keybindingService.lookupKeybinding('editor.action.accessibleView');
|
|
374
374
|
let hint;
|
|
375
375
|
if (!accessibleViewShowing && accessibleViewKeybinding && this.editor.getOption(169 /* EditorOption.inlineCompletionsAccessibilityVerbose */)) {
|
|
376
|
-
hint = localize(
|
|
376
|
+
hint = localize(1200, "Inspect this in the accessible view ({0})", accessibleViewKeybinding.getAriaLabel());
|
|
377
377
|
}
|
|
378
378
|
alert(hint ? content + ', ' + hint : content);
|
|
379
379
|
}
|
|
@@ -123,7 +123,7 @@ let InlineCompletionsHoverParticipant = class InlineCompletionsHoverParticipant
|
|
|
123
123
|
const markdownHoverElement = $$1('div.hover-row.markdown-hover');
|
|
124
124
|
const hoverContentsElement = append(markdownHoverElement, $$1('div.hover-contents', { ['aria-live']: 'assertive' }));
|
|
125
125
|
const render = (code) => {
|
|
126
|
-
const inlineSuggestionAvailable = localize(
|
|
126
|
+
const inlineSuggestionAvailable = localize(1201, "Suggestion:");
|
|
127
127
|
const renderedContents = disposables.add(this._markdownRendererService.render(new MarkdownString().appendText(inlineSuggestionAvailable).appendCodeblock('text', code), {
|
|
128
128
|
context: this._editor,
|
|
129
129
|
asyncRenderCallback: () => {
|
package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js
CHANGED
|
@@ -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(1202, 'Icon for show next parameter hint.'));
|
|
105
|
+
const inlineSuggestionHintsPreviousIcon = registerIcon('inline-suggestion-hints-previous', Codicon.chevronLeft, localize(1203, '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); }
|
|
@@ -114,7 +114,7 @@ let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidge
|
|
|
114
114
|
const kb = this.keybindingService.lookupKeybinding(commandId, this._contextKeyService);
|
|
115
115
|
let tooltip = label;
|
|
116
116
|
if (kb) {
|
|
117
|
-
tooltip = localize(
|
|
117
|
+
tooltip = localize(1204, '{0} ({1})', label, kb.getLabel());
|
|
118
118
|
}
|
|
119
119
|
action.tooltip = tooltip;
|
|
120
120
|
return action;
|
|
@@ -162,9 +162,9 @@ let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidge
|
|
|
162
162
|
this._warningMessageNode.element,
|
|
163
163
|
h('div@toolBar'),
|
|
164
164
|
]);
|
|
165
|
-
this.previousAction = this._register(this.createCommandAction(showPreviousInlineSuggestionActionId, localize(
|
|
165
|
+
this.previousAction = this._register(this.createCommandAction(showPreviousInlineSuggestionActionId, localize(1205, 'Previous'), ThemeIcon.asClassName(inlineSuggestionHintsPreviousIcon)));
|
|
166
166
|
this.availableSuggestionCountAction = this._register(new Action('inlineSuggestionHints.availableSuggestionCount', '', undefined, false));
|
|
167
|
-
this.nextAction = this._register(this.createCommandAction(showNextInlineSuggestionActionId, localize(
|
|
167
|
+
this.nextAction = this._register(this.createCommandAction(showNextInlineSuggestionActionId, localize(1206, 'Next'), ThemeIcon.asClassName(inlineSuggestionHintsNextIcon)));
|
|
168
168
|
this.inlineCompletionsActionsMenus = this._register(this._menuService.createMenu(MenuId.InlineCompletionsActions, this._contextKeyService));
|
|
169
169
|
this.clearAvailableSuggestionCountLabelDebounced = this._register(new RunOnceScheduler(() => {
|
|
170
170
|
this.availableSuggestionCountAction.label = '';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AccessibleViewRegistry } from '../../../../platform/accessibility/browser/accessibleViewRegistry.js';
|
|
2
2
|
import { registerAction2 } from '../../../../platform/actions/common/actions.js';
|
|
3
3
|
import { wrapInHotClass1 } from '../../../../platform/observable/common/wrapInHotClass.js';
|
|
4
|
-
import { registerEditorContribution, registerEditorAction
|
|
4
|
+
import { registerEditorContribution, registerEditorAction } from '../../../browser/editorExtensions.js';
|
|
5
5
|
import { HoverParticipantRegistry } from '../../hover/browser/hoverTypes.js';
|
|
6
|
-
import { TriggerInlineSuggestionAction,
|
|
6
|
+
import { TriggerInlineSuggestionAction, ShowNextInlineSuggestionAction, ShowPreviousInlineSuggestionAction, AcceptNextWordOfInlineCompletion, AcceptNextLineOfInlineCompletion, AcceptInlineCompletion, ToggleInlineCompletionShowCollapsed, HideInlineCompletion, JumpToNextInlineEdit, ToggleAlwaysShowInlineSuggestionToolbar, DevExtractReproSample } from './controller/commands.js';
|
|
7
7
|
import { InlineCompletionsController } from './controller/inlineCompletionsController.js';
|
|
8
8
|
import { InlineCompletionsHoverParticipant } from './hintsWidget/hoverParticipant.js';
|
|
9
9
|
import { InlineCompletionsAccessibleView } from './inlineCompletionsAccessibleView.js';
|
|
@@ -15,8 +15,6 @@ import { SnoozeInlineCompletion, CancelSnoozeInlineCompletion } from '../../../b
|
|
|
15
15
|
*--------------------------------------------------------------------------------------------*/
|
|
16
16
|
registerEditorContribution(InlineCompletionsController.ID, wrapInHotClass1(InlineCompletionsController.hot), 3 /* EditorContributionInstantiation.Eventually */);
|
|
17
17
|
registerEditorAction(TriggerInlineSuggestionAction);
|
|
18
|
-
registerEditorAction(ExplicitTriggerInlineEditAction);
|
|
19
|
-
registerEditorCommand(new TriggerInlineEditAction());
|
|
20
18
|
registerEditorAction(ShowNextInlineSuggestionAction);
|
|
21
19
|
registerEditorAction(ShowPreviousInlineSuggestionAction);
|
|
22
20
|
registerEditorAction(AcceptNextWordOfInlineCompletion);
|
|
@@ -78,13 +78,13 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
|
|
|
78
78
|
const title = header(this._model.displayName);
|
|
79
79
|
const gotoAndAccept = option(createOptionArgs({
|
|
80
80
|
id: 'gotoAndAccept',
|
|
81
|
-
title: `${localize(
|
|
81
|
+
title: `${localize(1207, "Go To")} / ${localize(1208, "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(1209, "Reject"),
|
|
88
88
|
icon: Codicon.close,
|
|
89
89
|
commandId: hideInlineCompletionId
|
|
90
90
|
}));
|
|
@@ -98,25 +98,25 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
|
|
|
98
98
|
const toggleCollapsedMode = this._inlineEditsShowCollapsed.map(showCollapsed => showCollapsed ?
|
|
99
99
|
option(createOptionArgs({
|
|
100
100
|
id: 'showExpanded',
|
|
101
|
-
title: localize(
|
|
101
|
+
title: localize(1210, "Show Expanded"),
|
|
102
102
|
icon: Codicon.expandAll,
|
|
103
103
|
commandId: toggleShowCollapsedId
|
|
104
104
|
}))
|
|
105
105
|
: option(createOptionArgs({
|
|
106
106
|
id: 'showCollapsed',
|
|
107
|
-
title: localize(
|
|
107
|
+
title: localize(1211, "Show Collapsed"),
|
|
108
108
|
icon: Codicon.collapseAll,
|
|
109
109
|
commandId: toggleShowCollapsedId
|
|
110
110
|
})));
|
|
111
111
|
const snooze = option(createOptionArgs({
|
|
112
112
|
id: 'snooze',
|
|
113
|
-
title: localize(
|
|
113
|
+
title: localize(1212, "Snooze"),
|
|
114
114
|
icon: Codicon.bellSlash,
|
|
115
115
|
commandId: 'editor.action.inlineSuggest.snooze'
|
|
116
116
|
}));
|
|
117
117
|
const settings = option(createOptionArgs({
|
|
118
118
|
id: 'settings',
|
|
119
|
-
title: localize(
|
|
119
|
+
title: localize(1213, "Settings"),
|
|
120
120
|
icon: Codicon.gear,
|
|
121
121
|
commandId: 'workbench.action.openSettings',
|
|
122
122
|
commandArgs: ['@tag:nextEditSuggestions']
|
package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js
CHANGED
|
@@ -17,7 +17,7 @@ class InlineEditModel {
|
|
|
17
17
|
this.inlineEdit = inlineEdit;
|
|
18
18
|
this.tabAction = tabAction;
|
|
19
19
|
this.action = this.inlineEdit.inlineCompletion.action;
|
|
20
|
-
this.displayName = this.inlineEdit.inlineCompletion.source.provider.displayName ?? localize(
|
|
20
|
+
this.displayName = this.inlineEdit.inlineCompletion.source.provider.displayName ?? localize(1214, "Inline Edit");
|
|
21
21
|
this.extensionCommands = this.inlineEdit.inlineCompletion.source.inlineSuggestions.commands ?? [];
|
|
22
22
|
this.isInDiffEditor = this._model.isInDiffEditor;
|
|
23
23
|
this.displayLocation = this.inlineEdit.inlineCompletion.displayLocation;
|
|
@@ -19,63 +19,63 @@ import { observableFromEventOpts } from '../../../../../../base/common/observabl
|
|
|
19
19
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
20
20
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
21
21
|
*--------------------------------------------------------------------------------------------*/
|
|
22
|
-
const originalBackgroundColor = registerColor('inlineEdit.originalBackground', transparent(diffRemoved, 0.2), localize(
|
|
23
|
-
const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', transparent(diffInserted, 0.3), localize(
|
|
24
|
-
registerColor('inlineEdit.originalChangedLineBackground', transparent(diffRemoved, 0.8), localize(
|
|
25
|
-
const originalChangedTextOverlayColor = registerColor('inlineEdit.originalChangedTextBackground', transparent(diffRemoved, 0.8), localize(
|
|
22
|
+
const originalBackgroundColor = registerColor('inlineEdit.originalBackground', transparent(diffRemoved, 0.2), localize(1215, 'Background color for the original text in inline edits.'), true);
|
|
23
|
+
const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', transparent(diffInserted, 0.3), localize(1216, 'Background color for the modified text in inline edits.'), true);
|
|
24
|
+
registerColor('inlineEdit.originalChangedLineBackground', transparent(diffRemoved, 0.8), localize(1217, 'Background color for the changed lines in the original text of inline edits.'), true);
|
|
25
|
+
const originalChangedTextOverlayColor = registerColor('inlineEdit.originalChangedTextBackground', transparent(diffRemoved, 0.8), localize(1218, 'Overlay color for the changed text in the original text of inline edits.'), true);
|
|
26
26
|
const modifiedChangedLineBackgroundColor = registerColor('inlineEdit.modifiedChangedLineBackground', {
|
|
27
27
|
light: transparent(diffInsertedLine, 0.7),
|
|
28
28
|
dark: transparent(diffInsertedLine, 0.7),
|
|
29
29
|
hcDark: diffInsertedLine,
|
|
30
30
|
hcLight: diffInsertedLine
|
|
31
|
-
}, localize(
|
|
32
|
-
const modifiedChangedTextOverlayColor = registerColor('inlineEdit.modifiedChangedTextBackground', transparent(diffInserted, 0.7), localize(
|
|
31
|
+
}, localize(1219, 'Background color for the changed lines in the modified text of inline edits.'), true);
|
|
32
|
+
const modifiedChangedTextOverlayColor = registerColor('inlineEdit.modifiedChangedTextBackground', transparent(diffInserted, 0.7), localize(1220, 'Overlay color for the changed text in the modified text of inline edits.'), true);
|
|
33
33
|
// ------- GUTTER INDICATOR -------
|
|
34
|
-
const inlineEditIndicatorPrimaryForeground = registerColor('inlineEdit.gutterIndicator.primaryForeground', buttonForeground, localize(
|
|
35
|
-
const inlineEditIndicatorPrimaryBorder = registerColor('inlineEdit.gutterIndicator.primaryBorder', buttonBackground, localize(
|
|
34
|
+
const inlineEditIndicatorPrimaryForeground = registerColor('inlineEdit.gutterIndicator.primaryForeground', buttonForeground, localize(1221, 'Foreground color for the primary inline edit gutter indicator.'));
|
|
35
|
+
const inlineEditIndicatorPrimaryBorder = registerColor('inlineEdit.gutterIndicator.primaryBorder', buttonBackground, localize(1222, 'Border color for the primary inline edit gutter indicator.'));
|
|
36
36
|
const inlineEditIndicatorPrimaryBackground = registerColor('inlineEdit.gutterIndicator.primaryBackground', {
|
|
37
37
|
light: transparent(inlineEditIndicatorPrimaryBorder, 0.5),
|
|
38
38
|
dark: transparent(inlineEditIndicatorPrimaryBorder, 0.4),
|
|
39
39
|
hcDark: transparent(inlineEditIndicatorPrimaryBorder, 0.4),
|
|
40
40
|
hcLight: transparent(inlineEditIndicatorPrimaryBorder, 0.5),
|
|
41
|
-
}, localize(
|
|
42
|
-
const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, localize(
|
|
43
|
-
const inlineEditIndicatorSecondaryBorder = registerColor('inlineEdit.gutterIndicator.secondaryBorder', buttonSecondaryBackground, localize(
|
|
44
|
-
const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', inlineEditIndicatorSecondaryBorder, localize(
|
|
45
|
-
const inlineEditIndicatorsuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, localize(
|
|
46
|
-
const inlineEditIndicatorsuccessfulBorder = registerColor('inlineEdit.gutterIndicator.successfulBorder', buttonBackground, localize(
|
|
47
|
-
const inlineEditIndicatorsuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', inlineEditIndicatorsuccessfulBorder, localize(
|
|
41
|
+
}, localize(1223, 'Background color for the primary inline edit gutter indicator.'));
|
|
42
|
+
const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, localize(1224, 'Foreground color for the secondary inline edit gutter indicator.'));
|
|
43
|
+
const inlineEditIndicatorSecondaryBorder = registerColor('inlineEdit.gutterIndicator.secondaryBorder', buttonSecondaryBackground, localize(1225, 'Border color for the secondary inline edit gutter indicator.'));
|
|
44
|
+
const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', inlineEditIndicatorSecondaryBorder, localize(1226, 'Background color for the secondary inline edit gutter indicator.'));
|
|
45
|
+
const inlineEditIndicatorsuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, localize(1227, 'Foreground color for the successful inline edit gutter indicator.'));
|
|
46
|
+
const inlineEditIndicatorsuccessfulBorder = registerColor('inlineEdit.gutterIndicator.successfulBorder', buttonBackground, localize(1228, 'Border color for the successful inline edit gutter indicator.'));
|
|
47
|
+
const inlineEditIndicatorsuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', inlineEditIndicatorsuccessfulBorder, localize(1229, 'Background color for the successful inline edit gutter indicator.'));
|
|
48
48
|
const inlineEditIndicatorBackground = registerColor('inlineEdit.gutterIndicator.background', {
|
|
49
49
|
hcDark: transparent('tab.inactiveBackground', 0.5),
|
|
50
50
|
hcLight: transparent('tab.inactiveBackground', 0.5),
|
|
51
51
|
dark: transparent('tab.inactiveBackground', 0.5),
|
|
52
52
|
light: '#5f5f5f18',
|
|
53
|
-
}, localize(
|
|
53
|
+
}, localize(1230, 'Background color for the inline edit gutter indicator.'));
|
|
54
54
|
// ------- BORDER COLORS -------
|
|
55
55
|
const originalBorder = registerColor('inlineEdit.originalBorder', {
|
|
56
56
|
light: diffRemoved,
|
|
57
57
|
dark: diffRemoved,
|
|
58
58
|
hcDark: diffRemoved,
|
|
59
59
|
hcLight: diffRemoved
|
|
60
|
-
}, localize(
|
|
60
|
+
}, localize(1231, 'Border color for the original text in inline edits.'));
|
|
61
61
|
const modifiedBorder = registerColor('inlineEdit.modifiedBorder', {
|
|
62
62
|
light: darken(diffInserted, 0.6),
|
|
63
63
|
dark: diffInserted,
|
|
64
64
|
hcDark: diffInserted,
|
|
65
65
|
hcLight: diffInserted
|
|
66
|
-
}, localize(
|
|
66
|
+
}, localize(1232, 'Border color for the modified text in inline edits.'));
|
|
67
67
|
const tabWillAcceptModifiedBorder = registerColor('inlineEdit.tabWillAcceptModifiedBorder', {
|
|
68
68
|
light: darken(modifiedBorder, 0),
|
|
69
69
|
dark: darken(modifiedBorder, 0),
|
|
70
70
|
hcDark: darken(modifiedBorder, 0),
|
|
71
71
|
hcLight: darken(modifiedBorder, 0)
|
|
72
|
-
}, localize(
|
|
72
|
+
}, localize(1233, 'Modified border color for the inline edits widget when tab will accept it.'));
|
|
73
73
|
const tabWillAcceptOriginalBorder = registerColor('inlineEdit.tabWillAcceptOriginalBorder', {
|
|
74
74
|
light: darken(originalBorder, 0),
|
|
75
75
|
dark: darken(originalBorder, 0),
|
|
76
76
|
hcDark: darken(originalBorder, 0),
|
|
77
77
|
hcLight: darken(originalBorder, 0)
|
|
78
|
-
}, localize(
|
|
78
|
+
}, localize(1234, 'Original border color for the inline edits widget over the original text when tab will accept it.'));
|
|
79
79
|
function getModifiedBorderColor(tabAction) {
|
|
80
80
|
return tabAction.map(a => a === InlineEditTabAction.Accept ? tabWillAcceptModifiedBorder : modifiedBorder);
|
|
81
81
|
}
|
|
@@ -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(1237, "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(1238, "Expand Line Selection"),
|
|
15
15
|
precondition: undefined,
|
|
16
16
|
kbOpts: {
|
|
17
17
|
weight: 0 /* KeybindingWeight.EditorCore */,
|