@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,37 +1,42 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from '
|
|
3
|
-
import { $ } from '
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import '
|
|
7
|
-
import '
|
|
8
|
-
import '
|
|
9
|
-
import {
|
|
10
|
-
import '../../../../../../
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
2
|
+
import { __decorate, __param } from '../../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import { $ } from '../../../../../../../base/browser/dom.js';
|
|
4
|
+
import { Emitter } from '../../../../../../../base/common/event.js';
|
|
5
|
+
import { Disposable } from '../../../../../../../base/common/lifecycle.js';
|
|
6
|
+
import '../../../../../../../base/common/observableInternal/index.js';
|
|
7
|
+
import { IInstantiationService } from '../../../../../../../platform/instantiation/common/instantiation.js';
|
|
8
|
+
import { asCssVariable } from '../../../../../../../platform/theme/common/colorUtils.js';
|
|
9
|
+
import { observableCodeEditor } from '../../../../../../browser/observableCodeEditor.js';
|
|
10
|
+
import { Rect } from '../../../../../../browser/rect.js';
|
|
11
|
+
import { RenderOptions, renderLines, LineSource } from '../../../../../../browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js';
|
|
12
|
+
import { EditorOption } from '../../../../../../common/config/editorOptions.js';
|
|
13
|
+
import { LineRange } from '../../../../../../common/core/lineRange.js';
|
|
14
|
+
import { Position } from '../../../../../../common/core/position.js';
|
|
15
|
+
import { Range } from '../../../../../../common/core/range.js';
|
|
16
|
+
import { ILanguageService } from '../../../../../../common/languages/language.service.js';
|
|
17
|
+
import { LineTokens } from '../../../../../../common/tokens/lineTokens.js';
|
|
18
|
+
import { TokenArray } from '../../../../../../common/tokens/tokenArray.js';
|
|
19
|
+
import { InlineDecoration, InlineDecorationType } from '../../../../../../common/viewModel.js';
|
|
20
|
+
import { GhostText, GhostTextPart } from '../../../model/ghostText.js';
|
|
21
|
+
import { GhostTextView } from '../../ghostText/ghostTextView.js';
|
|
22
|
+
import { getModifiedBorderColor, modifiedChangedLineBackgroundColor } from '../theme.js';
|
|
23
|
+
import { getPrefixTrim, mapOutFalsy, createRectangle } from '../utils/utils.js';
|
|
24
|
+
import { derived, derivedWithStore } from '../../../../../../../base/common/observableInternal/derived.js';
|
|
25
|
+
import { constObservable } from '../../../../../../../base/common/observableInternal/utils.js';
|
|
26
|
+
import { observableValue } from '../../../../../../../base/common/observableInternal/base.js';
|
|
27
|
+
import { n } from '../../../../../../../base/browser/domImpl/n.js';
|
|
26
28
|
|
|
27
29
|
let InlineEditsInsertionView = class InlineEditsInsertionView extends Disposable {
|
|
28
|
-
constructor(_editor, _input, _instantiationService, _languageService) {
|
|
30
|
+
constructor(_editor, _input, _host, _instantiationService, _languageService) {
|
|
29
31
|
super();
|
|
30
32
|
this._editor = _editor;
|
|
31
33
|
this._input = _input;
|
|
34
|
+
this._host = _host;
|
|
32
35
|
this._instantiationService = _instantiationService;
|
|
33
36
|
this._languageService = _languageService;
|
|
34
37
|
this._editorObs = observableCodeEditor(this._editor);
|
|
38
|
+
this._onDidClick = this._register(( new Emitter()));
|
|
39
|
+
this.onDidClick = this._onDidClick.event;
|
|
35
40
|
this._state = derived(this, reader => {
|
|
36
41
|
const state = this._input.read(reader);
|
|
37
42
|
if (!state) {
|
|
@@ -45,18 +50,42 @@ let InlineEditsInsertionView = class InlineEditsInsertionView extends Disposable
|
|
|
45
50
|
}
|
|
46
51
|
return { lineNumber: state.lineNumber, column: state.startColumn, text: state.text };
|
|
47
52
|
});
|
|
53
|
+
this._maxPrefixTrim = derived(reader => {
|
|
54
|
+
const state = this._state.read(reader);
|
|
55
|
+
if (!state) {
|
|
56
|
+
return { prefixLeftOffset: 0, prefixTrim: 0 };
|
|
57
|
+
}
|
|
58
|
+
const textModel = this._editor.getModel();
|
|
59
|
+
const eol = textModel.getEOL();
|
|
60
|
+
const startsWithEol = state.text.startsWith(eol);
|
|
61
|
+
const originalRange = ( new LineRange(state.lineNumber, state.lineNumber + (startsWithEol ? 0 : 1)));
|
|
62
|
+
let modifiedLines = state.text.split(eol);
|
|
63
|
+
if (startsWithEol) {
|
|
64
|
+
modifiedLines = modifiedLines.splice(1);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
modifiedLines[0] = textModel.getLineContent(state.lineNumber) + modifiedLines[0];
|
|
68
|
+
}
|
|
69
|
+
return getPrefixTrim([], originalRange, modifiedLines, this._editor);
|
|
70
|
+
});
|
|
48
71
|
this._ghostText = derived(reader => {
|
|
49
72
|
const state = this._state.read(reader);
|
|
73
|
+
const prefixTrim = this._maxPrefixTrim.read(reader);
|
|
50
74
|
if (!state) {
|
|
51
75
|
return undefined;
|
|
52
76
|
}
|
|
53
|
-
|
|
77
|
+
const textModel = this._editor.getModel();
|
|
78
|
+
const eol = textModel.getEOL();
|
|
79
|
+
const modifiedLines = state.text.split(eol);
|
|
80
|
+
const inlineDecorations = ( modifiedLines.map((line, i) => ( new InlineDecoration(( new Range(i + 1, i === 0 ? 1 : prefixTrim.prefixTrim + 1, i + 1, line.length + 1)), 'modified-background', InlineDecorationType.Regular))));
|
|
81
|
+
return ( new GhostText(state.lineNumber, [( new GhostTextPart(state.column, state.text, false, inlineDecorations))]));
|
|
54
82
|
});
|
|
55
83
|
this._ghostTextView = this._register(this._instantiationService.createInstance(GhostTextView, this._editor, {
|
|
56
84
|
ghostText: this._ghostText,
|
|
57
85
|
minReservedLineCount: constObservable(0),
|
|
58
86
|
targetTextModel: ( this._editorObs.model.map(model => model ?? undefined)),
|
|
59
|
-
|
|
87
|
+
warning: constObservable(undefined),
|
|
88
|
+
}, observableValue(this, { syntaxHighlightingEnabled: true, extraClasses: ['inline-edit'] }), true, true));
|
|
60
89
|
this._display = derived(this, reader => !!this._state.read(reader) ? 'block' : 'none');
|
|
61
90
|
this._editorMaxContentWidthInRange = derived(this, reader => {
|
|
62
91
|
const state = this._state.read(reader);
|
|
@@ -108,7 +137,11 @@ let InlineEditsInsertionView = class InlineEditsInsertionView extends Disposable
|
|
|
108
137
|
return { top: topTrim, bottom: bottomTrim };
|
|
109
138
|
});
|
|
110
139
|
this.startLineOffset = ( this._trimVertically.map(v => v.top));
|
|
111
|
-
this.originalLines = ( this._state.map(s => s ?
|
|
140
|
+
this.originalLines = ( this._state.map(s => s ?
|
|
141
|
+
( new LineRange(
|
|
142
|
+
s.lineNumber,
|
|
143
|
+
Math.min(s.lineNumber + 2, this._editor.getModel().getLineCount() + 1)
|
|
144
|
+
)) : undefined));
|
|
112
145
|
this._overlayLayout = derivedWithStore(this, (reader, store) => {
|
|
113
146
|
this._ghostText.read(reader);
|
|
114
147
|
const state = this._state.read(reader);
|
|
@@ -118,9 +151,11 @@ let InlineEditsInsertionView = class InlineEditsInsertionView extends Disposable
|
|
|
118
151
|
this._editorObs.observePosition(observableValue(this, ( new Position(state.lineNumber, state.column))), store).read(reader);
|
|
119
152
|
const editorLayout = this._editorObs.layoutInfo.read(reader);
|
|
120
153
|
const horizontalScrollOffset = this._editorObs.scrollLeft.read(reader);
|
|
121
|
-
const
|
|
122
|
-
const
|
|
123
|
-
|
|
154
|
+
const verticalScrollbarWidth = this._editorObs.layoutInfoVerticalScrollbarWidth.read(reader);
|
|
155
|
+
const right = editorLayout.contentLeft + this._editorMaxContentWidthInRange.read(reader) - horizontalScrollOffset;
|
|
156
|
+
const prefixLeftOffset = this._maxPrefixTrim.read(reader).prefixLeftOffset ?? 0 ;
|
|
157
|
+
const left = editorLayout.contentLeft + prefixLeftOffset - horizontalScrollOffset;
|
|
158
|
+
if (right <= left) {
|
|
124
159
|
return null;
|
|
125
160
|
}
|
|
126
161
|
const { top: topTrim, bottom: bottomTrim } = this._trimVertically.read(reader);
|
|
@@ -128,18 +163,13 @@ let InlineEditsInsertionView = class InlineEditsInsertionView extends Disposable
|
|
|
128
163
|
const height = this._ghostTextView.height.read(reader) - topTrim - bottomTrim;
|
|
129
164
|
const top = this._editor.getTopForLineNumber(state.lineNumber) - scrollTop + topTrim;
|
|
130
165
|
const bottom = top + height;
|
|
131
|
-
const
|
|
132
|
-
const codeStart1 = ( new Point(codeLeft, top));
|
|
133
|
-
const code2 = ( new Point(left, bottom));
|
|
134
|
-
const codeStart2 = ( new Point(codeLeft, bottom));
|
|
166
|
+
const overlay = ( new Rect(left, top, right, bottom));
|
|
135
167
|
return {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
codeStart2,
|
|
140
|
-
horizontalScrollOffset,
|
|
141
|
-
padding: 3,
|
|
168
|
+
overlay,
|
|
169
|
+
contentLeft: editorLayout.contentLeft,
|
|
170
|
+
minContentWidthRequired: prefixLeftOffset + overlay.width + verticalScrollbarWidth,
|
|
142
171
|
borderRadius: 4,
|
|
172
|
+
padding: 3
|
|
143
173
|
};
|
|
144
174
|
}).recomputeInitiallyAndOnChange(this._store);
|
|
145
175
|
this._foregroundSvg = n.svg({
|
|
@@ -151,18 +181,26 @@ let InlineEditsInsertionView = class InlineEditsInsertionView extends Disposable
|
|
|
151
181
|
return undefined;
|
|
152
182
|
}
|
|
153
183
|
const layoutInfo = overlayLayoutObs.read(reader);
|
|
184
|
+
const overlay = layoutInfo.overlay;
|
|
185
|
+
const croppedOverlay = ( new Rect(
|
|
186
|
+
Math.max(overlay.left, layoutInfo.contentLeft),
|
|
187
|
+
overlay.top,
|
|
188
|
+
overlay.right,
|
|
189
|
+
overlay.bottom
|
|
190
|
+
));
|
|
154
191
|
const rectangleOverlay = createRectangle({
|
|
155
|
-
topLeft:
|
|
156
|
-
width:
|
|
157
|
-
height:
|
|
158
|
-
}, layoutInfo.padding, layoutInfo.borderRadius, { hideLeft:
|
|
192
|
+
topLeft: croppedOverlay.getLeftTop(),
|
|
193
|
+
width: croppedOverlay.width + 1,
|
|
194
|
+
height: croppedOverlay.height + 1,
|
|
195
|
+
}, layoutInfo.padding, layoutInfo.borderRadius, { hideLeft: croppedOverlay.left !== overlay.left });
|
|
196
|
+
const modifiedBorderColor = getModifiedBorderColor(this._host.tabAction).read(reader);
|
|
159
197
|
return [
|
|
160
198
|
n.svgElem('path', {
|
|
161
199
|
class: 'originalOverlay',
|
|
162
200
|
d: rectangleOverlay,
|
|
163
201
|
style: {
|
|
164
|
-
fill:
|
|
165
|
-
stroke:
|
|
202
|
+
fill: asCssVariable(modifiedChangedLineBackgroundColor),
|
|
203
|
+
stroke: modifiedBorderColor,
|
|
166
204
|
strokeWidth: '1px',
|
|
167
205
|
}
|
|
168
206
|
}),
|
|
@@ -181,7 +219,10 @@ let InlineEditsInsertionView = class InlineEditsInsertionView extends Disposable
|
|
|
181
219
|
}, [
|
|
182
220
|
[this._foregroundSvg],
|
|
183
221
|
]).keepUpdated(this._store);
|
|
184
|
-
this.isHovered =
|
|
222
|
+
this.isHovered = this._ghostTextView.isHovered;
|
|
223
|
+
this._register(this._ghostTextView.onDidClick((e) => {
|
|
224
|
+
this._onDidClick.fire(e);
|
|
225
|
+
}));
|
|
185
226
|
this._register(this._editorObs.createOverlayWidget({
|
|
186
227
|
domNode: this._nonOverflowView.element,
|
|
187
228
|
position: constObservable(null),
|
|
@@ -191,14 +232,14 @@ let InlineEditsInsertionView = class InlineEditsInsertionView extends Disposable
|
|
|
191
232
|
if (info === null) {
|
|
192
233
|
return 0;
|
|
193
234
|
}
|
|
194
|
-
return info.
|
|
235
|
+
return info.minContentWidthRequired;
|
|
195
236
|
}),
|
|
196
237
|
}));
|
|
197
238
|
}
|
|
198
239
|
};
|
|
199
240
|
InlineEditsInsertionView = ( __decorate([
|
|
200
|
-
( __param(
|
|
201
|
-
( __param(
|
|
241
|
+
( __param(3, IInstantiationService)),
|
|
242
|
+
( __param(4, ILanguageService))
|
|
202
243
|
], InlineEditsInsertionView));
|
|
203
244
|
|
|
204
245
|
export { InlineEditsInsertionView };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IMouseEvent } from "../../../../../../../base/browser/mouseEvent.js";
|
|
2
|
+
import { Disposable } from "../../../../../../../base/common/lifecycle.js";
|
|
3
|
+
import { IObservable } from "../../../../../../../base/common/observable.js";
|
|
4
|
+
import { ObservableCodeEditor } from "../../../../../../browser/observableCodeEditor.js";
|
|
5
|
+
import { LineRange } from "../../../../../../common/core/lineRange.js";
|
|
6
|
+
import { ILanguageService } from "../../../../../../common/languages/language.service.js";
|
|
7
|
+
import { IInlineEditsView, IInlineEditsViewHost } from "../inlineEditsViewInterface.js";
|
|
8
|
+
import { Replacement } from "./inlineEditsWordReplacementView.js";
|
|
9
|
+
export declare class InlineEditsLineReplacementView extends Disposable implements IInlineEditsView {
|
|
10
|
+
private readonly _editor;
|
|
11
|
+
private readonly _edit;
|
|
12
|
+
private readonly _host;
|
|
13
|
+
private readonly _languageService;
|
|
14
|
+
private readonly _onDidClick;
|
|
15
|
+
readonly onDidClick: import("../../../../../../../base/common/event.js").Event<IMouseEvent>;
|
|
16
|
+
private readonly _originalBubblesDecorationCollection;
|
|
17
|
+
private readonly _originalBubblesDecorationOptions;
|
|
18
|
+
private readonly _maxPrefixTrim;
|
|
19
|
+
private readonly _modifiedLineElements;
|
|
20
|
+
private readonly _layout;
|
|
21
|
+
private readonly _viewZoneInfo;
|
|
22
|
+
private readonly _div;
|
|
23
|
+
readonly isHovered: IObservable<boolean>;
|
|
24
|
+
constructor(_editor: ObservableCodeEditor, _edit: IObservable<{
|
|
25
|
+
originalRange: LineRange;
|
|
26
|
+
modifiedRange: LineRange;
|
|
27
|
+
modifiedLines: string[];
|
|
28
|
+
replacements: Replacement[];
|
|
29
|
+
} | undefined>, _host: IInlineEditsViewHost, _languageService: ILanguageService);
|
|
30
|
+
private _isMouseOverWidget;
|
|
31
|
+
private _previousViewZoneInfo;
|
|
32
|
+
private removePreviousViewZone;
|
|
33
|
+
private addViewZone;
|
|
34
|
+
}
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '../../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import { getWindow, $ } from '../../../../../../../base/browser/dom.js';
|
|
4
|
+
import { StandardMouseEvent } from '../../../../../../../base/browser/mouseEvent.js';
|
|
5
|
+
import { Emitter } from '../../../../../../../base/common/event.js';
|
|
6
|
+
import { Disposable, toDisposable } from '../../../../../../../base/common/lifecycle.js';
|
|
7
|
+
import '../../../../../../../base/common/observableInternal/index.js';
|
|
8
|
+
import { asCssVariable } from '../../../../../../../platform/theme/common/colorUtils.js';
|
|
9
|
+
import '../../../../../../../platform/theme/common/colors/baseColors.js';
|
|
10
|
+
import '../../../../../../../platform/theme/common/colors/chartsColors.js';
|
|
11
|
+
import { editorBackground } from '../../../../../../../platform/theme/common/colors/editorColors.js';
|
|
12
|
+
import '../../../../../../../platform/theme/common/colors/inputColors.js';
|
|
13
|
+
import '../../../../../../../platform/theme/common/colors/listColors.js';
|
|
14
|
+
import '../../../../../../../platform/theme/common/colors/menuColors.js';
|
|
15
|
+
import '../../../../../../../platform/theme/common/colors/minimapColors.js';
|
|
16
|
+
import { scrollbarShadow } from '../../../../../../../platform/theme/common/colors/miscColors.js';
|
|
17
|
+
import '../../../../../../../platform/theme/common/colors/quickpickColors.js';
|
|
18
|
+
import '../../../../../../../platform/theme/common/colors/searchColors.js';
|
|
19
|
+
import { EditorMouseEvent } from '../../../../../../browser/editorDom.js';
|
|
20
|
+
import { Point } from '../../../../../../browser/point.js';
|
|
21
|
+
import { Rect } from '../../../../../../browser/rect.js';
|
|
22
|
+
import { renderLines, LineSource, RenderOptions } from '../../../../../../browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js';
|
|
23
|
+
import { EditorOption } from '../../../../../../common/config/editorOptions.js';
|
|
24
|
+
import { OffsetRange } from '../../../../../../common/core/offsetRange.js';
|
|
25
|
+
import { Range } from '../../../../../../common/core/range.js';
|
|
26
|
+
import { ILanguageService } from '../../../../../../common/languages/language.service.js';
|
|
27
|
+
import { TrackedRangeStickiness } from '../../../../../../common/model.js';
|
|
28
|
+
import { LineTokens } from '../../../../../../common/tokens/lineTokens.js';
|
|
29
|
+
import { TokenArray } from '../../../../../../common/tokens/tokenArray.js';
|
|
30
|
+
import { InlineDecoration, InlineDecorationType } from '../../../../../../common/viewModel.js';
|
|
31
|
+
import { getModifiedBorderColor, modifiedChangedLineBackgroundColor } from '../theme.js';
|
|
32
|
+
import { getPrefixTrim, mapOutFalsy, rectToProps } from '../utils/utils.js';
|
|
33
|
+
import { rangesToBubbleRanges } from './inlineEditsWordReplacementView.js';
|
|
34
|
+
import { autorunDelta, autorun } from '../../../../../../../base/common/observableInternal/autorun.js';
|
|
35
|
+
import { derived } from '../../../../../../../base/common/observableInternal/derived.js';
|
|
36
|
+
import { n } from '../../../../../../../base/browser/domImpl/n.js';
|
|
37
|
+
import { constObservable } from '../../../../../../../base/common/observableInternal/utils.js';
|
|
38
|
+
|
|
39
|
+
let InlineEditsLineReplacementView = class InlineEditsLineReplacementView extends Disposable {
|
|
40
|
+
constructor(_editor, _edit, _host, _languageService) {
|
|
41
|
+
super();
|
|
42
|
+
this._editor = _editor;
|
|
43
|
+
this._edit = _edit;
|
|
44
|
+
this._host = _host;
|
|
45
|
+
this._languageService = _languageService;
|
|
46
|
+
this._onDidClick = this._register(( new Emitter()));
|
|
47
|
+
this.onDidClick = this._onDidClick.event;
|
|
48
|
+
this._originalBubblesDecorationCollection = this._editor.editor.createDecorationsCollection();
|
|
49
|
+
this._originalBubblesDecorationOptions = {
|
|
50
|
+
description: 'inlineCompletions-original-bubble',
|
|
51
|
+
className: 'inlineCompletions-original-bubble',
|
|
52
|
+
stickiness: TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges
|
|
53
|
+
};
|
|
54
|
+
this._maxPrefixTrim = ( this._edit.map(
|
|
55
|
+
e => e ? getPrefixTrim(e.replacements.flatMap(r => [r.originalRange, r.modifiedRange]), e.originalRange, e.modifiedLines, this._editor.editor) : undefined
|
|
56
|
+
));
|
|
57
|
+
this._modifiedLineElements = derived(reader => {
|
|
58
|
+
const lines = [];
|
|
59
|
+
let requiredWidth = 0;
|
|
60
|
+
const prefixTrim = this._maxPrefixTrim.read(reader);
|
|
61
|
+
const edit = this._edit.read(reader);
|
|
62
|
+
if (!edit || !prefixTrim) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
const maxPrefixTrim = prefixTrim.prefixTrim;
|
|
66
|
+
const modifiedBubbles = ( rangesToBubbleRanges(( edit.replacements.map(r => r.modifiedRange))).map(r => ( new Range(
|
|
67
|
+
r.startLineNumber,
|
|
68
|
+
r.startColumn - maxPrefixTrim,
|
|
69
|
+
r.endLineNumber,
|
|
70
|
+
r.endColumn - maxPrefixTrim
|
|
71
|
+
))));
|
|
72
|
+
const textModel = this._editor.model.get();
|
|
73
|
+
const startLineNumber = edit.modifiedRange.startLineNumber;
|
|
74
|
+
for (let i = 0; i < edit.modifiedRange.length; i++) {
|
|
75
|
+
const line = document.createElement('div');
|
|
76
|
+
const lineNumber = startLineNumber + i;
|
|
77
|
+
const modLine = edit.modifiedLines[i].slice(maxPrefixTrim);
|
|
78
|
+
const t = textModel.tokenization.tokenizeLinesAt(lineNumber, [modLine])?.[0];
|
|
79
|
+
let tokens;
|
|
80
|
+
if (t) {
|
|
81
|
+
tokens = TokenArray.fromLineTokens(t).toLineTokens(modLine, this._languageService.languageIdCodec);
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
tokens = LineTokens.createEmpty(modLine, this._languageService.languageIdCodec);
|
|
85
|
+
}
|
|
86
|
+
const decorations = [];
|
|
87
|
+
for (const modified of modifiedBubbles.filter(b => b.startLineNumber === lineNumber)) {
|
|
88
|
+
const validatedEndColumn = Math.min(modified.endColumn, modLine.length + 1);
|
|
89
|
+
decorations.push(( new InlineDecoration(( new Range(1, modified.startColumn, 1, validatedEndColumn)), 'inlineCompletions-modified-bubble', InlineDecorationType.Regular)));
|
|
90
|
+
decorations.push(( new InlineDecoration(( new Range(1, modified.startColumn, 1, modified.startColumn + 1)), 'start', InlineDecorationType.Regular)));
|
|
91
|
+
decorations.push(( new InlineDecoration(( new Range(1, validatedEndColumn - 1, 1, validatedEndColumn)), 'end', InlineDecorationType.Regular)));
|
|
92
|
+
}
|
|
93
|
+
const result = renderLines(( new LineSource([tokens])), RenderOptions.fromEditor(this._editor.editor).withSetWidth(false), decorations, line, true);
|
|
94
|
+
this._editor.getOption(EditorOption.fontInfo).read(reader);
|
|
95
|
+
requiredWidth = Math.max(requiredWidth, result.minWidthInPx);
|
|
96
|
+
lines.push(line);
|
|
97
|
+
}
|
|
98
|
+
return { lines, requiredWidth: requiredWidth - 10 };
|
|
99
|
+
});
|
|
100
|
+
this._layout = derived(this, reader => {
|
|
101
|
+
const modifiedLines = this._modifiedLineElements.read(reader);
|
|
102
|
+
const maxPrefixTrim = this._maxPrefixTrim.read(reader);
|
|
103
|
+
const edit = this._edit.read(reader);
|
|
104
|
+
if (!modifiedLines || !maxPrefixTrim || !edit) {
|
|
105
|
+
return undefined;
|
|
106
|
+
}
|
|
107
|
+
const { prefixLeftOffset } = maxPrefixTrim;
|
|
108
|
+
const { requiredWidth } = modifiedLines;
|
|
109
|
+
const lineHeight = this._editor.getOption(EditorOption.lineHeight).read(reader);
|
|
110
|
+
const contentLeft = this._editor.layoutInfoContentLeft.read(reader);
|
|
111
|
+
const verticalScrollbarWidth = this._editor.layoutInfoVerticalScrollbarWidth.read(reader);
|
|
112
|
+
const scrollLeft = this._editor.scrollLeft.read(reader);
|
|
113
|
+
const scrollTop = this._editor.scrollTop.read(reader);
|
|
114
|
+
const editorLeftOffset = contentLeft - scrollLeft;
|
|
115
|
+
const PADDING = 4;
|
|
116
|
+
const textModel = this._editor.editor.getModel();
|
|
117
|
+
const originalLineWidths = edit.originalRange.mapToLineArray(line => this._editor.editor.getOffsetForColumn(line, textModel.getLineMaxColumn(line)) - prefixLeftOffset);
|
|
118
|
+
const maxLineWidth = Math.max(...originalLineWidths, requiredWidth);
|
|
119
|
+
const startLineNumber = edit.originalRange.startLineNumber;
|
|
120
|
+
const endLineNumber = edit.originalRange.endLineNumberExclusive - 1;
|
|
121
|
+
const topOfOriginalLines = this._editor.editor.getTopForLineNumber(startLineNumber) - scrollTop;
|
|
122
|
+
const bottomOfOriginalLines = this._editor.editor.getBottomForLineNumber(endLineNumber) - scrollTop;
|
|
123
|
+
const originalLinesOverlay = Rect.fromLeftTopWidthHeight(editorLeftOffset + prefixLeftOffset, topOfOriginalLines, maxLineWidth, bottomOfOriginalLines - topOfOriginalLines + PADDING);
|
|
124
|
+
const modifiedLinesOverlay = Rect.fromLeftTopWidthHeight(originalLinesOverlay.left, originalLinesOverlay.bottom + PADDING, originalLinesOverlay.width, edit.modifiedRange.length * lineHeight);
|
|
125
|
+
const background = Rect.hull([originalLinesOverlay, modifiedLinesOverlay]).withMargin(PADDING);
|
|
126
|
+
const lowerBackground = background.intersectVertical(( new OffsetRange(originalLinesOverlay.bottom, Number.MAX_SAFE_INTEGER)));
|
|
127
|
+
const lowerText = ( new Rect(
|
|
128
|
+
lowerBackground.left + PADDING,
|
|
129
|
+
lowerBackground.top + PADDING,
|
|
130
|
+
lowerBackground.right,
|
|
131
|
+
lowerBackground.bottom
|
|
132
|
+
));
|
|
133
|
+
return {
|
|
134
|
+
originalLinesOverlay,
|
|
135
|
+
modifiedLinesOverlay,
|
|
136
|
+
background,
|
|
137
|
+
lowerBackground,
|
|
138
|
+
lowerText,
|
|
139
|
+
padding: PADDING,
|
|
140
|
+
minContentWidthRequired: prefixLeftOffset + maxLineWidth + PADDING * 2 + verticalScrollbarWidth,
|
|
141
|
+
};
|
|
142
|
+
});
|
|
143
|
+
this._viewZoneInfo = derived(reader => {
|
|
144
|
+
const shouldShowViewZone = ( this._editor.getOption(EditorOption.inlineSuggest).map(o => o.edits.codeShifting)).read(reader);
|
|
145
|
+
if (!shouldShowViewZone) {
|
|
146
|
+
return undefined;
|
|
147
|
+
}
|
|
148
|
+
const layout = this._layout.read(reader);
|
|
149
|
+
const edit = this._edit.read(reader);
|
|
150
|
+
if (!layout || !edit) {
|
|
151
|
+
return undefined;
|
|
152
|
+
}
|
|
153
|
+
const viewZoneHeight = layout.lowerBackground.height + 2 * layout.padding;
|
|
154
|
+
const viewZoneLineNumber = edit.originalRange.endLineNumberExclusive;
|
|
155
|
+
return { height: viewZoneHeight, lineNumber: viewZoneLineNumber };
|
|
156
|
+
});
|
|
157
|
+
this._div = n.div({
|
|
158
|
+
class: 'line-replacement',
|
|
159
|
+
}, [
|
|
160
|
+
derived(reader => {
|
|
161
|
+
const layout = mapOutFalsy(this._layout).read(reader);
|
|
162
|
+
const modifiedLineElements = this._modifiedLineElements.read(reader);
|
|
163
|
+
if (!layout || !modifiedLineElements) {
|
|
164
|
+
return [];
|
|
165
|
+
}
|
|
166
|
+
const layoutProps = layout.read(reader);
|
|
167
|
+
const scrollLeft = this._editor.scrollLeft.read(reader);
|
|
168
|
+
let contentLeft = this._editor.layoutInfoContentLeft.read(reader);
|
|
169
|
+
let contentWidth = this._editor.contentWidth.read(reader);
|
|
170
|
+
const contentHeight = this._editor.editor.getContentHeight();
|
|
171
|
+
if (scrollLeft === 0) {
|
|
172
|
+
contentLeft -= layoutProps.padding;
|
|
173
|
+
contentWidth += layoutProps.padding;
|
|
174
|
+
}
|
|
175
|
+
const lineHeight = this._editor.getOption(EditorOption.lineHeight).read(reader);
|
|
176
|
+
modifiedLineElements.lines.forEach(l => {
|
|
177
|
+
l.style.width = `${layout.read(reader).lowerText.width}px`;
|
|
178
|
+
l.style.height = `${lineHeight}px`;
|
|
179
|
+
l.style.position = 'relative';
|
|
180
|
+
});
|
|
181
|
+
const modifiedBorderColor = getModifiedBorderColor(this._host.tabAction).read(reader);
|
|
182
|
+
return [
|
|
183
|
+
n.div({
|
|
184
|
+
style: {
|
|
185
|
+
position: 'absolute',
|
|
186
|
+
top: 0,
|
|
187
|
+
left: contentLeft,
|
|
188
|
+
width: contentWidth,
|
|
189
|
+
height: contentHeight,
|
|
190
|
+
overflow: 'hidden',
|
|
191
|
+
pointerEvents: 'none',
|
|
192
|
+
}
|
|
193
|
+
}, [
|
|
194
|
+
n.div({
|
|
195
|
+
style: {
|
|
196
|
+
position: 'absolute',
|
|
197
|
+
top: layoutProps.lowerBackground.top - layoutProps.padding,
|
|
198
|
+
left: layoutProps.lowerBackground.left - contentLeft,
|
|
199
|
+
width: layoutProps.lowerBackground.width,
|
|
200
|
+
height: layoutProps.padding * 2,
|
|
201
|
+
background: asCssVariable(editorBackground),
|
|
202
|
+
},
|
|
203
|
+
}),
|
|
204
|
+
n.div({
|
|
205
|
+
style: {
|
|
206
|
+
position: 'absolute',
|
|
207
|
+
...rectToProps(reader => layout.read(reader).lowerBackground.translateX(-contentLeft)),
|
|
208
|
+
borderRadius: '4px',
|
|
209
|
+
background: asCssVariable(editorBackground),
|
|
210
|
+
boxShadow: `${asCssVariable(scrollbarShadow)} 0 6px 6px -6px`,
|
|
211
|
+
borderTop: `1px solid ${modifiedBorderColor}`,
|
|
212
|
+
overflow: 'hidden',
|
|
213
|
+
cursor: 'pointer',
|
|
214
|
+
pointerEvents: 'auto',
|
|
215
|
+
},
|
|
216
|
+
onmousedown: e => {
|
|
217
|
+
e.preventDefault();
|
|
218
|
+
},
|
|
219
|
+
onclick: (e) => this._onDidClick.fire(( new StandardMouseEvent(getWindow(e), e))),
|
|
220
|
+
}, [
|
|
221
|
+
n.div({
|
|
222
|
+
style: {
|
|
223
|
+
position: 'absolute',
|
|
224
|
+
top: 0,
|
|
225
|
+
left: 0,
|
|
226
|
+
width: '100%',
|
|
227
|
+
height: '100%',
|
|
228
|
+
background: asCssVariable(modifiedChangedLineBackgroundColor),
|
|
229
|
+
},
|
|
230
|
+
})
|
|
231
|
+
]),
|
|
232
|
+
n.div({
|
|
233
|
+
style: {
|
|
234
|
+
position: 'absolute',
|
|
235
|
+
padding: '0px',
|
|
236
|
+
boxSizing: 'border-box',
|
|
237
|
+
...rectToProps(reader => layout.read(reader).lowerText.translateX(-contentLeft)),
|
|
238
|
+
fontFamily: this._editor.getOption(EditorOption.fontFamily),
|
|
239
|
+
fontSize: this._editor.getOption(EditorOption.fontSize),
|
|
240
|
+
fontWeight: this._editor.getOption(EditorOption.fontWeight),
|
|
241
|
+
pointerEvents: 'none',
|
|
242
|
+
}
|
|
243
|
+
}, [...modifiedLineElements.lines]),
|
|
244
|
+
n.div({
|
|
245
|
+
style: {
|
|
246
|
+
position: 'absolute',
|
|
247
|
+
...rectToProps(reader => layout.read(reader).background.translateX(-contentLeft)),
|
|
248
|
+
borderRadius: '4px',
|
|
249
|
+
border: `1px solid ${modifiedBorderColor}`,
|
|
250
|
+
pointerEvents: 'none',
|
|
251
|
+
boxSizing: 'border-box',
|
|
252
|
+
}
|
|
253
|
+
}, []),
|
|
254
|
+
])
|
|
255
|
+
];
|
|
256
|
+
})
|
|
257
|
+
]).keepUpdated(this._store);
|
|
258
|
+
this.isHovered = this._editor.isTargetHovered((e) => this._isMouseOverWidget(e), this._store);
|
|
259
|
+
this._previousViewZoneInfo = undefined;
|
|
260
|
+
this._register(toDisposable(() => this._originalBubblesDecorationCollection.clear()));
|
|
261
|
+
this._register(toDisposable(() => this._editor.editor.changeViewZones(accessor => this.removePreviousViewZone(accessor))));
|
|
262
|
+
this._register(autorunDelta(this._viewZoneInfo, ({ lastValue, newValue }) => {
|
|
263
|
+
if (lastValue === newValue || (lastValue?.height === newValue?.height && lastValue?.lineNumber === newValue?.lineNumber)) {
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
this._editor.editor.changeViewZones((changeAccessor) => {
|
|
267
|
+
this.removePreviousViewZone(changeAccessor);
|
|
268
|
+
if (!newValue) {
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
this.addViewZone(newValue, changeAccessor);
|
|
272
|
+
});
|
|
273
|
+
}));
|
|
274
|
+
this._register(autorun(reader => {
|
|
275
|
+
const edit = this._edit.read(reader);
|
|
276
|
+
const originalBubbles = [];
|
|
277
|
+
if (edit) {
|
|
278
|
+
originalBubbles.push(...rangesToBubbleRanges(( edit.replacements.map(r => r.originalRange))));
|
|
279
|
+
}
|
|
280
|
+
this._originalBubblesDecorationCollection.set(( originalBubbles.map(r => ({ range: r, options: this._originalBubblesDecorationOptions }))));
|
|
281
|
+
}));
|
|
282
|
+
this._register(this._editor.createOverlayWidget({
|
|
283
|
+
domNode: this._div.element,
|
|
284
|
+
minContentWidthInPx: derived(reader => {
|
|
285
|
+
return this._layout.read(reader)?.minContentWidthRequired ?? 0;
|
|
286
|
+
}),
|
|
287
|
+
position: constObservable({ preference: { top: 0, left: 0 } }),
|
|
288
|
+
allowEditorOverflow: false,
|
|
289
|
+
}));
|
|
290
|
+
}
|
|
291
|
+
_isMouseOverWidget(e) {
|
|
292
|
+
const layout = this._layout.get();
|
|
293
|
+
if (!layout || !(e.event instanceof EditorMouseEvent)) {
|
|
294
|
+
return false;
|
|
295
|
+
}
|
|
296
|
+
return layout.lowerBackground.containsPoint(( new Point(e.event.relativePos.x, e.event.relativePos.y)));
|
|
297
|
+
}
|
|
298
|
+
removePreviousViewZone(changeAccessor) {
|
|
299
|
+
if (!this._previousViewZoneInfo) {
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
changeAccessor.removeZone(this._previousViewZoneInfo.id);
|
|
303
|
+
const cursorLineNumber = this._editor.cursorLineNumber.get();
|
|
304
|
+
if (cursorLineNumber !== null && cursorLineNumber >= this._previousViewZoneInfo.lineNumber) {
|
|
305
|
+
this._editor.editor.setScrollTop(this._editor.scrollTop.get() - this._previousViewZoneInfo.height);
|
|
306
|
+
}
|
|
307
|
+
this._previousViewZoneInfo = undefined;
|
|
308
|
+
}
|
|
309
|
+
addViewZone(viewZoneInfo, changeAccessor) {
|
|
310
|
+
const activeViewZone = changeAccessor.addZone({
|
|
311
|
+
afterLineNumber: viewZoneInfo.lineNumber - 1,
|
|
312
|
+
heightInPx: viewZoneInfo.height,
|
|
313
|
+
domNode: $('div'),
|
|
314
|
+
});
|
|
315
|
+
this._previousViewZoneInfo = { height: viewZoneInfo.height, lineNumber: viewZoneInfo.lineNumber, id: activeViewZone };
|
|
316
|
+
const cursorLineNumber = this._editor.cursorLineNumber.get();
|
|
317
|
+
if (cursorLineNumber !== null && cursorLineNumber >= viewZoneInfo.lineNumber) {
|
|
318
|
+
this._editor.editor.setScrollTop(this._editor.scrollTop.get() + viewZoneInfo.height);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
InlineEditsLineReplacementView = ( __decorate([
|
|
323
|
+
( __param(3, ILanguageService))
|
|
324
|
+
], InlineEditsLineReplacementView));
|
|
325
|
+
|
|
326
|
+
export { InlineEditsLineReplacementView };
|