monaco-editor 0.55.0-dev-20251021 → 0.55.0-dev-20251023
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-NMIwoVcI.js} +58 -56
- package/dev/vs/assets/{editor.worker-Ci2aWZp5.js → editor.worker-CpHPGSaC.js} +58 -56
- package/dev/vs/assets/{html.worker-PHv_zBMJ.js → html.worker-CJwOblVk.js} +58 -56
- package/dev/vs/assets/{json.worker-Bu5ZSywK.js → json.worker---YES6JU.js} +58 -56
- package/dev/vs/assets/{ts.worker-DvEf1R_D.js → ts.worker-BxhKXBro.js} +58 -56
- package/dev/vs/basic-languages/monaco.contribution.js +18 -18
- package/dev/vs/{cssMode-Bwd5iTwO.js → cssMode-cXJ8gyKe.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-CdoClrvx.js} +2168 -1980
- package/dev/vs/{freemarker2-vzq7IT1V.js → freemarker2-D1BvxmSs.js} +1 -1
- package/dev/vs/{handlebars-voSBoDYq.js → handlebars-CHKYctoc.js} +1 -1
- package/dev/vs/{html-DgBvMxaw.js → html-DgZcKUc-.js} +1 -1
- package/dev/vs/{htmlMode-B73e0LQu.js → htmlMode-Ch7L6u-y.js} +2 -2
- package/dev/vs/{javascript-B456O1TJ.js → javascript-CWLsKmY1.js} +1 -1
- package/dev/vs/{jsonMode-0j9Sufcy.js → jsonMode-CApM0krZ.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-B6QJ6irB.js} +1 -1
- package/dev/vs/{lspLanguageFeatures-BOGx43ac.js → lspLanguageFeatures-DfUc0Lrg.js} +1 -1
- package/dev/vs/{mdx-CpdAOlbp.js → mdx-Ds_zUDEw.js} +1 -1
- package/dev/vs/{monaco.contribution-CLECD6oi.js → monaco.contribution-DESEZj1f.js} +2 -2
- package/dev/vs/{monaco.contribution-DgD6w475.js → monaco.contribution-Dc0lLkZu.js} +2 -2
- package/dev/vs/{monaco.contribution-96LxvCLa.js → monaco.contribution-umnmzgnj.js} +2 -2
- package/dev/vs/{monaco.contribution-BNV_Bhhz.js → monaco.contribution-vu4wFS0D.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-Nrpn6A1J.js} +1 -1
- package/dev/vs/{razor-C2m7Vs0-.js → razor-B2ImJE6F.js} +1 -1
- package/dev/vs/{tsMode-qQDYDzQT.js → tsMode-BhTm4uDt.js} +2 -2
- package/dev/vs/{typescript-BoBnM-0b.js → typescript-B9ux4RRE.js} +1 -1
- package/dev/vs/{workers-B1DA8fIt.js → workers-BfrkJl-T.js} +1 -1
- package/dev/vs/{xml-DmpITxBR.js → xml-C1mbK085.js} +1 -1
- package/dev/vs/{yaml-Pd4qqIOC.js → yaml-CZjv-4l5.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/browser/ui/list/listPaging.js +5 -1
- package/esm/vs/base/browser/ui/list/listView.js +4 -3
- package/esm/vs/base/common/arrays.js +11 -1
- package/esm/vs/base/common/codiconsLibrary.js +1 -0
- package/esm/vs/base/common/platform.js +1 -0
- package/esm/vs/base/common/validation.js +159 -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 +66 -56
- package/esm/vs/editor/common/model/editStack.js +1 -1
- package/esm/vs/editor/common/model/tokens/treeSitter/treeSitterSyntaxTokenBackend.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 +64 -53
- 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/model/inlineCompletionsModel.js +11 -12
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +4 -4
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +3 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +5 -5
- 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/editor/standalone/browser/standaloneTreeSitterLibraryService.js +2 -12
- 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/actions.js +1 -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/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 +19 -9
- 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 +2 -2
- 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-pjKnE9PO.js} +11 -11
- package/min/vs/assets/editor.worker-Lsh72huT.js +26 -0
- package/min/vs/assets/{html.worker-zYFVFHK_.js → html.worker-Hd4kOUqi.js} +13 -13
- package/min/vs/assets/{json.worker-BCgqF_m2.js → json.worker-DwDECz88.js} +16 -16
- package/min/vs/assets/{ts.worker-CQxe4KB6.js → ts.worker-CC3N4GQG.js} +45 -45
- package/min/vs/basic-languages/monaco.contribution.js +1 -1
- package/min/vs/{cssMode-CvaUVk1W.js → cssMode-CKacjhtz.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-tSFS3aVw.js} +163 -163
- package/min/vs/{freemarker2-B_vQOikd.js → freemarker2-C8BJNTRl.js} +1 -1
- package/min/vs/{handlebars-DqjIuZnJ.js → handlebars-BNJWbdv5.js} +1 -1
- package/min/vs/{html-DAxAlcjQ.js → html-B1iAfOh7.js} +1 -1
- package/min/vs/{htmlMode-C37mDTXf.js → htmlMode-Q5EfD3Ez.js} +1 -1
- package/min/vs/{javascript-CmHtjIt-.js → javascript-jZ-GdPfQ.js} +1 -1
- package/min/vs/{jsonMode-D1uvcOsy.js → jsonMode-B9MdKN8a.js} +2 -2
- 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-BISP2XeK.js} +1 -1
- package/min/vs/{lspLanguageFeatures-DTAub2tJ.js → lspLanguageFeatures-B2J91l4Y.js} +1 -1
- package/min/vs/{mdx-BFnE9qyd.js → mdx-D2jzxCCc.js} +1 -1
- package/min/vs/{monaco.contribution-DBV8hY3j.js → monaco.contribution-CGr0R2fk.js} +1 -1
- package/min/vs/{monaco.contribution-D4gtmCUd.js → monaco.contribution-CYn58r8E.js} +1 -1
- package/min/vs/{monaco.contribution-bCyc25XC.js → monaco.contribution-D63-Ljq8.js} +1 -1
- package/min/vs/{monaco.contribution-Ba-90VRW.js → monaco.contribution-DaT2Ac52.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-Dour27GQ.js} +1 -1
- package/min/vs/{razor-BBB6Wn5s.js → razor-DDTVtkIA.js} +1 -1
- package/min/vs/{tsMode-DYyNPclY.js → tsMode-mWcy0zc7.js} +5 -5
- package/min/vs/{typescript-AvfgkAyn.js → typescript-Cdajv1FR.js} +1 -1
- package/min/vs/{workers-DnTKLxL6.js → workers-D8PfwPU9.js} +1 -1
- package/min/vs/{xml-BVhc_vbm.js → xml-DY6dmZcI.js} +1 -1
- package/min/vs/{yaml-a9dM1cQx.js → yaml-vDETgr7p.js} +1 -1
- package/package.json +5 -5
- package/min/vs/assets/editor.worker-BvjSTWxN.js +0 -26
|
@@ -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));
|
|
@@ -1,5 +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
4
|
import { localize2, localize } from '../../../../../nls.js';
|
|
4
5
|
import { CONTEXT_ACCESSIBILITY_MODE_ENABLED } from '../../../../../platform/accessibility/common/accessibility.js';
|
|
5
6
|
import { MenuId, Action2 } from '../../../../../platform/actions/common/actions.js';
|
|
@@ -8,8 +9,9 @@ import { IConfigurationService } from '../../../../../platform/configuration/com
|
|
|
8
9
|
import { ContextKeyExpr } from '../../../../../platform/contextkey/common/contextkey.js';
|
|
9
10
|
import { KeybindingsRegistry } from '../../../../../platform/keybinding/common/keybindingsRegistry.js';
|
|
10
11
|
import { INotificationService, Severity } from '../../../../../platform/notification/common/notification.js';
|
|
11
|
-
import { EditorAction
|
|
12
|
+
import { EditorAction } from '../../../../browser/editorExtensions.js';
|
|
12
13
|
import { EditorContextKeys } from '../../../../common/editorContextKeys.js';
|
|
14
|
+
import { ILanguageFeaturesService } from '../../../../common/services/languageFeatures.js';
|
|
13
15
|
import { Context } from '../../../suggest/browser/suggest.js';
|
|
14
16
|
import { showNextInlineSuggestionActionId, showPreviousInlineSuggestionActionId, inlineSuggestCommitId, hideInlineCompletionId, toggleShowCollapsedId, jumpToNextInlineEditId } from './commandIds.js';
|
|
15
17
|
import { InlineCompletionContextKeys } from './inlineCompletionContextKeys.js';
|
|
@@ -25,7 +27,7 @@ class ShowNextInlineSuggestionAction extends EditorAction {
|
|
|
25
27
|
constructor() {
|
|
26
28
|
super({
|
|
27
29
|
id: ShowNextInlineSuggestionAction.ID,
|
|
28
|
-
label: localize2(
|
|
30
|
+
label: localize2(1182, "Show Next Inline Suggestion"),
|
|
29
31
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
30
32
|
kbOpts: {
|
|
31
33
|
weight: 100,
|
|
@@ -43,7 +45,7 @@ class ShowPreviousInlineSuggestionAction extends EditorAction {
|
|
|
43
45
|
constructor() {
|
|
44
46
|
super({
|
|
45
47
|
id: ShowPreviousInlineSuggestionAction.ID,
|
|
46
|
-
label: localize2(
|
|
48
|
+
label: localize2(1183, "Show Previous Inline Suggestion"),
|
|
47
49
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
48
50
|
kbOpts: {
|
|
49
51
|
weight: 100,
|
|
@@ -56,60 +58,69 @@ class ShowPreviousInlineSuggestionAction extends EditorAction {
|
|
|
56
58
|
controller?.model.get()?.previous();
|
|
57
59
|
}
|
|
58
60
|
}
|
|
61
|
+
const providerIdSchemaUri = 'vscode://schemas/inlineCompletionProviderIdArgs';
|
|
62
|
+
function inlineCompletionProviderGetMatcher(provider) {
|
|
63
|
+
const result = [];
|
|
64
|
+
if (provider.providerId) {
|
|
65
|
+
result.push(provider.providerId.toStringWithoutVersion());
|
|
66
|
+
result.push(provider.providerId.extensionId + ':*');
|
|
67
|
+
}
|
|
68
|
+
return result;
|
|
69
|
+
}
|
|
70
|
+
const argsValidator = vUnion(vObj({
|
|
71
|
+
showNoResultNotification: vOptionalProp(vBoolean()),
|
|
72
|
+
providerId: vOptionalProp(vWithJsonSchemaRef(providerIdSchemaUri, vString())),
|
|
73
|
+
explicit: vOptionalProp(vBoolean()),
|
|
74
|
+
}), vUndefined());
|
|
59
75
|
class TriggerInlineSuggestionAction extends EditorAction {
|
|
60
76
|
constructor() {
|
|
61
77
|
super({
|
|
62
78
|
id: 'editor.action.inlineSuggest.trigger',
|
|
63
|
-
label: localize2(
|
|
64
|
-
precondition: EditorContextKeys.writable
|
|
79
|
+
label: localize2(1184, "Trigger Inline Suggestion"),
|
|
80
|
+
precondition: EditorContextKeys.writable,
|
|
81
|
+
metadata: {
|
|
82
|
+
description: localize(1171, "Triggers an inline suggestion in the editor."),
|
|
83
|
+
args: [{
|
|
84
|
+
name: 'args',
|
|
85
|
+
description: localize(1172, "Options for triggering inline suggestions."),
|
|
86
|
+
isOptional: true,
|
|
87
|
+
schema: argsValidator.getJSONSchema(),
|
|
88
|
+
}]
|
|
89
|
+
}
|
|
65
90
|
});
|
|
66
91
|
}
|
|
67
|
-
async run(accessor, editor) {
|
|
92
|
+
async run(accessor, editor, args) {
|
|
93
|
+
const notificationService = accessor.get(INotificationService);
|
|
94
|
+
const languageFeaturesService = accessor.get(ILanguageFeaturesService);
|
|
68
95
|
const controller = InlineCompletionsController.get(editor);
|
|
96
|
+
const validatedArgs = argsValidator.validateOrThrow(args);
|
|
97
|
+
const provider = validatedArgs?.providerId ?
|
|
98
|
+
languageFeaturesService.inlineCompletionsProvider.all(editor.getModel())
|
|
99
|
+
.find(p => inlineCompletionProviderGetMatcher(p).some(m => m === validatedArgs.providerId))
|
|
100
|
+
: undefined;
|
|
69
101
|
await asyncTransaction(async (tx) => {
|
|
70
102
|
/** @description triggerExplicitly from command */
|
|
71
|
-
await controller?.model.get()?.
|
|
103
|
+
await controller?.model.get()?.trigger(tx, {
|
|
104
|
+
provider: provider,
|
|
105
|
+
explicit: validatedArgs?.explicit ?? true,
|
|
106
|
+
});
|
|
72
107
|
controller?.playAccessibilitySignal(tx);
|
|
73
108
|
});
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
});
|
|
109
|
+
if (validatedArgs?.showNoResultNotification) {
|
|
110
|
+
if (!controller?.model.get()?.state.get()) {
|
|
111
|
+
notificationService.notify({
|
|
112
|
+
severity: Severity.Info,
|
|
113
|
+
message: localize(1173, "No inline suggestion is available.")
|
|
114
|
+
});
|
|
115
|
+
}
|
|
93
116
|
}
|
|
94
117
|
}
|
|
95
118
|
}
|
|
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
119
|
class AcceptNextWordOfInlineCompletion extends EditorAction {
|
|
109
120
|
constructor() {
|
|
110
121
|
super({
|
|
111
122
|
id: 'editor.action.inlineSuggest.acceptNextWord',
|
|
112
|
-
label: localize2(
|
|
123
|
+
label: localize2(1185, "Accept Next Word Of Inline Suggestion"),
|
|
113
124
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
114
125
|
kbOpts: {
|
|
115
126
|
weight: 100 /* KeybindingWeight.EditorContrib */ + 1,
|
|
@@ -118,7 +129,7 @@ class AcceptNextWordOfInlineCompletion extends EditorAction {
|
|
|
118
129
|
},
|
|
119
130
|
menuOpts: [{
|
|
120
131
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
121
|
-
title: localize(
|
|
132
|
+
title: localize(1174, 'Accept Word'),
|
|
122
133
|
group: 'primary',
|
|
123
134
|
order: 2,
|
|
124
135
|
}],
|
|
@@ -133,14 +144,14 @@ class AcceptNextLineOfInlineCompletion extends EditorAction {
|
|
|
133
144
|
constructor() {
|
|
134
145
|
super({
|
|
135
146
|
id: 'editor.action.inlineSuggest.acceptNextLine',
|
|
136
|
-
label: localize2(
|
|
147
|
+
label: localize2(1186, "Accept Next Line Of Inline Suggestion"),
|
|
137
148
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
138
149
|
kbOpts: {
|
|
139
150
|
weight: 100 /* KeybindingWeight.EditorContrib */ + 1,
|
|
140
151
|
},
|
|
141
152
|
menuOpts: [{
|
|
142
153
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
143
|
-
title: localize(
|
|
154
|
+
title: localize(1175, 'Accept Line'),
|
|
144
155
|
group: 'secondary',
|
|
145
156
|
order: 2,
|
|
146
157
|
}],
|
|
@@ -155,16 +166,16 @@ class AcceptInlineCompletion extends EditorAction {
|
|
|
155
166
|
constructor() {
|
|
156
167
|
super({
|
|
157
168
|
id: inlineSuggestCommitId,
|
|
158
|
-
label: localize2(
|
|
169
|
+
label: localize2(1187, "Accept Inline Suggestion"),
|
|
159
170
|
precondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineSuggestionVisible, InlineCompletionContextKeys.inlineEditVisible),
|
|
160
171
|
menuOpts: [{
|
|
161
172
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
162
|
-
title: localize(
|
|
173
|
+
title: localize(1176, "Accept"),
|
|
163
174
|
group: 'primary',
|
|
164
175
|
order: 2,
|
|
165
176
|
}, {
|
|
166
177
|
menuId: MenuId.InlineEditsActions,
|
|
167
|
-
title: localize(
|
|
178
|
+
title: localize(1177, "Accept"),
|
|
168
179
|
group: 'primary',
|
|
169
180
|
order: 2,
|
|
170
181
|
}],
|
|
@@ -195,11 +206,11 @@ class JumpToNextInlineEdit extends EditorAction {
|
|
|
195
206
|
constructor() {
|
|
196
207
|
super({
|
|
197
208
|
id: jumpToNextInlineEditId,
|
|
198
|
-
label: localize2(
|
|
209
|
+
label: localize2(1188, "Jump to next inline edit"),
|
|
199
210
|
precondition: InlineCompletionContextKeys.inlineEditVisible,
|
|
200
211
|
menuOpts: [{
|
|
201
212
|
menuId: MenuId.InlineEditsActions,
|
|
202
|
-
title: localize(
|
|
213
|
+
title: localize(1178, "Jump"),
|
|
203
214
|
group: 'primary',
|
|
204
215
|
order: 1,
|
|
205
216
|
when: InlineCompletionContextKeys.cursorAtInlineEdit.toNegated(),
|
|
@@ -223,7 +234,7 @@ class HideInlineCompletion extends EditorAction {
|
|
|
223
234
|
constructor() {
|
|
224
235
|
super({
|
|
225
236
|
id: HideInlineCompletion.ID,
|
|
226
|
-
label: localize2(
|
|
237
|
+
label: localize2(1189, "Hide Inline Suggestion"),
|
|
227
238
|
precondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineSuggestionVisible, InlineCompletionContextKeys.inlineEditVisible),
|
|
228
239
|
kbOpts: {
|
|
229
240
|
weight: 100 /* KeybindingWeight.EditorContrib */ + 90, // same as hiding the suggest widget
|
|
@@ -231,7 +242,7 @@ class HideInlineCompletion extends EditorAction {
|
|
|
231
242
|
},
|
|
232
243
|
menuOpts: [{
|
|
233
244
|
menuId: MenuId.InlineEditsActions,
|
|
234
|
-
title: localize(
|
|
245
|
+
title: localize(1179, "Reject"),
|
|
235
246
|
group: 'primary',
|
|
236
247
|
order: 3,
|
|
237
248
|
}]
|
|
@@ -250,7 +261,7 @@ class ToggleInlineCompletionShowCollapsed extends EditorAction {
|
|
|
250
261
|
constructor() {
|
|
251
262
|
super({
|
|
252
263
|
id: ToggleInlineCompletionShowCollapsed.ID,
|
|
253
|
-
label: localize2(
|
|
264
|
+
label: localize2(1190, "Toggle Inline Suggestions Show Collapsed"),
|
|
254
265
|
precondition: ContextKeyExpr.true(),
|
|
255
266
|
});
|
|
256
267
|
}
|
|
@@ -272,7 +283,7 @@ class ToggleAlwaysShowInlineSuggestionToolbar extends Action2 {
|
|
|
272
283
|
constructor() {
|
|
273
284
|
super({
|
|
274
285
|
id: ToggleAlwaysShowInlineSuggestionToolbar.ID,
|
|
275
|
-
title: localize(
|
|
286
|
+
title: localize(1180, "Always Show Toolbar"),
|
|
276
287
|
f1: false,
|
|
277
288
|
precondition: undefined,
|
|
278
289
|
menu: [{
|
|
@@ -294,7 +305,7 @@ class DevExtractReproSample extends EditorAction {
|
|
|
294
305
|
constructor() {
|
|
295
306
|
super({
|
|
296
307
|
id: 'editor.action.inlineSuggest.dev.extractRepro',
|
|
297
|
-
label: localize(
|
|
308
|
+
label: localize(1181, "Developer: Extract Inline Suggest State"),
|
|
298
309
|
alias: 'Developer: Inline Suggest Extract Repro',
|
|
299
310
|
precondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineEditVisible, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
300
311
|
});
|
|
@@ -315,4 +326,4 @@ class DevExtractReproSample extends EditorAction {
|
|
|
315
326
|
}
|
|
316
327
|
}
|
|
317
328
|
|
|
318
|
-
export { AcceptInlineCompletion, AcceptNextLineOfInlineCompletion, AcceptNextWordOfInlineCompletion, DevExtractReproSample,
|
|
329
|
+
export { AcceptInlineCompletion, AcceptNextLineOfInlineCompletion, AcceptNextWordOfInlineCompletion, DevExtractReproSample, HideInlineCompletion, JumpToNextInlineEdit, ShowNextInlineSuggestionAction, ShowPreviousInlineSuggestionAction, ToggleAlwaysShowInlineSuggestionToolbar, ToggleInlineCompletionShowCollapsed, TriggerInlineSuggestionAction, inlineCompletionProviderGetMatcher, providerIdSchemaUri };
|
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(1191, "Whether an inline suggestion is visible")); }
|
|
10
|
+
static { this.inlineSuggestionHasIndentation = new RawContextKey('inlineSuggestionHasIndentation', false, localize(1192, "Whether the inline suggestion starts with whitespace")); }
|
|
11
|
+
static { this.inlineSuggestionHasIndentationLessThanTabSize = new RawContextKey('inlineSuggestionHasIndentationLessThanTabSize', true, localize(1193, "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(1194, "Whether suggestions should be suppressed for the current suggestion")); }
|
|
13
|
+
static { this.cursorBeforeGhostText = new RawContextKey('cursorBeforeGhostText', false, localize(1195, "Whether the cursor is at ghost text")); }
|
|
14
|
+
static { this.cursorInIndentation = new RawContextKey('cursorInIndentation', false, localize(1196, "Whether the cursor is in indentation")); }
|
|
15
|
+
static { this.hasSelection = new RawContextKey('editor.hasSelection', false, localize(1197, "Whether the editor has a selection")); }
|
|
16
|
+
static { this.cursorAtInlineEdit = new RawContextKey('cursorAtInlineEdit', false, localize(1198, "Whether the cursor is at an inline edit")); }
|
|
17
|
+
static { this.inlineEditVisible = new RawContextKey('inlineEditIsVisible', false, localize(1199, "Whether an inline edit is visible")); }
|
|
18
|
+
static { this.tabShouldJumpToInlineEdit = new RawContextKey('tabShouldJumpToInlineEdit', false, localize(1200, "Whether tab should jump to an inline edit.")); }
|
|
19
|
+
static { this.tabShouldAcceptInlineEdit = new RawContextKey('tabShouldAcceptInlineEdit', false, localize(1201, "Whether tab should accept the inline edit.")); }
|
|
20
|
+
static { this.inInlineEditsPreviewEditor = new RawContextKey('inInlineEditsPreviewEditor', true, localize(1202, "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(1203, "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(1204, "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(1205, 'Icon for show next parameter hint.'));
|
|
105
|
+
const inlineSuggestionHintsPreviousIcon = registerIcon('inline-suggestion-hints-previous', Codicon.chevronLeft, localize(1206, '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(1207, '{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(1208, '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(1209, '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);
|
|
@@ -672,28 +672,27 @@ let InlineCompletionsModel = class InlineCompletionsModel extends Disposable {
|
|
|
672
672
|
}
|
|
673
673
|
return availableProviders;
|
|
674
674
|
}
|
|
675
|
-
async trigger(tx, options) {
|
|
675
|
+
async trigger(tx, options = {}) {
|
|
676
676
|
subtransaction(tx, tx => {
|
|
677
|
-
if (options
|
|
677
|
+
if (options.onlyFetchInlineEdits) {
|
|
678
678
|
this._onlyRequestInlineEditsSignal.trigger(tx);
|
|
679
679
|
}
|
|
680
|
-
if (options
|
|
680
|
+
if (options.noDelay) {
|
|
681
681
|
this._noDelaySignal.trigger(tx);
|
|
682
682
|
}
|
|
683
683
|
this._isActive.set(true, tx);
|
|
684
|
+
if (options.explicit) {
|
|
685
|
+
this._inAcceptFlow.set(true, tx);
|
|
686
|
+
this._forceUpdateExplicitlySignal.trigger(tx);
|
|
687
|
+
}
|
|
688
|
+
if (options.provider) {
|
|
689
|
+
this._fetchSpecificProviderSignal.trigger(tx, options.provider);
|
|
690
|
+
}
|
|
684
691
|
});
|
|
685
692
|
await this._fetchInlineCompletionsPromise.get();
|
|
686
693
|
}
|
|
687
694
|
async triggerExplicitly(tx, onlyFetchInlineEdits = false) {
|
|
688
|
-
|
|
689
|
-
if (onlyFetchInlineEdits) {
|
|
690
|
-
this._onlyRequestInlineEditsSignal.trigger(tx);
|
|
691
|
-
}
|
|
692
|
-
this._isActive.set(true, tx);
|
|
693
|
-
this._inAcceptFlow.set(true, tx);
|
|
694
|
-
this._forceUpdateExplicitlySignal.trigger(tx);
|
|
695
|
-
});
|
|
696
|
-
await this._fetchInlineCompletionsPromise.get();
|
|
695
|
+
return this.trigger(tx, { onlyFetchInlineEdits, explicit: true });
|
|
697
696
|
}
|
|
698
697
|
stop(stopReason = 'automatic', tx) {
|
|
699
698
|
subtransaction(tx, tx => {
|
|
@@ -3,16 +3,16 @@ import { matchesSubString } from '../../../../../base/common/filters.js';
|
|
|
3
3
|
import '../../../../../base/common/observableInternal/index.js';
|
|
4
4
|
import { splitLines, commonPrefixLength, commonSuffixLength } from '../../../../../base/common/strings.js';
|
|
5
5
|
import { StringReplacement, applyEditsToRanges, StringEdit } from '../../../../common/core/edits/stringEdit.js';
|
|
6
|
-
import {
|
|
6
|
+
import { TextEdit, TextReplacement } from '../../../../common/core/edits/textEdit.js';
|
|
7
7
|
import { Range } from '../../../../common/core/range.js';
|
|
8
|
-
import {
|
|
8
|
+
import { OffsetRange } from '../../../../common/core/ranges/offsetRange.js';
|
|
9
9
|
import { StringText } from '../../../../common/core/text/abstractText.js';
|
|
10
|
+
import { getPositionOffsetTransformerFromTextModel } from '../../../../common/core/text/getPositionOffsetTransformerFromTextModel.js';
|
|
10
11
|
import { TextLength } from '../../../../common/core/text/textLength.js';
|
|
11
12
|
import { linesDiffComputers } from '../../../../common/diff/linesDiffComputers.js';
|
|
12
13
|
import { InlineCompletionTriggerKind } from '../../../../common/languages.js';
|
|
13
14
|
import { TextModelText } from '../../../../common/model/textModelText.js';
|
|
14
15
|
import { singleTextRemoveCommonPrefix } from './singleTextEditHelpers.js';
|
|
15
|
-
import { getPositionOffsetTransformerFromTextModel } from '../../../../common/core/text/getPositionOffsetTransformerFromTextModel.js';
|
|
16
16
|
import { observableSignal } from '../../../../../base/common/observableInternal/observables/observableSignal.js';
|
|
17
17
|
|
|
18
18
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -235,7 +235,7 @@ class InlineEditItem extends InlineSuggestionItemBase {
|
|
|
235
235
|
const offsetEdit = getStringEdit(textModel, data.range, data.insertText);
|
|
236
236
|
const text = new TextModelText(textModel);
|
|
237
237
|
const textEdit = TextEdit.fromStringEdit(offsetEdit, text);
|
|
238
|
-
const singleTextEdit = textEdit.toReplacement(text);
|
|
238
|
+
const singleTextEdit = offsetEdit.isEmpty() ? new TextReplacement(new Range(1, 1, 1, 1), '') : textEdit.toReplacement(text); // FIXME: .toReplacement() can throw because offsetEdit is empty because we get an empty diff in getStringEdit after diffing
|
|
239
239
|
const identity = new InlineSuggestionIdentity();
|
|
240
240
|
const edits = offsetEdit.replacements.map(edit => {
|
|
241
241
|
const replacedRange = Range.fromPositions(textModel.getPositionAt(edit.replaceRange.start), textModel.getPositionAt(edit.replaceRange.endExclusive));
|
|
@@ -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(1210, "Go To")} / ${localize(1211, "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(1212, "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(1213, "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(1214, "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(1215, "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(1216, "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/inlineEditWithChanges.js
CHANGED
|
@@ -7,6 +7,9 @@ import { LineRange } from '../../../../../common/core/ranges/lineRange.js';
|
|
|
7
7
|
*--------------------------------------------------------------------------------------------*/
|
|
8
8
|
class InlineEditWithChanges {
|
|
9
9
|
get lineEdit() {
|
|
10
|
+
if (this.edit.replacements.length === 0) {
|
|
11
|
+
return new LineReplacement(new LineRange(1, 1), []);
|
|
12
|
+
}
|
|
10
13
|
return LineReplacement.fromSingleTextEdit(this.edit.toReplacement(this.originalText), this.originalText);
|
|
11
14
|
}
|
|
12
15
|
get originalLineRange() { return this.lineEdit.lineRange; }
|
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(1217, "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;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { $ } from '../../../../../../base/browser/dom.js';
|
|
1
2
|
import { equalsIfDefined, itemEquals } from '../../../../../../base/common/equals.js';
|
|
2
3
|
import { BugIndicatingError } from '../../../../../../base/common/errors.js';
|
|
3
4
|
import { Event } from '../../../../../../base/common/event.js';
|
|
@@ -5,9 +6,9 @@ import { Disposable } from '../../../../../../base/common/lifecycle.js';
|
|
|
5
6
|
import '../../../../../../base/common/observableInternal/index.js';
|
|
6
7
|
import { IInstantiationService } from '../../../../../../platform/instantiation/common/instantiation.js';
|
|
7
8
|
import { observableCodeEditor } from '../../../../../browser/observableCodeEditor.js';
|
|
8
|
-
import { LineRange } from '../../../../../common/core/ranges/lineRange.js';
|
|
9
|
-
import { Range } from '../../../../../common/core/range.js';
|
|
10
9
|
import { TextReplacement } from '../../../../../common/core/edits/textEdit.js';
|
|
10
|
+
import { Range } from '../../../../../common/core/range.js';
|
|
11
|
+
import { LineRange } from '../../../../../common/core/ranges/lineRange.js';
|
|
11
12
|
import { StringText } from '../../../../../common/core/text/abstractText.js';
|
|
12
13
|
import { TextLength } from '../../../../../common/core/text/textLength.js';
|
|
13
14
|
import { RangeMapping, lineRangeMappingFromRangeMappings } from '../../../../../common/diff/rangeMapping.js';
|
|
@@ -25,7 +26,6 @@ import { InlineEditsWordReplacementView } from './inlineEditsViews/inlineEditsWo
|
|
|
25
26
|
import { OriginalEditorInlineDiffView } from './inlineEditsViews/originalEditorInlineDiffView.js';
|
|
26
27
|
import { createReindentEdit, applyEditToModifiedRangeMappings } from './utils/utils.js';
|
|
27
28
|
import './view.css';
|
|
28
|
-
import { $ } from '../../../../../../base/browser/dom.js';
|
|
29
29
|
import { derived, derivedOpts } from '../../../../../../base/common/observableInternal/observables/derived.js';
|
|
30
30
|
import { observableValue } from '../../../../../../base/common/observableInternal/observables/observableValue.js';
|
|
31
31
|
import { mapObservableArrayCached } from '../../../../../../base/common/observableInternal/utils/utils.js';
|
|
@@ -336,9 +336,9 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
336
336
|
modified: newText.getValueOfRange(m.modifiedRange)
|
|
337
337
|
}));
|
|
338
338
|
const cursorPosition = inlineEdit.cursorPosition;
|
|
339
|
-
const startsWithEOL = stringChanges[0].modified.startsWith(textModel.getEOL());
|
|
339
|
+
const startsWithEOL = stringChanges.length === 0 ? false : stringChanges[0].modified.startsWith(textModel.getEOL());
|
|
340
340
|
const viewData = {
|
|
341
|
-
cursorColumnDistance: inlineEdit.edit.replacements[0].range.getStartPosition().column - cursorPosition.column,
|
|
341
|
+
cursorColumnDistance: inlineEdit.edit.replacements.length === 0 ? 0 : inlineEdit.edit.replacements[0].range.getStartPosition().column - cursorPosition.column,
|
|
342
342
|
cursorLineDistance: inlineEdit.lineEdit.lineRange.startLineNumber - cursorPosition.lineNumber + (startsWithEOL && inlineEdit.lineEdit.lineRange.startLineNumber >= cursorPosition.lineNumber ? 1 : 0),
|
|
343
343
|
lineCountOriginal: inlineEdit.lineEdit.lineRange.length,
|
|
344
344
|
lineCountModified: inlineEdit.lineEdit.newLines.length,
|