@codingame/monaco-vscode-api 16.1.0 → 17.0.0
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/missing-services.js +107 -2
- package/monaco.d.ts +2 -2
- package/package.json +10 -9
- package/services.d.ts +4 -4
- package/services.js +7 -18
- package/vscode/src/vs/base/browser/dom.d.ts +1 -0
- package/vscode/src/vs/base/browser/dom.js +6 -1
- package/vscode/src/vs/base/browser/mouseEvent.d.ts +2 -0
- package/vscode/src/vs/base/browser/mouseEvent.js +1 -0
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.d.ts +2 -3
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hover.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.js +6 -1
- package/vscode/src/vs/base/browser/ui/list/listPaging.d.ts +2 -1
- package/vscode/src/vs/base/browser/ui/severityIcon/media/severityIcon.css +1 -3
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +5 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +17 -4
- package/vscode/src/vs/base/common/arrays.d.ts +1 -0
- package/vscode/src/vs/base/common/arrays.js +5 -2
- package/vscode/src/vs/base/common/async.js +9 -2
- package/vscode/src/vs/base/common/codicons.d.ts +5 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +5 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +5 -0
- package/vscode/src/vs/base/common/color.d.ts +1 -0
- package/vscode/src/vs/base/common/color.js +10 -0
- package/vscode/src/vs/base/common/comparers.d.ts +2 -2
- package/vscode/src/vs/base/common/decorators.d.ts +1 -1
- package/vscode/src/vs/base/common/glob.d.ts +3 -0
- package/vscode/src/vs/base/common/glob.js +10 -1
- package/vscode/src/vs/base/common/marshallingIds.d.ts +2 -1
- package/vscode/src/vs/base/common/marshallingIds.js +1 -0
- package/vscode/src/vs/base/common/observableInternal/autorun.d.ts +6 -8
- package/vscode/src/vs/base/common/observableInternal/autorun.js +15 -11
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +0 -10
- package/vscode/src/vs/base/common/observableInternal/changeTracker.d.ts +23 -0
- package/vscode/src/vs/base/common/observableInternal/changeTracker.js +30 -0
- package/vscode/src/vs/base/common/observableInternal/derived.d.ts +18 -13
- package/vscode/src/vs/base/common/observableInternal/derived.js +47 -18
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +6 -5
- package/vscode/src/vs/base/common/observableInternal/index.js +2 -2
- package/vscode/src/vs/base/common/observableInternal/logging/logging.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/promise.d.ts +28 -0
- package/vscode/src/vs/base/common/observableInternal/promise.js +65 -0
- package/vscode/src/vs/base/common/observableInternal/reducer.d.ts +16 -0
- package/vscode/src/vs/base/common/observableInternal/reducer.js +36 -0
- package/vscode/src/vs/base/common/observableInternal/utils.d.ts +2 -0
- package/vscode/src/vs/base/common/observableInternal/utils.js +19 -11
- package/vscode/src/vs/base/common/product.d.ts +5 -0
- package/vscode/src/vs/base/common/sseParser.d.ts +26 -0
- package/vscode/src/vs/base/common/sseParser.js +134 -0
- package/vscode/src/vs/base/common/stopwatch.js +2 -2
- package/vscode/src/vs/base/common/strings.d.ts +1 -0
- package/vscode/src/vs/base/common/strings.js +8 -19
- package/vscode/src/vs/base/common/ternarySearchTree.d.ts +1 -0
- package/vscode/src/vs/base/common/ternarySearchTree.js +55 -13
- package/vscode/src/vs/editor/browser/config/editorConfiguration.d.ts +1 -0
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +3 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.css +1 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +6 -3
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +86 -54
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.d.ts +0 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +12 -8
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.d.ts +0 -1
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +9 -6
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.js +3 -3
- package/vscode/src/vs/editor/browser/controller/mouseTarget.js +2 -2
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +1 -1
- package/vscode/src/vs/editor/browser/gpu/objectCollectionBuffer.d.ts +1 -1
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +2 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hover.css +8 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.d.ts +1 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +6 -1
- package/vscode/src/vs/editor/browser/view/renderingContext.d.ts +1 -0
- package/vscode/src/vs/editor/browser/view/renderingContext.js +3 -0
- package/vscode/src/vs/editor/browser/view/viewLayer.d.ts +3 -1
- package/vscode/src/vs/editor/browser/view/viewLayer.js +13 -6
- package/vscode/src/vs/editor/browser/view/viewOverlays.js +4 -1
- package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +4 -5
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +4 -2
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.d.ts +0 -1
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.js +6 -6
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +3 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +5 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +15 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +7 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +10 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +19 -15
- package/vscode/src/vs/editor/common/codecs/frontMatterCodec/tokens/index.d.ts +5 -0
- package/vscode/src/vs/editor/common/codecs/simpleCodec/tokens/index.d.ts +20 -0
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +24 -23
- package/vscode/src/vs/editor/common/config/editorOptions.js +3 -4
- package/vscode/src/vs/editor/common/core/columnRange.d.ts +11 -0
- package/vscode/src/vs/editor/common/core/columnRange.js +32 -0
- package/vscode/src/vs/editor/common/core/offsetEdit.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/offsetEdit.js +10 -0
- package/vscode/src/vs/editor/common/core/offsetRange.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/offsetRange.js +3 -0
- package/vscode/src/vs/editor/common/core/positionToOffset.d.ts +15 -3
- package/vscode/src/vs/editor/common/core/positionToOffset.js +45 -11
- package/vscode/src/vs/editor/common/core/rangeSingleLine.d.ts +9 -0
- package/vscode/src/vs/editor/common/core/rangeSingleLine.js +27 -0
- package/vscode/src/vs/editor/common/core/textEdit.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/textEdit.js +41 -0
- package/vscode/src/vs/editor/common/editorCommon.d.ts +1 -0
- package/vscode/src/vs/editor/common/languages/modesRegistry.d.ts +2 -2
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +4 -2
- package/vscode/src/vs/editor/common/languages.d.ts +22 -1
- package/vscode/src/vs/editor/common/languages.js +7 -1
- package/vscode/src/vs/editor/common/model/textModel.d.ts +5 -1
- package/vscode/src/vs/editor/common/model/textModel.js +80 -18
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +1 -1
- package/vscode/src/vs/editor/common/model.d.ts +2 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +5 -0
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +7 -1
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +11 -0
- package/vscode/src/vs/editor/common/textModelEvents.js +14 -1
- package/vscode/src/vs/editor/common/tokens/common.d.ts +7 -0
- package/vscode/src/vs/editor/common/tokens/common.js +18 -0
- package/vscode/src/vs/editor/common/tokens/contiguousTokensEditing.d.ts +1 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +1 -0
- package/vscode/src/vs/editor/common/tokens/lineTokens.js +3 -0
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.d.ts +2 -0
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +20 -0
- package/vscode/src/vs/editor/common/tokens/sparseTokensStore.d.ts +2 -1
- package/vscode/src/vs/editor/common/tokens/sparseTokensStore.js +9 -4
- package/vscode/src/vs/editor/common/tokens/tokenArray.d.ts +1 -0
- package/vscode/src/vs/editor/common/tokens/tokenArray.js +4 -0
- package/vscode/src/vs/editor/common/tokens/tokenWithTextArray.d.ts +25 -0
- package/vscode/src/vs/editor/common/tokens/tokenWithTextArray.js +73 -0
- package/vscode/src/vs/editor/common/viewLayout/lineHeights.d.ts +35 -0
- package/vscode/src/vs/editor/common/viewLayout/lineHeights.js +339 -0
- package/vscode/src/vs/editor/common/viewLayout/linesLayout.d.ts +8 -6
- package/vscode/src/vs/editor/common/viewLayout/linesLayout.js +42 -49
- package/vscode/src/vs/editor/common/viewLayout/viewLayout.d.ts +6 -3
- package/vscode/src/vs/editor/common/viewLayout/viewLayout.js +16 -5
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +1 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +44 -7
- package/vscode/src/vs/editor/common/viewModel.d.ts +5 -0
- package/vscode/src/vs/editor/common/viewModelEventDispatcher.d.ts +11 -3
- package/vscode/src/vs/editor/common/viewModelEventDispatcher.js +14 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +20 -14
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +3 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +4 -3
- package/vscode/src/vs/editor/contrib/find/browser/findController.d.ts +1 -3
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +5 -11
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.d.ts +1 -7
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +2 -15
- package/vscode/src/vs/editor/contrib/folding/browser/folding.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +24 -23
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +5 -5
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +14 -12
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +21 -21
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.d.ts +0 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +29 -41
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +11 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +1 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.js +1 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.d.ts +10 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.js +31 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +16 -16
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +156 -202
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +21 -49
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +135 -431
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +98 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +487 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +34 -32
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +141 -132
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +26 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.d.ts +2 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +21 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +19 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +17 -9
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.d.ts +5 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +139 -188
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.d.ts +8 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +9 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsNewUsers.d.ts +23 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsNewUsers.js +157 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +37 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +3 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.d.ts +6 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.js +28 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.d.ts +21 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +215 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.d.ts +1 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +22 -21
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +17 -17
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +23 -49
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +8 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +2 -2
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +24 -14
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +19 -18
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +5 -10
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +2 -2
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +2 -2
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +3 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +23 -14
- package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +2 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +17 -3
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +6 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.d.ts +2 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.service.d.ts +2 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +3 -1
- package/vscode/src/vs/platform/actions/common/actions.js +2 -0
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.d.ts +1 -0
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +3 -0
- package/vscode/src/vs/platform/clipboard/common/clipboardService.service.d.ts +1 -0
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +15 -13
- package/vscode/src/vs/platform/configuration/common/configurations.js +1 -1
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.d.ts +5 -0
- package/vscode/src/vs/platform/dnd/browser/dnd.js +6 -2
- package/vscode/src/vs/platform/editor/common/editor.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +8 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +94 -4
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +3 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.d.ts +3 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +10 -7
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +10 -11
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +7 -6
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +9 -8
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/jsonschemas/common/jsonContributionRegistry.js +5 -4
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
- package/vscode/src/vs/platform/label/common/label.service.d.ts +1 -1
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markerService.d.ts +2 -7
- package/vscode/src/vs/platform/markers/common/markerService.js +5 -5
- package/vscode/src/vs/platform/markers/common/markers.d.ts +7 -0
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.service.d.ts +2 -7
- package/vscode/src/vs/platform/native/common/native.d.ts +168 -0
- package/vscode/src/vs/platform/notification/common/notification.d.ts +6 -2
- package/vscode/src/vs/platform/notification/common/notification.js +3 -2
- package/vscode/src/vs/platform/notification/common/notification.service.d.ts +2 -3
- package/vscode/src/vs/platform/product/common/product.js +93 -48
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +4 -19
- package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +6 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +33 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.d.ts +2 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.js +6 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +25 -18
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.d.ts +5 -5
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +58 -43
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +1 -1
- package/vscode/src/vs/platform/registry/common/platform.js +9 -1
- package/vscode/src/vs/platform/request/common/request.d.ts +1 -1
- package/vscode/src/vs/platform/request/common/request.js +18 -18
- package/vscode/src/vs/platform/request/common/request.service.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +14 -1
- package/vscode/src/vs/platform/terminal/common/terminal.js +14 -1
- package/vscode/src/vs/platform/theme/browser/defaultStyles.d.ts +1 -2
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +4 -2
- package/vscode/src/vs/platform/theme/common/colorUtils.d.ts +7 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +12 -4
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +94 -94
- package/vscode/src/vs/platform/theme/common/colors/inputColors.d.ts +2 -0
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +49 -47
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +10 -8
- package/vscode/src/vs/platform/theme/common/themeService.d.ts +0 -8
- package/vscode/src/vs/platform/theme/common/themeService.js +4 -3
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +2 -2
- package/vscode/src/vs/platform/window/common/window.d.ts +4 -0
- package/vscode/src/vs/platform/window/common/window.js +2 -1
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/platform/workspaces/common/workspaces.service.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +27 -20
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +54 -19
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostAiSettingsSearch.d.ts +14 -0
- package/vscode/src/vs/workbench/api/common/extHostAiSettingsSearch.js +38 -0
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +30 -17
- package/vscode/src/vs/workbench/api/common/extHostCodeMapper.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostCommands.d.ts +0 -1
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.d.ts +2 -0
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +15 -4
- package/vscode/src/vs/workbench/api/common/extHostLabelService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +4 -0
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +31 -6
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +2 -3
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +60 -14
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +15 -9
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +4 -3
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +279 -82
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostQuickDiff.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostQuickDiff.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostRequireInterceptor.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +21 -0
- package/vscode/src/vs/workbench/api/common/extHostSearch.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +27 -9
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +201 -29
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +67 -27
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +79 -28
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +7 -4
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +34 -9
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.d.ts +1 -0
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.js +3 -0
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +33 -33
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.d.ts +1 -1
- package/vscode/src/vs/workbench/common/configuration.js +10 -16
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +3 -0
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -71
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +13 -9
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +164 -147
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +15 -14
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +245 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +435 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +6 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +51 -49
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +19 -26
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +16 -23
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +585 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +1179 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +116 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +211 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +19 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatTransferService.service.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.service.d.ts +2 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +12 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +33 -5
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +14 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +18 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/index.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +14 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/types.d.ts +28 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/types.service.d.ts +10 -4
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.d.ts +8 -25
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +11 -97
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +64 -64
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.d.ts +171 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +85 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +127 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +19 -8
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +12 -10
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +8 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +16 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.service.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.d.ts +11 -3
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.js +77 -16
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +1 -1
- package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.d.ts +17 -0
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.js +10 -0
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.service.d.ts +13 -0
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.service.js +6 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverExpression.d.ts +2 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverExpression.js +61 -12
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.d.ts +3 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +25 -29
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +4 -1
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +3 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +84 -84
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +4 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +2 -4
- package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.d.ts +1 -0
- package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +2 -0
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/output/common/output.js +6 -4
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/search/common/search.d.ts +2 -1
- package/vscode/src/vs/workbench/services/search/common/searchExtTypes.d.ts +5 -0
- package/vscode/src/vs/workbench/services/search/common/searchExtTypes.js +6 -1
- package/vscode/src/vs/workbench/services/search/common/textSearchManager.d.ts +2 -2
- package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +31 -23
- package/vscode/src/vs/workbench/services/textfile/common/encoding.d.ts +64 -0
- package/vscode/src/vs/workbench/services/textfile/common/encoding.js +560 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +165 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.js +74 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.d.ts +12 -2
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +12 -12
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceEditing.service.d.ts +1 -1
- package/vscode-dts/vscode.d.ts +204 -9
- package/vscode-dts/vscode.proposed.aiSettingsSearch.d.ts +30 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +18 -16
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +84 -5
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +18 -16
- package/vscode-dts/vscode.proposed.chatStatusItem.d.ts +1 -1
- package/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts +1 -1
- package/vscode-dts/vscode.proposed.contribDebugCreateConfiguration.d.ts +1 -1
- package/vscode-dts/vscode.proposed.d.ts +2 -2
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +2 -2
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +46 -8
- package/vscode-dts/vscode.proposed.languageModelDataPart.d.ts +106 -16
- package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +2 -0
- package/vscode-dts/vscode.proposed.mcpConfigurationProvider.d.ts +115 -21
- package/vscode-dts/vscode.proposed.quickDiffProvider.d.ts +7 -3
- package/vscode-dts/vscode.proposed.textSearchProvider2.d.ts +23 -1
- package/vscode-dts/vscode.proposed.toolProgress.d.ts +25 -0
- package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +1 -1
- package/workbench.d.ts +1 -1
- package/vscode-dts/vscode.proposed.languageModelToolsForAgent.d.ts +0 -8
- package/vscode-dts/vscode.proposed.textDocumentEncoding.d.ts +0 -170
|
@@ -10,10 +10,11 @@ import { IVisibleRangeProvider } from "../textArea/textAreaEditContext.js";
|
|
|
10
10
|
import { IAccessibilityService } from "../../../../../platform/accessibility/common/accessibility.service.js";
|
|
11
11
|
import { IEditorAriaOptions } from "../../../editorBrowser.js";
|
|
12
12
|
export declare class NativeEditContext extends AbstractEditContext {
|
|
13
|
+
private readonly _viewController;
|
|
13
14
|
private readonly _visibleRangeProvider;
|
|
14
15
|
private readonly _accessibilityService;
|
|
15
|
-
private readonly _textArea;
|
|
16
16
|
readonly domNode: FastDomNode<HTMLDivElement>;
|
|
17
|
+
private readonly _imeTextArea;
|
|
17
18
|
private readonly _editContext;
|
|
18
19
|
private readonly _screenReaderSupport;
|
|
19
20
|
private _editContextPrimarySelection;
|
|
@@ -25,7 +26,7 @@ export declare class NativeEditContext extends AbstractEditContext {
|
|
|
25
26
|
private _scrollLeft;
|
|
26
27
|
private readonly _focusTracker;
|
|
27
28
|
private readonly _selectionChangeListener;
|
|
28
|
-
constructor(ownerID: string, context: ViewContext, overflowGuardContainer: FastDomNode<HTMLElement>,
|
|
29
|
+
constructor(ownerID: string, context: ViewContext, overflowGuardContainer: FastDomNode<HTMLElement>, _viewController: ViewController, _visibleRangeProvider: IVisibleRangeProvider, instantiationService: IInstantiationService, _accessibilityService: IAccessibilityService);
|
|
29
30
|
dispose(): void;
|
|
30
31
|
setAriaOptions(options: IEditorAriaOptions): void;
|
|
31
32
|
getLastRenderData(): Position | null;
|
|
@@ -40,13 +41,15 @@ export declare class NativeEditContext extends AbstractEditContext {
|
|
|
40
41
|
onLinesInserted(e: ViewLinesInsertedEvent): boolean;
|
|
41
42
|
onScrollChanged(e: ViewScrollChangedEvent): boolean;
|
|
42
43
|
onZonesChanged(e: ViewZonesChangedEvent): boolean;
|
|
43
|
-
|
|
44
|
+
onWillPaste(): void;
|
|
44
45
|
private _onWillPaste;
|
|
45
46
|
writeScreenReaderContent(): void;
|
|
46
47
|
isFocused(): boolean;
|
|
47
48
|
focus(): void;
|
|
48
49
|
refreshFocusState(): void;
|
|
49
50
|
setEditContextOnDomNode(): void;
|
|
51
|
+
private _onKeyUp;
|
|
52
|
+
private _onKeyDown;
|
|
50
53
|
private _updateDomAttributes;
|
|
51
54
|
private _updateEditContext;
|
|
52
55
|
private _emitTypeEvent;
|
|
@@ -22,6 +22,8 @@ import { MutableDisposable } from '../../../../../base/common/lifecycle.js';
|
|
|
22
22
|
import { EditContext } from './editContextFactory.js';
|
|
23
23
|
import { IAccessibilityService } from '../../../../../platform/accessibility/common/accessibility.service.js';
|
|
24
24
|
import { NativeEditContextRegistry } from './nativeEditContextRegistry.js';
|
|
25
|
+
import { isHighSurrogate, isLowSurrogate } from '../../../../../base/common/strings.js';
|
|
26
|
+
import { IME } from '../../../../../base/common/ime.js';
|
|
25
27
|
|
|
26
28
|
registerCss(nativeEditContext);
|
|
27
29
|
var CompositionClassName;
|
|
@@ -31,8 +33,9 @@ var CompositionClassName;
|
|
|
31
33
|
CompositionClassName["PRIMARY"] = "edit-context-composition-primary";
|
|
32
34
|
})(CompositionClassName || (CompositionClassName = {}));
|
|
33
35
|
let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
34
|
-
constructor(ownerID, context, overflowGuardContainer,
|
|
36
|
+
constructor(ownerID, context, overflowGuardContainer, _viewController, _visibleRangeProvider, instantiationService, _accessibilityService) {
|
|
35
37
|
super(context);
|
|
38
|
+
this._viewController = _viewController;
|
|
36
39
|
this._visibleRangeProvider = _visibleRangeProvider;
|
|
37
40
|
this._accessibilityService = _accessibilityService;
|
|
38
41
|
this._editContextPrimarySelection = ( new Selection(1, 1, 1, 1));
|
|
@@ -43,21 +46,22 @@ let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
|
43
46
|
this._scrollLeft = 0;
|
|
44
47
|
this.domNode = ( new FastDomNode(document.createElement('div')));
|
|
45
48
|
this.domNode.setClassName(`native-edit-context`);
|
|
46
|
-
this.
|
|
47
|
-
this.
|
|
48
|
-
this.
|
|
49
|
+
this._imeTextArea = ( new FastDomNode(document.createElement('textarea')));
|
|
50
|
+
this._imeTextArea.setClassName(`ime-text-area`);
|
|
51
|
+
this._imeTextArea.setAttribute('readonly', 'true');
|
|
52
|
+
this._imeTextArea.setAttribute('tabindex', '-1');
|
|
49
53
|
this.domNode.setAttribute('autocorrect', 'off');
|
|
50
54
|
this.domNode.setAttribute('autocapitalize', 'off');
|
|
51
55
|
this.domNode.setAttribute('autocomplete', 'off');
|
|
52
56
|
this.domNode.setAttribute('spellcheck', 'false');
|
|
53
57
|
this._updateDomAttributes();
|
|
54
58
|
overflowGuardContainer.appendChild(this.domNode);
|
|
55
|
-
overflowGuardContainer.appendChild(this.
|
|
59
|
+
overflowGuardContainer.appendChild(this._imeTextArea);
|
|
56
60
|
this._parent = overflowGuardContainer.domNode;
|
|
57
61
|
this._selectionChangeListener = this._register(( new MutableDisposable()));
|
|
58
62
|
this._focusTracker = this._register(( new FocusTracker(this.domNode.domNode, (newFocusValue) => {
|
|
59
63
|
if (newFocusValue) {
|
|
60
|
-
this._selectionChangeListener.value = this._setSelectionChangeListener(
|
|
64
|
+
this._selectionChangeListener.value = this._setSelectionChangeListener(this._viewController);
|
|
61
65
|
this._screenReaderSupport.setIgnoreSelectionChangeTime('onFocus');
|
|
62
66
|
}
|
|
63
67
|
else {
|
|
@@ -73,36 +77,18 @@ let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
|
73
77
|
this._register(addDisposableListener(this.domNode.domNode, 'cut', (e) => {
|
|
74
78
|
this._screenReaderSupport.setIgnoreSelectionChangeTime('onCut');
|
|
75
79
|
this._ensureClipboardGetsEditorSelection(e);
|
|
76
|
-
|
|
77
|
-
}));
|
|
78
|
-
this._register(addDisposableListener(this.domNode.domNode, 'keyup', (e) => viewController.emitKeyUp(( new StandardKeyboardEvent(e)))));
|
|
79
|
-
this._register(addDisposableListener(this.domNode.domNode, 'keydown', async (e) => {
|
|
80
|
-
const standardKeyboardEvent = ( new StandardKeyboardEvent(e));
|
|
81
|
-
if (standardKeyboardEvent.keyCode === KeyCode.KEY_IN_COMPOSITION) {
|
|
82
|
-
standardKeyboardEvent.stopPropagation();
|
|
83
|
-
}
|
|
84
|
-
viewController.emitKeyDown(standardKeyboardEvent);
|
|
80
|
+
this._viewController.cut();
|
|
85
81
|
}));
|
|
82
|
+
this._register(addDisposableListener(this.domNode.domNode, 'keyup', (e) => this._onKeyUp(e)));
|
|
83
|
+
this._register(addDisposableListener(this.domNode.domNode, 'keydown', async (e) => this._onKeyDown(e)));
|
|
84
|
+
this._register(addDisposableListener(this._imeTextArea.domNode, 'keyup', (e) => this._onKeyUp(e)));
|
|
85
|
+
this._register(addDisposableListener(this._imeTextArea.domNode, 'keydown', async (e) => this._onKeyDown(e)));
|
|
86
86
|
this._register(addDisposableListener(this.domNode.domNode, 'beforeinput', async (e) => {
|
|
87
87
|
if (e.inputType === 'insertParagraph' || e.inputType === 'insertLineBreak') {
|
|
88
|
-
this._onType(
|
|
88
|
+
this._onType(this._viewController, { text: '\n', replacePrevCharCnt: 0, replaceNextCharCnt: 0, positionDelta: 0 });
|
|
89
89
|
}
|
|
90
90
|
}));
|
|
91
|
-
this._register(
|
|
92
|
-
this._register(editContextAddDisposableListener(this._editContext, 'characterboundsupdate', (e) => this._updateCharacterBounds(e)));
|
|
93
|
-
this._register(editContextAddDisposableListener(this._editContext, 'textupdate', (e) => {
|
|
94
|
-
this._emitTypeEvent(viewController, e);
|
|
95
|
-
}));
|
|
96
|
-
this._register(editContextAddDisposableListener(this._editContext, 'compositionstart', (e) => {
|
|
97
|
-
viewController.compositionStart();
|
|
98
|
-
this._context.viewModel.onCompositionStart();
|
|
99
|
-
}));
|
|
100
|
-
this._register(editContextAddDisposableListener(this._editContext, 'compositionend', (e) => {
|
|
101
|
-
viewController.compositionEnd();
|
|
102
|
-
this._context.viewModel.onCompositionEnd();
|
|
103
|
-
}));
|
|
104
|
-
this._register(addDisposableListener(this._textArea.domNode, 'paste', (e) => {
|
|
105
|
-
this._screenReaderSupport.setIgnoreSelectionChangeTime('onPaste');
|
|
91
|
+
this._register(addDisposableListener(this.domNode.domNode, 'paste', (e) => {
|
|
106
92
|
e.preventDefault();
|
|
107
93
|
if (!e.clipboardData) {
|
|
108
94
|
return;
|
|
@@ -122,14 +108,61 @@ let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
|
122
108
|
multicursorText = typeof metadata.multicursorText !== 'undefined' ? metadata.multicursorText : null;
|
|
123
109
|
mode = metadata.mode;
|
|
124
110
|
}
|
|
125
|
-
|
|
111
|
+
this._viewController.paste(text, pasteOnNewLine, multicursorText, mode);
|
|
112
|
+
}));
|
|
113
|
+
this._register(editContextAddDisposableListener(this._editContext, 'textformatupdate', (e) => this._handleTextFormatUpdate(e)));
|
|
114
|
+
this._register(editContextAddDisposableListener(this._editContext, 'characterboundsupdate', (e) => this._updateCharacterBounds(e)));
|
|
115
|
+
let highSurrogateCharacter;
|
|
116
|
+
this._register(editContextAddDisposableListener(this._editContext, 'textupdate', (e) => {
|
|
117
|
+
const text = e.text;
|
|
118
|
+
if (text.length === 1) {
|
|
119
|
+
const charCode = text.charCodeAt(0);
|
|
120
|
+
if (isHighSurrogate(charCode)) {
|
|
121
|
+
highSurrogateCharacter = text;
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
if (isLowSurrogate(charCode) && highSurrogateCharacter) {
|
|
125
|
+
const textUpdateEvent = {
|
|
126
|
+
text: highSurrogateCharacter + text,
|
|
127
|
+
selectionEnd: e.selectionEnd,
|
|
128
|
+
selectionStart: e.selectionStart,
|
|
129
|
+
updateRangeStart: e.updateRangeStart - 1,
|
|
130
|
+
updateRangeEnd: e.updateRangeEnd - 1
|
|
131
|
+
};
|
|
132
|
+
highSurrogateCharacter = undefined;
|
|
133
|
+
this._emitTypeEvent(this._viewController, textUpdateEvent);
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
this._emitTypeEvent(this._viewController, e);
|
|
138
|
+
}));
|
|
139
|
+
this._register(editContextAddDisposableListener(this._editContext, 'compositionstart', (e) => {
|
|
140
|
+
this._viewController.compositionStart();
|
|
141
|
+
this._context.viewModel.onCompositionStart();
|
|
142
|
+
}));
|
|
143
|
+
this._register(editContextAddDisposableListener(this._editContext, 'compositionend', (e) => {
|
|
144
|
+
this._viewController.compositionEnd();
|
|
145
|
+
this._context.viewModel.onCompositionEnd();
|
|
146
|
+
}));
|
|
147
|
+
let reenableTracking = false;
|
|
148
|
+
this._register(IME.onDidChange(() => {
|
|
149
|
+
if (IME.enabled && reenableTracking) {
|
|
150
|
+
this.domNode.focus();
|
|
151
|
+
this._focusTracker.resume();
|
|
152
|
+
reenableTracking = false;
|
|
153
|
+
}
|
|
154
|
+
if (!IME.enabled && this.isFocused()) {
|
|
155
|
+
this._focusTracker.pause();
|
|
156
|
+
this._imeTextArea.focus();
|
|
157
|
+
reenableTracking = true;
|
|
158
|
+
}
|
|
126
159
|
}));
|
|
127
160
|
this._register(NativeEditContextRegistry.register(ownerID, this));
|
|
128
161
|
}
|
|
129
162
|
dispose() {
|
|
130
163
|
this.domNode.domNode.blur();
|
|
131
164
|
this.domNode.domNode.remove();
|
|
132
|
-
this.
|
|
165
|
+
this._imeTextArea.domNode.remove();
|
|
133
166
|
super.dispose();
|
|
134
167
|
}
|
|
135
168
|
setAriaOptions(options) {
|
|
@@ -180,19 +213,8 @@ let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
|
180
213
|
onZonesChanged(e) {
|
|
181
214
|
return true;
|
|
182
215
|
}
|
|
183
|
-
|
|
216
|
+
onWillPaste() {
|
|
184
217
|
this._onWillPaste();
|
|
185
|
-
try {
|
|
186
|
-
this._focusTracker.pause();
|
|
187
|
-
this._textArea.focus();
|
|
188
|
-
const result = this._textArea.domNode.ownerDocument.execCommand('paste');
|
|
189
|
-
this._textArea.domNode.textContent = '';
|
|
190
|
-
this.domNode.focus();
|
|
191
|
-
return result;
|
|
192
|
-
}
|
|
193
|
-
finally {
|
|
194
|
-
this._focusTracker.resume();
|
|
195
|
-
}
|
|
196
218
|
}
|
|
197
219
|
_onWillPaste() {
|
|
198
220
|
this._screenReaderSupport.setIgnoreSelectionChangeTime('onWillPaste');
|
|
@@ -218,6 +240,16 @@ let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
|
218
240
|
this._targetWindowId = targetWindowId;
|
|
219
241
|
}
|
|
220
242
|
}
|
|
243
|
+
_onKeyUp(e) {
|
|
244
|
+
this._viewController.emitKeyUp(( new StandardKeyboardEvent(e)));
|
|
245
|
+
}
|
|
246
|
+
_onKeyDown(e) {
|
|
247
|
+
const standardKeyboardEvent = ( new StandardKeyboardEvent(e));
|
|
248
|
+
if (standardKeyboardEvent.keyCode === KeyCode.KEY_IN_COMPOSITION) {
|
|
249
|
+
standardKeyboardEvent.stopPropagation();
|
|
250
|
+
}
|
|
251
|
+
this._viewController.emitKeyDown(standardKeyboardEvent);
|
|
252
|
+
}
|
|
221
253
|
_updateDomAttributes() {
|
|
222
254
|
const options = this._context.configuration.options;
|
|
223
255
|
this.domNode.domNode.setAttribute('tabindex', String(options.get(EditorOption.tabIndex)));
|
|
@@ -348,18 +380,17 @@ let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
|
348
380
|
return;
|
|
349
381
|
}
|
|
350
382
|
const options = this._context.configuration.options;
|
|
351
|
-
const lineHeight = options.get(EditorOption.lineHeight);
|
|
352
383
|
const contentLeft = options.get(EditorOption.layoutInfo).contentLeft;
|
|
353
384
|
const parentBounds = this._parent.getBoundingClientRect();
|
|
354
|
-
const
|
|
355
|
-
const
|
|
356
|
-
const verticalOffsetStart = this._context.viewLayout.getVerticalOffsetForLineNumber(viewStartPosition.lineNumber);
|
|
385
|
+
const viewSelection = this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(this._primarySelection);
|
|
386
|
+
const verticalOffsetStart = this._context.viewLayout.getVerticalOffsetForLineNumber(viewSelection.startLineNumber);
|
|
357
387
|
const top = parentBounds.top + verticalOffsetStart - this._scrollTop;
|
|
358
|
-
const
|
|
388
|
+
const verticalOffsetEnd = this._context.viewLayout.getVerticalOffsetAfterLineNumber(viewSelection.endLineNumber);
|
|
389
|
+
const height = verticalOffsetEnd - verticalOffsetStart;
|
|
359
390
|
let left = parentBounds.left + contentLeft - this._scrollLeft;
|
|
360
391
|
let width;
|
|
361
392
|
if (this._primarySelection.isEmpty()) {
|
|
362
|
-
const linesVisibleRanges = ctx.visibleRangeForPosition(
|
|
393
|
+
const linesVisibleRanges = ctx.visibleRangeForPosition(viewSelection.getStartPosition());
|
|
363
394
|
if (linesVisibleRanges) {
|
|
364
395
|
left += linesVisibleRanges.left;
|
|
365
396
|
}
|
|
@@ -378,7 +409,6 @@ let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
|
378
409
|
}
|
|
379
410
|
const options = this._context.configuration.options;
|
|
380
411
|
const typicalHalfWidthCharacterWidth = options.get(EditorOption.fontInfo).typicalHalfwidthCharacterWidth;
|
|
381
|
-
const lineHeight = options.get(EditorOption.lineHeight);
|
|
382
412
|
const contentLeft = options.get(EditorOption.layoutInfo).contentLeft;
|
|
383
413
|
const parentBounds = this._parent.getBoundingClientRect();
|
|
384
414
|
const characterBounds = [];
|
|
@@ -394,7 +424,8 @@ let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
|
394
424
|
const characterModelRange = Range.fromPositions(characterStartPosition, characterEndPosition);
|
|
395
425
|
const characterViewRange = this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(characterModelRange);
|
|
396
426
|
const characterLinesVisibleRanges = this._visibleRangeProvider.linesVisibleRangesForRange(characterViewRange, true) ?? [];
|
|
397
|
-
const
|
|
427
|
+
const lineNumber = characterViewRange.startLineNumber;
|
|
428
|
+
const characterVerticalOffset = this._context.viewLayout.getVerticalOffsetForLineNumber(lineNumber);
|
|
398
429
|
const top = parentBounds.top + characterVerticalOffset - this._scrollTop;
|
|
399
430
|
let left = 0;
|
|
400
431
|
let width = typicalHalfWidthCharacterWidth;
|
|
@@ -405,6 +436,7 @@ let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
|
405
436
|
break;
|
|
406
437
|
}
|
|
407
438
|
}
|
|
439
|
+
const lineHeight = this._context.viewLayout.getLineHeightForLineNumber(lineNumber);
|
|
408
440
|
characterBounds.push(( new DOMRect(
|
|
409
441
|
parentBounds.left + contentLeft + left - this._scrollLeft,
|
|
410
442
|
top,
|
|
@@ -437,7 +469,7 @@ let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
|
437
469
|
let previousSelectionChangeEventTime = 0;
|
|
438
470
|
return addDisposableListener(this.domNode.domNode.ownerDocument, 'selectionchange', () => {
|
|
439
471
|
const isScreenReaderOptimized = this._accessibilityService.isScreenReaderOptimized();
|
|
440
|
-
if (!this.isFocused() || !isScreenReaderOptimized) {
|
|
472
|
+
if (!this.isFocused() || !isScreenReaderOptimized || !IME.enabled) {
|
|
441
473
|
return;
|
|
442
474
|
}
|
|
443
475
|
const screenReaderContentState = this._screenReaderSupport.screenReaderContentState;
|
|
@@ -20,7 +20,6 @@ let ScreenReaderSupport = class ScreenReaderSupport {
|
|
|
20
20
|
this._contentWidth = 1;
|
|
21
21
|
this._contentHeight = 1;
|
|
22
22
|
this._divWidth = 1;
|
|
23
|
-
this._lineHeight = 1;
|
|
24
23
|
this._accessibilityPageSize = 1;
|
|
25
24
|
this._ignoreSelectionChangeTime = 0;
|
|
26
25
|
this._primarySelection = ( new Selection(1, 1, 1, 1));
|
|
@@ -52,7 +51,6 @@ let ScreenReaderSupport = class ScreenReaderSupport {
|
|
|
52
51
|
this._contentWidth = layoutInfo.contentWidth;
|
|
53
52
|
this._contentHeight = layoutInfo.height;
|
|
54
53
|
this._fontInfo = options.get(EditorOption.fontInfo);
|
|
55
|
-
this._lineHeight = options.get(EditorOption.lineHeight);
|
|
56
54
|
this._accessibilityPageSize = options.get(EditorOption.accessibilityPageSize);
|
|
57
55
|
this._divWidth = Math.round(wrappingColumn * this._fontInfo.typicalHalfwidthCharacterWidth);
|
|
58
56
|
}
|
|
@@ -99,10 +97,10 @@ let ScreenReaderSupport = class ScreenReaderSupport {
|
|
|
99
97
|
this._renderAtTopLeft();
|
|
100
98
|
return;
|
|
101
99
|
}
|
|
102
|
-
const
|
|
103
|
-
const
|
|
104
|
-
const scrollTop =
|
|
105
|
-
this._doRender(scrollTop, top, this._contentLeft, this._divWidth,
|
|
100
|
+
const lineHeight = this._context.viewLayout.getLineHeightForLineNumber(positionLineNumber);
|
|
101
|
+
const lineNumberWithinStateAboveCursor = positionLineNumber - this._screenReaderContentState.startPositionWithinEditor.lineNumber;
|
|
102
|
+
const scrollTop = lineNumberWithinStateAboveCursor * lineHeight;
|
|
103
|
+
this._doRender(scrollTop, top, this._contentLeft, this._divWidth, lineHeight);
|
|
106
104
|
}
|
|
107
105
|
_renderAtTopLeft() {
|
|
108
106
|
this._doRender(0, 0, 0, this._contentWidth, 1);
|
|
@@ -113,6 +111,7 @@ let ScreenReaderSupport = class ScreenReaderSupport {
|
|
|
113
111
|
this._domNode.setLeft(left);
|
|
114
112
|
this._domNode.setWidth(width);
|
|
115
113
|
this._domNode.setHeight(height);
|
|
114
|
+
this._domNode.setLineHeight(height);
|
|
116
115
|
this._domNode.domNode.scrollTop = scrollTop;
|
|
117
116
|
}
|
|
118
117
|
setAriaOptions(options) {
|
|
@@ -138,9 +137,14 @@ let ScreenReaderSupport = class ScreenReaderSupport {
|
|
|
138
137
|
const isScreenReaderOptimized = this._accessibilityService.isScreenReaderOptimized();
|
|
139
138
|
if (isScreenReaderOptimized) {
|
|
140
139
|
this._screenReaderContentState = this._getScreenReaderContentState();
|
|
141
|
-
|
|
140
|
+
const endPosition = this._context.viewModel.model.getPositionAt(Infinity);
|
|
141
|
+
let value = this._screenReaderContentState.value;
|
|
142
|
+
if (endPosition.column === 1 && this._primarySelection.getEndPosition().equals(endPosition)) {
|
|
143
|
+
value += '\n';
|
|
144
|
+
}
|
|
145
|
+
if (this._domNode.domNode.textContent !== value) {
|
|
142
146
|
this.setIgnoreSelectionChangeTime('setValue');
|
|
143
|
-
this._domNode.domNode.textContent =
|
|
147
|
+
this._domNode.domNode.textContent = value;
|
|
144
148
|
}
|
|
145
149
|
this._setSelectionOfScreenReaderContent(this._screenReaderContentState.selectionStart, this._screenReaderContentState.selectionEnd);
|
|
146
150
|
}
|
package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ export declare class TextAreaEditContext extends AbstractEditContext {
|
|
|
28
28
|
private _contentWidth;
|
|
29
29
|
private _contentHeight;
|
|
30
30
|
private _fontInfo;
|
|
31
|
-
private _lineHeight;
|
|
32
31
|
private _emptySelectionClipboard;
|
|
33
32
|
private _copyWithSyntaxHighlighting;
|
|
34
33
|
private _visibleTextArea;
|
|
@@ -102,7 +102,6 @@ let TextAreaEditContext = class TextAreaEditContext extends AbstractEditContext
|
|
|
102
102
|
this._contentWidth = layoutInfo.contentWidth;
|
|
103
103
|
this._contentHeight = layoutInfo.height;
|
|
104
104
|
this._fontInfo = options.get(EditorOption.fontInfo);
|
|
105
|
-
this._lineHeight = options.get(EditorOption.lineHeight);
|
|
106
105
|
this._emptySelectionClipboard = options.get(EditorOption.emptySelectionClipboard);
|
|
107
106
|
this._copyWithSyntaxHighlighting = options.get(EditorOption.copyWithSyntaxHighlighting);
|
|
108
107
|
this._visibleTextArea = null;
|
|
@@ -421,7 +420,6 @@ let TextAreaEditContext = class TextAreaEditContext extends AbstractEditContext
|
|
|
421
420
|
this._contentWidth = layoutInfo.contentWidth;
|
|
422
421
|
this._contentHeight = layoutInfo.height;
|
|
423
422
|
this._fontInfo = options.get(EditorOption.fontInfo);
|
|
424
|
-
this._lineHeight = options.get(EditorOption.lineHeight);
|
|
425
423
|
this._emptySelectionClipboard = options.get(EditorOption.emptySelectionClipboard);
|
|
426
424
|
this._copyWithSyntaxHighlighting = options.get(EditorOption.copyWithSyntaxHighlighting);
|
|
427
425
|
this.textArea.setAttribute('wrap', this._textAreaWrapping && !this._visibleTextArea ? 'on' : 'off');
|
|
@@ -534,19 +532,21 @@ let TextAreaEditContext = class TextAreaEditContext extends AbstractEditContext
|
|
|
534
532
|
if (width > this._contentWidth) {
|
|
535
533
|
width = this._contentWidth;
|
|
536
534
|
}
|
|
535
|
+
const viewPosition = this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(( new Position(startPosition.lineNumber, 1)));
|
|
536
|
+
const lineHeight = this._context.viewLayout.getLineHeightForLineNumber(viewPosition.lineNumber);
|
|
537
537
|
const viewLineData = this._context.viewModel.getViewLineData(startPosition.lineNumber);
|
|
538
538
|
const startTokenIndex = viewLineData.tokens.findTokenIndexAtOffset(startPosition.column - 1);
|
|
539
539
|
const endTokenIndex = viewLineData.tokens.findTokenIndexAtOffset(endPosition.column - 1);
|
|
540
540
|
const textareaSpansSingleToken = (startTokenIndex === endTokenIndex);
|
|
541
541
|
const presentation = this._visibleTextArea.definePresentation((textareaSpansSingleToken ? viewLineData.tokens.getPresentation(startTokenIndex) : null));
|
|
542
|
-
this.textArea.domNode.scrollTop = lineCount *
|
|
542
|
+
this.textArea.domNode.scrollTop = lineCount * lineHeight;
|
|
543
543
|
this.textArea.domNode.scrollLeft = scrollLeft;
|
|
544
544
|
this._doRender({
|
|
545
545
|
lastRenderPosition: null,
|
|
546
546
|
top: top,
|
|
547
547
|
left: left,
|
|
548
548
|
width: width,
|
|
549
|
-
height:
|
|
549
|
+
height: lineHeight,
|
|
550
550
|
useCover: false,
|
|
551
551
|
color: (TokenizationRegistry.getColorMap() || [])[presentation.foreground],
|
|
552
552
|
italic: presentation.italic,
|
|
@@ -572,17 +572,19 @@ let TextAreaEditContext = class TextAreaEditContext extends AbstractEditContext
|
|
|
572
572
|
return;
|
|
573
573
|
}
|
|
574
574
|
if (isMacintosh || this._accessibilitySupport === AccessibilitySupport.Enabled) {
|
|
575
|
+
const lineNumber = this._primaryCursorPosition.lineNumber;
|
|
576
|
+
const lineHeight = this._context.viewLayout.getLineHeightForLineNumber(lineNumber);
|
|
575
577
|
this._doRender({
|
|
576
578
|
lastRenderPosition: this._primaryCursorPosition,
|
|
577
579
|
top,
|
|
578
580
|
left: this._textAreaWrapping ? this._contentLeft : left,
|
|
579
581
|
width: this._textAreaWidth,
|
|
580
|
-
height:
|
|
582
|
+
height: lineHeight,
|
|
581
583
|
useCover: false
|
|
582
584
|
});
|
|
583
585
|
this.textArea.domNode.scrollLeft = this._primaryCursorVisibleRange.left;
|
|
584
586
|
const lineCount = this._textAreaInput.textAreaState.newlineCountBeforeSelection ?? newlinecount(this.textArea.domNode.value.substring(0, this.textArea.domNode.selectionStart));
|
|
585
|
-
this.textArea.domNode.scrollTop = lineCount *
|
|
587
|
+
this.textArea.domNode.scrollTop = lineCount * lineHeight;
|
|
586
588
|
return;
|
|
587
589
|
}
|
|
588
590
|
this._doRender({
|
|
@@ -613,6 +615,7 @@ let TextAreaEditContext = class TextAreaEditContext extends AbstractEditContext
|
|
|
613
615
|
ta.setLeft(renderData.left);
|
|
614
616
|
ta.setWidth(renderData.width);
|
|
615
617
|
ta.setHeight(renderData.height);
|
|
618
|
+
ta.setLineHeight(renderData.height);
|
|
616
619
|
ta.setColor(renderData.color ? Color.Format.CSS.formatHex(renderData.color) : '');
|
|
617
620
|
ta.setFontStyle(renderData.italic ? 'italic' : '');
|
|
618
621
|
if (renderData.bold) {
|
package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.js
CHANGED
|
@@ -372,6 +372,9 @@ class TextAreaWrapper extends Disposable {
|
|
|
372
372
|
constructor(_actual) {
|
|
373
373
|
super();
|
|
374
374
|
this._actual = _actual;
|
|
375
|
+
this._onSyntheticTap = this._register(( new Emitter()));
|
|
376
|
+
this.onSyntheticTap = this._onSyntheticTap.event;
|
|
377
|
+
this._ignoreSelectionChangeTime = 0;
|
|
375
378
|
this.onKeyDown = this._register(( new DomEmitter(this._actual, 'keydown'))).event;
|
|
376
379
|
this.onKeyPress = this._register(( new DomEmitter(this._actual, 'keypress'))).event;
|
|
377
380
|
this.onKeyUp = this._register(( new DomEmitter(this._actual, 'keyup'))).event;
|
|
@@ -385,9 +388,6 @@ class TextAreaWrapper extends Disposable {
|
|
|
385
388
|
this.onPaste = this._register(( new DomEmitter(this._actual, 'paste'))).event;
|
|
386
389
|
this.onFocus = this._register(( new DomEmitter(this._actual, 'focus'))).event;
|
|
387
390
|
this.onBlur = this._register(( new DomEmitter(this._actual, 'blur'))).event;
|
|
388
|
-
this._onSyntheticTap = this._register(( new Emitter()));
|
|
389
|
-
this.onSyntheticTap = this._onSyntheticTap.event;
|
|
390
|
-
this._ignoreSelectionChangeTime = 0;
|
|
391
391
|
this._register(this.onKeyDown(() => inputLatency.onKeyDown()));
|
|
392
392
|
this._register(this.onBeforeInput(() => inputLatency.onBeforeInput()));
|
|
393
393
|
this._register(this.onInput(() => inputLatency.onInput()));
|
|
@@ -849,8 +849,8 @@ function shadowCaretRangeFromPoint(shadowRoot, x, y) {
|
|
|
849
849
|
pixelCursor += step;
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
|
-
range.setStart(el.firstChild, offset);
|
|
853
|
-
range.setEnd(el.firstChild, offset);
|
|
852
|
+
range.setStart(el.firstChild ?? el, offset);
|
|
853
|
+
range.setEnd(el.firstChild ?? el, offset);
|
|
854
854
|
}
|
|
855
855
|
return range;
|
|
856
856
|
}
|
|
@@ -14,7 +14,7 @@ import { IDiffComputationResult, ILineChange } from "../common/diff/legacyLinesD
|
|
|
14
14
|
import * as editorCommon from "../common/editorCommon.js";
|
|
15
15
|
import { GlyphMarginLane, ICursorStateComputer, IIdentifiedSingleEditOperation, IModelDecoration, IModelDeltaDecoration, ITextModel, PositionAffinity } from "../common/model.js";
|
|
16
16
|
import { InjectedText } from "../common/modelLineProjectionData.js";
|
|
17
|
-
import { IModelContentChangedEvent, IModelDecorationsChangedEvent, IModelLanguageChangedEvent, IModelLanguageConfigurationChangedEvent, IModelOptionsChangedEvent, IModelTokensChangedEvent } from "../common/textModelEvents.js";
|
|
17
|
+
import { IModelContentChangedEvent, IModelDecorationsChangedEvent, IModelLanguageChangedEvent, IModelLanguageConfigurationChangedEvent, IModelOptionsChangedEvent, IModelTokensChangedEvent, ModelLineHeightChangedEvent } from "../common/textModelEvents.js";
|
|
18
18
|
import { IEditorWhitespace, IViewModel } from "../common/viewModel.js";
|
|
19
19
|
import { OverviewRulerZone } from "../common/viewModel/overviewZoneManager.js";
|
|
20
20
|
import { MenuId } from "../../platform/actions/common/actions.js";
|
|
@@ -8,7 +8,7 @@ export type ObjectCollectionPropertyValues<T extends ObjectCollectionBufferPrope
|
|
|
8
8
|
[K in T[number]["name"]]: number;
|
|
9
9
|
};
|
|
10
10
|
export interface IObjectCollectionBuffer<T extends ObjectCollectionBufferPropertySpec[]> extends IDisposable {
|
|
11
|
-
readonly buffer:
|
|
11
|
+
readonly buffer: ArrayBufferLike;
|
|
12
12
|
readonly view: Float32Array;
|
|
13
13
|
readonly bufferUsedSize: number;
|
|
14
14
|
readonly viewUsedSize: number;
|
|
@@ -388,6 +388,7 @@ class DecorationTypeOptionsProvider {
|
|
|
388
388
|
this.glyphMarginClassName = createCSSRules(ModelDecorationCSSRuleType.GlyphMarginClassName);
|
|
389
389
|
const options = providerArgs.options;
|
|
390
390
|
this.isWholeLine = Boolean(options.isWholeLine);
|
|
391
|
+
this.lineHeight = options.lineHeight;
|
|
391
392
|
this.stickiness = options.rangeBehavior;
|
|
392
393
|
const lightOverviewRulerColor = options.light && options.light.overviewRulerColor || options.overviewRulerColor;
|
|
393
394
|
const darkOverviewRulerColor = options.dark && options.dark.overviewRulerColor || options.overviewRulerColor;
|
|
@@ -412,6 +413,7 @@ class DecorationTypeOptionsProvider {
|
|
|
412
413
|
className: this.className,
|
|
413
414
|
glyphMarginClassName: this.glyphMarginClassName,
|
|
414
415
|
isWholeLine: this.isWholeLine,
|
|
416
|
+
lineHeight: this.lineHeight,
|
|
415
417
|
overviewRuler: this.overviewRuler,
|
|
416
418
|
stickiness: this.stickiness,
|
|
417
419
|
before: this.beforeInjectedText,
|
|
@@ -11,12 +11,20 @@
|
|
|
11
11
|
color: var(--vscode-editorHoverWidget-foreground);
|
|
12
12
|
box-shadow: 0 2px 8px var(--vscode-widget-shadow);
|
|
13
13
|
}
|
|
14
|
+
.monaco-workbench .workbench-hover .monaco-action-bar .action-item .codicon {
|
|
15
|
+
width: 13px;
|
|
16
|
+
height: 13px;
|
|
17
|
+
}
|
|
14
18
|
.monaco-workbench .workbench-hover hr {
|
|
15
19
|
border-bottom: none;
|
|
16
20
|
}
|
|
17
21
|
.monaco-workbench .workbench-hover.compact {
|
|
18
22
|
font-size: 12px;
|
|
19
23
|
}
|
|
24
|
+
.monaco-workbench .workbench-hover.compact .monaco-action-bar .action-item .codicon {
|
|
25
|
+
width: 12px;
|
|
26
|
+
height: 12px;
|
|
27
|
+
}
|
|
20
28
|
.monaco-workbench .workbench-hover.compact .hover-contents {
|
|
21
29
|
padding: 2px 8px;
|
|
22
30
|
}
|
|
@@ -28,6 +28,7 @@ export declare class HoverWidget extends Widget implements IHoverWidget {
|
|
|
28
28
|
private _isLocked;
|
|
29
29
|
private _enableFocusTraps;
|
|
30
30
|
private _addedFocusTrap;
|
|
31
|
+
private _maxHeightRatioRelativeToWindow;
|
|
31
32
|
private get _targetWindow();
|
|
32
33
|
private get _targetDocumentElement();
|
|
33
34
|
get isDisposed(): boolean;
|
|
@@ -69,6 +69,7 @@ let HoverWidget = class HoverWidget extends Widget {
|
|
|
69
69
|
this._isLocked = false;
|
|
70
70
|
this._enableFocusTraps = false;
|
|
71
71
|
this._addedFocusTrap = false;
|
|
72
|
+
this._maxHeightRatioRelativeToWindow = 0.5;
|
|
72
73
|
this._onDispose = this._register(( new Emitter()));
|
|
73
74
|
this._onRequestLayout = this._register(( new Emitter()));
|
|
74
75
|
this._linkHandler = options.linkHandler || (url => {
|
|
@@ -90,6 +91,10 @@ let HoverWidget = class HoverWidget extends Widget {
|
|
|
90
91
|
if (options.trapFocus) {
|
|
91
92
|
this._enableFocusTraps = true;
|
|
92
93
|
}
|
|
94
|
+
const maxHeightRatio = options.appearance?.maxHeightRatio;
|
|
95
|
+
if (maxHeightRatio !== undefined && maxHeightRatio > 0 && maxHeightRatio <= 1) {
|
|
96
|
+
this._maxHeightRatioRelativeToWindow = maxHeightRatio;
|
|
97
|
+
}
|
|
93
98
|
this._hoverPosition = options.position?.hoverPosition === undefined
|
|
94
99
|
? HoverPosition.ABOVE
|
|
95
100
|
: isNumber(options.position.hoverPosition)
|
|
@@ -427,7 +432,7 @@ let HoverWidget = class HoverWidget extends Widget {
|
|
|
427
432
|
}
|
|
428
433
|
}
|
|
429
434
|
adjustHoverMaxHeight(target) {
|
|
430
|
-
let maxHeight = this._targetWindow.innerHeight
|
|
435
|
+
let maxHeight = this._targetWindow.innerHeight * this._maxHeightRatioRelativeToWindow;
|
|
431
436
|
if (this._forcePosition) {
|
|
432
437
|
const padding = (this._hoverPointer ? Constants.PointerSize : 0) + Constants.HoverBorderWidth;
|
|
433
438
|
if (this._hoverPosition === HoverPosition.ABOVE) {
|
|
@@ -22,6 +22,7 @@ export declare abstract class RestrictedRenderingContext {
|
|
|
22
22
|
getScrolledTopFromAbsoluteTop(absoluteTop: number): number;
|
|
23
23
|
getVerticalOffsetForLineNumber(lineNumber: number, includeViewZones?: boolean): number;
|
|
24
24
|
getVerticalOffsetAfterLineNumber(lineNumber: number, includeViewZones?: boolean): number;
|
|
25
|
+
getLineHeightForLineNumber(lineNumber: number): number;
|
|
25
26
|
getDecorationsInViewport(): ViewModelDecoration[];
|
|
26
27
|
}
|
|
27
28
|
export declare class RenderingContext extends RestrictedRenderingContext {
|
|
@@ -24,6 +24,9 @@ class RestrictedRenderingContext {
|
|
|
24
24
|
getVerticalOffsetAfterLineNumber(lineNumber, includeViewZones) {
|
|
25
25
|
return this._viewLayout.getVerticalOffsetAfterLineNumber(lineNumber, includeViewZones);
|
|
26
26
|
}
|
|
27
|
+
getLineHeightForLineNumber(lineNumber) {
|
|
28
|
+
return this._viewLayout.getLineHeightForLineNumber(lineNumber);
|
|
29
|
+
}
|
|
27
30
|
getDecorationsInViewport() {
|
|
28
31
|
return this.viewportData.getDecorationsInViewport();
|
|
29
32
|
}
|
|
@@ -2,6 +2,7 @@ import { FastDomNode } from "../../../base/browser/fastDomNode.js";
|
|
|
2
2
|
import { StringBuilder } from "../../common/core/stringBuilder.js";
|
|
3
3
|
import * as viewEvents from "../../common/viewEvents.js";
|
|
4
4
|
import { ViewportData } from "../../common/viewLayout/viewLinesViewportData.js";
|
|
5
|
+
import { ViewContext } from "../../common/viewModel/viewContext.js";
|
|
5
6
|
export interface IVisibleLine extends ILine {
|
|
6
7
|
getDomNode(): HTMLElement | null;
|
|
7
8
|
setDomNode(domNode: HTMLElement): void;
|
|
@@ -39,10 +40,11 @@ export declare class RenderedLinesCollection<T extends ILine> {
|
|
|
39
40
|
}[]): boolean;
|
|
40
41
|
}
|
|
41
42
|
export declare class VisibleLinesCollection<T extends IVisibleLine> {
|
|
43
|
+
private readonly _viewContext;
|
|
42
44
|
private readonly _lineFactory;
|
|
43
45
|
readonly domNode: FastDomNode<HTMLElement>;
|
|
44
46
|
private readonly _linesCollection;
|
|
45
|
-
constructor(_lineFactory: ILineFactory<T>);
|
|
47
|
+
constructor(_viewContext: ViewContext, _lineFactory: ILineFactory<T>);
|
|
46
48
|
private _createDomNode;
|
|
47
49
|
onConfigurationChanged(e: viewEvents.ViewConfigurationChangedEvent): boolean;
|
|
48
50
|
onFlushed(e: viewEvents.ViewFlushedEvent, flushDom?: boolean): boolean;
|