@codingame/monaco-vscode-api 18.4.0 → 19.0.1
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 +1217 -2932
- package/monaco.js +0 -3
- package/package.json +8 -8
- package/services.d.ts +12 -8
- package/services.js +12 -7
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/dom.d.ts +83 -2
- package/vscode/src/vs/base/browser/dom.js +280 -3
- package/vscode/src/vs/base/browser/domStylesheets.d.ts +2 -0
- package/vscode/src/vs/base/browser/domStylesheets.js +11 -1
- package/vscode/src/vs/base/browser/markdownRenderer.d.ts +1 -0
- package/vscode/src/vs/base/browser/markdownRenderer.js +34 -18
- package/vscode/src/vs/base/browser/ui/button/button.js +4 -1
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/list/list.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/list/listView.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/list/listView.js +5 -5
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +5 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +3 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +21 -4
- package/vscode/src/vs/base/common/arrays.d.ts +0 -1
- package/vscode/src/vs/base/common/arrays.js +1 -6
- package/vscode/src/vs/base/common/async.d.ts +1 -0
- package/vscode/src/vs/base/common/async.js +2 -1
- package/vscode/src/vs/base/common/buffer.d.ts +1 -0
- package/vscode/src/vs/base/common/buffer.js +3 -0
- package/vscode/src/vs/base/common/codicons.d.ts +7 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +7 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +7 -0
- package/vscode/src/vs/base/common/collections.d.ts +1 -0
- package/vscode/src/vs/base/common/collections.js +14 -1
- package/vscode/src/vs/base/common/color.js +2 -2
- package/vscode/src/vs/base/common/dataTransfer.d.ts +1 -1
- package/vscode/src/vs/base/common/decorators.d.ts +1 -1
- package/vscode/src/vs/base/common/event.d.ts +1 -1
- package/vscode/src/vs/base/common/glob.d.ts +1 -1
- package/vscode/src/vs/base/common/glob.js +2 -2
- package/vscode/src/vs/base/common/hotReloadHelpers.js +1 -1
- package/vscode/src/vs/base/common/iterator.d.ts +1 -1
- package/vscode/src/vs/base/common/network.d.ts +1 -0
- package/vscode/src/vs/base/common/network.js +1 -0
- package/vscode/src/vs/base/common/oauth.d.ts +34 -4
- package/vscode/src/vs/base/common/oauth.js +77 -6
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/utils.js +8 -1
- package/vscode/src/vs/base/common/observableInternal/set.js +0 -1
- package/vscode/src/vs/base/common/performance.js +1 -1
- package/vscode/src/vs/base/common/product.d.ts +2 -1
- package/vscode/src/vs/base/common/types.d.ts +4 -8
- package/vscode/src/vs/base/common/types.js +3 -3
- package/vscode/src/vs/base/common/worker/webWorker.js +1 -1
- package/vscode/src/vs/editor/browser/config/migrateOptions.js +8 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +2 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +18 -14
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +5 -3
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.js +5 -4
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.js +3 -3
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +2 -3
- package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +6 -0
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +38 -1
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +9 -1
- package/vscode/src/vs/editor/browser/services/bulkEditService.d.ts +2 -0
- package/vscode/src/vs/editor/browser/services/editorWorkerService.d.ts +4 -0
- package/vscode/src/vs/editor/browser/services/editorWorkerService.js +18 -2
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.d.ts +32 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +141 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.d.ts +11 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.js +6 -0
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +2 -2
- package/vscode/src/vs/editor/browser/view/viewController.js +5 -1
- package/vscode/src/vs/editor/browser/view.d.ts +1 -1
- package/vscode/src/vs/editor/browser/view.js +5 -5
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.d.ts +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +3 -3
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +14 -6
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.d.ts +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +3 -7
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +12 -2
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +4 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +8 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +39 -9
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.css +52 -49
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +15 -15
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +3 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +7 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +54 -54
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +173 -160
- package/vscode/src/vs/editor/common/config/editorOptions.js +645 -570
- package/vscode/src/vs/editor/common/config/fontInfo.js +1 -1
- package/vscode/src/vs/editor/common/core/2d/point.d.ts +5 -0
- package/vscode/src/vs/editor/common/core/2d/point.js +23 -0
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/edits/edit.d.ts +6 -0
- package/vscode/src/vs/editor/common/core/edits/edit.js +41 -0
- package/vscode/src/vs/editor/common/core/edits/lineEdit.d.ts +17 -11
- package/vscode/src/vs/editor/common/core/edits/lineEdit.js +36 -9
- package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +63 -16
- package/vscode/src/vs/editor/common/core/edits/stringEdit.js +205 -48
- package/vscode/src/vs/editor/common/core/edits/textEdit.d.ts +5 -1
- package/vscode/src/vs/editor/common/core/edits/textEdit.js +18 -2
- package/vscode/src/vs/editor/common/core/text/abstractText.d.ts +3 -1
- package/vscode/src/vs/editor/common/core/text/abstractText.js +10 -1
- package/vscode/src/vs/editor/common/core/text/getPositionOffsetTransformerFromTextModel.js +2 -1
- package/vscode/src/vs/editor/common/core/text/positionToOffset.d.ts +2 -28
- package/vscode/src/vs/editor/common/core/text/positionToOffset.js +11 -92
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.d.ts +37 -0
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.js +104 -0
- package/vscode/src/vs/editor/common/cursor/cursor.d.ts +3 -2
- package/vscode/src/vs/editor/common/cursor/cursor.js +24 -16
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +3 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +1 -0
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +11 -1
- package/vscode/src/vs/editor/common/editorCommon.d.ts +2 -1
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languages/defaultDocumentColorsComputer.js +1 -1
- package/vscode/src/vs/editor/common/languages/languageConfiguration.d.ts +5 -1
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.d.ts +1 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +7 -1
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +31 -27
- package/vscode/src/vs/editor/common/languages.js +57 -62
- package/vscode/src/vs/editor/common/model/editStack.d.ts +2 -1
- package/vscode/src/vs/editor/common/model/editStack.js +4 -3
- package/vscode/src/vs/editor/common/model/intervalTree.d.ts +2 -2
- package/vscode/src/vs/editor/common/model/intervalTree.js +24 -7
- package/vscode/src/vs/editor/common/model/textModel.d.ts +24 -10
- package/vscode/src/vs/editor/common/model/textModel.js +114 -53
- package/vscode/src/vs/editor/common/model/tokens/abstractSyntaxTokenBackend.js +1 -1
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterSyntaxTokenBackend.d.ts +0 -3
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterSyntaxTokenBackend.js +1 -13
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTree.d.ts +2 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTree.js +13 -2
- package/vscode/src/vs/editor/common/model.d.ts +8 -2
- package/vscode/src/vs/editor/common/services/editorWebWorker.d.ts +4 -0
- package/vscode/src/vs/editor/common/services/editorWebWorker.js +14 -0
- package/vscode/src/vs/editor/common/services/editorWorker.service.d.ts +4 -0
- package/vscode/src/vs/editor/common/services/findSectionHeaders.js +7 -0
- package/vscode/src/vs/editor/common/services/languageFeatures.service.d.ts +1 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.d.ts +1 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +0 -1
- package/vscode/src/vs/editor/common/services/model.service.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/modelService.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/modelService.js +3 -2
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.service.d.ts +1 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +159 -157
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +160 -159
- package/vscode/src/vs/editor/common/standaloneStrings.js +50 -49
- package/vscode/src/vs/editor/common/textModelEditReason.d.ts +94 -12
- package/vscode/src/vs/editor/common/textModelEditReason.js +86 -20
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +24 -0
- package/vscode/src/vs/editor/common/textModelEvents.js +33 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +22 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.js +79 -2
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.d.ts +5 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.js +10 -4
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +3 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +39 -12
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.d.ts +3 -3
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.js +6 -6
- package/vscode/src/vs/editor/common/viewModel.d.ts +3 -1
- package/vscode/src/vs/editor/common/viewModel.js +2 -1
- 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/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +20 -20
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +3 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.css +2 -7
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.js +3 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.js +9 -5
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +29 -29
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -20
- 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 +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +10 -5
- 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 +9 -9
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +10 -6
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +22 -47
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +11 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +3 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/animation.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/animation.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.js +35 -30
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.js +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/graph.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/graph.js +66 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +12 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +144 -100
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +7 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +100 -49
- 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 +4 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +37 -29
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +39 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +150 -162
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +2 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +12 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js +9 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +13 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.d.ts +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.d.ts +5 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +5 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +103 -62
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +25 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.js +13 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.js +1 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +4 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +7 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +16 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.d.ts +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +34 -34
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +13 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +6 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.js +20 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +4 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +10 -7
- 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/middleScroll/browser/middleScroll.contribution.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScroll.contribution.js +5 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScroll.css +20 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.js +132 -0
- 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 +9 -9
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +21 -17
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.css +0 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +14 -12
- 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.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +5 -5
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +3 -2
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css +24 -24
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +13 -13
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +18 -10
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.d.ts +4 -3
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +34 -39
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.d.ts +5 -6
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +65 -70
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +13 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -18
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +4 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js +1 -1
- 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 +1 -1
- 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/standalone/browser/standaloneServices.d.ts +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +5 -2
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +79 -69
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +4 -4
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- 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 +0 -1
- package/vscode/src/vs/platform/actions/common/actions.js +0 -1
- 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/configuration/common/configuration.js +4 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +11 -11
- 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.js +1 -1
- package/vscode/src/vs/platform/environment/common/argv.d.ts +11 -0
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +19 -19
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +9 -3
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +9 -3
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.d.ts +6 -1
- package/vscode/src/vs/platform/files/common/files.js +11 -7
- package/vscode/src/vs/platform/files/common/files.service.d.ts +1 -0
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.d.ts +2 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/keybinding/common/keybinding.service.d.ts +2 -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 -7
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.d.ts +4 -0
- package/vscode/src/vs/platform/log/common/log.js +15 -7
- package/vscode/src/vs/platform/markers/common/markerService.js +4 -3
- package/vscode/src/vs/platform/markers/common/markers.d.ts +2 -0
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +9 -4
- package/vscode/src/vs/platform/mcp/common/mcpResourceScannerService.service.d.ts +10 -0
- package/vscode/src/vs/platform/mcp/common/mcpResourceScannerService.service.js +6 -0
- package/vscode/src/vs/platform/notification/common/notification.d.ts +1 -0
- package/vscode/src/vs/platform/notification/common/notification.js +12 -2
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +7 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +7 -12
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +2 -1
- package/vscode/src/vs/platform/remote/common/remoteAgentEnvironment.d.ts +1 -0
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.d.ts +2 -2
- 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/commonProperties.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +2 -0
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +2 -1
- package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +2 -1
- package/vscode/src/vs/platform/theme/browser/defaultStyles.d.ts +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- 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.d.ts +1 -0
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -94
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +47 -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 +6 -6
- package/vscode/src/vs/platform/theme/common/themeService.d.ts +1 -1
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +3 -1
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +6 -2
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +2 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +7 -6
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +1 -1
- package/vscode/src/vs/platform/window/common/window.d.ts +1 -0
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +5 -7
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +25 -24
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +10 -4
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +109 -77
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +22 -0
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +3 -0
- 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/extHostDocuments.d.ts +4 -2
- package/vscode/src/vs/workbench/api/common/extHostDocuments.js +35 -5
- package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +3 -4
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +1 -5
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +34 -182
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +7 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +2 -3
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +3 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +71 -20
- package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +7 -5
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditor.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +7 -3
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.d.ts +4 -3
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +5 -2
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +3 -0
- 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 +16 -7
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +20 -8
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +16 -13
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +11 -12
- package/vscode/src/vs/workbench/api/common/extHostWebviewMessaging.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/contextkeys.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/contextkeys.js +6 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.d.ts +1 -1
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +1 -0
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -72
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +2 -1
- package/vscode/src/vs/workbench/common/editor.js +6 -6
- 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 +157 -160
- 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/chatAttachmentResolveService.service.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +62 -41
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +24 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +29 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +152 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +160 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +2 -1
- 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 +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +11 -24
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +22 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/frontMatterCodec/tokens/index.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/simpleCodec/tokens/tokens.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +2 -17
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.d.ts → promptsService.d.ts} +14 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.service.d.ts → promptsService.service.d.ts} +6 -7
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +6 -6
- 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.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 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +73 -65
- package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.js +7 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -4
- 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 +1 -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/mcpTypes.d.ts +55 -9
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +29 -13
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +16 -6
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +119 -31
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.service.js +6 -0
- 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/constants.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +10 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +13 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +13 -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.d.ts +1 -0
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +6 -4
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +4 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.d.ts +132 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.service.d.ts +20 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.service.js +6 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.js +6 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -1
- 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/environment/common/environmentService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.d.ts +1 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +84 -84
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +2 -2
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +17 -17
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +5 -1
- 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/mcp/common/mcpWorkbenchManagementService.service.d.ts +16 -0
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.js +6 -0
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- 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 +3 -3
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +1 -1
- 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 +13 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +1 -1
- package/vscode-dts/vscode.proposed.authProviderSpecific.d.ts +30 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +10 -0
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +10 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +139 -10
- package/vscode-dts/vscode.proposed.d.ts +3 -1
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +5 -0
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +21 -4
- package/vscode-dts/vscode.proposed.languageModelDataPart.d.ts +1 -0
- package/vscode-dts/vscode.proposed.remoteCodingAgents.d.ts +8 -0
- package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +2 -0
- package/vscode-dts/vscode.proposed.textDocumentChangeReason.d.ts +30 -0
- package/workbench.d.ts +1 -1
- package/vscode/src/vs/base/browser/domImpl/domObservable.d.ts +0 -3
- package/vscode/src/vs/base/browser/domImpl/domObservable.js +0 -16
- package/vscode/src/vs/base/browser/domImpl/n.d.ts +0 -83
- package/vscode/src/vs/base/browser/domImpl/n.js +0 -283
- package/vscode/src/vs/editor/common/codecs/frontMatterCodec/tokens/index.d.ts +0 -5
- package/vscode/src/vs/editor/common/codecs/simpleCodec/tokens/index.d.ts +0 -20
- package/vscode/src/vs/editor/common/tokens/tokenArray.d.ts +0 -25
- package/vscode/src/vs/editor/common/tokens/tokenArray.js +0 -84
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.d.ts +0 -16
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.js +0 -94
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +0 -243
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +0 -426
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +0 -601
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +0 -1185
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +0 -130
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +0 -235
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/index.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfigPathsService.service.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfigPathsService.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExpService.service.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExpService.service.js +0 -6
- package/vscode-dts/vscode.proposed.inlineEdit.d.ts +0 -103
- /package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.service.js → promptsService.service.js} +0 -0
|
@@ -281,19 +281,22 @@ export interface InlineCompletionDisplayLocation {
|
|
|
281
281
|
export type IconPath = ThemeIcon;
|
|
282
282
|
export interface InlineCompletions<TItem extends InlineCompletion = InlineCompletion> {
|
|
283
283
|
readonly items: readonly TItem[];
|
|
284
|
-
readonly commands?:
|
|
284
|
+
readonly commands?: InlineCompletionCommand[];
|
|
285
285
|
readonly suppressSuggestions?: boolean | undefined;
|
|
286
286
|
readonly enableForwardStability?: boolean | undefined;
|
|
287
287
|
}
|
|
288
|
+
export type InlineCompletionCommand = {
|
|
289
|
+
command: Command;
|
|
290
|
+
icon?: ThemeIcon;
|
|
291
|
+
};
|
|
288
292
|
export type InlineCompletionProviderGroupId = string;
|
|
289
293
|
export interface InlineCompletionsProvider<T extends InlineCompletions = InlineCompletions> {
|
|
290
294
|
provideInlineCompletions(model: model.ITextModel, position: Position, context: InlineCompletionContext, token: CancellationToken): ProviderResult<T>;
|
|
291
|
-
provideInlineEditsForRange?(model: model.ITextModel, range: Range, context: InlineCompletionContext, token: CancellationToken): ProviderResult<T>;
|
|
292
295
|
handleItemDidShow?(completions: T, item: T["items"][number], updatedInsertText: string): void;
|
|
293
296
|
handlePartialAccept?(completions: T, item: T["items"][number], acceptedCharacters: number, info: PartialAcceptInfo): void;
|
|
294
297
|
handleRejection?(completions: T, item: T["items"][number]): void;
|
|
295
|
-
handleEndOfLifetime?(completions: T, item: T["items"][number], reason: InlineCompletionEndOfLifeReason<T["items"][number]
|
|
296
|
-
|
|
298
|
+
handleEndOfLifetime?(completions: T, item: T["items"][number], reason: InlineCompletionEndOfLifeReason<T["items"][number]>, lifetimeSummary: LifetimeSummary): void;
|
|
299
|
+
disposeInlineCompletions(completions: T, reason: InlineCompletionsDisposeReason): void;
|
|
297
300
|
onDidChangeInlineCompletions?: Event<void>;
|
|
298
301
|
groupId?: InlineCompletionProviderGroupId;
|
|
299
302
|
yieldsToGroupIds?: InlineCompletionProviderGroupId[];
|
|
@@ -301,6 +304,9 @@ export interface InlineCompletionsProvider<T extends InlineCompletions = InlineC
|
|
|
301
304
|
debounceDelayMs?: number;
|
|
302
305
|
toString?(): string;
|
|
303
306
|
}
|
|
307
|
+
export type InlineCompletionsDisposeReason = {
|
|
308
|
+
kind: "lostRace" | "tokenCancellation" | "other" | "empty" | "notTaken";
|
|
309
|
+
};
|
|
304
310
|
export declare enum InlineCompletionEndOfLifeReasonKind {
|
|
305
311
|
Accepted = 0,
|
|
306
312
|
Rejected = 1,
|
|
@@ -315,6 +321,27 @@ export type InlineCompletionEndOfLifeReason<TInlineCompletion = InlineCompletion
|
|
|
315
321
|
supersededBy?: TInlineCompletion;
|
|
316
322
|
userTypingDisagreed: boolean;
|
|
317
323
|
};
|
|
324
|
+
export type LifetimeSummary = {
|
|
325
|
+
requestUuid: string;
|
|
326
|
+
partiallyAccepted: number;
|
|
327
|
+
shown: boolean;
|
|
328
|
+
shownDuration: number;
|
|
329
|
+
shownDurationUncollapsed: number;
|
|
330
|
+
timeUntilShown: number | undefined;
|
|
331
|
+
editorType: string;
|
|
332
|
+
viewKind: string | undefined;
|
|
333
|
+
error: string | undefined;
|
|
334
|
+
languageId: string;
|
|
335
|
+
requestReason: string;
|
|
336
|
+
cursorColumnDistance?: number;
|
|
337
|
+
cursorLineDistance?: number;
|
|
338
|
+
lineCountOriginal?: number;
|
|
339
|
+
lineCountModified?: number;
|
|
340
|
+
characterCountOriginal?: number;
|
|
341
|
+
characterCountModified?: number;
|
|
342
|
+
disjointReplacements?: number;
|
|
343
|
+
sameShapeReplacements?: boolean;
|
|
344
|
+
};
|
|
318
345
|
export interface CodeAction {
|
|
319
346
|
title: string;
|
|
320
347
|
command?: Command;
|
|
@@ -956,26 +983,3 @@ export interface DocumentDropEditProvider {
|
|
|
956
983
|
provideDocumentDropEdits(model: model.ITextModel, position: IPosition, dataTransfer: IReadonlyVSDataTransfer, token: CancellationToken): ProviderResult<DocumentDropEditsSession>;
|
|
957
984
|
resolveDocumentDropEdit?(edit: DocumentDropEdit, token: CancellationToken): Promise<DocumentDropEdit>;
|
|
958
985
|
}
|
|
959
|
-
export interface IInlineEdit {
|
|
960
|
-
text: string;
|
|
961
|
-
range: IRange;
|
|
962
|
-
showRange?: IRange;
|
|
963
|
-
accepted?: Command;
|
|
964
|
-
rejected?: Command;
|
|
965
|
-
shown?: Command;
|
|
966
|
-
commands?: Command[];
|
|
967
|
-
action?: Command;
|
|
968
|
-
}
|
|
969
|
-
export interface IInlineEditContext {
|
|
970
|
-
triggerKind: InlineEditTriggerKind;
|
|
971
|
-
requestUuid: string;
|
|
972
|
-
}
|
|
973
|
-
export declare enum InlineEditTriggerKind {
|
|
974
|
-
Invoke = 0,
|
|
975
|
-
Automatic = 1
|
|
976
|
-
}
|
|
977
|
-
export interface InlineEditProvider<T extends IInlineEdit = IInlineEdit> {
|
|
978
|
-
displayName?: string;
|
|
979
|
-
provideInlineEdit(model: model.ITextModel, context: IInlineEditContext, token: CancellationToken): ProviderResult<T>;
|
|
980
|
-
freeInlineEdit(edit: T): void;
|
|
981
|
-
}
|
|
@@ -113,35 +113,35 @@ var CompletionItemKinds;
|
|
|
113
113
|
CompletionItemKinds.toIcon = toIcon;
|
|
114
114
|
function toLabel(kind) {
|
|
115
115
|
switch (kind) {
|
|
116
|
-
case CompletionItemKind.Method: return localize(
|
|
117
|
-
case CompletionItemKind.Function: return localize(
|
|
118
|
-
case CompletionItemKind.Constructor: return localize(
|
|
119
|
-
case CompletionItemKind.Field: return localize(
|
|
120
|
-
case CompletionItemKind.Variable: return localize(
|
|
121
|
-
case CompletionItemKind.Class: return localize(
|
|
122
|
-
case CompletionItemKind.Struct: return localize(
|
|
123
|
-
case CompletionItemKind.Interface: return localize(
|
|
124
|
-
case CompletionItemKind.Module: return localize(
|
|
125
|
-
case CompletionItemKind.Property: return localize(
|
|
126
|
-
case CompletionItemKind.Event: return localize(
|
|
127
|
-
case CompletionItemKind.Operator: return localize(
|
|
128
|
-
case CompletionItemKind.Unit: return localize(
|
|
129
|
-
case CompletionItemKind.Value: return localize(
|
|
130
|
-
case CompletionItemKind.Constant: return localize(
|
|
131
|
-
case CompletionItemKind.Enum: return localize(
|
|
132
|
-
case CompletionItemKind.EnumMember: return localize(
|
|
133
|
-
case CompletionItemKind.Keyword: return localize(
|
|
134
|
-
case CompletionItemKind.Text: return localize(
|
|
135
|
-
case CompletionItemKind.Color: return localize(
|
|
136
|
-
case CompletionItemKind.File: return localize(
|
|
137
|
-
case CompletionItemKind.Reference: return localize(
|
|
138
|
-
case CompletionItemKind.Customcolor: return localize(
|
|
139
|
-
case CompletionItemKind.Folder: return localize(
|
|
140
|
-
case CompletionItemKind.TypeParameter: return localize(
|
|
141
|
-
case CompletionItemKind.User: return localize(
|
|
142
|
-
case CompletionItemKind.Issue: return localize(
|
|
143
|
-
case CompletionItemKind.Tool: return localize(
|
|
144
|
-
case CompletionItemKind.Snippet: return localize(
|
|
116
|
+
case CompletionItemKind.Method: return localize(776, 'Method');
|
|
117
|
+
case CompletionItemKind.Function: return localize(777, 'Function');
|
|
118
|
+
case CompletionItemKind.Constructor: return localize(778, 'Constructor');
|
|
119
|
+
case CompletionItemKind.Field: return localize(779, 'Field');
|
|
120
|
+
case CompletionItemKind.Variable: return localize(780, 'Variable');
|
|
121
|
+
case CompletionItemKind.Class: return localize(781, 'Class');
|
|
122
|
+
case CompletionItemKind.Struct: return localize(782, 'Struct');
|
|
123
|
+
case CompletionItemKind.Interface: return localize(783, 'Interface');
|
|
124
|
+
case CompletionItemKind.Module: return localize(784, 'Module');
|
|
125
|
+
case CompletionItemKind.Property: return localize(785, 'Property');
|
|
126
|
+
case CompletionItemKind.Event: return localize(786, 'Event');
|
|
127
|
+
case CompletionItemKind.Operator: return localize(787, 'Operator');
|
|
128
|
+
case CompletionItemKind.Unit: return localize(788, 'Unit');
|
|
129
|
+
case CompletionItemKind.Value: return localize(789, 'Value');
|
|
130
|
+
case CompletionItemKind.Constant: return localize(790, 'Constant');
|
|
131
|
+
case CompletionItemKind.Enum: return localize(791, 'Enum');
|
|
132
|
+
case CompletionItemKind.EnumMember: return localize(792, 'Enum Member');
|
|
133
|
+
case CompletionItemKind.Keyword: return localize(793, 'Keyword');
|
|
134
|
+
case CompletionItemKind.Text: return localize(794, 'Text');
|
|
135
|
+
case CompletionItemKind.Color: return localize(795, 'Color');
|
|
136
|
+
case CompletionItemKind.File: return localize(796, 'File');
|
|
137
|
+
case CompletionItemKind.Reference: return localize(797, 'Reference');
|
|
138
|
+
case CompletionItemKind.Customcolor: return localize(798, 'Custom Color');
|
|
139
|
+
case CompletionItemKind.Folder: return localize(799, 'Folder');
|
|
140
|
+
case CompletionItemKind.TypeParameter: return localize(800, 'Type Parameter');
|
|
141
|
+
case CompletionItemKind.User: return localize(801, 'User');
|
|
142
|
+
case CompletionItemKind.Issue: return localize(802, 'Issue');
|
|
143
|
+
case CompletionItemKind.Tool: return localize(803, 'Tool');
|
|
144
|
+
case CompletionItemKind.Snippet: return localize(804, 'Snippet');
|
|
145
145
|
default: return '';
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -297,35 +297,35 @@ var SymbolKind;
|
|
|
297
297
|
SymbolKind[SymbolKind["TypeParameter"] = 25] = "TypeParameter";
|
|
298
298
|
})(SymbolKind || (SymbolKind = {}));
|
|
299
299
|
const symbolKindNames = {
|
|
300
|
-
[SymbolKind.Array]: ( localize(
|
|
301
|
-
[SymbolKind.Boolean]: ( localize(
|
|
302
|
-
[SymbolKind.Class]: ( localize(
|
|
303
|
-
[SymbolKind.Constant]: ( localize(
|
|
304
|
-
[SymbolKind.Constructor]: ( localize(
|
|
305
|
-
[SymbolKind.Enum]: ( localize(
|
|
306
|
-
[SymbolKind.EnumMember]: ( localize(
|
|
307
|
-
[SymbolKind.Event]: ( localize(
|
|
308
|
-
[SymbolKind.Field]: ( localize(
|
|
309
|
-
[SymbolKind.File]: ( localize(
|
|
310
|
-
[SymbolKind.Function]: ( localize(
|
|
311
|
-
[SymbolKind.Interface]: ( localize(
|
|
312
|
-
[SymbolKind.Key]: ( localize(
|
|
313
|
-
[SymbolKind.Method]: ( localize(
|
|
314
|
-
[SymbolKind.Module]: ( localize(
|
|
315
|
-
[SymbolKind.Namespace]: ( localize(
|
|
316
|
-
[SymbolKind.Null]: ( localize(
|
|
317
|
-
[SymbolKind.Number]: ( localize(
|
|
318
|
-
[SymbolKind.Object]: ( localize(
|
|
319
|
-
[SymbolKind.Operator]: ( localize(
|
|
320
|
-
[SymbolKind.Package]: ( localize(
|
|
321
|
-
[SymbolKind.Property]: ( localize(
|
|
322
|
-
[SymbolKind.String]: ( localize(
|
|
323
|
-
[SymbolKind.Struct]: ( localize(
|
|
324
|
-
[SymbolKind.TypeParameter]: ( localize(
|
|
325
|
-
[SymbolKind.Variable]: ( localize(
|
|
300
|
+
[SymbolKind.Array]: ( localize(805, "array")),
|
|
301
|
+
[SymbolKind.Boolean]: ( localize(806, "boolean")),
|
|
302
|
+
[SymbolKind.Class]: ( localize(807, "class")),
|
|
303
|
+
[SymbolKind.Constant]: ( localize(808, "constant")),
|
|
304
|
+
[SymbolKind.Constructor]: ( localize(809, "constructor")),
|
|
305
|
+
[SymbolKind.Enum]: ( localize(810, "enumeration")),
|
|
306
|
+
[SymbolKind.EnumMember]: ( localize(811, "enumeration member")),
|
|
307
|
+
[SymbolKind.Event]: ( localize(812, "event")),
|
|
308
|
+
[SymbolKind.Field]: ( localize(813, "field")),
|
|
309
|
+
[SymbolKind.File]: ( localize(814, "file")),
|
|
310
|
+
[SymbolKind.Function]: ( localize(815, "function")),
|
|
311
|
+
[SymbolKind.Interface]: ( localize(816, "interface")),
|
|
312
|
+
[SymbolKind.Key]: ( localize(817, "key")),
|
|
313
|
+
[SymbolKind.Method]: ( localize(818, "method")),
|
|
314
|
+
[SymbolKind.Module]: ( localize(819, "module")),
|
|
315
|
+
[SymbolKind.Namespace]: ( localize(820, "namespace")),
|
|
316
|
+
[SymbolKind.Null]: ( localize(821, "null")),
|
|
317
|
+
[SymbolKind.Number]: ( localize(822, "number")),
|
|
318
|
+
[SymbolKind.Object]: ( localize(823, "object")),
|
|
319
|
+
[SymbolKind.Operator]: ( localize(824, "operator")),
|
|
320
|
+
[SymbolKind.Package]: ( localize(825, "package")),
|
|
321
|
+
[SymbolKind.Property]: ( localize(826, "property")),
|
|
322
|
+
[SymbolKind.String]: ( localize(827, "string")),
|
|
323
|
+
[SymbolKind.Struct]: ( localize(828, "struct")),
|
|
324
|
+
[SymbolKind.TypeParameter]: ( localize(829, "type parameter")),
|
|
325
|
+
[SymbolKind.Variable]: ( localize(830, "variable")),
|
|
326
326
|
};
|
|
327
327
|
function getAriaLabelForSymbol(symbolName, kind) {
|
|
328
|
-
return localize(
|
|
328
|
+
return localize(831, '{0} ({1})', symbolName, symbolKindNames[kind]);
|
|
329
329
|
}
|
|
330
330
|
var SymbolTag;
|
|
331
331
|
(function (SymbolTag) {
|
|
@@ -513,10 +513,5 @@ var ExternalUriOpenerPriority;
|
|
|
513
513
|
ExternalUriOpenerPriority[ExternalUriOpenerPriority["Default"] = 2] = "Default";
|
|
514
514
|
ExternalUriOpenerPriority[ExternalUriOpenerPriority["Preferred"] = 3] = "Preferred";
|
|
515
515
|
})(ExternalUriOpenerPriority || (ExternalUriOpenerPriority = {}));
|
|
516
|
-
var InlineEditTriggerKind;
|
|
517
|
-
(function (InlineEditTriggerKind) {
|
|
518
|
-
InlineEditTriggerKind[InlineEditTriggerKind["Invoke"] = 0] = "Invoke";
|
|
519
|
-
InlineEditTriggerKind[InlineEditTriggerKind["Automatic"] = 1] = "Automatic";
|
|
520
|
-
})(InlineEditTriggerKind || (InlineEditTriggerKind = {}));
|
|
521
516
|
|
|
522
|
-
export { CodeActionTriggerType, Command, CommentMode, CommentState, CommentThreadApplicability, CommentThreadCollapsibleState, CommentThreadState, CompletionItemInsertTextRule, CompletionItemKind, CompletionItemKinds, CompletionItemTag, CompletionTriggerKind, DocumentHighlightKind, DocumentPasteTriggerKind, EncodedTokenizationResult, ExternalUriOpenerPriority, FoldingRangeKind, HoverVerbosityAction, InlayHintKind, InlineCompletionEndOfLifeReasonKind, InlineCompletionTriggerKind,
|
|
517
|
+
export { CodeActionTriggerType, Command, CommentMode, CommentState, CommentThreadApplicability, CommentThreadCollapsibleState, CommentThreadState, CompletionItemInsertTextRule, CompletionItemKind, CompletionItemKinds, CompletionItemTag, CompletionTriggerKind, DocumentHighlightKind, DocumentPasteTriggerKind, EncodedTokenizationResult, ExternalUriOpenerPriority, FoldingRangeKind, HoverVerbosityAction, InlayHintKind, InlineCompletionEndOfLifeReasonKind, InlineCompletionTriggerKind, LazyTokenizationSupport, NewSymbolNameTag, NewSymbolNameTriggerKind, PartialAcceptTriggerKind, SelectedSuggestionInfo, SignatureHelpTriggerKind, SymbolKind, SymbolKinds, SymbolTag, TextEdit, Token, TokenizationRegistry, TokenizationResult, getAriaLabelForSymbol, isLocation, isLocationLink, symbolKindNames };
|
|
@@ -7,6 +7,7 @@ import { URI } from "../../../base/common/uri.js";
|
|
|
7
7
|
import { TextChange } from "../core/textChange.js";
|
|
8
8
|
import { IDisposable } from "../../../base/common/lifecycle.js";
|
|
9
9
|
import { ISingleEditOperation } from "../core/editOperation.js";
|
|
10
|
+
import { TextModelEditReason } from "../textModelEditReason.js";
|
|
10
11
|
export declare class SingleModelEditStackData {
|
|
11
12
|
readonly beforeVersionId: number;
|
|
12
13
|
afterVersionId: number;
|
|
@@ -82,6 +83,6 @@ export declare class EditStack {
|
|
|
82
83
|
clear(): void;
|
|
83
84
|
private _getOrCreateEditStackElement;
|
|
84
85
|
pushEOL(eol: EndOfLineSequence): void;
|
|
85
|
-
pushEditOperation(beforeCursorState: Selection[] | null, editOperations: ISingleEditOperation[], cursorStateComputer: ICursorStateComputer | null, group?: UndoRedoGroup): Selection[] | null;
|
|
86
|
+
pushEditOperation(beforeCursorState: Selection[] | null, editOperations: ISingleEditOperation[], cursorStateComputer: ICursorStateComputer | null, group?: UndoRedoGroup, reason?: TextModelEditReason): Selection[] | null;
|
|
86
87
|
private static _computeCursorState;
|
|
87
88
|
}
|
|
@@ -8,6 +8,7 @@ import { URI } from '../../../base/common/uri.js';
|
|
|
8
8
|
import { compressConsecutiveTextChanges, TextChange } from '../core/textChange.js';
|
|
9
9
|
import { writeUInt32BE, readUInt32BE, writeUInt8, readUInt8 } from '../../../base/common/buffer.js';
|
|
10
10
|
import { basename } from '../../../base/common/resources.js';
|
|
11
|
+
import { EditReasons } from '../textModelEditReason.js';
|
|
11
12
|
|
|
12
13
|
function uriGetComparisonKey(resource) {
|
|
13
14
|
return ( resource.toString());
|
|
@@ -353,7 +354,7 @@ class EditStack {
|
|
|
353
354
|
if (isEditStackElement(lastElement) && lastElement.canAppend(this._model)) {
|
|
354
355
|
return lastElement;
|
|
355
356
|
}
|
|
356
|
-
const newElement = ( new SingleModelEditStackElement(( localize(
|
|
357
|
+
const newElement = ( new SingleModelEditStackElement(( localize(833, "Typing")), 'undoredo.textBufferEdit', this._model, beforeCursorState));
|
|
357
358
|
this._undoRedoService.pushElement(newElement, group);
|
|
358
359
|
return newElement;
|
|
359
360
|
}
|
|
@@ -362,9 +363,9 @@ class EditStack {
|
|
|
362
363
|
this._model.setEOL(eol);
|
|
363
364
|
editStackElement.append(this._model, [], getModelEOL(this._model), this._model.getAlternativeVersionId(), null);
|
|
364
365
|
}
|
|
365
|
-
pushEditOperation(beforeCursorState, editOperations, cursorStateComputer, group) {
|
|
366
|
+
pushEditOperation(beforeCursorState, editOperations, cursorStateComputer, group, reason = EditReasons.unknown({ name: 'pushEditOperation' })) {
|
|
366
367
|
const editStackElement = this._getOrCreateEditStackElement(beforeCursorState, group);
|
|
367
|
-
const inverseEditOperations = this._model.applyEdits(editOperations, true);
|
|
368
|
+
const inverseEditOperations = this._model.applyEdits(editOperations, true, reason);
|
|
368
369
|
const afterCursorState = EditStack._computeCursorState(cursorStateComputer, inverseEditOperations);
|
|
369
370
|
const textChanges = ( inverseEditOperations.map((op, index) => ({ index: index, textChange: op.textChange })));
|
|
370
371
|
textChanges.sort((a, b) => {
|
|
@@ -43,8 +43,8 @@ export declare class IntervalTree {
|
|
|
43
43
|
root: IntervalNode;
|
|
44
44
|
requestNormalizeDelta: boolean;
|
|
45
45
|
constructor();
|
|
46
|
-
intervalSearch(start: number, end: number, filterOwnerId: number, filterOutValidation: boolean, cachedVersionId: number, onlyMarginDecorations: boolean): IntervalNode[];
|
|
47
|
-
search(filterOwnerId: number, filterOutValidation: boolean, cachedVersionId: number, onlyMarginDecorations: boolean): IntervalNode[];
|
|
46
|
+
intervalSearch(start: number, end: number, filterOwnerId: number, filterOutValidation: boolean, filterFontDecorations: boolean, cachedVersionId: number, onlyMarginDecorations: boolean): IntervalNode[];
|
|
47
|
+
search(filterOwnerId: number, filterOutValidation: boolean, filterFontDecorations: boolean, cachedVersionId: number, onlyMarginDecorations: boolean): IntervalNode[];
|
|
48
48
|
collectNodesFromOwner(ownerId: number): IntervalNode[];
|
|
49
49
|
collectNodesPostOrder(): IntervalNode[];
|
|
50
50
|
insert(node: IntervalNode): void;
|
|
@@ -36,6 +36,9 @@ var Constants;
|
|
|
36
36
|
Constants[Constants["IsMarginMask"] = 64] = "IsMarginMask";
|
|
37
37
|
Constants[Constants["IsMarginMaskInverse"] = 191] = "IsMarginMaskInverse";
|
|
38
38
|
Constants[Constants["IsMarginOffset"] = 6] = "IsMarginOffset";
|
|
39
|
+
Constants[Constants["AffectsFontMask"] = 128] = "AffectsFontMask";
|
|
40
|
+
Constants[Constants["AffectsFontMaskInverse"] = 127] = "AffectsFontMaskInverse";
|
|
41
|
+
Constants[Constants["AffectsFontOffset"] = 7] = "AffectsFontOffset";
|
|
39
42
|
Constants[Constants["MIN_SAFE_DELTA"] = -1073741824] = "MIN_SAFE_DELTA";
|
|
40
43
|
Constants[Constants["MAX_SAFE_DELTA"] = 1073741824] = "MAX_SAFE_DELTA";
|
|
41
44
|
})(Constants || (Constants = {}));
|
|
@@ -63,6 +66,12 @@ function getNodeIsInGlyphMargin(node) {
|
|
|
63
66
|
function setNodeIsInGlyphMargin(node, value) {
|
|
64
67
|
node.metadata = ((node.metadata & Constants.IsMarginMaskInverse) | ((value ? 1 : 0) << Constants.IsMarginOffset));
|
|
65
68
|
}
|
|
69
|
+
function getNodeAffectsFont(node) {
|
|
70
|
+
return ((node.metadata & Constants.AffectsFontMask) >>> Constants.AffectsFontOffset) === 1;
|
|
71
|
+
}
|
|
72
|
+
function setNodeAffectsFont(node, value) {
|
|
73
|
+
node.metadata = ((node.metadata & Constants.AffectsFontMaskInverse) | ((value ? 1 : 0) << Constants.AffectsFontOffset));
|
|
74
|
+
}
|
|
66
75
|
function getNodeStickiness(node) {
|
|
67
76
|
return ((node.metadata & Constants.StickinessMask) >>> Constants.StickinessOffset);
|
|
68
77
|
}
|
|
@@ -93,6 +102,7 @@ class IntervalNode {
|
|
|
93
102
|
setNodeIsInGlyphMargin(this, false);
|
|
94
103
|
_setNodeStickiness(this, TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges);
|
|
95
104
|
setCollapseOnReplaceEdit(this, false);
|
|
105
|
+
setNodeAffectsFont(this, false);
|
|
96
106
|
this.cachedVersionId = 0;
|
|
97
107
|
this.cachedAbsoluteStart = start;
|
|
98
108
|
this.cachedAbsoluteEnd = end;
|
|
@@ -117,6 +127,7 @@ class IntervalNode {
|
|
|
117
127
|
setNodeIsInGlyphMargin(this, this.options.glyphMarginClassName !== null);
|
|
118
128
|
_setNodeStickiness(this, this.options.stickiness);
|
|
119
129
|
setCollapseOnReplaceEdit(this, this.options.collapseOnReplaceEdit);
|
|
130
|
+
setNodeAffectsFont(this, this.options.affectsFont ?? false);
|
|
120
131
|
}
|
|
121
132
|
setCachedOffsets(absoluteStart, absoluteEnd, cachedVersionId) {
|
|
122
133
|
if (this.cachedVersionId !== cachedVersionId) {
|
|
@@ -142,17 +153,17 @@ class IntervalTree {
|
|
|
142
153
|
this.root = SENTINEL;
|
|
143
154
|
this.requestNormalizeDelta = false;
|
|
144
155
|
}
|
|
145
|
-
intervalSearch(start, end, filterOwnerId, filterOutValidation, cachedVersionId, onlyMarginDecorations) {
|
|
156
|
+
intervalSearch(start, end, filterOwnerId, filterOutValidation, filterFontDecorations, cachedVersionId, onlyMarginDecorations) {
|
|
146
157
|
if (this.root === SENTINEL) {
|
|
147
158
|
return [];
|
|
148
159
|
}
|
|
149
|
-
return intervalSearch(this, start, end, filterOwnerId, filterOutValidation, cachedVersionId, onlyMarginDecorations);
|
|
160
|
+
return intervalSearch(this, start, end, filterOwnerId, filterOutValidation, filterFontDecorations, cachedVersionId, onlyMarginDecorations);
|
|
150
161
|
}
|
|
151
|
-
search(filterOwnerId, filterOutValidation, cachedVersionId, onlyMarginDecorations) {
|
|
162
|
+
search(filterOwnerId, filterOutValidation, filterFontDecorations, cachedVersionId, onlyMarginDecorations) {
|
|
152
163
|
if (this.root === SENTINEL) {
|
|
153
164
|
return [];
|
|
154
165
|
}
|
|
155
|
-
return search(this, filterOwnerId, filterOutValidation, cachedVersionId, onlyMarginDecorations);
|
|
166
|
+
return search(this, filterOwnerId, filterOutValidation, filterFontDecorations, cachedVersionId, onlyMarginDecorations);
|
|
156
167
|
}
|
|
157
168
|
collectNodesFromOwner(ownerId) {
|
|
158
169
|
return collectNodesFromOwner(this, ownerId);
|
|
@@ -201,7 +212,7 @@ class IntervalTree {
|
|
|
201
212
|
this._normalizeDeltaIfNecessary();
|
|
202
213
|
}
|
|
203
214
|
getAllInOrder() {
|
|
204
|
-
return search(this, 0, false, 0, false);
|
|
215
|
+
return search(this, 0, false, false, 0, false);
|
|
205
216
|
}
|
|
206
217
|
_normalizeDeltaIfNecessary() {
|
|
207
218
|
if (!this.requestNormalizeDelta) {
|
|
@@ -467,7 +478,7 @@ function collectNodesPostOrder(T) {
|
|
|
467
478
|
setNodeIsVisited(T.root, false);
|
|
468
479
|
return result;
|
|
469
480
|
}
|
|
470
|
-
function search(T, filterOwnerId, filterOutValidation, cachedVersionId, onlyMarginDecorations) {
|
|
481
|
+
function search(T, filterOwnerId, filterOutValidation, filterFontDecorations, cachedVersionId, onlyMarginDecorations) {
|
|
471
482
|
let node = T.root;
|
|
472
483
|
let delta = 0;
|
|
473
484
|
let nodeStart = 0;
|
|
@@ -498,6 +509,9 @@ function search(T, filterOwnerId, filterOutValidation, cachedVersionId, onlyMarg
|
|
|
498
509
|
if (filterOutValidation && getNodeIsForValidation(node)) {
|
|
499
510
|
include = false;
|
|
500
511
|
}
|
|
512
|
+
if (filterFontDecorations && getNodeAffectsFont(node)) {
|
|
513
|
+
include = false;
|
|
514
|
+
}
|
|
501
515
|
if (onlyMarginDecorations && !getNodeIsInGlyphMargin(node)) {
|
|
502
516
|
include = false;
|
|
503
517
|
}
|
|
@@ -514,7 +528,7 @@ function search(T, filterOwnerId, filterOutValidation, cachedVersionId, onlyMarg
|
|
|
514
528
|
setNodeIsVisited(T.root, false);
|
|
515
529
|
return result;
|
|
516
530
|
}
|
|
517
|
-
function intervalSearch(T, intervalStart, intervalEnd, filterOwnerId, filterOutValidation, cachedVersionId, onlyMarginDecorations) {
|
|
531
|
+
function intervalSearch(T, intervalStart, intervalEnd, filterOwnerId, filterOutValidation, filterFontDecorations, cachedVersionId, onlyMarginDecorations) {
|
|
518
532
|
let node = T.root;
|
|
519
533
|
let delta = 0;
|
|
520
534
|
let nodeMaxEnd = 0;
|
|
@@ -558,6 +572,9 @@ function intervalSearch(T, intervalStart, intervalEnd, filterOwnerId, filterOutV
|
|
|
558
572
|
if (filterOutValidation && getNodeIsForValidation(node)) {
|
|
559
573
|
include = false;
|
|
560
574
|
}
|
|
575
|
+
if (filterFontDecorations && getNodeAffectsFont(node)) {
|
|
576
|
+
include = false;
|
|
577
|
+
}
|
|
561
578
|
if (onlyMarginDecorations && !getNodeIsInGlyphMargin(node)) {
|
|
562
579
|
include = false;
|
|
563
580
|
}
|
|
@@ -16,15 +16,16 @@ import { ILanguageService } from "../languages/language.service.js";
|
|
|
16
16
|
import { ILanguageConfigurationService } from "../languages/languageConfigurationRegistry.service.js";
|
|
17
17
|
import * as model from "../model.js";
|
|
18
18
|
import { IBracketPairsTextModelPart } from "../textModelBracketPairs.js";
|
|
19
|
-
import { IModelContentChangedEvent, IModelDecorationsChangedEvent, IModelOptionsChangedEvent, InternalModelContentChangeEvent, ModelInjectedTextChangedEvent, ModelLineHeightChangedEvent } from "../textModelEvents.js";
|
|
19
|
+
import { IModelContentChangedEvent, IModelDecorationsChangedEvent, IModelOptionsChangedEvent, InternalModelContentChangeEvent, ModelInjectedTextChangedEvent, ModelLineHeightChangedEvent, ModelFontChangedEvent } from "../textModelEvents.js";
|
|
20
20
|
import { IGuidesTextModelPart } from "../textModelGuides.js";
|
|
21
21
|
import { ITokenizationTextModelPart } from "../tokenizationTextModelPart.js";
|
|
22
22
|
import { IInstantiationService } from "../../../platform/instantiation/common/instantiation.js";
|
|
23
23
|
import { IColorTheme } from "../../../platform/theme/common/themeService.js";
|
|
24
24
|
import { ResourceEditStackSnapshot, UndoRedoGroup } from "../../../platform/undoRedo/common/undoRedo.js";
|
|
25
25
|
import { IUndoRedoService } from "../../../platform/undoRedo/common/undoRedo.service.js";
|
|
26
|
-
import { TokenArray } from "../tokens/
|
|
26
|
+
import { TokenArray } from "../tokens/lineTokens.js";
|
|
27
27
|
import { TextModelEditReason } from "../textModelEditReason.js";
|
|
28
|
+
import { TextEdit } from "../core/edits/textEdit.js";
|
|
28
29
|
export declare function createTextBufferFactory(text: string): model.ITextBufferFactory;
|
|
29
30
|
interface ITextStream {
|
|
30
31
|
on(event: "data", callback: (data: string) => void): void;
|
|
@@ -64,6 +65,8 @@ export declare class TextModel extends Disposable implements model.ITextModel, I
|
|
|
64
65
|
private readonly _onDidChangeInjectedText;
|
|
65
66
|
private readonly _onDidChangeLineHeight;
|
|
66
67
|
readonly onDidChangeLineHeight: Event<ModelLineHeightChangedEvent>;
|
|
68
|
+
private readonly _onDidChangeFont;
|
|
69
|
+
readonly onDidChangeFont: Event<ModelFontChangedEvent>;
|
|
67
70
|
private readonly _eventEmitter;
|
|
68
71
|
onDidChangeContent(listener: (e: IModelContentChangedEvent) => void): IDisposable;
|
|
69
72
|
onDidChangeContentOrInjectedText(listener: (e: InternalModelContentChangeEvent | ModelInjectedTextChangedEvent) => void): IDisposable;
|
|
@@ -108,7 +111,11 @@ export declare class TextModel extends Disposable implements model.ITextModel, I
|
|
|
108
111
|
equalsTextBuffer(other: model.ITextBuffer): boolean;
|
|
109
112
|
getTextBuffer(): model.ITextBuffer;
|
|
110
113
|
private _emitContentChangedEvent;
|
|
111
|
-
setValue(value: string | model.ITextSnapshot
|
|
114
|
+
setValue(value: string | model.ITextSnapshot, reason?: TextModelEditReason & {
|
|
115
|
+
metadataT: {
|
|
116
|
+
readonly source: "setValue";
|
|
117
|
+
};
|
|
118
|
+
}): void;
|
|
112
119
|
private _createContentChanged2;
|
|
113
120
|
private _setValueFromTextBuffer;
|
|
114
121
|
setEOL(eol: model.EndOfLineSequence): void;
|
|
@@ -176,7 +183,10 @@ export declare class TextModel extends Disposable implements model.ITextModel, I
|
|
|
176
183
|
pushEOL(eol: model.EndOfLineSequence): void;
|
|
177
184
|
private _validateEditOperation;
|
|
178
185
|
private _validateEditOperations;
|
|
179
|
-
|
|
186
|
+
edit(edit: TextEdit, options?: {
|
|
187
|
+
reason?: TextModelEditReason;
|
|
188
|
+
}): void;
|
|
189
|
+
pushEditOperations(beforeCursorState: Selection[] | null, editOperations: model.IIdentifiedSingleEditOperation[], cursorStateComputer: model.ICursorStateComputer | null, group?: UndoRedoGroup, reason?: TextModelEditReason): Selection[] | null;
|
|
180
190
|
private _pushEditOperations;
|
|
181
191
|
_applyUndo(changes: TextChange[], eol: model.EndOfLineSequence, resultingAlternativeVersionId: number, resultingSelection: Selection[] | null): void;
|
|
182
192
|
_applyRedo(changes: TextChange[], eol: model.EndOfLineSequence, resultingAlternativeVersionId: number, resultingSelection: Selection[] | null): void;
|
|
@@ -184,6 +194,8 @@ export declare class TextModel extends Disposable implements model.ITextModel, I
|
|
|
184
194
|
applyEdits(operations: readonly model.IIdentifiedSingleEditOperation[]): void;
|
|
185
195
|
applyEdits(operations: readonly model.IIdentifiedSingleEditOperation[], computeUndoEdits: false): void;
|
|
186
196
|
applyEdits(operations: readonly model.IIdentifiedSingleEditOperation[], computeUndoEdits: true): model.IValidEditOperation[];
|
|
197
|
+
applyEdits(operations: readonly model.IIdentifiedSingleEditOperation[], computeUndoEdits: false, reason: TextModelEditReason): void;
|
|
198
|
+
applyEdits(operations: readonly model.IIdentifiedSingleEditOperation[], computeUndoEdits: true, reason: TextModelEditReason): model.IValidEditOperation[];
|
|
187
199
|
private _doApplyEdits;
|
|
188
200
|
undo(): void | Promise<void>;
|
|
189
201
|
canUndo(): boolean;
|
|
@@ -199,14 +211,15 @@ export declare class TextModel extends Disposable implements model.ITextModel, I
|
|
|
199
211
|
removeAllDecorationsWithOwnerId(ownerId: number): void;
|
|
200
212
|
getDecorationOptions(decorationId: string): model.IModelDecorationOptions | null;
|
|
201
213
|
getDecorationRange(decorationId: string): Range | null;
|
|
202
|
-
getLineDecorations(lineNumber: number, ownerId?: number, filterOutValidation?: boolean): model.IModelDecoration[];
|
|
203
|
-
getLinesDecorations(_startLineNumber: number, _endLineNumber: number, ownerId?: number, filterOutValidation?: boolean, onlyMarginDecorations?: boolean): model.IModelDecoration[];
|
|
204
|
-
getDecorationsInRange(range: IRange, ownerId?: number, filterOutValidation?: boolean, onlyMinimapDecorations?: boolean, onlyMarginDecorations?: boolean): model.IModelDecoration[];
|
|
205
|
-
getOverviewRulerDecorations(ownerId?: number, filterOutValidation?: boolean): model.IModelDecoration[];
|
|
214
|
+
getLineDecorations(lineNumber: number, ownerId?: number, filterOutValidation?: boolean, filterFontDecorations?: boolean): model.IModelDecoration[];
|
|
215
|
+
getLinesDecorations(_startLineNumber: number, _endLineNumber: number, ownerId?: number, filterOutValidation?: boolean, filterFontDecorations?: boolean, onlyMarginDecorations?: boolean): model.IModelDecoration[];
|
|
216
|
+
getDecorationsInRange(range: IRange, ownerId?: number, filterOutValidation?: boolean, filterFontDecorations?: boolean, onlyMinimapDecorations?: boolean, onlyMarginDecorations?: boolean): model.IModelDecoration[];
|
|
217
|
+
getOverviewRulerDecorations(ownerId?: number, filterOutValidation?: boolean, filterFontDecorations?: boolean): model.IModelDecoration[];
|
|
206
218
|
getInjectedTextDecorations(ownerId?: number): model.IModelDecoration[];
|
|
207
219
|
getCustomLineHeightsDecorations(ownerId?: number): model.IModelDecoration[];
|
|
208
220
|
private _getInjectedTextInLine;
|
|
209
|
-
|
|
221
|
+
getFontDecorationsInRange(range: IRange, ownerId?: number): model.IModelDecoration[];
|
|
222
|
+
getAllDecorations(ownerId?: number, filterOutValidation?: boolean, filterFontDecorations?: boolean): model.IModelDecoration[];
|
|
210
223
|
getAllMarginDecorations(ownerId?: number): model.IModelDecoration[];
|
|
211
224
|
private _getDecorationsInRange;
|
|
212
225
|
getRangeAt(start: number, end: number): Range;
|
|
@@ -222,7 +235,6 @@ export declare class TextModel extends Disposable implements model.ITextModel, I
|
|
|
222
235
|
normalizePosition(position: Position, affinity: model.PositionAffinity): Position;
|
|
223
236
|
getLineIndentColumn(lineNumber: number): number;
|
|
224
237
|
toString(): string;
|
|
225
|
-
editWithReason<T>(editReason: TextModelEditReason, cb: () => T): T;
|
|
226
238
|
}
|
|
227
239
|
export declare function indentOfLine(line: string): number;
|
|
228
240
|
export interface IDecorationsTreesHost {
|
|
@@ -289,6 +301,7 @@ export declare class ModelDecorationOptions implements model.IModelDecorationOpt
|
|
|
289
301
|
readonly glyphMarginHoverMessage: IMarkdownString | IMarkdownString[] | null;
|
|
290
302
|
readonly isWholeLine: boolean;
|
|
291
303
|
readonly lineHeight: number | null;
|
|
304
|
+
readonly fontSize: string | null;
|
|
292
305
|
readonly showIfCollapsed: boolean;
|
|
293
306
|
readonly collapseOnReplaceEdit: boolean;
|
|
294
307
|
readonly overviewRuler: ModelDecorationOverviewRulerOptions | null;
|
|
@@ -309,6 +322,7 @@ export declare class ModelDecorationOptions implements model.IModelDecorationOpt
|
|
|
309
322
|
readonly before: ModelDecorationInjectedTextOptions | null;
|
|
310
323
|
readonly hideInCommentTokens: boolean | null;
|
|
311
324
|
readonly hideInStringTokens: boolean | null;
|
|
325
|
+
readonly affectsFont: boolean | null;
|
|
312
326
|
private constructor();
|
|
313
327
|
}
|
|
314
328
|
export {};
|