monaco-editor-core 0.54.0-dev-20250909 → 0.54.0-dev-20250911
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/esm/nls.keys.json +1 -1
- package/esm/nls.messages.de.js +2 -2
- package/esm/nls.messages.es.js +2 -2
- package/esm/nls.messages.fr.js +2 -2
- package/esm/nls.messages.it.js +2 -2
- package/esm/nls.messages.ja.js +2 -2
- package/esm/nls.messages.js +1 -1
- package/esm/nls.messages.json +1 -1
- package/esm/nls.messages.ko.js +2 -2
- package/esm/nls.messages.ru.js +2 -2
- package/esm/nls.messages.zh-cn.js +2 -2
- package/esm/nls.messages.zh-tw.js +2 -2
- package/esm/nls.metadata.json +8 -4
- package/esm/vs/base/browser/domSanitize.js +32 -21
- package/esm/vs/base/browser/domSanitize.js.map +1 -1
- package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/esm/vs/base/common/async.js +0 -173
- package/esm/vs/base/common/async.js.map +1 -1
- package/esm/vs/base/common/codiconsLibrary.js +2 -0
- package/esm/vs/base/common/codiconsLibrary.js.map +1 -1
- package/esm/vs/base/common/fuzzyScorer.js +6 -3
- package/esm/vs/base/common/fuzzyScorer.js.map +1 -1
- package/esm/vs/base/common/strings.js +0 -3
- package/esm/vs/base/common/strings.js.map +1 -1
- package/esm/vs/editor/browser/config/editorConfiguration.js +1 -1
- package/esm/vs/editor/browser/controller/dragScrolling.js +4 -4
- package/esm/vs/editor/browser/controller/editContext/native/nativeEditContext.js +3 -3
- package/esm/vs/editor/browser/controller/editContext/native/screenReaderContentRich.js +3 -3
- package/esm/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +6 -6
- package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +9 -9
- package/esm/vs/editor/browser/controller/mouseHandler.js +6 -6
- package/esm/vs/editor/browser/controller/mouseTarget.js +3 -3
- package/esm/vs/editor/browser/coreCommands.js +2 -2
- package/esm/vs/editor/browser/gpu/rectangleRenderer.js +1 -1
- package/esm/vs/editor/browser/gpu/viewGpuContext.js +1 -1
- package/esm/vs/editor/browser/observableCodeEditor.js +1 -1
- package/esm/vs/editor/browser/services/hoverService/hover.css +1 -1
- package/esm/vs/editor/browser/view/viewController.js +2 -2
- package/esm/vs/editor/browser/view/viewLayer.js +1 -1
- package/esm/vs/editor/browser/view/viewOverlays.js +4 -4
- package/esm/vs/editor/browser/view.js +5 -5
- package/esm/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +1 -1
- package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +3 -3
- package/esm/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +6 -6
- package/esm/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +8 -8
- package/esm/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +2 -2
- package/esm/vs/editor/browser/viewParts/indentGuides/indentGuides.js +2 -2
- package/esm/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +2 -2
- package/esm/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +2 -2
- package/esm/vs/editor/browser/viewParts/margin/margin.js +2 -2
- package/esm/vs/editor/browser/viewParts/minimap/minimap.js +5 -5
- package/esm/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +2 -2
- package/esm/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +4 -4
- package/esm/vs/editor/browser/viewParts/overviewRuler/overviewRuler.js +3 -3
- package/esm/vs/editor/browser/viewParts/rulers/rulers.js +2 -2
- package/esm/vs/editor/browser/viewParts/rulersGpu/rulersGpu.js +1 -1
- package/esm/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js +3 -3
- package/esm/vs/editor/browser/viewParts/selections/selections.js +2 -2
- package/esm/vs/editor/browser/viewParts/viewCursors/viewCursor.js +2 -2
- package/esm/vs/editor/browser/viewParts/viewCursors/viewCursors.js +6 -6
- package/esm/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +4 -4
- package/esm/vs/editor/browser/viewParts/viewLines/viewLines.js +11 -11
- package/esm/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +1 -1
- package/esm/vs/editor/browser/viewParts/viewZones/viewZones.js +2 -2
- package/esm/vs/editor/browser/viewParts/whitespace/whitespace.js +4 -4
- package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +12 -12
- package/esm/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +4 -4
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +3 -3
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +2 -2
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +2 -2
- package/esm/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -1
- package/esm/vs/editor/common/config/editorOptions.js +155 -154
- package/esm/vs/editor/common/config/editorOptions.js.map +1 -1
- package/esm/vs/editor/common/core/editorColorRegistry.js +68 -68
- package/esm/vs/editor/common/cursorCommon.js +19 -19
- 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/standalone/standaloneEnums.js +86 -85
- package/esm/vs/editor/common/standalone/standaloneEnums.js.map +1 -1
- package/esm/vs/editor/common/standaloneStrings.js +10 -10
- package/esm/vs/editor/common/viewLayout/viewLayout.js +15 -15
- package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/esm/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +1 -1
- package/esm/vs/editor/common/viewModel/viewModelImpl.js +14 -14
- 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 +20 -20
- 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/codeActionModel.js +1 -1
- 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/colorDetector.js +3 -3
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerContribution.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +2 -2
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerParticipant.js +1 -1
- package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +12 -12
- 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 +12 -12
- 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 +17 -17
- package/esm/vs/editor/contrib/find/browser/findModel.js +6 -6
- package/esm/vs/editor/contrib/find/browser/findWidget.js +32 -32
- package/esm/vs/editor/contrib/folding/browser/folding.js +23 -23
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js.map +1 -1
- 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/clickLinkGesture.js +21 -11
- package/esm/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js.map +1 -1
- package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +2 -2
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +4 -4
- 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 +10 -10
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +6 -6
- 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/inlayHintsController.js +5 -5
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +11 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js.map +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/model/inlineCompletionsModel.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +5 -5
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +20 -15
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js.map +1 -1
- 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/inlineCompletions/browser/view/inlineEdits/view.css +13 -4
- 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 +32 -32
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +4 -4
- package/esm/vs/editor/contrib/links/browser/links.js +11 -11
- package/esm/vs/editor/contrib/links/browser/links.js.map +1 -1
- package/esm/vs/editor/contrib/longLinesHelper/browser/longLinesHelper.js +1 -1
- package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/esm/vs/editor/contrib/middleScroll/browser/middleScrollController.js +1 -1
- package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +36 -36
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsModel.js +3 -3
- 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/placeholderText/browser/placeholderTextContribution.js +1 -1
- package/esm/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.js.map +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +3 -3
- 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 +5 -5
- package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetSession.js +2 -2
- 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/stickyScroll/browser/stickyScrollController.js +17 -24
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js.map +1 -1
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +1 -1
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +12 -3
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js.map +1 -1
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +5 -5
- package/esm/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +14 -14
- package/esm/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/suggestModel.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +23 -23
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +5 -5
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +5 -5
- package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +3 -3
- package/esm/vs/editor/contrib/suggest/browser/wordDistance.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 +27 -27
- package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +9 -9
- package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +7 -7
- package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +4 -4
- package/esm/vs/editor/editor.api.d.ts +93 -85
- package/esm/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js +1 -1
- package/esm/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +1 -1
- package/esm/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js.map +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 +6 -6
- package/esm/vs/platform/actionWidget/browser/actionList.js.map +1 -1
- package/esm/vs/platform/actionWidget/browser/actionWidget.css +11 -12
- 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 +8 -9
- package/esm/vs/platform/contextkey/common/contextkeys.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInput.js +10 -2
- package/esm/vs/platform/quickinput/browser/quickInput.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputActions.js +42 -8
- package/esm/vs/platform/quickinput/browser/quickInputActions.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputController.js +6 -64
- package/esm/vs/platform/quickinput/browser/quickInputController.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/esm/vs/platform/quickinput/common/quickInput.js.map +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/monaco.d.ts +93 -85
- package/package.json +2 -2
- package/version.txt +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.ts","vs/editor/standalone/browser/quickInput/standaloneQuickInputService.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;AAEhG,OAAO,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAEzD,OAAO,EAAmC,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAEnH,OAAO,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAElF,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAC1F,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAC;AACjG,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,qBAAq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AC;IAED,OAAO;QACN,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;;AAGF,0BAA0B,CAAC,4BAA4B,CAAC,EAAE,EAAE,4BAA4B,+CAAuC,CAAC","file":"standaloneQuickInputService.js","sourceRoot":"file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport './standaloneQuickInput.css';\nimport { Event } from '../../../../base/common/event.js';\nimport { ICodeEditor, IOverlayWidget, IOverlayWidgetPosition, OverlayWidgetPositionPreference } from '../../../browser/editorBrowser.js';\nimport { EditorContributionInstantiation, registerEditorContribution } from '../../../browser/editorExtensions.js';\nimport { IEditorContribution } from '../../../common/editorCommon.js';\nimport { IThemeService } from '../../../../platform/theme/common/themeService.js';\nimport { IQuickInputService, IQuickPickItem, IQuickPick, IInputBox, IPickOptions, QuickPickInput, IInputOptions } from '../../../../platform/quickinput/common/quickInput.js';\nimport { CancellationToken } from '../../../../base/common/cancellation.js';\nimport { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';\nimport { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';\nimport { EditorScopedLayoutService } from '../standaloneLayoutService.js';\nimport { ICodeEditorService } from '../../../browser/services/codeEditorService.js';\nimport { QuickInputController, IQuickInputControllerHost } from '../../../../platform/quickinput/browser/quickInputController.js';\nimport { QuickInputService } from '../../../../platform/quickinput/browser/quickInputService.js';\nimport { createSingleCallFunction } from '../../../../base/common/functional.js';\nimport { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';\n\nclass EditorScopedQuickInputService extends QuickInputService {\n\n\tprivate host: IQuickInputControllerHost | undefined = undefined;\n\n\tconstructor(\n\t\teditor: ICodeEditor,\n\t\t@IInstantiationService instantiationService: IInstantiationService,\n\t\t@IContextKeyService contextKeyService: IContextKeyService,\n\t\t@IThemeService themeService: IThemeService,\n\t\t@ICodeEditorService codeEditorService: ICodeEditorService,\n\t\t@IConfigurationService configurationService: IConfigurationService,\n\t) {\n\t\tsuper(\n\t\t\tinstantiationService,\n\t\t\tcontextKeyService,\n\t\t\tthemeService,\n\t\t\tnew EditorScopedLayoutService(editor.getContainerDomNode(), codeEditorService),\n\t\t\tconfigurationService,\n\t\t);\n\n\t\t// Use the passed in code editor as host for the quick input widget\n\t\tconst contribution = QuickInputEditorContribution.get(editor);\n\t\tif (contribution) {\n\t\t\tconst widget = contribution.widget;\n\t\t\tthis.host = {\n\t\t\t\t_serviceBrand: undefined,\n\t\t\t\tget mainContainer() { return widget.getDomNode(); },\n\t\t\t\tgetContainer() { return widget.getDomNode(); },\n\t\t\t\twhenContainerStylesLoaded() { return undefined; },\n\t\t\t\tget containers() { return [widget.getDomNode()]; },\n\t\t\t\tget activeContainer() { return widget.getDomNode(); },\n\t\t\t\tget mainContainerDimension() { return editor.getLayoutInfo(); },\n\t\t\t\tget activeContainerDimension() { return editor.getLayoutInfo(); },\n\t\t\t\tget onDidLayoutMainContainer() { return editor.onDidLayoutChange; },\n\t\t\t\tget onDidLayoutActiveContainer() { return editor.onDidLayoutChange; },\n\t\t\t\tget onDidLayoutContainer() { return Event.map(editor.onDidLayoutChange, dimension => ({ container: widget.getDomNode(), dimension })); },\n\t\t\t\tget onDidChangeActiveContainer() { return Event.None; },\n\t\t\t\tget onDidAddContainer() { return Event.None; },\n\t\t\t\tget mainContainerOffset() { return { top: 0, quickPickTop: 0 }; },\n\t\t\t\tget activeContainerOffset() { return { top: 0, quickPickTop: 0 }; },\n\t\t\t\tfocus: () => editor.focus()\n\t\t\t};\n\t\t} else {\n\t\t\tthis.host = undefined;\n\t\t}\n\t}\n\n\tprotected override createController(): QuickInputController {\n\t\treturn super.createController(this.host);\n\t}\n}\n\nexport class StandaloneQuickInputService implements IQuickInputService {\n\n\tdeclare readonly _serviceBrand: undefined;\n\n\tprivate mapEditorToService = new Map<ICodeEditor, EditorScopedQuickInputService>();\n\tprivate get activeService(): IQuickInputService {\n\t\tconst editor = this.codeEditorService.getFocusedCodeEditor();\n\t\tif (!editor) {\n\t\t\tthrow new Error('Quick input service needs a focused editor to work.');\n\t\t}\n\n\t\t// Find the quick input implementation for the focused\n\t\t// editor or create it lazily if not yet created\n\t\tlet quickInputService = this.mapEditorToService.get(editor);\n\t\tif (!quickInputService) {\n\t\t\tconst newQuickInputService = quickInputService = this.instantiationService.createInstance(EditorScopedQuickInputService, editor);\n\t\t\tthis.mapEditorToService.set(editor, quickInputService);\n\n\t\t\tcreateSingleCallFunction(editor.onDidDispose)(() => {\n\t\t\t\tnewQuickInputService.dispose();\n\t\t\t\tthis.mapEditorToService.delete(editor);\n\t\t\t});\n\t\t}\n\n\t\treturn quickInputService;\n\t}\n\n\tget currentQuickInput() { return this.activeService.currentQuickInput; }\n\tget quickAccess() { return this.activeService.quickAccess; }\n\n\tconstructor(\n\t\t@IInstantiationService private readonly instantiationService: IInstantiationService,\n\t\t@ICodeEditorService private readonly codeEditorService: ICodeEditorService\n\t) {\n\t}\n\n\tpick<T extends IQuickPickItem, O extends IPickOptions<T>>(picks: Promise<QuickPickInput<T>[]> | QuickPickInput<T>[], options?: O, token: CancellationToken = CancellationToken.None): Promise<(O extends { canPickMany: true } ? T[] : T) | undefined> {\n\t\treturn (this.activeService as unknown as QuickInputController /* TS fail */).pick(picks, options, token);\n\t}\n\n\tinput(options?: IInputOptions | undefined, token?: CancellationToken | undefined): Promise<string | undefined> {\n\t\treturn this.activeService.input(options, token);\n\t}\n\n\tcreateQuickPick<T extends IQuickPickItem>(options: { useSeparators: true }): IQuickPick<T, { useSeparators: true }>;\n\tcreateQuickPick<T extends IQuickPickItem>(options?: { useSeparators: boolean }): IQuickPick<T, { useSeparators: false }>;\n\tcreateQuickPick<T extends IQuickPickItem>(options: { useSeparators: boolean } = { useSeparators: false }): IQuickPick<T, { useSeparators: boolean }> {\n\t\treturn this.activeService.createQuickPick(options);\n\t}\n\n\tcreateInputBox(): IInputBox {\n\t\treturn this.activeService.createInputBox();\n\t}\n\n\ttoggleHover(): void {\n\t\treturn this.activeService.toggleHover();\n\t}\n}\n\nexport class QuickInputEditorContribution implements IEditorContribution {\n\n\tstatic readonly ID = 'editor.controller.quickInput';\n\n\tstatic get(editor: ICodeEditor): QuickInputEditorContribution | null {\n\t\treturn editor.getContribution<QuickInputEditorContribution>(QuickInputEditorContribution.ID);\n\t}\n\n\treadonly widget: QuickInputEditorWidget;\n\n\tconstructor(private editor: ICodeEditor) {\n\t\tthis.widget = new QuickInputEditorWidget(this.editor);\n\t}\n\n\tdispose(): void {\n\t\tthis.widget.dispose();\n\t}\n}\n\nexport class QuickInputEditorWidget implements IOverlayWidget {\n\n\tprivate static readonly ID = 'editor.contrib.quickInputWidget';\n\n\tprivate domNode: HTMLElement;\n\n\tconstructor(private codeEditor: ICodeEditor) {\n\t\tthis.domNode = document.createElement('div');\n\n\t\tthis.codeEditor.addOverlayWidget(this);\n\t}\n\n\tgetId(): string {\n\t\treturn QuickInputEditorWidget.ID;\n\t}\n\n\tgetDomNode(): HTMLElement {\n\t\treturn this.domNode;\n\t}\n\n\tgetPosition(): IOverlayWidgetPosition | null {\n\t\treturn { preference: OverlayWidgetPositionPreference.TOP_CENTER };\n\t}\n\n\tdispose(): void {\n\t\tthis.codeEditor.removeOverlayWidget(this);\n\t}\n}\n\nregisterEditorContribution(QuickInputEditorContribution.ID, QuickInputEditorContribution, EditorContributionInstantiation.Lazy);\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport './standaloneQuickInput.css';\nimport { Event } from '../../../../base/common/event.js';\nimport { ICodeEditor, IOverlayWidget, IOverlayWidgetPosition, OverlayWidgetPositionPreference } from '../../../browser/editorBrowser.js';\nimport { EditorContributionInstantiation, registerEditorContribution } from '../../../browser/editorExtensions.js';\nimport { IEditorContribution } from '../../../common/editorCommon.js';\nimport { IThemeService } from '../../../../platform/theme/common/themeService.js';\nimport { IQuickInputService, IQuickPickItem, IQuickPick, IInputBox, IPickOptions, QuickPickInput, IInputOptions } from '../../../../platform/quickinput/common/quickInput.js';\nimport { CancellationToken } from '../../../../base/common/cancellation.js';\nimport { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';\nimport { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';\nimport { EditorScopedLayoutService } from '../standaloneLayoutService.js';\nimport { ICodeEditorService } from '../../../browser/services/codeEditorService.js';\nimport { QuickInputController, IQuickInputControllerHost } from '../../../../platform/quickinput/browser/quickInputController.js';\nimport { QuickInputService } from '../../../../platform/quickinput/browser/quickInputService.js';\nimport { createSingleCallFunction } from '../../../../base/common/functional.js';\nimport { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';\n\nclass EditorScopedQuickInputService extends QuickInputService {\n\n\tprivate host: IQuickInputControllerHost | undefined = undefined;\n\n\tconstructor(\n\t\teditor: ICodeEditor,\n\t\t@IInstantiationService instantiationService: IInstantiationService,\n\t\t@IContextKeyService contextKeyService: IContextKeyService,\n\t\t@IThemeService themeService: IThemeService,\n\t\t@ICodeEditorService codeEditorService: ICodeEditorService,\n\t\t@IConfigurationService configurationService: IConfigurationService,\n\t) {\n\t\tsuper(\n\t\t\tinstantiationService,\n\t\t\tcontextKeyService,\n\t\t\tthemeService,\n\t\t\tnew EditorScopedLayoutService(editor.getContainerDomNode(), codeEditorService),\n\t\t\tconfigurationService,\n\t\t);\n\n\t\t// Use the passed in code editor as host for the quick input widget\n\t\tconst contribution = QuickInputEditorContribution.get(editor);\n\t\tif (contribution) {\n\t\t\tconst widget = contribution.widget;\n\t\t\tthis.host = {\n\t\t\t\t_serviceBrand: undefined,\n\t\t\t\tget mainContainer() { return widget.getDomNode(); },\n\t\t\t\tgetContainer() { return widget.getDomNode(); },\n\t\t\t\twhenContainerStylesLoaded() { return undefined; },\n\t\t\t\tget containers() { return [widget.getDomNode()]; },\n\t\t\t\tget activeContainer() { return widget.getDomNode(); },\n\t\t\t\tget mainContainerDimension() { return editor.getLayoutInfo(); },\n\t\t\t\tget activeContainerDimension() { return editor.getLayoutInfo(); },\n\t\t\t\tget onDidLayoutMainContainer() { return editor.onDidLayoutChange; },\n\t\t\t\tget onDidLayoutActiveContainer() { return editor.onDidLayoutChange; },\n\t\t\t\tget onDidLayoutContainer() { return Event.map(editor.onDidLayoutChange, dimension => ({ container: widget.getDomNode(), dimension })); },\n\t\t\t\tget onDidChangeActiveContainer() { return Event.None; },\n\t\t\t\tget onDidAddContainer() { return Event.None; },\n\t\t\t\tget mainContainerOffset() { return { top: 0, quickPickTop: 0 }; },\n\t\t\t\tget activeContainerOffset() { return { top: 0, quickPickTop: 0 }; },\n\t\t\t\tfocus: () => editor.focus()\n\t\t\t};\n\t\t} else {\n\t\t\tthis.host = undefined;\n\t\t}\n\t}\n\n\tprotected override createController(): QuickInputController {\n\t\treturn super.createController(this.host);\n\t}\n}\n\nexport class StandaloneQuickInputService implements IQuickInputService {\n\n\tdeclare readonly _serviceBrand: undefined;\n\n\tprivate mapEditorToService = new Map<ICodeEditor, EditorScopedQuickInputService>();\n\tprivate get activeService(): IQuickInputService {\n\t\tconst editor = this.codeEditorService.getFocusedCodeEditor();\n\t\tif (!editor) {\n\t\t\tthrow new Error('Quick input service needs a focused editor to work.');\n\t\t}\n\n\t\t// Find the quick input implementation for the focused\n\t\t// editor or create it lazily if not yet created\n\t\tlet quickInputService = this.mapEditorToService.get(editor);\n\t\tif (!quickInputService) {\n\t\t\tconst newQuickInputService = quickInputService = this.instantiationService.createInstance(EditorScopedQuickInputService, editor);\n\t\t\tthis.mapEditorToService.set(editor, quickInputService);\n\n\t\t\tcreateSingleCallFunction(editor.onDidDispose)(() => {\n\t\t\t\tnewQuickInputService.dispose();\n\t\t\t\tthis.mapEditorToService.delete(editor);\n\t\t\t});\n\t\t}\n\n\t\treturn quickInputService;\n\t}\n\n\tget currentQuickInput() { return this.activeService.currentQuickInput; }\n\tget quickAccess() { return this.activeService.quickAccess; }\n\n\tconstructor(\n\t\t@IInstantiationService private readonly instantiationService: IInstantiationService,\n\t\t@ICodeEditorService private readonly codeEditorService: ICodeEditorService\n\t) {\n\t}\n\n\tpick<T extends IQuickPickItem, O extends IPickOptions<T>>(picks: Promise<QuickPickInput<T>[]> | QuickPickInput<T>[], options?: O, token: CancellationToken = CancellationToken.None): Promise<(O extends { canPickMany: true } ? T[] : T) | undefined> {\n\t\treturn (this.activeService as unknown as QuickInputController /* TS fail */).pick(picks, options, token);\n\t}\n\n\tinput(options?: IInputOptions | undefined, token?: CancellationToken | undefined): Promise<string | undefined> {\n\t\treturn this.activeService.input(options, token);\n\t}\n\n\tcreateQuickPick<T extends IQuickPickItem>(options: { useSeparators: true }): IQuickPick<T, { useSeparators: true }>;\n\tcreateQuickPick<T extends IQuickPickItem>(options?: { useSeparators: boolean }): IQuickPick<T, { useSeparators: false }>;\n\tcreateQuickPick<T extends IQuickPickItem>(options: { useSeparators: boolean } = { useSeparators: false }): IQuickPick<T, { useSeparators: boolean }> {\n\t\treturn this.activeService.createQuickPick(options);\n\t}\n\n\tcreateInputBox(): IInputBox {\n\t\treturn this.activeService.createInputBox();\n\t}\n\n\ttoggleHover(): void {\n\t\treturn this.activeService.toggleHover();\n\t}\n}\n\nexport class QuickInputEditorContribution implements IEditorContribution {\n\n\tstatic readonly ID = 'editor.controller.quickInput';\n\n\tstatic get(editor: ICodeEditor): QuickInputEditorContribution | null {\n\t\treturn editor.getContribution<QuickInputEditorContribution>(QuickInputEditorContribution.ID);\n\t}\n\n\treadonly widget: QuickInputEditorWidget;\n\n\tconstructor(private editor: ICodeEditor) {\n\t\tthis.widget = new QuickInputEditorWidget(this.editor);\n\t}\n\n\tdispose(): void {\n\t\tthis.widget.dispose();\n\t}\n}\n\nexport class QuickInputEditorWidget implements IOverlayWidget {\n\n\tprivate static readonly ID = 'editor.contrib.quickInputWidget';\n\n\tprivate domNode: HTMLElement;\n\n\tconstructor(private codeEditor: ICodeEditor) {\n\t\tthis.domNode = document.createElement('div');\n\n\t\tthis.codeEditor.addOverlayWidget(this);\n\t}\n\n\tgetId(): string {\n\t\treturn QuickInputEditorWidget.ID;\n\t}\n\n\tgetDomNode(): HTMLElement {\n\t\treturn this.domNode;\n\t}\n\n\tgetPosition(): IOverlayWidgetPosition | null {\n\t\treturn { preference: OverlayWidgetPositionPreference.TOP_CENTER };\n\t}\n\n\tdispose(): void {\n\t\tthis.codeEditor.removeOverlayWidget(this);\n\t}\n}\n\nregisterEditorContribution(QuickInputEditorContribution.ID, QuickInputEditorContribution, EditorContributionInstantiation.Lazy);\n"]}
|
|
1
|
+
{"version":3,"sources":["file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.ts","vs/editor/standalone/browser/quickInput/standaloneQuickInputService.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;AAEhG,OAAO,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAEzD,OAAO,EAAmC,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAEnH,OAAO,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAElF,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAC1F,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAC;AACjG,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,M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AI,EAAE,CAAC,EAAE,EAAE,CAAC;IAC5C,CAAC;IAED,OAAO;QACN,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;;AAGF,0BAA0B,CAAC,4BAA4B,CAAC,EAAE,EAAE,4BAA4B,+CAAuC,CAAC","file":"standaloneQuickInputService.js","sourceRoot":"file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport './standaloneQuickInput.css';\nimport { Event } from '../../../../base/common/event.js';\nimport { ICodeEditor, IOverlayWidget, IOverlayWidgetPosition } from '../../../browser/editorBrowser.js';\nimport { EditorContributionInstantiation, registerEditorContribution } from '../../../browser/editorExtensions.js';\nimport { IEditorContribution } from '../../../common/editorCommon.js';\nimport { IThemeService } from '../../../../platform/theme/common/themeService.js';\nimport { IQuickInputService, IQuickPickItem, IQuickPick, IInputBox, IPickOptions, QuickPickInput, IInputOptions } from '../../../../platform/quickinput/common/quickInput.js';\nimport { CancellationToken } from '../../../../base/common/cancellation.js';\nimport { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';\nimport { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';\nimport { EditorScopedLayoutService } from '../standaloneLayoutService.js';\nimport { ICodeEditorService } from '../../../browser/services/codeEditorService.js';\nimport { QuickInputController, IQuickInputControllerHost } from '../../../../platform/quickinput/browser/quickInputController.js';\nimport { QuickInputService } from '../../../../platform/quickinput/browser/quickInputService.js';\nimport { createSingleCallFunction } from '../../../../base/common/functional.js';\nimport { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';\n\nclass EditorScopedQuickInputService extends QuickInputService {\n\n\tprivate host: IQuickInputControllerHost | undefined = undefined;\n\n\tconstructor(\n\t\teditor: ICodeEditor,\n\t\t@IInstantiationService instantiationService: IInstantiationService,\n\t\t@IContextKeyService contextKeyService: IContextKeyService,\n\t\t@IThemeService themeService: IThemeService,\n\t\t@ICodeEditorService codeEditorService: ICodeEditorService,\n\t\t@IConfigurationService configurationService: IConfigurationService,\n\t) {\n\t\tsuper(\n\t\t\tinstantiationService,\n\t\t\tcontextKeyService,\n\t\t\tthemeService,\n\t\t\tnew EditorScopedLayoutService(editor.getContainerDomNode(), codeEditorService),\n\t\t\tconfigurationService,\n\t\t);\n\n\t\t// Use the passed in code editor as host for the quick input widget\n\t\tconst contribution = QuickInputEditorContribution.get(editor);\n\t\tif (contribution) {\n\t\t\tconst widget = contribution.widget;\n\t\t\tthis.host = {\n\t\t\t\t_serviceBrand: undefined,\n\t\t\t\tget mainContainer() { return widget.getDomNode(); },\n\t\t\t\tgetContainer() { return widget.getDomNode(); },\n\t\t\t\twhenContainerStylesLoaded() { return undefined; },\n\t\t\t\tget containers() { return [widget.getDomNode()]; },\n\t\t\t\tget activeContainer() { return widget.getDomNode(); },\n\t\t\t\tget mainContainerDimension() { return editor.getLayoutInfo(); },\n\t\t\t\tget activeContainerDimension() { return editor.getLayoutInfo(); },\n\t\t\t\tget onDidLayoutMainContainer() { return editor.onDidLayoutChange; },\n\t\t\t\tget onDidLayoutActiveContainer() { return editor.onDidLayoutChange; },\n\t\t\t\tget onDidLayoutContainer() { return Event.map(editor.onDidLayoutChange, dimension => ({ container: widget.getDomNode(), dimension })); },\n\t\t\t\tget onDidChangeActiveContainer() { return Event.None; },\n\t\t\t\tget onDidAddContainer() { return Event.None; },\n\t\t\t\tget mainContainerOffset() { return { top: 0, quickPickTop: 0 }; },\n\t\t\t\tget activeContainerOffset() { return { top: 0, quickPickTop: 0 }; },\n\t\t\t\tfocus: () => editor.focus()\n\t\t\t};\n\t\t} else {\n\t\t\tthis.host = undefined;\n\t\t}\n\t}\n\n\tprotected override createController(): QuickInputController {\n\t\treturn super.createController(this.host);\n\t}\n}\n\nexport class StandaloneQuickInputService implements IQuickInputService {\n\n\tdeclare readonly _serviceBrand: undefined;\n\n\tprivate mapEditorToService = new Map<ICodeEditor, EditorScopedQuickInputService>();\n\tprivate get activeService(): IQuickInputService {\n\t\tconst editor = this.codeEditorService.getFocusedCodeEditor();\n\t\tif (!editor) {\n\t\t\tthrow new Error('Quick input service needs a focused editor to work.');\n\t\t}\n\n\t\t// Find the quick input implementation for the focused\n\t\t// editor or create it lazily if not yet created\n\t\tlet quickInputService = this.mapEditorToService.get(editor);\n\t\tif (!quickInputService) {\n\t\t\tconst newQuickInputService = quickInputService = this.instantiationService.createInstance(EditorScopedQuickInputService, editor);\n\t\t\tthis.mapEditorToService.set(editor, quickInputService);\n\n\t\t\tcreateSingleCallFunction(editor.onDidDispose)(() => {\n\t\t\t\tnewQuickInputService.dispose();\n\t\t\t\tthis.mapEditorToService.delete(editor);\n\t\t\t});\n\t\t}\n\n\t\treturn quickInputService;\n\t}\n\n\tget currentQuickInput() { return this.activeService.currentQuickInput; }\n\tget quickAccess() { return this.activeService.quickAccess; }\n\n\tconstructor(\n\t\t@IInstantiationService private readonly instantiationService: IInstantiationService,\n\t\t@ICodeEditorService private readonly codeEditorService: ICodeEditorService\n\t) {\n\t}\n\n\tpick<T extends IQuickPickItem, O extends IPickOptions<T>>(picks: Promise<QuickPickInput<T>[]> | QuickPickInput<T>[], options?: O, token: CancellationToken = CancellationToken.None): Promise<(O extends { canPickMany: true } ? T[] : T) | undefined> {\n\t\treturn (this.activeService as unknown as QuickInputController /* TS fail */).pick(picks, options, token);\n\t}\n\n\tinput(options?: IInputOptions | undefined, token?: CancellationToken | undefined): Promise<string | undefined> {\n\t\treturn this.activeService.input(options, token);\n\t}\n\n\tcreateQuickPick<T extends IQuickPickItem>(options: { useSeparators: true }): IQuickPick<T, { useSeparators: true }>;\n\tcreateQuickPick<T extends IQuickPickItem>(options?: { useSeparators: boolean }): IQuickPick<T, { useSeparators: false }>;\n\tcreateQuickPick<T extends IQuickPickItem>(options: { useSeparators: boolean } = { useSeparators: false }): IQuickPick<T, { useSeparators: boolean }> {\n\t\treturn this.activeService.createQuickPick(options);\n\t}\n\n\tcreateInputBox(): IInputBox {\n\t\treturn this.activeService.createInputBox();\n\t}\n\n\ttoggleHover(): void {\n\t\treturn this.activeService.toggleHover();\n\t}\n}\n\nexport class QuickInputEditorContribution implements IEditorContribution {\n\n\tstatic readonly ID = 'editor.controller.quickInput';\n\n\tstatic get(editor: ICodeEditor): QuickInputEditorContribution | null {\n\t\treturn editor.getContribution<QuickInputEditorContribution>(QuickInputEditorContribution.ID);\n\t}\n\n\treadonly widget: QuickInputEditorWidget;\n\n\tconstructor(private editor: ICodeEditor) {\n\t\tthis.widget = new QuickInputEditorWidget(this.editor);\n\t}\n\n\tdispose(): void {\n\t\tthis.widget.dispose();\n\t}\n}\n\nexport class QuickInputEditorWidget implements IOverlayWidget {\n\n\tprivate static readonly ID = 'editor.contrib.quickInputWidget';\n\n\tprivate domNode: HTMLElement;\n\n\tconstructor(private codeEditor: ICodeEditor) {\n\t\tthis.domNode = document.createElement('div');\n\n\t\tthis.codeEditor.addOverlayWidget(this);\n\t}\n\n\tgetId(): string {\n\t\treturn QuickInputEditorWidget.ID;\n\t}\n\n\tgetDomNode(): HTMLElement {\n\t\treturn this.domNode;\n\t}\n\n\tgetPosition(): IOverlayWidgetPosition | null {\n\t\treturn { preference: { top: 0, left: 0 } };\n\t}\n\n\tdispose(): void {\n\t\tthis.codeEditor.removeOverlayWidget(this);\n\t}\n}\n\nregisterEditorContribution(QuickInputEditorContribution.ID, QuickInputEditorContribution, EditorContributionInstantiation.Lazy);\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport './standaloneQuickInput.css';\nimport { Event } from '../../../../base/common/event.js';\nimport { ICodeEditor, IOverlayWidget, IOverlayWidgetPosition } from '../../../browser/editorBrowser.js';\nimport { EditorContributionInstantiation, registerEditorContribution } from '../../../browser/editorExtensions.js';\nimport { IEditorContribution } from '../../../common/editorCommon.js';\nimport { IThemeService } from '../../../../platform/theme/common/themeService.js';\nimport { IQuickInputService, IQuickPickItem, IQuickPick, IInputBox, IPickOptions, QuickPickInput, IInputOptions } from '../../../../platform/quickinput/common/quickInput.js';\nimport { CancellationToken } from '../../../../base/common/cancellation.js';\nimport { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';\nimport { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';\nimport { EditorScopedLayoutService } from '../standaloneLayoutService.js';\nimport { ICodeEditorService } from '../../../browser/services/codeEditorService.js';\nimport { QuickInputController, IQuickInputControllerHost } from '../../../../platform/quickinput/browser/quickInputController.js';\nimport { QuickInputService } from '../../../../platform/quickinput/browser/quickInputService.js';\nimport { createSingleCallFunction } from '../../../../base/common/functional.js';\nimport { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';\n\nclass EditorScopedQuickInputService extends QuickInputService {\n\n\tprivate host: IQuickInputControllerHost | undefined = undefined;\n\n\tconstructor(\n\t\teditor: ICodeEditor,\n\t\t@IInstantiationService instantiationService: IInstantiationService,\n\t\t@IContextKeyService contextKeyService: IContextKeyService,\n\t\t@IThemeService themeService: IThemeService,\n\t\t@ICodeEditorService codeEditorService: ICodeEditorService,\n\t\t@IConfigurationService configurationService: IConfigurationService,\n\t) {\n\t\tsuper(\n\t\t\tinstantiationService,\n\t\t\tcontextKeyService,\n\t\t\tthemeService,\n\t\t\tnew EditorScopedLayoutService(editor.getContainerDomNode(), codeEditorService),\n\t\t\tconfigurationService,\n\t\t);\n\n\t\t// Use the passed in code editor as host for the quick input widget\n\t\tconst contribution = QuickInputEditorContribution.get(editor);\n\t\tif (contribution) {\n\t\t\tconst widget = contribution.widget;\n\t\t\tthis.host = {\n\t\t\t\t_serviceBrand: undefined,\n\t\t\t\tget mainContainer() { return widget.getDomNode(); },\n\t\t\t\tgetContainer() { return widget.getDomNode(); },\n\t\t\t\twhenContainerStylesLoaded() { return undefined; },\n\t\t\t\tget containers() { return [widget.getDomNode()]; },\n\t\t\t\tget activeContainer() { return widget.getDomNode(); },\n\t\t\t\tget mainContainerDimension() { return editor.getLayoutInfo(); },\n\t\t\t\tget activeContainerDimension() { return editor.getLayoutInfo(); },\n\t\t\t\tget onDidLayoutMainContainer() { return editor.onDidLayoutChange; },\n\t\t\t\tget onDidLayoutActiveContainer() { return editor.onDidLayoutChange; },\n\t\t\t\tget onDidLayoutContainer() { return Event.map(editor.onDidLayoutChange, dimension => ({ container: widget.getDomNode(), dimension })); },\n\t\t\t\tget onDidChangeActiveContainer() { return Event.None; },\n\t\t\t\tget onDidAddContainer() { return Event.None; },\n\t\t\t\tget mainContainerOffset() { return { top: 0, quickPickTop: 0 }; },\n\t\t\t\tget activeContainerOffset() { return { top: 0, quickPickTop: 0 }; },\n\t\t\t\tfocus: () => editor.focus()\n\t\t\t};\n\t\t} else {\n\t\t\tthis.host = undefined;\n\t\t}\n\t}\n\n\tprotected override createController(): QuickInputController {\n\t\treturn super.createController(this.host);\n\t}\n}\n\nexport class StandaloneQuickInputService implements IQuickInputService {\n\n\tdeclare readonly _serviceBrand: undefined;\n\n\tprivate mapEditorToService = new Map<ICodeEditor, EditorScopedQuickInputService>();\n\tprivate get activeService(): IQuickInputService {\n\t\tconst editor = this.codeEditorService.getFocusedCodeEditor();\n\t\tif (!editor) {\n\t\t\tthrow new Error('Quick input service needs a focused editor to work.');\n\t\t}\n\n\t\t// Find the quick input implementation for the focused\n\t\t// editor or create it lazily if not yet created\n\t\tlet quickInputService = this.mapEditorToService.get(editor);\n\t\tif (!quickInputService) {\n\t\t\tconst newQuickInputService = quickInputService = this.instantiationService.createInstance(EditorScopedQuickInputService, editor);\n\t\t\tthis.mapEditorToService.set(editor, quickInputService);\n\n\t\t\tcreateSingleCallFunction(editor.onDidDispose)(() => {\n\t\t\t\tnewQuickInputService.dispose();\n\t\t\t\tthis.mapEditorToService.delete(editor);\n\t\t\t});\n\t\t}\n\n\t\treturn quickInputService;\n\t}\n\n\tget currentQuickInput() { return this.activeService.currentQuickInput; }\n\tget quickAccess() { return this.activeService.quickAccess; }\n\n\tconstructor(\n\t\t@IInstantiationService private readonly instantiationService: IInstantiationService,\n\t\t@ICodeEditorService private readonly codeEditorService: ICodeEditorService\n\t) {\n\t}\n\n\tpick<T extends IQuickPickItem, O extends IPickOptions<T>>(picks: Promise<QuickPickInput<T>[]> | QuickPickInput<T>[], options?: O, token: CancellationToken = CancellationToken.None): Promise<(O extends { canPickMany: true } ? T[] : T) | undefined> {\n\t\treturn (this.activeService as unknown as QuickInputController /* TS fail */).pick(picks, options, token);\n\t}\n\n\tinput(options?: IInputOptions | undefined, token?: CancellationToken | undefined): Promise<string | undefined> {\n\t\treturn this.activeService.input(options, token);\n\t}\n\n\tcreateQuickPick<T extends IQuickPickItem>(options: { useSeparators: true }): IQuickPick<T, { useSeparators: true }>;\n\tcreateQuickPick<T extends IQuickPickItem>(options?: { useSeparators: boolean }): IQuickPick<T, { useSeparators: false }>;\n\tcreateQuickPick<T extends IQuickPickItem>(options: { useSeparators: boolean } = { useSeparators: false }): IQuickPick<T, { useSeparators: boolean }> {\n\t\treturn this.activeService.createQuickPick(options);\n\t}\n\n\tcreateInputBox(): IInputBox {\n\t\treturn this.activeService.createInputBox();\n\t}\n\n\ttoggleHover(): void {\n\t\treturn this.activeService.toggleHover();\n\t}\n}\n\nexport class QuickInputEditorContribution implements IEditorContribution {\n\n\tstatic readonly ID = 'editor.controller.quickInput';\n\n\tstatic get(editor: ICodeEditor): QuickInputEditorContribution | null {\n\t\treturn editor.getContribution<QuickInputEditorContribution>(QuickInputEditorContribution.ID);\n\t}\n\n\treadonly widget: QuickInputEditorWidget;\n\n\tconstructor(private editor: ICodeEditor) {\n\t\tthis.widget = new QuickInputEditorWidget(this.editor);\n\t}\n\n\tdispose(): void {\n\t\tthis.widget.dispose();\n\t}\n}\n\nexport class QuickInputEditorWidget implements IOverlayWidget {\n\n\tprivate static readonly ID = 'editor.contrib.quickInputWidget';\n\n\tprivate domNode: HTMLElement;\n\n\tconstructor(private codeEditor: ICodeEditor) {\n\t\tthis.domNode = document.createElement('div');\n\n\t\tthis.codeEditor.addOverlayWidget(this);\n\t}\n\n\tgetId(): string {\n\t\treturn QuickInputEditorWidget.ID;\n\t}\n\n\tgetDomNode(): HTMLElement {\n\t\treturn this.domNode;\n\t}\n\n\tgetPosition(): IOverlayWidgetPosition | null {\n\t\treturn { preference: { top: 0, left: 0 } };\n\t}\n\n\tdispose(): void {\n\t\tthis.codeEditor.removeOverlayWidget(this);\n\t}\n}\n\nregisterEditorContribution(QuickInputEditorContribution.ID, QuickInputEditorContribution, EditorContributionInstantiation.Lazy);\n"]}
|
|
@@ -69,176 +69,176 @@ export class AccessibilitySignal {
|
|
|
69
69
|
return signal;
|
|
70
70
|
}
|
|
71
71
|
static { this.errorAtPosition = AccessibilitySignal.register({
|
|
72
|
-
name: localize(
|
|
72
|
+
name: localize(1559, 'Error at Position'),
|
|
73
73
|
sound: Sound.error,
|
|
74
|
-
announcementMessage: localize(
|
|
74
|
+
announcementMessage: localize(1560, 'Error'),
|
|
75
75
|
settingsKey: 'accessibility.signals.positionHasError',
|
|
76
76
|
delaySettingsKey: 'accessibility.signalOptions.delays.errorAtPosition'
|
|
77
77
|
}); }
|
|
78
78
|
static { this.warningAtPosition = AccessibilitySignal.register({
|
|
79
|
-
name: localize(
|
|
79
|
+
name: localize(1561, 'Warning at Position'),
|
|
80
80
|
sound: Sound.warning,
|
|
81
|
-
announcementMessage: localize(
|
|
81
|
+
announcementMessage: localize(1562, 'Warning'),
|
|
82
82
|
settingsKey: 'accessibility.signals.positionHasWarning',
|
|
83
83
|
delaySettingsKey: 'accessibility.signalOptions.delays.warningAtPosition'
|
|
84
84
|
}); }
|
|
85
85
|
static { this.errorOnLine = AccessibilitySignal.register({
|
|
86
|
-
name: localize(
|
|
86
|
+
name: localize(1563, 'Error on Line'),
|
|
87
87
|
sound: Sound.error,
|
|
88
88
|
legacySoundSettingsKey: 'audioCues.lineHasError',
|
|
89
89
|
legacyAnnouncementSettingsKey: 'accessibility.alert.error',
|
|
90
|
-
announcementMessage: localize(
|
|
90
|
+
announcementMessage: localize(1564, 'Error on Line'),
|
|
91
91
|
settingsKey: 'accessibility.signals.lineHasError',
|
|
92
92
|
}); }
|
|
93
93
|
static { this.warningOnLine = AccessibilitySignal.register({
|
|
94
|
-
name: localize(
|
|
94
|
+
name: localize(1565, 'Warning on Line'),
|
|
95
95
|
sound: Sound.warning,
|
|
96
96
|
legacySoundSettingsKey: 'audioCues.lineHasWarning',
|
|
97
97
|
legacyAnnouncementSettingsKey: 'accessibility.alert.warning',
|
|
98
|
-
announcementMessage: localize(
|
|
98
|
+
announcementMessage: localize(1566, 'Warning on Line'),
|
|
99
99
|
settingsKey: 'accessibility.signals.lineHasWarning',
|
|
100
100
|
}); }
|
|
101
101
|
static { this.foldedArea = AccessibilitySignal.register({
|
|
102
|
-
name: localize(
|
|
102
|
+
name: localize(1567, 'Folded Area on Line'),
|
|
103
103
|
sound: Sound.foldedArea,
|
|
104
104
|
legacySoundSettingsKey: 'audioCues.lineHasFoldedArea',
|
|
105
105
|
legacyAnnouncementSettingsKey: 'accessibility.alert.foldedArea',
|
|
106
|
-
announcementMessage: localize(
|
|
106
|
+
announcementMessage: localize(1568, 'Folded'),
|
|
107
107
|
settingsKey: 'accessibility.signals.lineHasFoldedArea',
|
|
108
108
|
}); }
|
|
109
109
|
static { this.break = AccessibilitySignal.register({
|
|
110
|
-
name: localize(
|
|
110
|
+
name: localize(1569, 'Breakpoint on Line'),
|
|
111
111
|
sound: Sound.break,
|
|
112
112
|
legacySoundSettingsKey: 'audioCues.lineHasBreakpoint',
|
|
113
113
|
legacyAnnouncementSettingsKey: 'accessibility.alert.breakpoint',
|
|
114
|
-
announcementMessage: localize(
|
|
114
|
+
announcementMessage: localize(1570, 'Breakpoint'),
|
|
115
115
|
settingsKey: 'accessibility.signals.lineHasBreakpoint',
|
|
116
116
|
}); }
|
|
117
117
|
static { this.inlineSuggestion = AccessibilitySignal.register({
|
|
118
|
-
name: localize(
|
|
118
|
+
name: localize(1571, 'Inline Suggestion on Line'),
|
|
119
119
|
sound: Sound.quickFixes,
|
|
120
120
|
legacySoundSettingsKey: 'audioCues.lineHasInlineSuggestion',
|
|
121
121
|
settingsKey: 'accessibility.signals.lineHasInlineSuggestion',
|
|
122
122
|
}); }
|
|
123
123
|
static { this.nextEditSuggestion = AccessibilitySignal.register({
|
|
124
|
-
name: localize(
|
|
124
|
+
name: localize(1572, 'Next Edit Suggestion on Line'),
|
|
125
125
|
sound: Sound.nextEditSuggestion,
|
|
126
126
|
legacySoundSettingsKey: 'audioCues.nextEditSuggestion',
|
|
127
127
|
settingsKey: 'accessibility.signals.nextEditSuggestion',
|
|
128
|
-
announcementMessage: localize(
|
|
128
|
+
announcementMessage: localize(1573, 'Next Edit Suggestion'),
|
|
129
129
|
}); }
|
|
130
130
|
static { this.terminalQuickFix = AccessibilitySignal.register({
|
|
131
|
-
name: localize(
|
|
131
|
+
name: localize(1574, 'Terminal Quick Fix'),
|
|
132
132
|
sound: Sound.quickFixes,
|
|
133
133
|
legacySoundSettingsKey: 'audioCues.terminalQuickFix',
|
|
134
134
|
legacyAnnouncementSettingsKey: 'accessibility.alert.terminalQuickFix',
|
|
135
|
-
announcementMessage: localize(
|
|
135
|
+
announcementMessage: localize(1575, 'Quick Fix'),
|
|
136
136
|
settingsKey: 'accessibility.signals.terminalQuickFix',
|
|
137
137
|
}); }
|
|
138
138
|
static { this.onDebugBreak = AccessibilitySignal.register({
|
|
139
|
-
name: localize(
|
|
139
|
+
name: localize(1576, 'Debugger Stopped on Breakpoint'),
|
|
140
140
|
sound: Sound.break,
|
|
141
141
|
legacySoundSettingsKey: 'audioCues.onDebugBreak',
|
|
142
142
|
legacyAnnouncementSettingsKey: 'accessibility.alert.onDebugBreak',
|
|
143
|
-
announcementMessage: localize(
|
|
143
|
+
announcementMessage: localize(1577, 'Breakpoint'),
|
|
144
144
|
settingsKey: 'accessibility.signals.onDebugBreak',
|
|
145
145
|
}); }
|
|
146
146
|
static { this.noInlayHints = AccessibilitySignal.register({
|
|
147
|
-
name: localize(
|
|
147
|
+
name: localize(1578, 'No Inlay Hints on Line'),
|
|
148
148
|
sound: Sound.error,
|
|
149
149
|
legacySoundSettingsKey: 'audioCues.noInlayHints',
|
|
150
150
|
legacyAnnouncementSettingsKey: 'accessibility.alert.noInlayHints',
|
|
151
|
-
announcementMessage: localize(
|
|
151
|
+
announcementMessage: localize(1579, 'No Inlay Hints'),
|
|
152
152
|
settingsKey: 'accessibility.signals.noInlayHints',
|
|
153
153
|
}); }
|
|
154
154
|
static { this.taskCompleted = AccessibilitySignal.register({
|
|
155
|
-
name: localize(
|
|
155
|
+
name: localize(1580, 'Task Completed'),
|
|
156
156
|
sound: Sound.taskCompleted,
|
|
157
157
|
legacySoundSettingsKey: 'audioCues.taskCompleted',
|
|
158
158
|
legacyAnnouncementSettingsKey: 'accessibility.alert.taskCompleted',
|
|
159
|
-
announcementMessage: localize(
|
|
159
|
+
announcementMessage: localize(1581, 'Task Completed'),
|
|
160
160
|
settingsKey: 'accessibility.signals.taskCompleted',
|
|
161
161
|
}); }
|
|
162
162
|
static { this.taskFailed = AccessibilitySignal.register({
|
|
163
|
-
name: localize(
|
|
163
|
+
name: localize(1582, 'Task Failed'),
|
|
164
164
|
sound: Sound.taskFailed,
|
|
165
165
|
legacySoundSettingsKey: 'audioCues.taskFailed',
|
|
166
166
|
legacyAnnouncementSettingsKey: 'accessibility.alert.taskFailed',
|
|
167
|
-
announcementMessage: localize(
|
|
167
|
+
announcementMessage: localize(1583, 'Task Failed'),
|
|
168
168
|
settingsKey: 'accessibility.signals.taskFailed',
|
|
169
169
|
}); }
|
|
170
170
|
static { this.terminalCommandFailed = AccessibilitySignal.register({
|
|
171
|
-
name: localize(
|
|
171
|
+
name: localize(1584, 'Terminal Command Failed'),
|
|
172
172
|
sound: Sound.error,
|
|
173
173
|
legacySoundSettingsKey: 'audioCues.terminalCommandFailed',
|
|
174
174
|
legacyAnnouncementSettingsKey: 'accessibility.alert.terminalCommandFailed',
|
|
175
|
-
announcementMessage: localize(
|
|
175
|
+
announcementMessage: localize(1585, 'Command Failed'),
|
|
176
176
|
settingsKey: 'accessibility.signals.terminalCommandFailed',
|
|
177
177
|
}); }
|
|
178
178
|
static { this.terminalCommandSucceeded = AccessibilitySignal.register({
|
|
179
|
-
name: localize(
|
|
179
|
+
name: localize(1586, 'Terminal Command Succeeded'),
|
|
180
180
|
sound: Sound.terminalCommandSucceeded,
|
|
181
|
-
announcementMessage: localize(
|
|
181
|
+
announcementMessage: localize(1587, 'Command Succeeded'),
|
|
182
182
|
settingsKey: 'accessibility.signals.terminalCommandSucceeded',
|
|
183
183
|
}); }
|
|
184
184
|
static { this.terminalBell = AccessibilitySignal.register({
|
|
185
|
-
name: localize(
|
|
185
|
+
name: localize(1588, 'Terminal Bell'),
|
|
186
186
|
sound: Sound.terminalBell,
|
|
187
187
|
legacySoundSettingsKey: 'audioCues.terminalBell',
|
|
188
188
|
legacyAnnouncementSettingsKey: 'accessibility.alert.terminalBell',
|
|
189
|
-
announcementMessage: localize(
|
|
189
|
+
announcementMessage: localize(1589, 'Terminal Bell'),
|
|
190
190
|
settingsKey: 'accessibility.signals.terminalBell',
|
|
191
191
|
}); }
|
|
192
192
|
static { this.notebookCellCompleted = AccessibilitySignal.register({
|
|
193
|
-
name: localize(
|
|
193
|
+
name: localize(1590, 'Notebook Cell Completed'),
|
|
194
194
|
sound: Sound.taskCompleted,
|
|
195
195
|
legacySoundSettingsKey: 'audioCues.notebookCellCompleted',
|
|
196
196
|
legacyAnnouncementSettingsKey: 'accessibility.alert.notebookCellCompleted',
|
|
197
|
-
announcementMessage: localize(
|
|
197
|
+
announcementMessage: localize(1591, 'Notebook Cell Completed'),
|
|
198
198
|
settingsKey: 'accessibility.signals.notebookCellCompleted',
|
|
199
199
|
}); }
|
|
200
200
|
static { this.notebookCellFailed = AccessibilitySignal.register({
|
|
201
|
-
name: localize(
|
|
201
|
+
name: localize(1592, 'Notebook Cell Failed'),
|
|
202
202
|
sound: Sound.taskFailed,
|
|
203
203
|
legacySoundSettingsKey: 'audioCues.notebookCellFailed',
|
|
204
204
|
legacyAnnouncementSettingsKey: 'accessibility.alert.notebookCellFailed',
|
|
205
|
-
announcementMessage: localize(
|
|
205
|
+
announcementMessage: localize(1593, 'Notebook Cell Failed'),
|
|
206
206
|
settingsKey: 'accessibility.signals.notebookCellFailed',
|
|
207
207
|
}); }
|
|
208
208
|
static { this.diffLineInserted = AccessibilitySignal.register({
|
|
209
|
-
name: localize(
|
|
209
|
+
name: localize(1594, 'Diff Line Inserted'),
|
|
210
210
|
sound: Sound.diffLineInserted,
|
|
211
211
|
legacySoundSettingsKey: 'audioCues.diffLineInserted',
|
|
212
212
|
settingsKey: 'accessibility.signals.diffLineInserted',
|
|
213
213
|
}); }
|
|
214
214
|
static { this.diffLineDeleted = AccessibilitySignal.register({
|
|
215
|
-
name: localize(
|
|
215
|
+
name: localize(1595, 'Diff Line Deleted'),
|
|
216
216
|
sound: Sound.diffLineDeleted,
|
|
217
217
|
legacySoundSettingsKey: 'audioCues.diffLineDeleted',
|
|
218
218
|
settingsKey: 'accessibility.signals.diffLineDeleted',
|
|
219
219
|
}); }
|
|
220
220
|
static { this.diffLineModified = AccessibilitySignal.register({
|
|
221
|
-
name: localize(
|
|
221
|
+
name: localize(1596, 'Diff Line Modified'),
|
|
222
222
|
sound: Sound.diffLineModified,
|
|
223
223
|
legacySoundSettingsKey: 'audioCues.diffLineModified',
|
|
224
224
|
settingsKey: 'accessibility.signals.diffLineModified',
|
|
225
225
|
}); }
|
|
226
226
|
static { this.chatEditModifiedFile = AccessibilitySignal.register({
|
|
227
|
-
name: localize(
|
|
227
|
+
name: localize(1597, 'Chat Edit Modified File'),
|
|
228
228
|
sound: Sound.chatEditModifiedFile,
|
|
229
|
-
announcementMessage: localize(
|
|
229
|
+
announcementMessage: localize(1598, 'File Modified from Chat Edits'),
|
|
230
230
|
settingsKey: 'accessibility.signals.chatEditModifiedFile',
|
|
231
231
|
}); }
|
|
232
232
|
static { this.chatRequestSent = AccessibilitySignal.register({
|
|
233
|
-
name: localize(
|
|
233
|
+
name: localize(1599, 'Chat Request Sent'),
|
|
234
234
|
sound: Sound.requestSent,
|
|
235
235
|
legacySoundSettingsKey: 'audioCues.chatRequestSent',
|
|
236
236
|
legacyAnnouncementSettingsKey: 'accessibility.alert.chatRequestSent',
|
|
237
|
-
announcementMessage: localize(
|
|
237
|
+
announcementMessage: localize(1600, 'Chat Request Sent'),
|
|
238
238
|
settingsKey: 'accessibility.signals.chatRequestSent',
|
|
239
239
|
}); }
|
|
240
240
|
static { this.chatResponseReceived = AccessibilitySignal.register({
|
|
241
|
-
name: localize(
|
|
241
|
+
name: localize(1601, 'Chat Response Received'),
|
|
242
242
|
legacySoundSettingsKey: 'audioCues.chatResponseReceived',
|
|
243
243
|
sound: {
|
|
244
244
|
randomOneOf: [
|
|
@@ -251,79 +251,79 @@ export class AccessibilitySignal {
|
|
|
251
251
|
settingsKey: 'accessibility.signals.chatResponseReceived'
|
|
252
252
|
}); }
|
|
253
253
|
static { this.codeActionTriggered = AccessibilitySignal.register({
|
|
254
|
-
name: localize(
|
|
254
|
+
name: localize(1602, 'Code Action Request Triggered'),
|
|
255
255
|
sound: Sound.codeActionTriggered,
|
|
256
256
|
legacySoundSettingsKey: 'audioCues.codeActionRequestTriggered',
|
|
257
257
|
legacyAnnouncementSettingsKey: 'accessibility.alert.codeActionRequestTriggered',
|
|
258
|
-
announcementMessage: localize(
|
|
258
|
+
announcementMessage: localize(1603, 'Code Action Request Triggered'),
|
|
259
259
|
settingsKey: 'accessibility.signals.codeActionTriggered',
|
|
260
260
|
}); }
|
|
261
261
|
static { this.codeActionApplied = AccessibilitySignal.register({
|
|
262
|
-
name: localize(
|
|
262
|
+
name: localize(1604, 'Code Action Applied'),
|
|
263
263
|
legacySoundSettingsKey: 'audioCues.codeActionApplied',
|
|
264
264
|
sound: Sound.codeActionApplied,
|
|
265
265
|
settingsKey: 'accessibility.signals.codeActionApplied'
|
|
266
266
|
}); }
|
|
267
267
|
static { this.progress = AccessibilitySignal.register({
|
|
268
|
-
name: localize(
|
|
268
|
+
name: localize(1605, 'Progress'),
|
|
269
269
|
sound: Sound.progress,
|
|
270
270
|
legacySoundSettingsKey: 'audioCues.chatResponsePending',
|
|
271
271
|
legacyAnnouncementSettingsKey: 'accessibility.alert.progress',
|
|
272
|
-
announcementMessage: localize(
|
|
272
|
+
announcementMessage: localize(1606, 'Progress'),
|
|
273
273
|
settingsKey: 'accessibility.signals.progress'
|
|
274
274
|
}); }
|
|
275
275
|
static { this.clear = AccessibilitySignal.register({
|
|
276
|
-
name: localize(
|
|
276
|
+
name: localize(1607, 'Clear'),
|
|
277
277
|
sound: Sound.clear,
|
|
278
278
|
legacySoundSettingsKey: 'audioCues.clear',
|
|
279
279
|
legacyAnnouncementSettingsKey: 'accessibility.alert.clear',
|
|
280
|
-
announcementMessage: localize(
|
|
280
|
+
announcementMessage: localize(1608, 'Clear'),
|
|
281
281
|
settingsKey: 'accessibility.signals.clear'
|
|
282
282
|
}); }
|
|
283
283
|
static { this.save = AccessibilitySignal.register({
|
|
284
|
-
name: localize(
|
|
284
|
+
name: localize(1609, 'Save'),
|
|
285
285
|
sound: Sound.save,
|
|
286
286
|
legacySoundSettingsKey: 'audioCues.save',
|
|
287
287
|
legacyAnnouncementSettingsKey: 'accessibility.alert.save',
|
|
288
|
-
announcementMessage: localize(
|
|
288
|
+
announcementMessage: localize(1610, 'Save'),
|
|
289
289
|
settingsKey: 'accessibility.signals.save'
|
|
290
290
|
}); }
|
|
291
291
|
static { this.format = AccessibilitySignal.register({
|
|
292
|
-
name: localize(
|
|
292
|
+
name: localize(1611, 'Format'),
|
|
293
293
|
sound: Sound.format,
|
|
294
294
|
legacySoundSettingsKey: 'audioCues.format',
|
|
295
295
|
legacyAnnouncementSettingsKey: 'accessibility.alert.format',
|
|
296
|
-
announcementMessage: localize(
|
|
296
|
+
announcementMessage: localize(1612, 'Format'),
|
|
297
297
|
settingsKey: 'accessibility.signals.format'
|
|
298
298
|
}); }
|
|
299
299
|
static { this.voiceRecordingStarted = AccessibilitySignal.register({
|
|
300
|
-
name: localize(
|
|
300
|
+
name: localize(1613, 'Voice Recording Started'),
|
|
301
301
|
sound: Sound.voiceRecordingStarted,
|
|
302
302
|
legacySoundSettingsKey: 'audioCues.voiceRecordingStarted',
|
|
303
303
|
settingsKey: 'accessibility.signals.voiceRecordingStarted'
|
|
304
304
|
}); }
|
|
305
305
|
static { this.voiceRecordingStopped = AccessibilitySignal.register({
|
|
306
|
-
name: localize(
|
|
306
|
+
name: localize(1614, 'Voice Recording Stopped'),
|
|
307
307
|
sound: Sound.voiceRecordingStopped,
|
|
308
308
|
legacySoundSettingsKey: 'audioCues.voiceRecordingStopped',
|
|
309
309
|
settingsKey: 'accessibility.signals.voiceRecordingStopped'
|
|
310
310
|
}); }
|
|
311
311
|
static { this.editsKept = AccessibilitySignal.register({
|
|
312
|
-
name: localize(
|
|
312
|
+
name: localize(1615, 'Edits Kept'),
|
|
313
313
|
sound: Sound.editsKept,
|
|
314
|
-
announcementMessage: localize(
|
|
314
|
+
announcementMessage: localize(1616, 'Edits Kept'),
|
|
315
315
|
settingsKey: 'accessibility.signals.editsKept',
|
|
316
316
|
}); }
|
|
317
317
|
static { this.editsUndone = AccessibilitySignal.register({
|
|
318
|
-
name: localize(
|
|
318
|
+
name: localize(1617, 'Undo Edits'),
|
|
319
319
|
sound: Sound.editsUndone,
|
|
320
|
-
announcementMessage: localize(
|
|
320
|
+
announcementMessage: localize(1618, 'Edits Undone'),
|
|
321
321
|
settingsKey: 'accessibility.signals.editsUndone',
|
|
322
322
|
}); }
|
|
323
323
|
static { this.chatUserActionRequired = AccessibilitySignal.register({
|
|
324
|
-
name: localize(
|
|
324
|
+
name: localize(1619, 'Chat User Action Required'),
|
|
325
325
|
sound: Sound.chatUserActionRequired,
|
|
326
|
-
announcementMessage: localize(
|
|
326
|
+
announcementMessage: localize(1620, 'Chat User Action Required'),
|
|
327
327
|
settingsKey: 'accessibility.signals.chatUserActionRequired',
|
|
328
328
|
managesOwnEnablement: true
|
|
329
329
|
}); }
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { localize2 } from '../../../nls.js';
|
|
6
6
|
export const Categories = Object.freeze({
|
|
7
|
-
View: localize2(
|
|
8
|
-
Help: localize2(
|
|
9
|
-
Test: localize2(
|
|
10
|
-
File: localize2(
|
|
11
|
-
Preferences: localize2(
|
|
12
|
-
Developer: localize2(
|
|
7
|
+
View: localize2(1621, 'View'),
|
|
8
|
+
Help: localize2(1622, 'Help'),
|
|
9
|
+
Test: localize2(1623, 'Test'),
|
|
10
|
+
File: localize2(1624, 'File'),
|
|
11
|
+
Preferences: localize2(1625, 'Preferences'),
|
|
12
|
+
Developer: localize2(1626, "Developer"),
|
|
13
13
|
});
|
|
14
14
|
//# sourceMappingURL=actionCommonCategories.js.map
|
|
@@ -119,10 +119,10 @@ let ActionItemRenderer = class ActionItemRenderer {
|
|
|
119
119
|
}
|
|
120
120
|
else if (actionTitle && previewTitle) {
|
|
121
121
|
if (this._supportsPreview && element.canPreview) {
|
|
122
|
-
data.container.title = localize(
|
|
122
|
+
data.container.title = localize(1636, "{0} to Apply, {1} to Preview", actionTitle, previewTitle);
|
|
123
123
|
}
|
|
124
124
|
else {
|
|
125
|
-
data.container.title = localize(
|
|
125
|
+
data.container.title = localize(1637, "{0} to Apply", actionTitle);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
else {
|
|
@@ -156,8 +156,8 @@ let ActionList = class ActionList extends Disposable {
|
|
|
156
156
|
this._contextViewService = _contextViewService;
|
|
157
157
|
this._keybindingService = _keybindingService;
|
|
158
158
|
this._layoutService = _layoutService;
|
|
159
|
-
this._actionLineHeight =
|
|
160
|
-
this._headerLineHeight =
|
|
159
|
+
this._actionLineHeight = 28;
|
|
160
|
+
this._headerLineHeight = 28;
|
|
161
161
|
this._separatorLineHeight = 8;
|
|
162
162
|
this.cts = this._register(new CancellationTokenSource());
|
|
163
163
|
this.domNode = document.createElement('div');
|
|
@@ -188,13 +188,13 @@ let ActionList = class ActionList extends Disposable {
|
|
|
188
188
|
if (element.kind === "action" /* ActionListItemKind.Action */) {
|
|
189
189
|
let label = element.label ? stripNewlines(element?.label) : '';
|
|
190
190
|
if (element.disabled) {
|
|
191
|
-
label = localize(
|
|
191
|
+
label = localize(1638, "{0}, Disabled Reason: {1}", label, element.disabled);
|
|
192
192
|
}
|
|
193
193
|
return label;
|
|
194
194
|
}
|
|
195
195
|
return null;
|
|
196
196
|
},
|
|
197
|
-
getWidgetAriaLabel: () => localize(
|
|
197
|
+
getWidgetAriaLabel: () => localize(1639, "Action Widget"),
|
|
198
198
|
getRole: (e) => {
|
|
199
199
|
switch (e.kind) {
|
|
200
200
|
case "action" /* ActionListItemKind.Action */:
|