@codingame/monaco-vscode-api 14.0.6 → 15.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/lifecycle.js +1 -1
- package/missing-services.js +100 -9
- package/monaco.d.ts +2 -2
- package/monaco.js +3 -3
- package/package.json +8 -8
- package/services.d.ts +13 -13
- package/services.js +14 -13
- package/vscode/src/vs/base/browser/dom.d.ts +3 -2
- package/vscode/src/vs/base/browser/dom.js +21 -16
- package/vscode/src/vs/base/browser/domImpl/domObservable.d.ts +3 -0
- package/vscode/src/vs/base/browser/domImpl/domObservable.js +16 -0
- package/vscode/src/vs/base/browser/domImpl/n.d.ts +83 -0
- package/vscode/src/vs/base/browser/domImpl/n.js +283 -0
- package/vscode/src/vs/base/browser/markdownRenderer.js +3 -3
- package/vscode/src/vs/base/browser/ui/button/button.d.ts +9 -2
- package/vscode/src/vs/base/browser/ui/button/button.js +58 -2
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.d.ts +5 -2
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +31 -26
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +3 -0
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +2 -3
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +2 -3
- package/vscode/src/vs/base/common/arrays.d.ts +1 -0
- package/vscode/src/vs/base/common/arrays.js +12 -1
- package/vscode/src/vs/base/common/arraysFind.d.ts +2 -2
- package/vscode/src/vs/base/common/arraysFind.js +2 -2
- package/vscode/src/vs/base/common/assert.d.ts +1 -1
- package/vscode/src/vs/base/common/assert.js +2 -2
- package/vscode/src/vs/base/common/async.d.ts +1 -0
- package/vscode/src/vs/base/common/async.js +3 -0
- package/vscode/src/vs/base/common/buffer.d.ts +1 -0
- package/vscode/src/vs/base/common/buffer.js +9 -0
- 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/dataTransfer.d.ts +3 -2
- package/vscode/src/vs/base/common/dataTransfer.js +4 -2
- package/vscode/src/vs/base/common/decorators.d.ts +1 -1
- package/vscode/src/vs/base/common/hotReloadHelpers.js +1 -6
- package/vscode/src/vs/base/common/htmlContent.d.ts +4 -0
- package/vscode/src/vs/base/common/htmlContent.js +9 -0
- package/vscode/src/vs/base/common/lifecycle.js +26 -1
- package/vscode/src/vs/base/common/network.d.ts +1 -0
- package/vscode/src/vs/base/common/numbers.d.ts +1 -0
- package/vscode/src/vs/base/common/numbers.js +6 -1
- package/vscode/src/vs/base/common/observableInternal/autorun.d.ts +12 -6
- package/vscode/src/vs/base/common/observableInternal/autorun.js +40 -37
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +13 -8
- package/vscode/src/vs/base/common/observableInternal/base.js +30 -18
- package/vscode/src/vs/base/common/observableInternal/debugName.d.ts +1 -0
- package/vscode/src/vs/base/common/observableInternal/debugName.js +6 -3
- package/vscode/src/vs/base/common/observableInternal/derived.d.ts +12 -7
- package/vscode/src/vs/base/common/observableInternal/derived.js +56 -65
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +1 -1
- package/vscode/src/vs/base/common/observableInternal/index.js +12 -0
- package/vscode/src/vs/base/common/observableInternal/lazyObservableValue.js +10 -10
- package/vscode/src/vs/base/common/observableInternal/logging/consoleObservableLogger.d.ts +39 -0
- package/vscode/src/vs/base/common/observableInternal/{logging.js → logging/consoleObservableLogger.js} +41 -35
- package/vscode/src/vs/base/common/observableInternal/logging/logging.d.ts +28 -0
- package/vscode/src/vs/base/common/observableInternal/logging/logging.js +93 -0
- package/vscode/src/vs/base/common/observableInternal/utils.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/utils.js +17 -14
- package/vscode/src/vs/base/common/path.js +62 -16
- package/vscode/src/vs/base/common/product.d.ts +0 -2
- package/vscode/src/vs/base/common/strings.js +5 -4
- package/vscode/src/vs/base/common/ternarySearchTree.js +18 -9
- package/vscode/src/vs/base/common/types.d.ts +6 -0
- package/vscode/src/vs/base/common/types.js +4 -1
- package/vscode/src/vs/base/common/uuid.js +38 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/editContextFactory.d.ts +0 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/editContextFactory.js +0 -4
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +1 -1
- package/vscode/src/vs/editor/browser/coreCommands.js +1 -1
- package/vscode/src/vs/editor/browser/editorExtensions.js +3 -3
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +4 -7
- package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +11 -1
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +38 -7
- package/vscode/src/vs/editor/browser/point.d.ts +1 -0
- package/vscode/src/vs/editor/browser/point.js +3 -0
- package/vscode/src/vs/editor/browser/rect.d.ts +15 -6
- package/vscode/src/vs/editor/browser/rect.js +41 -10
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.d.ts +3 -2
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +15 -15
- package/vscode/src/vs/editor/browser/services/bulkEditService.d.ts +2 -8
- package/vscode/src/vs/editor/browser/services/bulkEditService.js +1 -3
- package/vscode/src/vs/editor/browser/services/bulkEditService.service.d.ts +10 -0
- package/vscode/src/vs/editor/browser/services/bulkEditService.service.js +6 -0
- package/vscode/src/vs/editor/browser/services/codeEditorService.d.ts +1 -43
- package/vscode/src/vs/editor/browser/services/codeEditorService.service.d.ts +45 -0
- package/vscode/src/vs/editor/browser/services/editorWorkerService.d.ts +6 -5
- package/vscode/src/vs/editor/browser/services/editorWorkerService.js +4 -4
- package/vscode/src/vs/editor/browser/services/hoverService/hover.css.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.d.ts +5 -3
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +31 -8
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.d.ts +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +14 -4
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.d.ts +1 -1
- package/vscode/src/vs/editor/browser/services/markerDecorations.d.ts +1 -1
- package/vscode/src/vs/editor/browser/services/markerDecorations.js +1 -1
- package/vscode/src/vs/editor/browser/services/openerService.d.ts +1 -1
- package/vscode/src/vs/editor/browser/services/openerService.js +8 -6
- package/vscode/src/vs/editor/browser/view.js +7 -10
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +22 -24
- package/vscode/src/vs/editor/browser/viewParts/rulersGpu/rulersGpu.js +1 -6
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +4 -7
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +3 -3
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +8 -3
- package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.d.ts +3 -3
- package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js +3 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +13 -9
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +2 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +4 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.js +2 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +5 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +4 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +9 -9
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +6 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.d.ts +2 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.service.d.ts +7 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.service.js +6 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/embeddedDiffEditorWidget.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/embeddedDiffEditorWidget.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +8 -10
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +4 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +5 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +4 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +3 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/style.css.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +4 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +3 -6
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.d.ts +4 -4
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +4 -3
- package/vscode/src/vs/editor/common/commands/shiftCommand.d.ts +1 -1
- package/vscode/src/vs/editor/common/commands/shiftCommand.js +1 -1
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +43 -37
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +5 -1
- package/vscode/src/vs/editor/common/config/editorOptions.js +426 -385
- package/vscode/src/vs/editor/common/config/fontInfo.d.ts +2 -0
- package/vscode/src/vs/editor/common/config/fontInfo.js +1 -1
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/offsetEdit.d.ts +3 -0
- package/vscode/src/vs/editor/common/core/offsetEdit.js +63 -1
- package/vscode/src/vs/editor/common/core/range.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/range.js +9 -0
- package/vscode/src/vs/editor/common/cursorCommon.d.ts +1 -1
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languages/autoIndent.d.ts +1 -1
- package/vscode/src/vs/editor/common/languages/enterAction.d.ts +1 -1
- package/vscode/src/vs/editor/common/languages/language.d.ts +0 -28
- package/vscode/src/vs/editor/common/languages/language.service.d.ts +31 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.d.ts +2 -8
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +3 -4
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.service.d.ts +11 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.service.js +6 -0
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +14 -1
- package/vscode/src/vs/editor/common/languages/supports/indentationLineProcessor.d.ts +1 -1
- package/vscode/src/vs/editor/common/languages/textToHtmlTokenizer.d.ts +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +20 -3
- package/vscode/src/vs/editor/common/languages.js +31 -27
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.d.ts +2 -1
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/fixBrackets.d.ts +1 -1
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/model/guidesTextModelPart.d.ts +1 -1
- package/vscode/src/vs/editor/common/model/textModel.d.ts +4 -2
- package/vscode/src/vs/editor/common/model/textModel.js +14 -11
- package/vscode/src/vs/editor/common/model/textModelOffsetEdit.d.ts +10 -0
- package/vscode/src/vs/editor/common/model/textModelOffsetEdit.js +39 -0
- package/vscode/src/vs/editor/common/model/textModelTokens.d.ts +4 -0
- package/vscode/src/vs/editor/common/model/textModelTokens.js +23 -19
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.d.ts +3 -2
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +5 -2
- package/vscode/src/vs/editor/common/model/tokens.d.ts +3 -3
- package/vscode/src/vs/editor/common/model/tokens.js +0 -4
- package/vscode/src/vs/editor/common/model/treeSitterTokenStoreService.service.d.ts +21 -0
- package/vscode/src/vs/editor/common/model/treeSitterTokenStoreService.service.js +6 -0
- package/vscode/src/vs/editor/common/model/treeSitterTokens.d.ts +7 -1
- package/vscode/src/vs/editor/common/model/treeSitterTokens.js +14 -1
- package/vscode/src/vs/editor/common/services/editorWorker.d.ts +0 -25
- package/vscode/src/vs/editor/common/services/editorWorker.service.d.ts +27 -0
- package/vscode/src/vs/editor/common/services/findSectionHeaders.d.ts +2 -0
- package/vscode/src/vs/editor/common/services/findSectionHeaders.js +43 -20
- package/vscode/src/vs/editor/common/services/getIconClasses.d.ts +2 -2
- package/vscode/src/vs/editor/common/services/languageFeatureDebounce.d.ts +1 -9
- package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +2 -3
- package/vscode/src/vs/editor/common/services/languageFeatureDebounce.service.d.ts +11 -0
- package/vscode/src/vs/editor/common/services/languageFeatureDebounce.service.js +6 -0
- package/vscode/src/vs/editor/common/services/{languageFeatures.d.ts → languageFeatures.service.d.ts} +1 -1
- package/vscode/src/vs/editor/common/services/languageFeaturesService.d.ts +1 -1
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +1 -1
- package/vscode/src/vs/editor/common/services/languageService.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/languageService.js +1 -4
- package/vscode/src/vs/editor/common/services/markerDecorationsService.d.ts +2 -2
- package/vscode/src/vs/editor/common/services/markerDecorationsService.js +1 -1
- package/vscode/src/vs/editor/common/services/model.d.ts +0 -20
- package/vscode/src/vs/editor/common/services/model.service.d.ts +20 -0
- package/vscode/src/vs/editor/common/services/modelService.d.ts +2 -2
- package/vscode/src/vs/editor/common/services/modelService.js +1 -1
- package/vscode/src/vs/editor/common/services/resolverService.service.d.ts +10 -0
- package/vscode/src/vs/editor/common/services/resolverService.service.js +6 -0
- package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.d.ts +1 -1
- package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.js +1 -1
- package/vscode/src/vs/editor/common/services/semanticTokensStyling.d.ts +0 -6
- package/vscode/src/vs/editor/common/services/semanticTokensStyling.service.d.ts +7 -0
- package/vscode/src/vs/editor/common/services/semanticTokensStylingService.d.ts +2 -2
- package/vscode/src/vs/editor/common/services/semanticTokensStylingService.js +2 -2
- package/vscode/src/vs/editor/common/services/textModelSync/textModelSync.impl.d.ts +1 -1
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.d.ts +0 -17
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.service.d.ts +19 -0
- package/vscode/src/vs/editor/common/services/treeSitterParserService.service.d.ts +27 -0
- package/vscode/src/vs/editor/common/services/{treeSitterParserService.js → treeSitterParserService.service.js} +2 -2
- package/vscode/src/vs/editor/common/services/treeViewsDndService.service.js +6 -0
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +2 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +1 -0
- package/vscode/src/vs/editor/common/standaloneStrings.d.ts +6 -0
- package/vscode/src/vs/editor/common/standaloneStrings.js +72 -43
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +1 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +2 -2
- 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.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +15 -11
- 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.d.ts +7 -9
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +18 -22
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.d.ts +6 -7
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +15 -16
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.service.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.service.js +6 -0
- package/vscode/src/vs/editor/contrib/codelens/browser/codelens.js +2 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +6 -5
- package/vscode/src/vs/editor/contrib/colorPicker/browser/color.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +3 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.js +2 -2
- 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/colorPicker/browser/standaloneColorPicker/standaloneColorPickerWidget.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/comment/browser/blockCommentCommand.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +7 -7
- package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.d.ts +1 -1
- 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/diffEditorBreadcrumbs/browser/contribution.js +8 -9
- package/vscode/src/vs/editor/contrib/documentSymbols/browser/documentSymbols.js +2 -2
- package/vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.d.ts +4 -10
- package/vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.js +5 -6
- package/vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.service.d.ts +10 -0
- package/vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.service.js +6 -0
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +25 -33
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +9 -9
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +5 -5
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +18 -7
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +2 -3
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.service.d.ts +8 -0
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.service.js +6 -0
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +27 -27
- package/vscode/src/vs/editor/contrib/folding/browser/folding.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +24 -24
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/folding/browser/indentRangeProvider.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/format.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/format/browser/format.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +5 -5
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +10 -10
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +18 -15
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.service.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.service.js +6 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +42 -42
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToSymbol.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +4 -4
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +4 -4
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +4 -4
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.d.ts +6 -4
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +54 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/{symbolNavigation.d.ts → symbolNavigation.service.d.ts} +0 -2
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.service.js +6 -0
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +8 -1
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +14 -13
- package/vscode/src/vs/editor/contrib/hover/browser/getHover.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/glyphHoverController.d.ts +1 -2
- package/vscode/src/vs/editor/contrib/hover/browser/glyphHoverController.js +7 -10
- package/vscode/src/vs/editor/contrib/hover/browser/glyphHoverWidget.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/glyphHoverWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hover.css.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +3 -3
- 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/hoverTypes.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hoverTypes.js +3 -1
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +12 -12
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +12 -11
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +3 -3
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +22 -22
- package/vscode/src/vs/editor/contrib/indentation/common/indentation.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.d.ts +4 -7
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +6 -6
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.service.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.service.js +6 -0
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +11 -11
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commandIds.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commandIds.js +4 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +57 -31
- 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 +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +17 -17
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +20 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.d.ts +7 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +52 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/animation.d.ts +25 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/animation.js +84 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.js +2 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.d.ts +9 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.js +11 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +19 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +163 -49
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +16 -22
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +265 -215
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.d.ts +1 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.js +1 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.js +5 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +3 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +9 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.js +1 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +7 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.css.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.d.ts +30 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +139 -48
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js +12 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.d.ts +19 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +196 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.d.ts +30 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{gutterIndicatorView.js → components/gutterIndicatorView.js} +62 -99
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{indicatorView.d.ts → components/indicatorView.d.ts} +5 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{indicatorView.js → components/indicatorView.js} +24 -26
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.d.ts +18 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +26 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{view.d.ts → inlineEditsView.d.ts} +18 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{view.js → inlineEditsView.js} +147 -96
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +17 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{deletionView.d.ts → inlineEditsViews/inlineEditsDeletionView.d.ts} +12 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{deletionView.js → inlineEditsViews/inlineEditsDeletionView.js} +20 -14
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.d.ts +37 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{insertionView.js → inlineEditsViews/inlineEditsInsertionView.js} +92 -51
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.d.ts +34 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +326 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.d.ts +58 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{sideBySideDiff.js → inlineEditsViews/inlineEditsSideBySideView.js} +90 -196
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.d.ts +32 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +274 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{inlineDiffView.d.ts → inlineEditsViews/originalEditorInlineDiffView.d.ts} +10 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{inlineDiffView.js → inlineEditsViews/originalEditorInlineDiffView.js} +35 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.d.ts +18 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +96 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.d.ts +81 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +228 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/viewAndDiffProducer.d.ts +0 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/viewAndDiffProducer.js +8 -35
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +29 -0
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLineCommand.d.ts +12 -0
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLineCommand.js +32 -0
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
- package/vscode/src/vs/editor/contrib/linesOperations/browser/moveLinesCommand.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/moveLinesCommand.js +1 -1
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +6 -6
- package/vscode/src/vs/editor/contrib/links/browser/getLinks.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +12 -12
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +23 -23
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +2 -2
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.d.ts +2 -4
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +7 -18
- package/vscode/src/vs/editor/contrib/parameterHints/browser/provideSignatureHelp.js +2 -2
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.d.ts +0 -5
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +26 -21
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.service.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.service.js +6 -0
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.js +4 -5
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +15 -15
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
- package/vscode/src/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js +3 -2
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +4 -4
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens.js +3 -3
- package/vscode/src/vs/editor/contrib/semanticTokens/common/getSemanticTokens.js +2 -2
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +6 -6
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +3 -3
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +5 -5
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css.js +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +3 -3
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +2 -2
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +2 -2
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +3 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.d.ts +5 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +6 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.service.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.service.js +6 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +4 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/wordDistance.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +37 -35
- 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/unicodeHighlighter.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +26 -26
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +6 -6
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/textualHighlightProvider.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/textualHighlightProvider.js +1 -1
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +16 -16
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +2 -2
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.d.ts +2 -1
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +4 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.d.ts +6 -6
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +7 -7
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditorService.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneLayoutService.d.ts +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneLayoutService.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +13 -12
- package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.d.ts +4 -3
- package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterService.d.ts +5 -2
- package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterService.js +6 -0
- package/vscode/src/vs/editor/standalone/common/standaloneTheme.d.ts +0 -11
- package/vscode/src/vs/editor/standalone/common/standaloneTheme.service.d.ts +12 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +2 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -57
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +13 -255
- package/vscode/src/vs/platform/actionWidget/browser/{actionWidget.d.ts → actionWidget.service.d.ts} +1 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.service.js +6 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.d.ts +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +14 -18
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +5 -1
- package/vscode/src/vs/platform/actions/common/actions.js +5 -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/configurationRegistry.js +10 -10
- 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/contextview/browser/contextMenuHandler.js +1 -1
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.d.ts +8 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.js +20 -7
- package/vscode/src/vs/platform/environment/common/argv.d.ts +2 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +7 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +2 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.d.ts +6 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +20 -17
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.service.d.ts +2 -3
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +8 -5
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +10 -7
- 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/files/common/files.service.d.ts +3 -1
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +2 -2
- package/vscode/src/vs/platform/hover/browser/hover.d.ts +8 -4
- package/vscode/src/vs/platform/hover/browser/hover.js +8 -5
- package/vscode/src/vs/platform/hover/browser/hover.service.d.ts +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- 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.js +27 -27
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.d.ts +1 -0
- package/vscode/src/vs/platform/markers/common/markers.js +11 -3
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +2 -6
- package/vscode/src/vs/platform/observable/common/wrapInHotClass.js +1 -7
- package/vscode/src/vs/platform/observable/common/wrapInReloadableClass.js +1 -7
- package/vscode/src/vs/platform/opener/common/opener.d.ts +1 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +11 -11
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +11 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.d.ts +2 -4
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.js +8 -9
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.d.ts +1 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +19 -21
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.d.ts +1 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +5 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +8 -9
- 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/quickinput/common/quickInput.service.d.ts +1 -0
- package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.service.d.ts +2 -1
- package/vscode/src/vs/platform/request/common/request.js +18 -18
- package/vscode/src/vs/platform/severityIcon/browser/media/severityIcon.css.js +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.d.ts +0 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +2 -3
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +13 -1
- package/vscode/src/vs/platform/terminal/common/terminal.js +2 -1
- package/vscode/src/vs/platform/terminal/common/terminalProcess.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 +19 -19
- 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.js +45 -45
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +37 -37
- 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 +3 -0
- package/vscode/src/vs/platform/theme/common/themeService.js +1 -1
- package/vscode/src/vs/platform/theme/common/themeService.service.d.ts +2 -2
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +2 -0
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +5 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +1 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +7 -6
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +2 -2
- package/vscode/src/vs/platform/window/common/window.d.ts +9 -8
- package/vscode/src/vs/platform/window/common/window.js +6 -11
- 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/browser/statusBarService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +30 -30
- package/vscode/src/vs/workbench/api/common/extHost.common.services.js +0 -2
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +91 -34
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +1 -10
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +4 -1
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +21 -22
- package/vscode/src/vs/workbench/api/common/extHostCodeMapper.js +10 -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/extHostDocumentData.d.ts +3 -1
- package/vscode/src/vs/workbench/api/common/extHostDocumentData.js +7 -1
- package/vscode/src/vs/workbench/api/common/extHostDocuments.d.ts +5 -1
- package/vscode/src/vs/workbench/api/common/extHostDocuments.js +26 -3
- package/vscode/src/vs/workbench/api/common/extHostDocumentsAndEditors.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.d.ts +0 -2
- package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostInteractive.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostLabelService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +3 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +89 -35
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +42 -22
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +23 -23
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +9 -0
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.d.ts +1 -5
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +7 -24
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +19 -6
- 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 +37 -16
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +147 -41
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +46 -15
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +41 -12
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +6 -0
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +9 -1
- package/vscode/src/vs/workbench/api/common/extensionHostMain.js +0 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/api/worker/extHost.worker.services.js +3 -0
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.d.ts +2 -1
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +31 -37
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editor.d.ts +2 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editor.js +37 -2
- package/vscode/src/vs/workbench/common/configuration.js +10 -10
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +2 -2
- package/vscode/src/vs/workbench/common/contextkeys.js +72 -78
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +2 -2
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.d.ts +18 -16
- package/vscode/src/vs/workbench/common/theme.js +239 -231
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +165 -145
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +20 -4
- 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 +6 -3
- 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.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +136 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +2 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +36 -31
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +48 -18
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +7 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +7 -10
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementsService.service.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementsService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/{browser → common}/chatQuotasService.service.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +37 -14
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +7 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +8 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.service.d.ts +4 -11
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/types.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/types.service.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/types.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +35 -18
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +14 -14
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +7 -10
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorFeatures.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +9 -18
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/workbenchReferenceSearch.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/workbenchReferenceSearch.js +1 -1
- 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/browser/simpleCommentEditor.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +3 -3
- 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/debug/common/debugUtils.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -1
- 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.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +22 -22
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +5 -5
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +3 -3
- 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/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +9 -5
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +1 -0
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookSynchronizerService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +5 -5
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +11 -11
- package/vscode/src/vs/workbench/contrib/snippets/browser/tabCompletion.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/tabCompletion.js +1 -1
- 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/taskService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +5 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service.d.ts +4 -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/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +2 -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/environment/common/environmentService.service.d.ts +0 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +1 -4
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.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/extensionHostProtocol.d.ts +0 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +83 -83
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.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.service.d.ts +1 -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/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 +1 -1
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +6 -3
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.js +1 -1
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.d.ts +8 -7
- 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 -11
- 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/src/vs/workbench/services/workspaces/common/workspaceEditing.service.d.ts +1 -1
- package/vscode-dts/vscode.d.ts +52 -13
- package/vscode-dts/vscode.proposed.authLearnMore.d.ts +1 -1
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +40 -27
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +54 -6
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +1 -0
- package/vscode-dts/vscode.proposed.chatReferenceBinaryData.d.ts +2 -2
- package/vscode-dts/vscode.proposed.chatReferenceDiagnostic.d.ts +23 -0
- package/vscode-dts/vscode.proposed.d.ts +3 -2
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +38 -1
- package/vscode-dts/vscode.proposed.inlineEdit.d.ts +2 -0
- package/vscode-dts/vscode.proposed.languageModelCapabilities.d.ts +25 -0
- package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +1 -0
- package/vscode-dts/vscode.proposed.resolvers.d.ts +1 -1
- package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +18 -10
- package/vscode-dts/vscode.proposed.terminalShellEnv.d.ts +19 -1
- package/vscode-dts/vscode.proposed.textDocumentEncoding.d.ts +155 -0
- package/vscode-dts/vscode.proposed.textEditorDiffInformation.d.ts +7 -8
- package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +1 -1
- package/workbench.d.ts +1 -1
- package/vscode/src/vs/base/browser/domObservable.d.ts +0 -3
- package/vscode/src/vs/base/browser/domObservable.js +0 -20
- package/vscode/src/vs/base/browser/ui/hover/hover.d.ts +0 -79
- package/vscode/src/vs/base/common/observableInternal/logging.d.ts +0 -54
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +0 -127
- package/vscode/src/vs/editor/common/model/tokenStore.d.ts +0 -59
- package/vscode/src/vs/editor/common/model/tokenStore.js +0 -384
- package/vscode/src/vs/editor/common/model/treeSitterTokenStoreService.d.ts +0 -44
- package/vscode/src/vs/editor/common/model/treeSitterTokenStoreService.js +0 -114
- package/vscode/src/vs/editor/common/services/resolverService.d.ts +0 -29
- package/vscode/src/vs/editor/common/services/resolverService.js +0 -10
- package/vscode/src/vs/editor/common/services/treeSitterParserService.d.ts +0 -42
- package/vscode/src/vs/editor/common/services/treeViewsDndService.js +0 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.d.ts +0 -21
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +0 -95
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.d.ts +0 -41
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +0 -217
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +0 -180
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/gutterIndicatorMenu.d.ts +0 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/gutterIndicatorMenu.js +0 -143
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/gutterIndicatorView.d.ts +0 -37
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/insertionView.d.ts +0 -32
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/sideBySideDiff.d.ts +0 -71
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils.d.ts +0 -151
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils.js +0 -476
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/wordReplacementView.d.ts +0 -58
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/wordReplacementView.js +0 -520
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.d.ts +0 -72
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.js +0 -234
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +0 -231
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.d.ts +0 -39
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +0 -145
- package/vscode/src/vs/workbench/api/common/extHostChatVariables.d.ts +0 -14
- package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +0 -106
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.d.ts +0 -12
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +0 -247
- package/vscode/src/vs/workbench/common/activity.d.ts +0 -2
- package/vscode/src/vs/workbench/common/activity.js +0 -6
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +0 -44
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +0 -166
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.d.ts +0 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +0 -540
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +0 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +0 -136
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +0 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.js +0 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorActions.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorActions.js +0 -309
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorController.d.ts +0 -81
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorController.js +0 -681
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.d.ts +0 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +0 -169
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorOverlay.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorOverlay.js +0 -296
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotasService.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotasService.js +0 -198
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/screenshot.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/screenshot.js +0 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditorController.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditorOverlay.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/annotations.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +0 -134
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +0 -444
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +0 -991
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +0 -112
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +0 -181
- package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.d.ts +0 -35
- package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.js +0 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.d.ts +0 -234
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +0 -375
- package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +0 -38
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +0 -42
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.d.ts +0 -167
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +0 -85
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditContext.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditContext.js +0 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.d.ts +0 -602
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +0 -143
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.d.ts +0 -60
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +0 -316
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.js +0 -73
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.d.ts +0 -36
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.js +0 -11
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.d.ts +0 -51
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +0 -95
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +0 -63
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +0 -164
- package/vscode-dts/vscode.proposed.chatVariableResolver.d.ts +0 -110
- package/vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts +0 -51
- package/vscode/src/vs/editor/browser/services/{codeEditorService.js → codeEditorService.service.js} +0 -0
- package/vscode/src/vs/editor/common/languages/{language.js → language.service.js} +0 -0
- package/vscode/src/vs/editor/common/services/{editorWorker.js → editorWorker.service.js} +0 -0
- package/vscode/src/vs/editor/common/services/{languageFeatures.js → languageFeatures.service.js} +0 -0
- package/vscode/src/vs/editor/common/services/{markerDecorations.d.ts → markerDecorations.service.d.ts} +4 -4
- /package/vscode/src/vs/editor/common/services/{markerDecorations.js → markerDecorations.service.js} +0 -0
- /package/vscode/src/vs/editor/common/services/{model.js → model.service.js} +0 -0
- /package/vscode/src/vs/editor/common/services/{semanticTokensStyling.js → semanticTokensStyling.service.js} +0 -0
- /package/vscode/src/vs/editor/common/services/{textResourceConfiguration.js → textResourceConfiguration.service.js} +0 -0
- /package/vscode/src/vs/editor/common/services/{treeViewsDndService.d.ts → treeViewsDndService.service.d.ts} +0 -0
- /package/vscode/src/vs/editor/standalone/common/{standaloneTheme.js → standaloneTheme.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/{browser → common}/chatQuotasService.service.js +0 -0
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { registerSingleton, InstantiationType } from '../../../../platform/instantiation/common/extensions.js';
|
|
4
|
-
import { createDecorator, IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
5
|
-
import { Emitter } from '../../../../base/common/event.js';
|
|
6
|
-
import { StopWatch } from '../../../../base/common/stopwatch.js';
|
|
7
|
-
import { LineRange } from '../../../common/core/lineRange.js';
|
|
8
|
-
import { DetailedLineRangeMapping, RangeMapping } from '../../../common/diff/rangeMapping.js';
|
|
9
|
-
import { IEditorWorkerService } from '../../../common/services/editorWorker.js';
|
|
10
|
-
import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.service.js';
|
|
11
|
-
|
|
12
|
-
var WorkerBasedDocumentDiffProvider_1;
|
|
13
|
-
const IDiffProviderFactoryService = ( createDecorator('diffProviderFactoryService'));
|
|
14
|
-
let WorkerBasedDiffProviderFactoryService = class WorkerBasedDiffProviderFactoryService {
|
|
15
|
-
constructor(instantiationService) {
|
|
16
|
-
this.instantiationService = instantiationService;
|
|
17
|
-
}
|
|
18
|
-
createDiffProvider(options) {
|
|
19
|
-
return this.instantiationService.createInstance(WorkerBasedDocumentDiffProvider, options);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
WorkerBasedDiffProviderFactoryService = ( __decorate([
|
|
23
|
-
( __param(0, IInstantiationService))
|
|
24
|
-
], WorkerBasedDiffProviderFactoryService));
|
|
25
|
-
registerSingleton(IDiffProviderFactoryService, WorkerBasedDiffProviderFactoryService, InstantiationType.Delayed);
|
|
26
|
-
let WorkerBasedDocumentDiffProvider = class WorkerBasedDocumentDiffProvider {
|
|
27
|
-
static { WorkerBasedDocumentDiffProvider_1 = this; }
|
|
28
|
-
static { this.diffCache = ( new Map()); }
|
|
29
|
-
constructor(options, editorWorkerService, telemetryService) {
|
|
30
|
-
this.editorWorkerService = editorWorkerService;
|
|
31
|
-
this.telemetryService = telemetryService;
|
|
32
|
-
this.onDidChangeEventEmitter = ( new Emitter());
|
|
33
|
-
this.onDidChange = this.onDidChangeEventEmitter.event;
|
|
34
|
-
this.diffAlgorithm = 'advanced';
|
|
35
|
-
this.diffAlgorithmOnDidChangeSubscription = undefined;
|
|
36
|
-
this.setOptions(options);
|
|
37
|
-
}
|
|
38
|
-
dispose() {
|
|
39
|
-
this.diffAlgorithmOnDidChangeSubscription?.dispose();
|
|
40
|
-
}
|
|
41
|
-
async computeDiff(original, modified, options, cancellationToken) {
|
|
42
|
-
if (typeof this.diffAlgorithm !== 'string') {
|
|
43
|
-
return this.diffAlgorithm.computeDiff(original, modified, options, cancellationToken);
|
|
44
|
-
}
|
|
45
|
-
if (original.isDisposed() || modified.isDisposed()) {
|
|
46
|
-
return {
|
|
47
|
-
changes: [],
|
|
48
|
-
identical: true,
|
|
49
|
-
quitEarly: false,
|
|
50
|
-
moves: [],
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
if (original.getLineCount() === 1 && original.getLineMaxColumn(1) === 1) {
|
|
54
|
-
if (modified.getLineCount() === 1 && modified.getLineMaxColumn(1) === 1) {
|
|
55
|
-
return {
|
|
56
|
-
changes: [],
|
|
57
|
-
identical: true,
|
|
58
|
-
quitEarly: false,
|
|
59
|
-
moves: [],
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
changes: [
|
|
64
|
-
( new DetailedLineRangeMapping(( new LineRange(1, 2)), ( new LineRange(1, modified.getLineCount() + 1)), [
|
|
65
|
-
( new RangeMapping(original.getFullModelRange(), modified.getFullModelRange()))
|
|
66
|
-
]))
|
|
67
|
-
],
|
|
68
|
-
identical: false,
|
|
69
|
-
quitEarly: false,
|
|
70
|
-
moves: [],
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
const uriKey = JSON.stringify([( original.uri.toString()), ( modified.uri.toString())]);
|
|
74
|
-
const context = JSON.stringify([original.id, modified.id, original.getAlternativeVersionId(), modified.getAlternativeVersionId(), JSON.stringify(options)]);
|
|
75
|
-
const c = WorkerBasedDocumentDiffProvider_1.diffCache.get(uriKey);
|
|
76
|
-
if (c && c.context === context) {
|
|
77
|
-
return c.result;
|
|
78
|
-
}
|
|
79
|
-
const sw = StopWatch.create();
|
|
80
|
-
const result = await this.editorWorkerService.computeDiff(original.uri, modified.uri, options, this.diffAlgorithm);
|
|
81
|
-
const timeMs = sw.elapsed();
|
|
82
|
-
this.telemetryService.publicLog2('diffEditor.computeDiff', {
|
|
83
|
-
timeMs,
|
|
84
|
-
timedOut: result?.quitEarly ?? true,
|
|
85
|
-
detectedMoves: options.computeMoves ? (result?.moves.length ?? 0) : -1,
|
|
86
|
-
});
|
|
87
|
-
if (cancellationToken.isCancellationRequested) {
|
|
88
|
-
return {
|
|
89
|
-
changes: [],
|
|
90
|
-
identical: false,
|
|
91
|
-
quitEarly: true,
|
|
92
|
-
moves: [],
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
if (!result) {
|
|
96
|
-
throw ( new Error('no diff result available'));
|
|
97
|
-
}
|
|
98
|
-
if (WorkerBasedDocumentDiffProvider_1.diffCache.size > 10) {
|
|
99
|
-
WorkerBasedDocumentDiffProvider_1.diffCache.delete(( WorkerBasedDocumentDiffProvider_1.diffCache.keys()).next().value);
|
|
100
|
-
}
|
|
101
|
-
WorkerBasedDocumentDiffProvider_1.diffCache.set(uriKey, { result, context });
|
|
102
|
-
return result;
|
|
103
|
-
}
|
|
104
|
-
setOptions(newOptions) {
|
|
105
|
-
let didChange = false;
|
|
106
|
-
if (newOptions.diffAlgorithm) {
|
|
107
|
-
if (this.diffAlgorithm !== newOptions.diffAlgorithm) {
|
|
108
|
-
this.diffAlgorithmOnDidChangeSubscription?.dispose();
|
|
109
|
-
this.diffAlgorithmOnDidChangeSubscription = undefined;
|
|
110
|
-
this.diffAlgorithm = newOptions.diffAlgorithm;
|
|
111
|
-
if (typeof newOptions.diffAlgorithm !== 'string') {
|
|
112
|
-
this.diffAlgorithmOnDidChangeSubscription = newOptions.diffAlgorithm.onDidChange(() => this.onDidChangeEventEmitter.fire());
|
|
113
|
-
}
|
|
114
|
-
didChange = true;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
if (didChange) {
|
|
118
|
-
this.onDidChangeEventEmitter.fire();
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
WorkerBasedDocumentDiffProvider = WorkerBasedDocumentDiffProvider_1 = ( __decorate([
|
|
123
|
-
( __param(1, IEditorWorkerService)),
|
|
124
|
-
( __param(2, ITelemetryService))
|
|
125
|
-
], WorkerBasedDocumentDiffProvider));
|
|
126
|
-
|
|
127
|
-
export { IDiffProviderFactoryService, WorkerBasedDiffProviderFactoryService, WorkerBasedDocumentDiffProvider };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { IDisposable } from "../../../base/common/lifecycle.js";
|
|
2
|
-
import { ITextModel } from "../model.js";
|
|
3
|
-
declare class ListNode implements IDisposable {
|
|
4
|
-
readonly height: number;
|
|
5
|
-
parent?: ListNode;
|
|
6
|
-
private readonly _children;
|
|
7
|
-
get children(): ReadonlyArray<Node>;
|
|
8
|
-
private _length;
|
|
9
|
-
get length(): number;
|
|
10
|
-
constructor(height: number);
|
|
11
|
-
static create(node1: Node, node2: Node): ListNode;
|
|
12
|
-
canAppendChild(): boolean;
|
|
13
|
-
appendChild(node: Node): void;
|
|
14
|
-
private _updateParentLength;
|
|
15
|
-
unappendChild(): Node;
|
|
16
|
-
prependChild(node: Node): void;
|
|
17
|
-
unprependChild(): Node;
|
|
18
|
-
lastChild(): Node;
|
|
19
|
-
dispose(): void;
|
|
20
|
-
}
|
|
21
|
-
type Node = ListNode | LeafNode;
|
|
22
|
-
interface LeafNode {
|
|
23
|
-
readonly length: number;
|
|
24
|
-
parent?: ListNode;
|
|
25
|
-
token: number;
|
|
26
|
-
needsRefresh?: boolean;
|
|
27
|
-
height: 0;
|
|
28
|
-
}
|
|
29
|
-
export interface TokenUpdate {
|
|
30
|
-
readonly startOffsetInclusive: number;
|
|
31
|
-
readonly length: number;
|
|
32
|
-
readonly token: number;
|
|
33
|
-
}
|
|
34
|
-
export declare class TokenStore implements IDisposable {
|
|
35
|
-
private readonly _textModel;
|
|
36
|
-
private _root;
|
|
37
|
-
get root(): Node;
|
|
38
|
-
constructor(_textModel: ITextModel);
|
|
39
|
-
private createEmptyRoot;
|
|
40
|
-
buildStore(tokens: TokenUpdate[]): void;
|
|
41
|
-
private createFromUpdates;
|
|
42
|
-
update(length: number, tokens: TokenUpdate[], needsRefresh?: boolean): void;
|
|
43
|
-
delete(length: number, startOffset: number): void;
|
|
44
|
-
private replace;
|
|
45
|
-
private traverseInOrderInRange;
|
|
46
|
-
getTokenAt(offset: number): TokenUpdate | undefined;
|
|
47
|
-
getTokensInRange(startOffsetInclusive: number, endOffsetExclusive: number): TokenUpdate[];
|
|
48
|
-
markForRefresh(startOffsetInclusive: number, endOffsetExclusive: number): void;
|
|
49
|
-
rangeNeedsRefresh(startOffsetInclusive: number, endOffsetExclusive: number): boolean;
|
|
50
|
-
getNeedsRefresh(): {
|
|
51
|
-
startOffset: number;
|
|
52
|
-
endOffset: number;
|
|
53
|
-
}[];
|
|
54
|
-
deepCopy(): TokenStore;
|
|
55
|
-
private _copyNodeIterative;
|
|
56
|
-
printTree(root?: Node): string;
|
|
57
|
-
dispose(): void;
|
|
58
|
-
}
|
|
59
|
-
export {};
|
|
@@ -1,384 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
class ListNode {
|
|
4
|
-
get children() { return this._children; }
|
|
5
|
-
get length() { return this._length; }
|
|
6
|
-
constructor(height) {
|
|
7
|
-
this.height = height;
|
|
8
|
-
this._children = [];
|
|
9
|
-
this._length = 0;
|
|
10
|
-
}
|
|
11
|
-
static create(node1, node2) {
|
|
12
|
-
const list = ( new ListNode(node1.height + 1));
|
|
13
|
-
list.appendChild(node1);
|
|
14
|
-
list.appendChild(node2);
|
|
15
|
-
return list;
|
|
16
|
-
}
|
|
17
|
-
canAppendChild() {
|
|
18
|
-
return this._children.length < 3;
|
|
19
|
-
}
|
|
20
|
-
appendChild(node) {
|
|
21
|
-
if (!this.canAppendChild()) {
|
|
22
|
-
throw ( new Error('Cannot insert more than 3 children in a ListNode'));
|
|
23
|
-
}
|
|
24
|
-
this._children.push(node);
|
|
25
|
-
this._length += node.length;
|
|
26
|
-
this._updateParentLength(node.length);
|
|
27
|
-
node.parent = this;
|
|
28
|
-
}
|
|
29
|
-
_updateParentLength(delta) {
|
|
30
|
-
let updateParent = this.parent;
|
|
31
|
-
while (updateParent) {
|
|
32
|
-
updateParent._length += delta;
|
|
33
|
-
updateParent = updateParent.parent;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
unappendChild() {
|
|
37
|
-
const child = this._children.pop();
|
|
38
|
-
this._length -= child.length;
|
|
39
|
-
this._updateParentLength(-child.length);
|
|
40
|
-
return child;
|
|
41
|
-
}
|
|
42
|
-
prependChild(node) {
|
|
43
|
-
if (this._children.length >= 3) {
|
|
44
|
-
throw ( new Error('Cannot prepend more than 3 children in a ListNode'));
|
|
45
|
-
}
|
|
46
|
-
this._children.unshift(node);
|
|
47
|
-
this._length += node.length;
|
|
48
|
-
this._updateParentLength(node.length);
|
|
49
|
-
node.parent = this;
|
|
50
|
-
}
|
|
51
|
-
unprependChild() {
|
|
52
|
-
const child = this._children.shift();
|
|
53
|
-
this._length -= child.length;
|
|
54
|
-
this._updateParentLength(-child.length);
|
|
55
|
-
return child;
|
|
56
|
-
}
|
|
57
|
-
lastChild() {
|
|
58
|
-
return this._children[this._children.length - 1];
|
|
59
|
-
}
|
|
60
|
-
dispose() {
|
|
61
|
-
this._children.splice(0, this._children.length);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
function isLeaf(node) {
|
|
65
|
-
return node.token !== undefined;
|
|
66
|
-
}
|
|
67
|
-
function append(node, nodeToAppend) {
|
|
68
|
-
let curNode = node;
|
|
69
|
-
const parents = [];
|
|
70
|
-
let nodeToAppendOfCorrectHeight;
|
|
71
|
-
while (true) {
|
|
72
|
-
if (nodeToAppend.height === curNode.height) {
|
|
73
|
-
nodeToAppendOfCorrectHeight = nodeToAppend;
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
if (isLeaf(curNode)) {
|
|
77
|
-
throw ( new Error('unexpected'));
|
|
78
|
-
}
|
|
79
|
-
parents.push(curNode);
|
|
80
|
-
curNode = curNode.lastChild();
|
|
81
|
-
}
|
|
82
|
-
for (let i = parents.length - 1; i >= 0; i--) {
|
|
83
|
-
const parent = parents[i];
|
|
84
|
-
if (nodeToAppendOfCorrectHeight) {
|
|
85
|
-
if (parent.children.length >= 3) {
|
|
86
|
-
const newList = ListNode.create(parent.unappendChild(), nodeToAppendOfCorrectHeight);
|
|
87
|
-
nodeToAppendOfCorrectHeight = newList;
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
parent.appendChild(nodeToAppendOfCorrectHeight);
|
|
91
|
-
nodeToAppendOfCorrectHeight = undefined;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
if (nodeToAppendOfCorrectHeight) {
|
|
96
|
-
const newList = ( new ListNode(nodeToAppendOfCorrectHeight.height + 1));
|
|
97
|
-
newList.appendChild(node);
|
|
98
|
-
newList.appendChild(nodeToAppendOfCorrectHeight);
|
|
99
|
-
return newList;
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
return node;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
function prepend(list, nodeToAppend) {
|
|
106
|
-
let curNode = list;
|
|
107
|
-
const parents = [];
|
|
108
|
-
while (nodeToAppend.height !== curNode.height) {
|
|
109
|
-
if (isLeaf(curNode)) {
|
|
110
|
-
throw ( new Error('unexpected'));
|
|
111
|
-
}
|
|
112
|
-
parents.push(curNode);
|
|
113
|
-
curNode = curNode.children[0];
|
|
114
|
-
}
|
|
115
|
-
let nodeToPrependOfCorrectHeight = nodeToAppend;
|
|
116
|
-
for (let i = parents.length - 1; i >= 0; i--) {
|
|
117
|
-
const parent = parents[i];
|
|
118
|
-
if (nodeToPrependOfCorrectHeight) {
|
|
119
|
-
if (parent.children.length >= 3) {
|
|
120
|
-
nodeToPrependOfCorrectHeight = ListNode.create(nodeToPrependOfCorrectHeight, parent.unprependChild());
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
parent.prependChild(nodeToPrependOfCorrectHeight);
|
|
124
|
-
nodeToPrependOfCorrectHeight = undefined;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
if (nodeToPrependOfCorrectHeight) {
|
|
129
|
-
return ListNode.create(nodeToPrependOfCorrectHeight, list);
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
return list;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
function concat(node1, node2) {
|
|
136
|
-
if (node1.height === node2.height) {
|
|
137
|
-
return ListNode.create(node1, node2);
|
|
138
|
-
}
|
|
139
|
-
else if (node1.height > node2.height) {
|
|
140
|
-
return append(node1, node2);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
return prepend(node2, node1);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
class TokenStore {
|
|
147
|
-
get root() {
|
|
148
|
-
return this._root;
|
|
149
|
-
}
|
|
150
|
-
constructor(_textModel) {
|
|
151
|
-
this._textModel = _textModel;
|
|
152
|
-
this._root = this.createEmptyRoot();
|
|
153
|
-
}
|
|
154
|
-
createEmptyRoot() {
|
|
155
|
-
return {
|
|
156
|
-
length: this._textModel.getValueLength(),
|
|
157
|
-
token: 0,
|
|
158
|
-
height: 0
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
buildStore(tokens) {
|
|
162
|
-
this._root = this.createFromUpdates(tokens, true);
|
|
163
|
-
}
|
|
164
|
-
createFromUpdates(tokens, needsRefresh) {
|
|
165
|
-
if (tokens.length === 0) {
|
|
166
|
-
return this.createEmptyRoot();
|
|
167
|
-
}
|
|
168
|
-
let newRoot = {
|
|
169
|
-
length: tokens[0].length,
|
|
170
|
-
token: tokens[0].token,
|
|
171
|
-
height: 0,
|
|
172
|
-
needsRefresh
|
|
173
|
-
};
|
|
174
|
-
for (let j = 1; j < tokens.length; j++) {
|
|
175
|
-
newRoot = append(newRoot, { length: tokens[j].length, token: tokens[j].token, height: 0, needsRefresh });
|
|
176
|
-
}
|
|
177
|
-
return newRoot;
|
|
178
|
-
}
|
|
179
|
-
update(length, tokens, needsRefresh) {
|
|
180
|
-
if (tokens.length === 0) {
|
|
181
|
-
return;
|
|
182
|
-
}
|
|
183
|
-
this.replace(length, tokens[0].startOffsetInclusive, tokens, needsRefresh);
|
|
184
|
-
}
|
|
185
|
-
delete(length, startOffset) {
|
|
186
|
-
this.replace(length, startOffset, [], true);
|
|
187
|
-
}
|
|
188
|
-
replace(length, updateOffsetStart, tokens, needsRefresh) {
|
|
189
|
-
const firstUnchangedOffsetAfterUpdate = updateOffsetStart + length;
|
|
190
|
-
const precedingNodes = [];
|
|
191
|
-
const postcedingNodes = [];
|
|
192
|
-
const stack = [{ node: this._root, offset: 0 }];
|
|
193
|
-
while (stack.length > 0) {
|
|
194
|
-
const node = stack.pop();
|
|
195
|
-
const currentOffset = node.offset;
|
|
196
|
-
if (currentOffset < updateOffsetStart && currentOffset + node.node.length <= updateOffsetStart) {
|
|
197
|
-
node.node.parent = undefined;
|
|
198
|
-
precedingNodes.push(node.node);
|
|
199
|
-
continue;
|
|
200
|
-
}
|
|
201
|
-
else if (isLeaf(node.node) && (currentOffset < updateOffsetStart)) {
|
|
202
|
-
precedingNodes.push({ length: updateOffsetStart - currentOffset, token: node.node.token, height: 0, needsRefresh: needsRefresh || node.node.needsRefresh });
|
|
203
|
-
}
|
|
204
|
-
if ((updateOffsetStart <= currentOffset) && (currentOffset + node.node.length <= firstUnchangedOffsetAfterUpdate)) {
|
|
205
|
-
continue;
|
|
206
|
-
}
|
|
207
|
-
if (currentOffset >= firstUnchangedOffsetAfterUpdate) {
|
|
208
|
-
node.node.parent = undefined;
|
|
209
|
-
postcedingNodes.push(node.node);
|
|
210
|
-
continue;
|
|
211
|
-
}
|
|
212
|
-
else if (isLeaf(node.node) && (currentOffset + node.node.length >= firstUnchangedOffsetAfterUpdate)) {
|
|
213
|
-
postcedingNodes.push({ length: currentOffset + node.node.length - firstUnchangedOffsetAfterUpdate, token: node.node.token, height: 0, needsRefresh: needsRefresh || node.node.needsRefresh });
|
|
214
|
-
continue;
|
|
215
|
-
}
|
|
216
|
-
if (!isLeaf(node.node)) {
|
|
217
|
-
let childOffset = currentOffset + node.node.length;
|
|
218
|
-
for (let i = node.node.children.length - 1; i >= 0; i--) {
|
|
219
|
-
childOffset -= node.node.children[i].length;
|
|
220
|
-
stack.push({ node: node.node.children[i], offset: childOffset });
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
let allNodes;
|
|
225
|
-
if (tokens.length > 0) {
|
|
226
|
-
allNodes = precedingNodes.concat(this.createFromUpdates(tokens, needsRefresh), postcedingNodes);
|
|
227
|
-
}
|
|
228
|
-
else {
|
|
229
|
-
allNodes = precedingNodes.concat(postcedingNodes);
|
|
230
|
-
}
|
|
231
|
-
let newRoot = allNodes[0];
|
|
232
|
-
for (let i = 1; i < allNodes.length; i++) {
|
|
233
|
-
newRoot = concat(newRoot, allNodes[i]);
|
|
234
|
-
}
|
|
235
|
-
this._root = newRoot ?? this.createEmptyRoot();
|
|
236
|
-
}
|
|
237
|
-
traverseInOrderInRange(startOffsetInclusive, endOffsetExclusive, visitor) {
|
|
238
|
-
const stack = [{ node: this._root, offset: 0 }];
|
|
239
|
-
while (stack.length > 0) {
|
|
240
|
-
const { node, offset } = stack.pop();
|
|
241
|
-
const nodeEnd = offset + node.length;
|
|
242
|
-
if (nodeEnd <= startOffsetInclusive || offset >= endOffsetExclusive) {
|
|
243
|
-
continue;
|
|
244
|
-
}
|
|
245
|
-
if (visitor(node, offset)) {
|
|
246
|
-
return;
|
|
247
|
-
}
|
|
248
|
-
if (!isLeaf(node)) {
|
|
249
|
-
let childOffset = offset + node.length;
|
|
250
|
-
for (let i = node.children.length - 1; i >= 0; i--) {
|
|
251
|
-
childOffset -= node.children[i].length;
|
|
252
|
-
stack.push({ node: node.children[i], offset: childOffset });
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
getTokenAt(offset) {
|
|
258
|
-
let result;
|
|
259
|
-
this.traverseInOrderInRange(offset, this._root.length, (node, offset) => {
|
|
260
|
-
if (isLeaf(node)) {
|
|
261
|
-
result = { token: node.token, startOffsetInclusive: offset, length: node.length };
|
|
262
|
-
return true;
|
|
263
|
-
}
|
|
264
|
-
return false;
|
|
265
|
-
});
|
|
266
|
-
return result;
|
|
267
|
-
}
|
|
268
|
-
getTokensInRange(startOffsetInclusive, endOffsetExclusive) {
|
|
269
|
-
const result = [];
|
|
270
|
-
this.traverseInOrderInRange(startOffsetInclusive, endOffsetExclusive, (node, offset) => {
|
|
271
|
-
if (isLeaf(node)) {
|
|
272
|
-
let clippedLength = node.length;
|
|
273
|
-
let clippedOffset = offset;
|
|
274
|
-
if (offset < startOffsetInclusive) {
|
|
275
|
-
clippedLength -= (startOffsetInclusive - offset);
|
|
276
|
-
clippedOffset = startOffsetInclusive;
|
|
277
|
-
}
|
|
278
|
-
else if (offset + node.length > endOffsetExclusive) {
|
|
279
|
-
clippedLength -= (offset + node.length - endOffsetExclusive);
|
|
280
|
-
}
|
|
281
|
-
result.push({ token: node.token, startOffsetInclusive: clippedOffset, length: clippedLength });
|
|
282
|
-
}
|
|
283
|
-
return false;
|
|
284
|
-
});
|
|
285
|
-
return result;
|
|
286
|
-
}
|
|
287
|
-
markForRefresh(startOffsetInclusive, endOffsetExclusive) {
|
|
288
|
-
this.traverseInOrderInRange(startOffsetInclusive, endOffsetExclusive, (node) => {
|
|
289
|
-
if (isLeaf(node)) {
|
|
290
|
-
node.needsRefresh = true;
|
|
291
|
-
}
|
|
292
|
-
return false;
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
rangeNeedsRefresh(startOffsetInclusive, endOffsetExclusive) {
|
|
296
|
-
let needsRefresh = false;
|
|
297
|
-
this.traverseInOrderInRange(startOffsetInclusive, endOffsetExclusive, (node) => {
|
|
298
|
-
if (isLeaf(node) && node.needsRefresh) {
|
|
299
|
-
needsRefresh = true;
|
|
300
|
-
}
|
|
301
|
-
return false;
|
|
302
|
-
});
|
|
303
|
-
return needsRefresh;
|
|
304
|
-
}
|
|
305
|
-
getNeedsRefresh() {
|
|
306
|
-
const result = [];
|
|
307
|
-
this.traverseInOrderInRange(0, this._textModel.getValueLength(), (node, offset) => {
|
|
308
|
-
if (isLeaf(node) && node.needsRefresh) {
|
|
309
|
-
if ((result.length > 0) && (result[result.length - 1].endOffset === offset)) {
|
|
310
|
-
result[result.length - 1].endOffset += node.length;
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
result.push({ startOffset: offset, endOffset: offset + node.length });
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
return false;
|
|
317
|
-
});
|
|
318
|
-
return result;
|
|
319
|
-
}
|
|
320
|
-
deepCopy() {
|
|
321
|
-
const newStore = ( new TokenStore(this._textModel));
|
|
322
|
-
newStore._root = this._copyNodeIterative(this._root);
|
|
323
|
-
return newStore;
|
|
324
|
-
}
|
|
325
|
-
_copyNodeIterative(root) {
|
|
326
|
-
const newRoot = isLeaf(root)
|
|
327
|
-
? { length: root.length, token: root.token, needsRefresh: root.needsRefresh, height: root.height }
|
|
328
|
-
: ( new ListNode(root.height));
|
|
329
|
-
const stack = [[root, newRoot]];
|
|
330
|
-
while (stack.length > 0) {
|
|
331
|
-
const [oldNode, clonedNode] = stack.pop();
|
|
332
|
-
if (!isLeaf(oldNode)) {
|
|
333
|
-
for (const child of oldNode.children) {
|
|
334
|
-
const childCopy = isLeaf(child)
|
|
335
|
-
? { length: child.length, token: child.token, needsRefresh: child.needsRefresh, height: child.height }
|
|
336
|
-
: ( new ListNode(child.height));
|
|
337
|
-
clonedNode.appendChild(childCopy);
|
|
338
|
-
stack.push([child, childCopy]);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
return newRoot;
|
|
343
|
-
}
|
|
344
|
-
printTree(root = this._root) {
|
|
345
|
-
const result = [];
|
|
346
|
-
const stack = [[root, 0]];
|
|
347
|
-
while (stack.length > 0) {
|
|
348
|
-
const [node, depth] = stack.pop();
|
|
349
|
-
const indent = ' '.repeat(depth);
|
|
350
|
-
if (isLeaf(node)) {
|
|
351
|
-
result.push(`${indent}Leaf(length: ${node.length}, token: ${node.token}, refresh: ${node.needsRefresh})\n`);
|
|
352
|
-
}
|
|
353
|
-
else {
|
|
354
|
-
result.push(`${indent}List(length: ${node.length})\n`);
|
|
355
|
-
for (let i = node.children.length - 1; i >= 0; i--) {
|
|
356
|
-
stack.push([node.children[i], depth + 1]);
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
return result.join('');
|
|
361
|
-
}
|
|
362
|
-
dispose() {
|
|
363
|
-
const stack = [[this._root, false]];
|
|
364
|
-
while (stack.length > 0) {
|
|
365
|
-
const [node, visited] = stack.pop();
|
|
366
|
-
if (isLeaf(node)) {
|
|
367
|
-
node.parent = undefined;
|
|
368
|
-
}
|
|
369
|
-
else if (!visited) {
|
|
370
|
-
stack.push([node, true]);
|
|
371
|
-
for (let i = node.children.length - 1; i >= 0; i--) {
|
|
372
|
-
stack.push([node.children[i], false]);
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
else {
|
|
376
|
-
node.dispose();
|
|
377
|
-
node.parent = undefined;
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
this._root = undefined;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
export { TokenStore };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Range } from "../core/range.js";
|
|
2
|
-
import { ITextModel } from "../model.js";
|
|
3
|
-
import { TokenUpdate } from "./tokenStore.js";
|
|
4
|
-
import { IDisposable } from "../../../base/common/lifecycle.js";
|
|
5
|
-
export interface ITreeSitterTokenizationStoreService {
|
|
6
|
-
readonly _serviceBrand: undefined;
|
|
7
|
-
setTokens(model: ITextModel, tokens: TokenUpdate[]): void;
|
|
8
|
-
getTokens(model: ITextModel, line: number): Uint32Array | undefined;
|
|
9
|
-
updateTokens(model: ITextModel, version: number, updates: {
|
|
10
|
-
oldRangeLength: number;
|
|
11
|
-
newTokens: TokenUpdate[];
|
|
12
|
-
}[]): void;
|
|
13
|
-
markForRefresh(model: ITextModel, range: Range): void;
|
|
14
|
-
getNeedsRefresh(model: ITextModel): {
|
|
15
|
-
range: Range;
|
|
16
|
-
startOffset: number;
|
|
17
|
-
endOffset: number;
|
|
18
|
-
}[];
|
|
19
|
-
hasTokens(model: ITextModel, accurateForRange?: Range): boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare const ITreeSitterTokenizationStoreService: import("../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<ITreeSitterTokenizationStoreService>;
|
|
22
|
-
export interface TokenInformation {
|
|
23
|
-
tokens: Uint32Array;
|
|
24
|
-
needsRefresh?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export declare class TreeSitterTokenizationStoreService implements ITreeSitterTokenizationStoreService, IDisposable {
|
|
27
|
-
readonly _serviceBrand: undefined;
|
|
28
|
-
private readonly tokens;
|
|
29
|
-
constructor();
|
|
30
|
-
setTokens(model: ITextModel, tokens: TokenUpdate[]): void;
|
|
31
|
-
hasTokens(model: ITextModel, accurateForRange?: Range): boolean;
|
|
32
|
-
getTokens(model: ITextModel, line: number): Uint32Array | undefined;
|
|
33
|
-
updateTokens(model: ITextModel, version: number, updates: {
|
|
34
|
-
oldRangeLength: number;
|
|
35
|
-
newTokens: TokenUpdate[];
|
|
36
|
-
}[]): void;
|
|
37
|
-
markForRefresh(model: ITextModel, range: Range): void;
|
|
38
|
-
getNeedsRefresh(model: ITextModel): {
|
|
39
|
-
range: Range;
|
|
40
|
-
startOffset: number;
|
|
41
|
-
endOffset: number;
|
|
42
|
-
}[];
|
|
43
|
-
dispose(): void;
|
|
44
|
-
}
|