@codingame/monaco-vscode-api 13.1.7 → 14.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extensions.d.ts +3 -2
- package/missing-services.js +177 -63
- package/monaco.d.ts +2 -1
- package/package.json +8 -8
- package/services.d.ts +2 -2
- package/services.js +2 -3
- package/vscode/src/vs/base/browser/cssValue.js +1 -1
- package/vscode/src/vs/base/browser/dom.js +4 -1
- package/vscode/src/vs/base/browser/markdownRenderer.js +12 -0
- package/vscode/src/vs/base/browser/touch.js +2 -1
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/button/button.d.ts +2 -1
- package/vscode/src/vs/base/browser/ui/button/button.js +10 -6
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.d.ts +2 -1
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +2 -2
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +1 -1
- package/vscode/src/vs/base/browser/ui/list/listView.d.ts +10 -0
- package/vscode/src/vs/base/browser/ui/list/listView.js +102 -6
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/menu/menu.js +4 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +6 -6
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.d.ts +1 -2
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +18 -8
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +2 -2
- package/vscode/src/vs/base/common/actions.d.ts +1 -1
- package/vscode/src/vs/base/common/arrays.d.ts +1 -2
- package/vscode/src/vs/base/common/arrays.js +2 -2
- package/vscode/src/vs/base/common/assert.d.ts +1 -1
- package/vscode/src/vs/base/common/assert.js +5 -2
- package/vscode/src/vs/base/common/async.js +16 -2
- package/vscode/src/vs/base/common/codicons.d.ts +1 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +1 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +1 -0
- package/vscode/src/vs/base/common/color.d.ts +2 -2
- package/vscode/src/vs/base/common/color.js +4 -4
- package/vscode/src/vs/base/common/decorators.d.ts +1 -0
- package/vscode/src/vs/base/common/decorators.js +2 -0
- package/vscode/src/vs/base/common/errors.d.ts +2 -0
- package/vscode/src/vs/base/common/errors.js +10 -2
- package/vscode/src/vs/base/common/event.d.ts +3 -3
- package/vscode/src/vs/base/common/event.js +2 -2
- package/vscode/src/vs/base/common/filters.js +1 -1
- package/vscode/src/vs/base/common/iterator.d.ts +1 -1
- package/vscode/src/vs/base/common/iterator.js +8 -2
- package/vscode/src/vs/base/common/lifecycle.d.ts +7 -0
- package/vscode/src/vs/base/common/map.d.ts +8 -16
- package/vscode/src/vs/base/common/map.js +43 -30
- package/vscode/src/vs/base/common/network.d.ts +2 -2
- package/vscode/src/vs/base/common/network.js +4 -4
- package/vscode/src/vs/base/common/numbers.d.ts +1 -0
- package/vscode/src/vs/base/common/observableInternal/autorun.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/autorun.js +14 -1
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +13 -9
- package/vscode/src/vs/base/common/observableInternal/base.js +7 -1
- package/vscode/src/vs/base/common/observableInternal/derived.d.ts +5 -3
- package/vscode/src/vs/base/common/observableInternal/derived.js +31 -4
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/lazyObservableValue.js +5 -2
- package/vscode/src/vs/base/common/observableInternal/logging.d.ts +10 -4
- package/vscode/src/vs/base/common/observableInternal/logging.js +310 -1
- package/vscode/src/vs/base/common/observableInternal/utils.d.ts +9 -9
- package/vscode/src/vs/base/common/observableInternal/utils.js +13 -4
- package/vscode/src/vs/base/common/path.js +1 -2
- package/vscode/src/vs/base/common/product.d.ts +5 -0
- package/vscode/src/vs/base/common/stream.d.ts +1 -1
- package/vscode/src/vs/base/common/stream.js +13 -5
- package/vscode/src/vs/base/common/strings.d.ts +1 -0
- package/vscode/src/vs/base/common/strings.js +19 -9
- package/vscode/src/vs/base/common/types.d.ts +2 -1
- package/vscode/src/vs/base/common/types.js +9 -4
- package/vscode/src/vs/base/common/uuid.js +1 -50
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +2 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +26 -12
- package/vscode/src/vs/editor/browser/editorDom.js +3 -3
- package/vscode/src/vs/editor/browser/editorExtensions.js +15 -0
- package/vscode/src/vs/editor/browser/gpu/atlas/atlas.d.ts +7 -2
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.d.ts +1 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.js +34 -27
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasPage.d.ts +1 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasPage.js +8 -8
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasSlabAllocator.js +3 -3
- package/vscode/src/vs/editor/browser/gpu/contentSegmenter.d.ts +7 -0
- package/vscode/src/vs/editor/browser/gpu/contentSegmenter.js +49 -0
- package/vscode/src/vs/editor/browser/gpu/{decorationCssRuleExtractor.d.ts → css/decorationCssRuleExtractor.d.ts} +1 -1
- package/vscode/src/vs/editor/browser/gpu/{decorationCssRuleExtractor.js → css/decorationCssRuleExtractor.js} +2 -2
- package/vscode/src/vs/editor/browser/gpu/css/decorationStyleCache.d.ts +15 -0
- package/vscode/src/vs/editor/browser/gpu/css/decorationStyleCache.js +37 -0
- package/vscode/src/vs/editor/browser/gpu/{media → css/media}/decorationCssRuleExtractor.css.js +1 -1
- package/vscode/src/vs/editor/browser/gpu/gpu.d.ts +6 -2
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.d.ts +5 -2
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.js +57 -14
- package/vscode/src/vs/editor/browser/gpu/raster/raster.d.ts +2 -1
- package/vscode/src/vs/editor/browser/gpu/rectangleRenderer.d.ts +4 -1
- package/vscode/src/vs/editor/browser/gpu/rectangleRenderer.js +5 -1
- package/vscode/src/vs/editor/browser/gpu/renderStrategy/baseRenderStrategy.d.ts +25 -0
- package/vscode/src/vs/editor/browser/gpu/renderStrategy/baseRenderStrategy.js +16 -0
- package/vscode/src/vs/editor/browser/gpu/{fullFileRenderStrategy.d.ts → renderStrategy/fullFileRenderStrategy.d.ts} +14 -13
- package/vscode/src/vs/editor/browser/gpu/{fullFileRenderStrategy.js → renderStrategy/fullFileRenderStrategy.js} +100 -57
- package/vscode/src/vs/editor/browser/gpu/{fullFileRenderStrategy.wgsl.js → renderStrategy/fullFileRenderStrategy.wgsl.js} +3 -3
- package/vscode/src/vs/editor/browser/gpu/renderStrategy/viewportRenderStrategy.d.ts +40 -0
- package/vscode/src/vs/editor/browser/gpu/renderStrategy/viewportRenderStrategy.js +287 -0
- package/vscode/src/vs/editor/browser/gpu/taskQueue.d.ts +4 -3
- package/vscode/src/vs/editor/browser/gpu/taskQueue.js +17 -2
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.d.ts +8 -9
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +45 -34
- package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +28 -21
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +68 -2
- package/vscode/src/vs/editor/browser/point.d.ts +9 -0
- package/vscode/src/vs/editor/browser/point.js +22 -0
- package/vscode/src/vs/editor/browser/rect.d.ts +30 -0
- package/vscode/src/vs/editor/browser/rect.js +131 -0
- package/vscode/src/vs/editor/browser/services/editorWorkerService.d.ts +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +1 -1
- package/vscode/src/vs/editor/browser/view/viewLayer.d.ts +1 -1
- package/vscode/src/vs/editor/browser/view/viewLayer.js +8 -1
- package/vscode/src/vs/editor/browser/view.d.ts +1 -0
- package/vscode/src/vs/editor/browser/view.js +9 -5
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.d.ts +7 -3
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +140 -56
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +1 -0
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +5 -0
- package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.d.ts +2 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js +8 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.d.ts +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +14 -9
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.d.ts +12 -10
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +12 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.d.ts +4 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +29 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.d.ts +28 -28
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.d.ts +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +0 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.d.ts +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.d.ts +2 -2
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.d.ts +3 -6
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +3 -10
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +8 -6
- package/vscode/src/vs/editor/common/config/editorOptions.js +409 -392
- 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 +9 -0
- package/vscode/src/vs/editor/common/core/offsetRange.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/offsetRange.js +3 -0
- package/vscode/src/vs/editor/common/core/position.js +1 -1
- package/vscode/src/vs/editor/common/core/positionToOffset.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/positionToOffset.js +20 -1
- package/vscode/src/vs/editor/common/core/range.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/range.js +3 -0
- package/vscode/src/vs/editor/common/core/textEdit.d.ts +0 -6
- package/vscode/src/vs/editor/common/core/textEdit.js +0 -1
- package/vscode/src/vs/editor/common/core/textLength.js +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +10 -7
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.d.ts +2 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js +6 -6
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.d.ts +1 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js +20 -0
- package/vscode/src/vs/editor/common/diff/linesDiffComputer.d.ts +1 -0
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +1 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +1 -22
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languages/defaultDocumentColorsComputer.js +1 -1
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +5 -5
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +21 -25
- package/vscode/src/vs/editor/common/languages.js +27 -27
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/model/textModel.d.ts +1 -0
- package/vscode/src/vs/editor/common/model/textModel.js +6 -3
- package/vscode/src/vs/editor/common/model/textModelTokens.d.ts +2 -2
- package/vscode/src/vs/editor/common/model/textModelTokens.js +11 -18
- package/vscode/src/vs/editor/common/model/tokenStore.d.ts +59 -0
- package/vscode/src/vs/editor/common/model/tokenStore.js +384 -0
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.d.ts +5 -5
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +10 -15
- package/vscode/src/vs/editor/common/model/tokens.d.ts +2 -2
- package/vscode/src/vs/editor/common/model/treeSitterTokenStoreService.d.ts +44 -0
- package/vscode/src/vs/editor/common/model/treeSitterTokenStoreService.js +114 -0
- package/vscode/src/vs/editor/common/model/treeSitterTokens.d.ts +4 -5
- package/vscode/src/vs/editor/common/model/treeSitterTokens.js +18 -10
- package/vscode/src/vs/editor/common/services/editorSimpleWorker.d.ts +1 -1
- package/vscode/src/vs/editor/common/services/editorWorker.d.ts +1 -1
- package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +1 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.d.ts +1 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +0 -1
- package/vscode/src/vs/editor/common/services/treeSitterParserService.d.ts +18 -5
- package/vscode/src/vs/editor/common/standaloneStrings.d.ts +3 -0
- package/vscode/src/vs/editor/common/standaloneStrings.js +54 -38
- package/vscode/src/vs/editor/common/tokenizationTextModelPart.d.ts +1 -13
- package/vscode/src/vs/editor/common/tokenizationTextModelPart.js +1 -13
- package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +1 -0
- package/vscode/src/vs/editor/common/tokens/lineTokens.js +3 -0
- package/vscode/src/vs/editor/common/tokens/tokenArray.d.ts +5 -0
- package/vscode/src/vs/editor/common/tokens/tokenArray.js +24 -0
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.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 +17 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +1 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +1 -1
- package/vscode/src/vs/editor/contrib/codelens/browser/codelens.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/codelens/browser/codelens.js +7 -5
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPicker.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPicker.js +12 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerContribution.d.ts +1 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerContribution.js +2 -9
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +3 -5
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerParticipant.d.ts +12 -8
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerParticipant.js +41 -41
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerWidget.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerWidget.js +13 -8
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +32 -33
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +20 -17
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +32 -30
- package/vscode/src/vs/editor/contrib/find/browser/replaceWidgetHistory.d.ts +21 -0
- package/vscode/src/vs/editor/contrib/find/browser/replaceWidgetHistory.js +76 -0
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +40 -36
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +56 -30
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +43 -41
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +3 -2
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +5 -4
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +5 -5
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.d.ts +1 -3
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +54 -59
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +47 -16
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +27 -15
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +10 -1
- package/vscode/src/vs/editor/contrib/hover/browser/glyphHoverWidget.js +2 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hover.css.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +4 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +38 -25
- package/vscode/src/vs/editor/contrib/hover/browser/hoverContribution.js +2 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hoverOperation.js +1 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverTypes.d.ts +4 -1
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +65 -33
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +38 -24
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.d.ts +7 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +50 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +8 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/computeGhostText.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/computeGhostText.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +18 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +55 -27
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +22 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +199 -21
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.js +3 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +5 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +38 -15
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +10 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.d.ts +16 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +65 -30
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.d.ts +6 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js +7 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/deletionView.d.ts +29 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/deletionView.js +141 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/gutterIndicatorMenu.d.ts +19 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/gutterIndicatorMenu.js +143 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/gutterIndicatorView.d.ts +37 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/gutterIndicatorView.js +259 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{inlineEditsIndicatorView.d.ts → indicatorView.d.ts} +1 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{inlineEditsIndicatorView.js → indicatorView.js} +9 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineDiffView.d.ts +5 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineDiffView.js +39 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/insertionView.d.ts +32 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/insertionView.js +204 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/sideBySideDiff.d.ts +71 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/sideBySideDiff.js +584 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils.d.ts +123 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils.js +348 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css.js +6 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.d.ts +41 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.js +365 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{inlineEditsViewAndDiffProducer.d.ts → viewAndDiffProducer.d.ts} +7 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/viewAndDiffProducer.js +92 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/wordReplacementView.d.ts +58 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/wordReplacementView.js +520 -0
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/getLinks.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/links/browser/getLinks.js +16 -12
- package/vscode/src/vs/editor/contrib/links/browser/links.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/links/browser/links.js +13 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.d.ts +1 -2
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +18 -26
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css.js +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.d.ts +2 -3
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +19 -15
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.d.ts +14 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +48 -19
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +25 -6
- package/vscode/src/vs/editor/contrib/suggest/browser/media/suggest.css.js +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +20 -20
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +9 -7
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +3 -7
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +5 -1
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +8 -3
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.d.ts +4 -0
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +3 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +2 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterService.d.ts +3 -7
- package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterService.js +1 -1
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +3 -2
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.js +1 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleViewRegistry.d.ts +4 -4
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +52 -52
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +4 -4
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.d.ts +39 -0
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +145 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.d.ts +1 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +6 -6
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +4 -1
- package/vscode/src/vs/platform/actions/common/actions.js +9 -6
- 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/commands/common/commands.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configuration.d.ts +4 -1
- package/vscode/src/vs/platform/configuration/common/configuration.js +3 -0
- package/vscode/src/vs/platform/configuration/common/configurationModels.d.ts +2 -2
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +39 -21
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +9 -4
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +25 -15
- 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/contextView.service.d.ts +2 -2
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/environment/common/argv.d.ts +2 -0
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +5 -3
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +17 -6
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +5 -5
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.d.ts +2 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +10 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.d.ts +3 -5
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +8 -13
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.service.d.ts +2 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.d.ts +20 -14
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +127 -125
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.service.d.ts +8 -9
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +56 -25
- package/vscode/src/vs/platform/extensions/common/extensions.js +8 -1
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +11 -8
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +12 -9
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/instantiation/common/extensions.d.ts +3 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/label/common/label.service.d.ts +2 -1
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.d.ts +1 -0
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.d.ts +6 -0
- package/vscode/src/vs/platform/log/common/log.js +18 -9
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +5 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +19 -9
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.d.ts +11 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +241 -12
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.d.ts +4 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +3 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +2 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.service.d.ts +4 -0
- package/vscode/src/vs/platform/request/common/request.d.ts +2 -2
- package/vscode/src/vs/platform/request/common/request.js +171 -112
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.d.ts +2 -0
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +3 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +6 -2
- package/vscode/src/vs/platform/terminal/common/terminal.js +5 -1
- package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +96 -96
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +45 -45
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.d.ts +7 -0
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +17 -7
- package/vscode/src/vs/platform/theme/common/theme.d.ts +6 -0
- package/vscode/src/vs/platform/theme/common/theme.js +8 -1
- package/vscode/src/vs/platform/theme/common/themeService.d.ts +12 -3
- package/vscode/src/vs/platform/theme/common/themeService.js +5 -5
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +7 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +3 -3
- package/vscode/src/vs/platform/window/common/window.d.ts +6 -1
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/platform/workspaces/common/workspaces.service.d.ts +2 -2
- package/vscode/src/vs/workbench/api/browser/statusBarService.d.ts +3 -2
- package/vscode/src/vs/workbench/api/browser/statusBarService.js +3 -2
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +10 -14
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +18 -11
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +1 -20
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -0
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +37 -10
- package/vscode/src/vs/workbench/api/common/extHostCodeMapper.js +4 -18
- package/vscode/src/vs/workbench/api/common/extHostCommands.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostComments.js +3 -5
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.d.ts +16 -0
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +4 -0
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDialogs.d.ts +1 -2
- package/vscode/src/vs/workbench/api/common/extHostDialogs.js +1 -5
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLabelService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +0 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +29 -65
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +3 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +33 -13
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +3 -2
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMemento.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.d.ts +10 -2
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +47 -7
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +12 -8
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +3 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +66 -5
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +18 -1
- package/vscode/src/vs/workbench/api/common/extHostTimeline.js +2 -2
- 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 +4 -13
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +7 -61
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +24 -3
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +37 -5
- package/vscode/src/vs/workbench/api/common/extHostVariableResolverService.js +22 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +3 -2
- package/vscode/src/vs/workbench/api/common/extensionHostMain.js +17 -8
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.d.ts +12 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +247 -0
- package/vscode/src/vs/workbench/common/activity.d.ts +2 -0
- package/vscode/src/vs/workbench/common/activity.js +6 -0
- package/vscode/src/vs/workbench/common/configuration.js +12 -12
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +44 -0
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +166 -0
- package/vscode/src/vs/workbench/common/editor.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +159 -164
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +152 -142
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +16 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +521 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +136 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +51 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.js +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorActions.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorActions.js +309 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorController.d.ts +81 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorController.js +681 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +169 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorOverlay.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorOverlay.js +296 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotasService.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotasService.js +198 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotasService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/screenshot.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/screenshot.js +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditorController.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditorOverlay.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/annotations.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +134 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +16 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +48 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.service.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +15 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +61 -29
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +19 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +17 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +3 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +444 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +991 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +112 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +181 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.js +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.d.ts +234 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +375 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +38 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +42 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +10 -5
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +168 -0
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +9 -19
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +14 -10
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +64 -64
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.d.ts +167 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +85 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +4 -3
- 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/logs/common/defaultLogLevels.service.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditContext.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditContext.js +7 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizer.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.d.ts +602 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +143 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.d.ts +60 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +316 -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/notebookRange.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.js +73 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.js +11 -0
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffModel.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/{diff.service.js → quickDiffModel.service.js} +2 -2
- package/vscode/src/vs/workbench/contrib/scm/common/history.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.d.ts +30 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +95 -0
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.js +82 -0
- package/vscode/src/vs/workbench/contrib/scm/common/scm.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +30 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testId.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testId.js +3 -0
- 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/configurationResolver.d.ts +1 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.d.ts +1 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +26 -15
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +5 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +10 -4
- 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/browser/extensionUrlHandler.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +3 -2
- 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.d.ts +63 -0
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +164 -0
- 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.d.ts +2 -0
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +3 -1
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/output/common/output.d.ts +51 -8
- package/vscode/src/vs/workbench/services/output/common/output.js +30 -4
- package/vscode/src/vs/workbench/services/output/common/output.service.d.ts +8 -1
- package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +2 -2
- 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 +9 -4
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.js +5 -1
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +15 -21
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.service.d.ts +21 -2
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.service.d.ts +3 -3
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -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 +1 -1
- 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 +375 -32
- package/vscode-dts/vscode.proposed.aiRelatedInformation.d.ts +1 -1
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +11 -0
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +9 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +4 -0
- package/vscode-dts/vscode.proposed.chatReadonlyPromptReference.d.ts +17 -0
- package/vscode-dts/vscode.proposed.chatReferenceBinaryData.d.ts +5 -0
- package/vscode-dts/vscode.proposed.d.ts +132 -131
- package/vscode-dts/vscode.proposed.externalUriOpener.d.ts +3 -3
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +2 -0
- package/vscode-dts/vscode.proposed.inlineEdit.d.ts +14 -3
- package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +21 -1
- package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +3 -3
- package/vscode-dts/vscode.proposed.quickDiffProvider.d.ts +1 -1
- package/vscode-dts/vscode.proposed.resolvers.d.ts +3 -3
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +4 -2
- package/vscode-dts/vscode.proposed.statusBarItemTooltip.d.ts +19 -0
- package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +10 -0
- package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +2 -2
- package/vscode-dts/vscode.proposed.terminalShellEnv.d.ts +18 -0
- package/vscode-dts/vscode.proposed.terminalShellType.d.ts +40 -0
- package/vscode/src/vs/base/common/observableInternal/index.js +0 -8
- package/vscode/src/vs/base/common/observableInternal/promise.d.ts +0 -28
- package/vscode/src/vs/base/common/observableInternal/promise.js +0 -65
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.css.js +0 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +0 -45
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +0 -426
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewAndDiffProducer.js +0 -116
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingService.service.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingService.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/mappedEdits/common/mappedEdits.contribution.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/mappedEdits/common/mappedEdits.contribution.js +0 -24
- package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.service.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/scm/browser/diff.service.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +0 -66
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.d.ts +0 -155
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +0 -1454
- package/vscode/src/vs/workbench/contrib/scm/browser/media/dirtydiffDecorator.css.js +0 -6
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +0 -164
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.js +0 -74
- package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.d.ts +0 -8
- package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +0 -93
- package/vscode-dts/vscode.proposed.documentPaste.d.ts +0 -316
- package/vscode-dts/vscode.proposed.fileComments.d.ts +0 -42
- package/vscode-dts/vscode.proposed.showLocal.d.ts +0 -19
- /package/vscode/src/vs/editor/browser/gpu/{fullFileRenderStrategy.wgsl.d.ts → renderStrategy/fullFileRenderStrategy.wgsl.d.ts} +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
declare module 'vscode' {
|
|
7
|
+
// @anthonykim1 @tyriar https://github.com/microsoft/vscode/issues/227467
|
|
8
|
+
|
|
9
|
+
export interface TerminalShellIntegration {
|
|
10
|
+
/**
|
|
11
|
+
* The environment of the shell process. This is undefined if the shell integration script
|
|
12
|
+
* does not send the environment.
|
|
13
|
+
*/
|
|
14
|
+
readonly env: { [key: string]: string | undefined } | undefined;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// TODO: Is it fine that this shares onDidChangeTerminalShellIntegration with cwd and the shellIntegration object itself?
|
|
18
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
declare module 'vscode' {
|
|
7
|
+
|
|
8
|
+
// https://github.com/microsoft/vscode/issues/230165
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Known terminal shell types.
|
|
12
|
+
*/
|
|
13
|
+
export enum TerminalShellType {
|
|
14
|
+
Sh = 1,
|
|
15
|
+
Bash = 2,
|
|
16
|
+
Fish = 3,
|
|
17
|
+
Csh = 4,
|
|
18
|
+
Ksh = 5,
|
|
19
|
+
Zsh = 6,
|
|
20
|
+
CommandPrompt = 7,
|
|
21
|
+
GitBash = 8,
|
|
22
|
+
PowerShell = 9,
|
|
23
|
+
Python = 10,
|
|
24
|
+
Julia = 11,
|
|
25
|
+
NuShell = 12,
|
|
26
|
+
Node = 13
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Part of TerminalState since the shellType can change multiple times and this comes with an event.
|
|
30
|
+
export interface TerminalState {
|
|
31
|
+
/**
|
|
32
|
+
* The current detected shell type of the terminal. New shell types may be added in the
|
|
33
|
+
* future in which case they will be returned as a number that is not part of
|
|
34
|
+
* {@link TerminalShellType}.
|
|
35
|
+
* Includes number type to prevent the breaking change when new enum members are added?
|
|
36
|
+
*/
|
|
37
|
+
readonly shellType?: TerminalShellType | number | undefined;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import '../arrays.js';
|
|
3
|
-
import '../event.js';
|
|
4
|
-
import '../lifecycle.js';
|
|
5
|
-
export { autorun, autorunHandleChanges, autorunOpts, autorunWithStore, autorunWithStoreHandleChanges } from './autorun.js';
|
|
6
|
-
export { derived, derivedDisposable, derivedHandleChanges, derivedOpts, derivedWithSetter, derivedWithStore } from './derived.js';
|
|
7
|
-
import '../cancellation.js';
|
|
8
|
-
export { ValueWithChangeEventFromObservable, constObservable, derivedConstOnceDefined, derivedObservableWithCache, derivedObservableWithWritableCache, keepObserved, latestChangedValue, mapObservableArrayCached, observableFromEvent, observableFromEventOpts, observableFromPromise, observableFromValueWithChangeEvent, observableSignal, observableSignalFromEvent, recomputeInitiallyAndOnChange, runOnChange, runOnChangeWithStore, wasEventTriggeredRecently } from './utils.js';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { IObservable } from "./base.js";
|
|
2
|
-
export declare class ObservableLazy<T> {
|
|
3
|
-
private readonly _computeValue;
|
|
4
|
-
private readonly _value;
|
|
5
|
-
get cachedValue(): IObservable<T | undefined>;
|
|
6
|
-
constructor(_computeValue: () => T);
|
|
7
|
-
getValue(): T;
|
|
8
|
-
}
|
|
9
|
-
export declare class ObservablePromise<T> {
|
|
10
|
-
static fromFn<T>(fn: () => Promise<T>): ObservablePromise<T>;
|
|
11
|
-
private readonly _value;
|
|
12
|
-
readonly promise: Promise<T>;
|
|
13
|
-
readonly promiseResult: IObservable<PromiseResult<T> | undefined>;
|
|
14
|
-
constructor(promise: Promise<T>);
|
|
15
|
-
}
|
|
16
|
-
export declare class PromiseResult<T> {
|
|
17
|
-
readonly data: T | undefined;
|
|
18
|
-
readonly error: unknown | undefined;
|
|
19
|
-
constructor(data: T | undefined, error: unknown | undefined);
|
|
20
|
-
getDataOrThrow(): T;
|
|
21
|
-
}
|
|
22
|
-
export declare class ObservableLazyPromise<T> {
|
|
23
|
-
private readonly _computePromise;
|
|
24
|
-
private readonly _lazyValue;
|
|
25
|
-
readonly cachedPromiseResult: IObservable<PromiseResult<T> | undefined, unknown>;
|
|
26
|
-
constructor(_computePromise: () => Promise<T>);
|
|
27
|
-
getPromise(): Promise<T>;
|
|
28
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { observableValue, transaction } from './base.js';
|
|
3
|
-
import { derived } from './derived.js';
|
|
4
|
-
|
|
5
|
-
class ObservableLazy {
|
|
6
|
-
get cachedValue() { return this._value; }
|
|
7
|
-
constructor(_computeValue) {
|
|
8
|
-
this._computeValue = _computeValue;
|
|
9
|
-
this._value = observableValue(this, undefined);
|
|
10
|
-
}
|
|
11
|
-
getValue() {
|
|
12
|
-
let v = this._value.get();
|
|
13
|
-
if (!v) {
|
|
14
|
-
v = this._computeValue();
|
|
15
|
-
this._value.set(v, undefined);
|
|
16
|
-
}
|
|
17
|
-
return v;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
class ObservablePromise {
|
|
21
|
-
static fromFn(fn) {
|
|
22
|
-
return ( new ObservablePromise(fn()));
|
|
23
|
-
}
|
|
24
|
-
constructor(promise) {
|
|
25
|
-
this._value = observableValue(this, undefined);
|
|
26
|
-
this.promiseResult = this._value;
|
|
27
|
-
this.promise = promise.then(value => {
|
|
28
|
-
transaction(tx => {
|
|
29
|
-
this._value.set(( new PromiseResult(value, undefined)), tx);
|
|
30
|
-
});
|
|
31
|
-
return value;
|
|
32
|
-
}, error => {
|
|
33
|
-
transaction(tx => {
|
|
34
|
-
this._value.set(( new PromiseResult(undefined, error)), tx);
|
|
35
|
-
});
|
|
36
|
-
throw error;
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
class PromiseResult {
|
|
41
|
-
constructor(
|
|
42
|
-
data,
|
|
43
|
-
error) {
|
|
44
|
-
this.data = data;
|
|
45
|
-
this.error = error;
|
|
46
|
-
}
|
|
47
|
-
getDataOrThrow() {
|
|
48
|
-
if (this.error) {
|
|
49
|
-
throw this.error;
|
|
50
|
-
}
|
|
51
|
-
return this.data;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
class ObservableLazyPromise {
|
|
55
|
-
constructor(_computePromise) {
|
|
56
|
-
this._computePromise = _computePromise;
|
|
57
|
-
this._lazyValue = ( new ObservableLazy(() => ( new ObservablePromise(this._computePromise()))));
|
|
58
|
-
this.cachedPromiseResult = derived(this, reader => this._lazyValue.cachedValue.read(reader)?.promiseResult.read(reader));
|
|
59
|
-
}
|
|
60
|
-
getPromise() {
|
|
61
|
-
return this._lazyValue.getValue().promise;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export { ObservableLazy, ObservableLazyPromise, ObservablePromise, PromiseResult };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import n from '../../../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
|
-
|
|
3
|
-
var css = ".monaco-editor{.inline-edits-view-indicator{align-items:center;background-color:var(--vscode-inlineEdit-indicator-background);border:1px solid var(--vscode-inlineEdit-indicator-border);border-radius:3px;color:var(--vscode-inlineEdit-indicator-foreground);display:flex;height:20px;margin:0 4px;opacity:0;padding:2px 10px 2px 2px;z-index:34;&.contained{transition:opacity .2s ease-in-out;transition-delay:.4s}&.top,&.visible{opacity:1;.icon{transform:rotate(90deg)}}&.bottom{opacity:1;.icon{transform:rotate(-90deg)}}.icon{align-items:center;display:flex;margin:0 2px;transform:none;transition:transform .2s ease-in-out;.codicon{color:var(--vscode-inlineEdit-indicator-foreground)}}.label{display:flex;justify-content:center;margin:0 2px;width:100%}}.inline-edits-view{&.toolbarDropdownVisible,.editorContainer:hover{.toolbar{display:block}}.editorContainer{color:var(--vscode-editorHoverWidget-foreground);.toolbar{background-color:var(--vscode-editorHoverWidget-statusBarBackground);border-top:1px solid rgba(69,69,69,.5);display:none;a,a:hover{color:var(--vscode-foreground)}.keybinding{display:flex;margin-left:4px;opacity:.6}.keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.availableSuggestionCount a{display:flex;justify-content:center;min-width:19px}.inlineSuggestionStatusBarItemLabel{margin-right:2px}}.preview{.monaco-editor{--vscode-editor-background:transparent;.current-line-margin,.view-overlays .current-line-exact{border:none}}}}}.strike-through{text-decoration:line-through}.inlineCompletions-line-insert{background:var(--vscode-inlineEdit-modifiedChangedLineBackground)}.inlineCompletions-line-delete{background:var(--vscode-inlineEdit-originalChangedLineBackground)}.inlineCompletions-char-insert{background:var(--vscode-inlineEdit-modifiedChangedTextBackground)}.inlineCompletions-char-delete{background:var(--vscode-inlineEdit-originalChangedTextBackground)}.inlineCompletions-char-delete.diff-range-empty{border-left:3px solid var(--vscode-inlineEdit-originalChangedTextBackground);margin-left:-1px}.inlineCompletions-char-insert.diff-range-empty{border-left:3px solid var(--vscode-inlineEdit-modifiedChangedTextBackground)}}";
|
|
4
|
-
n(css,{});
|
|
5
|
-
|
|
6
|
-
export { css, css as default };
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Disposable } from "../../../../../../base/common/lifecycle.js";
|
|
2
|
-
import { IObservable } from "../../../../../../base/common/observable.js";
|
|
3
|
-
import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js";
|
|
4
|
-
import { ICodeEditor } from "../../../../../browser/editorBrowser.js";
|
|
5
|
-
import { OriginalEditorInlineDiffView } from "./inlineDiffView.js";
|
|
6
|
-
import { InlineEditsIndicator } from "./inlineEditsIndicatorView.js";
|
|
7
|
-
import { CustomizedMenuWorkbenchToolBar } from "../../hintsWidget/inlineCompletionsHintsWidget.js";
|
|
8
|
-
import { ICommandService } from "../../../../../../platform/commands/common/commands.service.js";
|
|
9
|
-
import { InlineCompletionsModel } from "../../model/inlineCompletionsModel.js";
|
|
10
|
-
import { InlineEditWithChanges } from "./inlineEditsViewAndDiffProducer.js";
|
|
11
|
-
export declare const originalBackgroundColor: string;
|
|
12
|
-
export declare const modifiedBackgroundColor: string;
|
|
13
|
-
export declare const originalChangedLineBackgroundColor: string;
|
|
14
|
-
export declare const originalChangedTextOverlayColor: string;
|
|
15
|
-
export declare const modifiedChangedLineBackgroundColor: string;
|
|
16
|
-
export declare const modifiedChangedTextOverlayColor: string;
|
|
17
|
-
export declare const border: string;
|
|
18
|
-
export declare class InlineEditsView extends Disposable {
|
|
19
|
-
private readonly _editor;
|
|
20
|
-
private readonly _edit;
|
|
21
|
-
private readonly _model;
|
|
22
|
-
private readonly _instantiationService;
|
|
23
|
-
private readonly _commandService;
|
|
24
|
-
private readonly _editorObs;
|
|
25
|
-
private readonly _elements;
|
|
26
|
-
private readonly _useMixedLinesDiff;
|
|
27
|
-
private readonly _useInterleavedLinesDiff;
|
|
28
|
-
constructor(_editor: ICodeEditor, _edit: IObservable<InlineEditWithChanges | undefined>, _model: IObservable<InlineCompletionsModel | undefined>, _instantiationService: IInstantiationService, _commandService: ICommandService);
|
|
29
|
-
private readonly _uiState;
|
|
30
|
-
protected readonly _toolbar: CustomizedMenuWorkbenchToolBar;
|
|
31
|
-
private readonly _extraCommands;
|
|
32
|
-
protected readonly _updateToolbarAutorun: import("../../../../../../base/common/lifecycle.js").IDisposable;
|
|
33
|
-
private readonly _previewTextModel;
|
|
34
|
-
private readonly _previewEditor;
|
|
35
|
-
private readonly _previewEditorObs;
|
|
36
|
-
private readonly _previewEditorRootVisibility;
|
|
37
|
-
private readonly _updatePreviewEditorRootVisibility;
|
|
38
|
-
private readonly _updatePreviewEditor;
|
|
39
|
-
private readonly _previewEditorWidth;
|
|
40
|
-
private readonly _cursorPosIfTouchesEdit;
|
|
41
|
-
private readonly _previewEditorLayoutInfo;
|
|
42
|
-
private readonly _inlineDiffViewState;
|
|
43
|
-
protected readonly _inlineDiffView: OriginalEditorInlineDiffView;
|
|
44
|
-
protected readonly _indicator: InlineEditsIndicator;
|
|
45
|
-
}
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js
DELETED
|
@@ -1,426 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { h, svgElem } from '../../../../../../base/browser/dom.js';
|
|
4
|
-
import { Disposable } from '../../../../../../base/common/lifecycle.js';
|
|
5
|
-
import { structuralEquals } from '../../../../../../base/common/equals.js';
|
|
6
|
-
import '../../../../../../base/common/event.js';
|
|
7
|
-
import { autorun } from '../../../../../../base/common/observableInternal/autorun.js';
|
|
8
|
-
import { derived, derivedOpts } from '../../../../../../base/common/observableInternal/derived.js';
|
|
9
|
-
import '../../../../../../base/common/cancellation.js';
|
|
10
|
-
import { constObservable, observableFromEvent } from '../../../../../../base/common/observableInternal/utils.js';
|
|
11
|
-
import { MenuId, MenuItemAction } from '../../../../../../platform/actions/common/actions.js';
|
|
12
|
-
import { IInstantiationService } from '../../../../../../platform/instantiation/common/instantiation.js';
|
|
13
|
-
import { observableCodeEditor } from '../../../../../browser/observableCodeEditor.js';
|
|
14
|
-
import { EmbeddedCodeEditorWidget } from '../../../../../browser/widget/codeEditor/embeddedCodeEditorWidget.js';
|
|
15
|
-
import { appendRemoveOnDispose } from '../../../../../browser/widget/diffEditor/utils.js';
|
|
16
|
-
import { EditorOption } from '../../../../../common/config/editorOptions.js';
|
|
17
|
-
import { LineRange } from '../../../../../common/core/lineRange.js';
|
|
18
|
-
import { Range } from '../../../../../common/core/range.js';
|
|
19
|
-
import { StringText } from '../../../../../common/core/textEdit.js';
|
|
20
|
-
import { RangeMapping, lineRangeMappingFromRangeMappings } from '../../../../../common/diff/rangeMapping.js';
|
|
21
|
-
import { TextModel } from '../../../../../common/model/textModel.js';
|
|
22
|
-
import './inlineEditsView.css.js';
|
|
23
|
-
import { OriginalEditorInlineDiffView } from './inlineDiffView.js';
|
|
24
|
-
import { createReindentEdit, applyEditToModifiedRangeMappings, StatusBarViewItem, maxContentWidthInRange, getOffsetForPos, Point, PathBuilder } from './utils.js';
|
|
25
|
-
import { InlineEditsIndicator } from './inlineEditsIndicatorView.js';
|
|
26
|
-
import { registerColor, transparent, lighten, darken } from '../../../../../../platform/theme/common/colorUtils.js';
|
|
27
|
-
import '../../../../../../platform/theme/common/colors/baseColors.js';
|
|
28
|
-
import '../../../../../../platform/theme/common/colors/chartsColors.js';
|
|
29
|
-
import { diffRemoved, diffInserted } from '../../../../../../platform/theme/common/colors/editorColors.js';
|
|
30
|
-
import '../../../../../../platform/theme/common/colors/inputColors.js';
|
|
31
|
-
import '../../../../../../platform/theme/common/colors/listColors.js';
|
|
32
|
-
import '../../../../../../platform/theme/common/colors/menuColors.js';
|
|
33
|
-
import '../../../../../../platform/theme/common/colors/minimapColors.js';
|
|
34
|
-
import '../../../../../../platform/theme/common/colors/miscColors.js';
|
|
35
|
-
import '../../../../../../platform/theme/common/colors/quickpickColors.js';
|
|
36
|
-
import '../../../../../../platform/theme/common/colors/searchColors.js';
|
|
37
|
-
import { CustomizedMenuWorkbenchToolBar } from '../../hintsWidget/inlineCompletionsHintsWidget.js';
|
|
38
|
-
import { ICommandService } from '../../../../../../platform/commands/common/commands.service.js';
|
|
39
|
-
import { editorLineHighlightBorder } from '../../../../../common/core/editorColorRegistry.js';
|
|
40
|
-
import { ActionViewItem } from '../../../../../../base/browser/ui/actionbar/actionViewItems.js';
|
|
41
|
-
import { OffsetRange } from '../../../../../common/core/offsetRange.js';
|
|
42
|
-
import { Color } from '../../../../../../base/common/color.js';
|
|
43
|
-
|
|
44
|
-
registerColor('inlineEdit.originalBackground', ( transparent(diffRemoved, 0.4)), '', true);
|
|
45
|
-
registerColor('inlineEdit.modifiedBackground', ( transparent(diffInserted, 0.4)), '', true);
|
|
46
|
-
registerColor('inlineEdit.originalChangedLineBackground', Color.transparent, '', true);
|
|
47
|
-
registerColor('inlineEdit.originalChangedTextBackground', diffRemoved, '', true);
|
|
48
|
-
registerColor('inlineEdit.modifiedChangedLineBackground', Color.transparent, '', true);
|
|
49
|
-
registerColor('inlineEdit.modifiedChangedTextBackground', diffInserted, '', true);
|
|
50
|
-
registerColor('inlineEdit.border', {
|
|
51
|
-
light: ( darken(editorLineHighlightBorder, 0.15)),
|
|
52
|
-
dark: ( lighten(editorLineHighlightBorder, 0.50)),
|
|
53
|
-
hcDark: editorLineHighlightBorder,
|
|
54
|
-
hcLight: editorLineHighlightBorder
|
|
55
|
-
}, '');
|
|
56
|
-
let InlineEditsView = class InlineEditsView extends Disposable {
|
|
57
|
-
constructor(_editor, _edit, _model, _instantiationService, _commandService) {
|
|
58
|
-
super();
|
|
59
|
-
this._editor = _editor;
|
|
60
|
-
this._edit = _edit;
|
|
61
|
-
this._model = _model;
|
|
62
|
-
this._instantiationService = _instantiationService;
|
|
63
|
-
this._commandService = _commandService;
|
|
64
|
-
this._editorObs = observableCodeEditor(this._editor);
|
|
65
|
-
this._elements = h('div.inline-edits-view', {
|
|
66
|
-
style: {
|
|
67
|
-
position: 'absolute',
|
|
68
|
-
overflow: 'visible',
|
|
69
|
-
top: '0px',
|
|
70
|
-
left: '0px',
|
|
71
|
-
},
|
|
72
|
-
}, [
|
|
73
|
-
svgElem('svg@svg', { transform: 'translate(-0.5 -0.5)', style: { overflow: 'visible', pointerEvents: 'none', position: 'absolute' }, }, []),
|
|
74
|
-
h('div.editorContainer@editorContainer', { style: { position: 'absolute' } }, [
|
|
75
|
-
h('div.preview@editor', { style: {} }),
|
|
76
|
-
h('div.toolbar@toolbar', { style: {} }),
|
|
77
|
-
]),
|
|
78
|
-
svgElem('svg@svg2', { transform: 'translate(-0.5 -0.5)', style: { overflow: 'visible', pointerEvents: 'none', position: 'absolute' }, }, []),
|
|
79
|
-
]);
|
|
80
|
-
this._useMixedLinesDiff = ( observableCodeEditor(this._editor).getOption(EditorOption.inlineSuggest).map(s => s.edits.experimental.useMixedLinesDiff));
|
|
81
|
-
this._useInterleavedLinesDiff = ( observableCodeEditor(this._editor).getOption(EditorOption.inlineSuggest).map(s => s.edits.experimental.useInterleavedLinesDiff));
|
|
82
|
-
this._uiState = derived(this, reader => {
|
|
83
|
-
const edit = this._edit.read(reader);
|
|
84
|
-
if (!edit) {
|
|
85
|
-
return undefined;
|
|
86
|
-
}
|
|
87
|
-
this._model.get()?.handleInlineCompletionShown(edit.inlineCompletion);
|
|
88
|
-
let mappings = RangeMapping.fromEdit(edit.edit);
|
|
89
|
-
let newText = edit.edit.apply(edit.originalText);
|
|
90
|
-
let diff = lineRangeMappingFromRangeMappings(mappings, edit.originalText, ( new StringText(newText)));
|
|
91
|
-
let state;
|
|
92
|
-
if (edit.isCollapsed) {
|
|
93
|
-
state = 'collapsed';
|
|
94
|
-
}
|
|
95
|
-
else if (diff.every(m => OriginalEditorInlineDiffView.supportsInlineDiffRendering(m)) &&
|
|
96
|
-
(this._useMixedLinesDiff.read(reader) === 'whenPossible' || (edit.userJumpedToIt && this._useMixedLinesDiff.read(reader) === 'afterJumpWhenPossible'))) {
|
|
97
|
-
state = 'mixedLines';
|
|
98
|
-
}
|
|
99
|
-
else if ((this._useInterleavedLinesDiff.read(reader) === 'always' || (edit.userJumpedToIt && this._useInterleavedLinesDiff.read(reader) === 'afterJump'))) {
|
|
100
|
-
state = 'interleavedLines';
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
state = 'sideBySide';
|
|
104
|
-
}
|
|
105
|
-
if (state === 'sideBySide') {
|
|
106
|
-
const indentationAdjustmentEdit = createReindentEdit(newText, edit.modifiedLineRange);
|
|
107
|
-
newText = indentationAdjustmentEdit.applyToString(newText);
|
|
108
|
-
mappings = applyEditToModifiedRangeMappings(mappings, indentationAdjustmentEdit);
|
|
109
|
-
diff = lineRangeMappingFromRangeMappings(mappings, edit.originalText, ( new StringText(newText)));
|
|
110
|
-
}
|
|
111
|
-
const originalDisplayRange = edit.originalText.lineRange.intersect(edit.originalLineRange.join(LineRange.ofLength(edit.originalLineRange.startLineNumber, edit.lineEdit.newLines.length)));
|
|
112
|
-
return {
|
|
113
|
-
state,
|
|
114
|
-
diff,
|
|
115
|
-
edit,
|
|
116
|
-
newText,
|
|
117
|
-
newTextLineCount: edit.modifiedLineRange.length,
|
|
118
|
-
originalDisplayRange: originalDisplayRange,
|
|
119
|
-
};
|
|
120
|
-
});
|
|
121
|
-
this._toolbar = this._register(this._instantiationService.createInstance(CustomizedMenuWorkbenchToolBar, this._elements.toolbar, MenuId.InlineEditsActions, {
|
|
122
|
-
menuOptions: { renderShortTitle: true },
|
|
123
|
-
toolbarOptions: {
|
|
124
|
-
primaryGroup: g => g.startsWith('primary'),
|
|
125
|
-
},
|
|
126
|
-
actionViewItemProvider: (action, options) => {
|
|
127
|
-
if (action instanceof MenuItemAction) {
|
|
128
|
-
return this._instantiationService.createInstance(StatusBarViewItem, action, undefined);
|
|
129
|
-
}
|
|
130
|
-
if (action.class === undefined) {
|
|
131
|
-
return this._instantiationService.createInstance(ActionViewItem, {}, action, { icon: false });
|
|
132
|
-
}
|
|
133
|
-
return undefined;
|
|
134
|
-
},
|
|
135
|
-
telemetrySource: 'inlineEditsToolbar'
|
|
136
|
-
}));
|
|
137
|
-
this._extraCommands = derivedOpts({ owner: this, equalsFn: structuralEquals }, reader => {
|
|
138
|
-
return this._uiState.read(reader)?.edit.commands ?? [];
|
|
139
|
-
});
|
|
140
|
-
this._updateToolbarAutorun = this._register(autorun(reader => {
|
|
141
|
-
const extraCommands = this._extraCommands.read(reader);
|
|
142
|
-
const primaryExtraActions = [];
|
|
143
|
-
const secondaryExtraActions = [];
|
|
144
|
-
for (const c of extraCommands) {
|
|
145
|
-
const action = {
|
|
146
|
-
class: undefined,
|
|
147
|
-
id: c.id,
|
|
148
|
-
enabled: true,
|
|
149
|
-
tooltip: c.tooltip || '',
|
|
150
|
-
label: c.title,
|
|
151
|
-
run: (event) => {
|
|
152
|
-
return this._commandService.executeCommand(c.id, ...(c.arguments ?? []));
|
|
153
|
-
},
|
|
154
|
-
};
|
|
155
|
-
if (c.title.toLowerCase().indexOf('feedback') !== -1) {
|
|
156
|
-
primaryExtraActions.push(action);
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
secondaryExtraActions.push(action);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
this._toolbar.setAdditionalPrimaryActions(primaryExtraActions);
|
|
163
|
-
this._toolbar.setAdditionalSecondaryActions(secondaryExtraActions);
|
|
164
|
-
}));
|
|
165
|
-
this._previewTextModel = this._register(this._instantiationService.createInstance(TextModel, '', this._editor.getModel().getLanguageId(), { ...TextModel.DEFAULT_CREATION_OPTIONS, bracketPairColorizationOptions: { enabled: true, independentColorPoolPerBracketType: false } }, null));
|
|
166
|
-
this._previewEditor = this._register(this._instantiationService.createInstance(EmbeddedCodeEditorWidget, this._elements.editor, {
|
|
167
|
-
glyphMargin: false,
|
|
168
|
-
lineNumbers: 'off',
|
|
169
|
-
minimap: { enabled: false },
|
|
170
|
-
guides: {
|
|
171
|
-
indentation: false,
|
|
172
|
-
bracketPairs: false,
|
|
173
|
-
bracketPairsHorizontal: false,
|
|
174
|
-
highlightActiveIndentation: false,
|
|
175
|
-
},
|
|
176
|
-
folding: false,
|
|
177
|
-
selectOnLineNumbers: false,
|
|
178
|
-
selectionHighlight: false,
|
|
179
|
-
columnSelection: false,
|
|
180
|
-
overviewRulerBorder: false,
|
|
181
|
-
overviewRulerLanes: 0,
|
|
182
|
-
lineDecorationsWidth: 0,
|
|
183
|
-
lineNumbersMinChars: 0,
|
|
184
|
-
bracketPairColorization: { enabled: true, independentColorPoolPerBracketType: false },
|
|
185
|
-
scrollBeyondLastLine: false,
|
|
186
|
-
scrollbar: {
|
|
187
|
-
vertical: 'hidden',
|
|
188
|
-
horizontal: 'hidden',
|
|
189
|
-
handleMouseWheel: false,
|
|
190
|
-
},
|
|
191
|
-
readOnly: true,
|
|
192
|
-
wordWrap: 'off',
|
|
193
|
-
}, { contributions: [], }, this._editor));
|
|
194
|
-
this._previewEditorObs = observableCodeEditor(this._previewEditor);
|
|
195
|
-
this._previewEditorRootVisibility = derived(this, reader => this._uiState.read(reader)?.state === 'sideBySide' ? 'block' : 'none');
|
|
196
|
-
this._updatePreviewEditorRootVisibility = derived(reader => {
|
|
197
|
-
this._elements.root.style.display = this._previewEditorRootVisibility.read(reader);
|
|
198
|
-
});
|
|
199
|
-
this._updatePreviewEditor = derived(reader => {
|
|
200
|
-
this._updatePreviewEditorRootVisibility.read(reader);
|
|
201
|
-
const uiState = this._uiState.read(reader);
|
|
202
|
-
if (!uiState) {
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
this._previewTextModel.setLanguage(this._editor.getModel().getLanguageId());
|
|
206
|
-
this._previewTextModel.setValue(uiState.newText);
|
|
207
|
-
const range = uiState.edit.originalLineRange;
|
|
208
|
-
const hiddenAreas = [];
|
|
209
|
-
if (range.startLineNumber > 1) {
|
|
210
|
-
hiddenAreas.push(( new Range(1, 1, range.startLineNumber - 1, 1)));
|
|
211
|
-
}
|
|
212
|
-
if (range.startLineNumber + uiState.newTextLineCount < this._previewTextModel.getLineCount() + 1) {
|
|
213
|
-
hiddenAreas.push(( new Range(
|
|
214
|
-
range.startLineNumber + uiState.newTextLineCount,
|
|
215
|
-
1,
|
|
216
|
-
this._previewTextModel.getLineCount() + 1,
|
|
217
|
-
1
|
|
218
|
-
)));
|
|
219
|
-
}
|
|
220
|
-
this._previewEditor.setHiddenAreas(hiddenAreas, undefined, true);
|
|
221
|
-
}).recomputeInitiallyAndOnChange(this._store);
|
|
222
|
-
this._previewEditorWidth = derived(this, reader => {
|
|
223
|
-
const edit = this._edit.read(reader);
|
|
224
|
-
if (!edit) {
|
|
225
|
-
return 0;
|
|
226
|
-
}
|
|
227
|
-
this._updatePreviewEditor.read(reader);
|
|
228
|
-
return maxContentWidthInRange(this._previewEditorObs, edit.modifiedLineRange, reader) + 10;
|
|
229
|
-
});
|
|
230
|
-
this._cursorPosIfTouchesEdit = derived(this, reader => {
|
|
231
|
-
const cursorPos = this._editorObs.cursorPosition.read(reader);
|
|
232
|
-
const edit = this._edit.read(reader);
|
|
233
|
-
if (!edit || !cursorPos) {
|
|
234
|
-
return undefined;
|
|
235
|
-
}
|
|
236
|
-
return edit.modifiedLineRange.contains(cursorPos.lineNumber) ? cursorPos : undefined;
|
|
237
|
-
});
|
|
238
|
-
this._previewEditorLayoutInfo = derived(this, (reader) => {
|
|
239
|
-
const inlineEdit = this._edit.read(reader);
|
|
240
|
-
if (!inlineEdit) {
|
|
241
|
-
return null;
|
|
242
|
-
}
|
|
243
|
-
const state = this._uiState.read(reader);
|
|
244
|
-
if (!state) {
|
|
245
|
-
return null;
|
|
246
|
-
}
|
|
247
|
-
const range = inlineEdit.originalLineRange;
|
|
248
|
-
const horizontalScrollOffset = this._editorObs.scrollLeft.read(reader);
|
|
249
|
-
const editorContentMaxWidthInRange = maxContentWidthInRange(this._editorObs, state.originalDisplayRange, reader);
|
|
250
|
-
const editorLayout = this._editorObs.layoutInfo.read(reader);
|
|
251
|
-
const previewWidth = this._previewEditorWidth.read(reader);
|
|
252
|
-
const editorContentAreaWidth = editorLayout.width - editorLayout.contentLeft - editorLayout.minimap.minimapWidth - editorLayout.verticalScrollbarWidth;
|
|
253
|
-
const cursorPos = this._cursorPosIfTouchesEdit.read(reader);
|
|
254
|
-
const maxPreviewEditorLeft = Math.max(editorContentAreaWidth * 0.65 + horizontalScrollOffset - 10, editorContentAreaWidth - previewWidth - 70 + horizontalScrollOffset - 10, cursorPos ? getOffsetForPos(this._editorObs, cursorPos, reader) + 50 : 0);
|
|
255
|
-
const previewEditorLeftInTextArea = Math.min(editorContentMaxWidthInRange + 20, maxPreviewEditorLeft);
|
|
256
|
-
const previewEditorLeft = editorLayout.contentLeft + previewEditorLeftInTextArea;
|
|
257
|
-
const maxContentWidth = editorContentMaxWidthInRange + 20 + previewWidth + 70;
|
|
258
|
-
const dist = maxPreviewEditorLeft - previewEditorLeftInTextArea;
|
|
259
|
-
const left = Math.max(editorLayout.contentLeft, previewEditorLeft - horizontalScrollOffset);
|
|
260
|
-
const selectionTop = this._editor.getTopForLineNumber(range.startLineNumber) - this._editorObs.scrollTop.read(reader);
|
|
261
|
-
const selectionBottom = this._editor.getTopForLineNumber(range.endLineNumberExclusive) - this._editorObs.scrollTop.read(reader);
|
|
262
|
-
const codeLeft = editorLayout.contentLeft;
|
|
263
|
-
const code1 = ( new Point(left, selectionTop));
|
|
264
|
-
const codeStart1 = ( new Point(codeLeft, selectionTop));
|
|
265
|
-
const code2 = ( new Point(left, selectionBottom));
|
|
266
|
-
const codeStart2 = ( new Point(codeLeft, selectionBottom));
|
|
267
|
-
const codeHeight = selectionBottom - selectionTop;
|
|
268
|
-
const codeEditDistRange = inlineEdit.modifiedLineRange.length === inlineEdit.originalLineRange.length
|
|
269
|
-
? ( new OffsetRange(4, 61))
|
|
270
|
-
: ( new OffsetRange(60, 61));
|
|
271
|
-
const clipped = dist === 0;
|
|
272
|
-
const codeEditDist = codeEditDistRange.clip(dist);
|
|
273
|
-
const editHeight = this._editor.getOption(EditorOption.lineHeight) * inlineEdit.modifiedLineRange.length;
|
|
274
|
-
const edit1 = ( new Point(left + codeEditDist, selectionTop));
|
|
275
|
-
const edit2 = ( new Point(left + codeEditDist, selectionTop + editHeight));
|
|
276
|
-
return {
|
|
277
|
-
code1,
|
|
278
|
-
codeStart1,
|
|
279
|
-
code2,
|
|
280
|
-
codeStart2,
|
|
281
|
-
codeHeight,
|
|
282
|
-
edit1,
|
|
283
|
-
edit2,
|
|
284
|
-
editHeight,
|
|
285
|
-
previewEditorLeft,
|
|
286
|
-
maxContentWidth,
|
|
287
|
-
shouldShowShadow: clipped,
|
|
288
|
-
};
|
|
289
|
-
});
|
|
290
|
-
this._inlineDiffViewState = derived(this, reader => {
|
|
291
|
-
const e = this._uiState.read(reader);
|
|
292
|
-
if (!e) {
|
|
293
|
-
return undefined;
|
|
294
|
-
}
|
|
295
|
-
return {
|
|
296
|
-
modifiedText: ( new StringText(e.newText)),
|
|
297
|
-
diff: e.diff,
|
|
298
|
-
mode: e.state === 'collapsed' ? 'sideBySide' : e.state,
|
|
299
|
-
modifiedCodeEditor: this._previewEditor,
|
|
300
|
-
};
|
|
301
|
-
});
|
|
302
|
-
this._inlineDiffView = this._register(( new OriginalEditorInlineDiffView(this._editor, this._inlineDiffViewState, this._previewTextModel)));
|
|
303
|
-
this._indicator = this._register(( new InlineEditsIndicator(this._editorObs, derived(reader => {
|
|
304
|
-
const state = this._uiState.read(reader);
|
|
305
|
-
const edit1 = this._previewEditorLayoutInfo.read(reader)?.edit1;
|
|
306
|
-
if (!edit1 || !state) {
|
|
307
|
-
return undefined;
|
|
308
|
-
}
|
|
309
|
-
return { editTopLeft: edit1, showAlways: state.state !== 'sideBySide' };
|
|
310
|
-
}), this._model)));
|
|
311
|
-
this._register(appendRemoveOnDispose(this._editor.getDomNode(), this._elements.root));
|
|
312
|
-
this._register(this._editorObs.createOverlayWidget({
|
|
313
|
-
domNode: this._elements.root,
|
|
314
|
-
position: constObservable(null),
|
|
315
|
-
allowEditorOverflow: false,
|
|
316
|
-
minContentWidthInPx: derived(reader => {
|
|
317
|
-
const x = this._previewEditorLayoutInfo.read(reader)?.maxContentWidth;
|
|
318
|
-
if (x === undefined) {
|
|
319
|
-
return 0;
|
|
320
|
-
}
|
|
321
|
-
return x;
|
|
322
|
-
}),
|
|
323
|
-
}));
|
|
324
|
-
this._previewEditor.setModel(this._previewTextModel);
|
|
325
|
-
this._register(autorun(reader => {
|
|
326
|
-
const layoutInfo = this._previewEditorLayoutInfo.read(reader);
|
|
327
|
-
if (!layoutInfo) {
|
|
328
|
-
this._elements.svg.replaceChildren();
|
|
329
|
-
return;
|
|
330
|
-
}
|
|
331
|
-
const topEdit = layoutInfo.edit1;
|
|
332
|
-
const editHeight = layoutInfo.editHeight;
|
|
333
|
-
const width = this._previewEditorWidth.read(reader);
|
|
334
|
-
const pathBuilder1 = ( new PathBuilder());
|
|
335
|
-
pathBuilder1.moveTo(layoutInfo.code2);
|
|
336
|
-
pathBuilder1.lineTo(layoutInfo.codeStart2);
|
|
337
|
-
pathBuilder1.lineTo(layoutInfo.codeStart1);
|
|
338
|
-
pathBuilder1.lineTo(layoutInfo.code1);
|
|
339
|
-
const pathBuilder2 = ( new PathBuilder());
|
|
340
|
-
pathBuilder2.moveTo(layoutInfo.code1);
|
|
341
|
-
pathBuilder2.lineTo(layoutInfo.edit1);
|
|
342
|
-
pathBuilder2.lineTo(layoutInfo.edit1.deltaX(width));
|
|
343
|
-
pathBuilder2.lineTo(layoutInfo.edit2.deltaX(width));
|
|
344
|
-
pathBuilder2.lineTo(layoutInfo.edit2);
|
|
345
|
-
if (layoutInfo.edit2.y !== layoutInfo.code2.y) {
|
|
346
|
-
pathBuilder2.curveTo2(layoutInfo.edit2.deltaX(-20), layoutInfo.code2.deltaX(20), layoutInfo.code2.deltaX(0));
|
|
347
|
-
}
|
|
348
|
-
pathBuilder2.lineTo(layoutInfo.code2);
|
|
349
|
-
const pathBuilder4 = ( new PathBuilder());
|
|
350
|
-
pathBuilder4.moveTo(layoutInfo.code1);
|
|
351
|
-
pathBuilder4.lineTo(layoutInfo.code1.deltaX(1000));
|
|
352
|
-
pathBuilder4.lineTo(layoutInfo.code2.deltaX(1000));
|
|
353
|
-
pathBuilder4.lineTo(layoutInfo.code2);
|
|
354
|
-
const path1 = document.createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
355
|
-
path1.setAttribute('d', pathBuilder1.build());
|
|
356
|
-
path1.style.fill = 'var(--vscode-inlineEdit-originalBackground, transparent)';
|
|
357
|
-
path1.style.stroke = 'var(--vscode-inlineEdit-border)';
|
|
358
|
-
path1.style.strokeWidth = '1px';
|
|
359
|
-
const path2 = document.createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
360
|
-
path2.setAttribute('d', pathBuilder2.build());
|
|
361
|
-
path2.style.fill = 'var(--vscode-inlineEdit-modifiedBackground, transparent)';
|
|
362
|
-
path2.style.stroke = 'var(--vscode-inlineEdit-border)';
|
|
363
|
-
path2.style.strokeWidth = '1px';
|
|
364
|
-
const pathModifiedBackground = document.createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
365
|
-
pathModifiedBackground.setAttribute('d', pathBuilder2.build());
|
|
366
|
-
pathModifiedBackground.style.fill = 'var(--vscode-editor-background, transparent)';
|
|
367
|
-
pathModifiedBackground.style.strokeWidth = '1px';
|
|
368
|
-
const elements = [];
|
|
369
|
-
if (layoutInfo.shouldShowShadow) {
|
|
370
|
-
const defs = document.createElementNS('http://www.w3.org/2000/svg', 'defs');
|
|
371
|
-
const linearGradient = document.createElementNS('http://www.w3.org/2000/svg', 'linearGradient');
|
|
372
|
-
linearGradient.setAttribute('id', 'gradient');
|
|
373
|
-
linearGradient.setAttribute('x1', '0%');
|
|
374
|
-
linearGradient.setAttribute('x2', '100%');
|
|
375
|
-
const stop1 = document.createElementNS('http://www.w3.org/2000/svg', 'stop');
|
|
376
|
-
stop1.setAttribute('offset', '0%');
|
|
377
|
-
stop1.setAttribute('style', 'stop-color:var(--vscode-inlineEdit-border);stop-opacity:0');
|
|
378
|
-
const stop2 = document.createElementNS('http://www.w3.org/2000/svg', 'stop');
|
|
379
|
-
stop2.setAttribute('offset', '100%');
|
|
380
|
-
stop2.setAttribute('style', 'stop-color:var(--vscode-inlineEdit-border);stop-opacity:1');
|
|
381
|
-
linearGradient.appendChild(stop1);
|
|
382
|
-
linearGradient.appendChild(stop2);
|
|
383
|
-
defs.appendChild(linearGradient);
|
|
384
|
-
const width = 6;
|
|
385
|
-
const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');
|
|
386
|
-
rect.setAttribute('x', `${layoutInfo.code1.x - width}`);
|
|
387
|
-
rect.setAttribute('y', `${layoutInfo.code1.y}`);
|
|
388
|
-
rect.setAttribute('width', `${width}`);
|
|
389
|
-
rect.setAttribute('height', `${layoutInfo.code2.y - layoutInfo.code1.y}`);
|
|
390
|
-
rect.setAttribute('fill', 'url(#gradient)');
|
|
391
|
-
rect.style.strokeWidth = '0';
|
|
392
|
-
rect.style.stroke = 'transparent';
|
|
393
|
-
elements.push(defs);
|
|
394
|
-
elements.push(rect);
|
|
395
|
-
}
|
|
396
|
-
else {
|
|
397
|
-
const pathBuilder3 = ( new PathBuilder());
|
|
398
|
-
pathBuilder3.moveTo(layoutInfo.code1);
|
|
399
|
-
pathBuilder3.lineTo(layoutInfo.code2);
|
|
400
|
-
const path3 = document.createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
401
|
-
path3.setAttribute('d', pathBuilder3.build());
|
|
402
|
-
path3.style.stroke = 'var(--vscode-inlineEdit-border)';
|
|
403
|
-
path3.style.strokeWidth = '1px';
|
|
404
|
-
elements.push(path3);
|
|
405
|
-
}
|
|
406
|
-
const path4 = document.createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
407
|
-
path4.setAttribute('d', pathBuilder4.build());
|
|
408
|
-
path4.style.fill = 'var(--vscode-editor-background, transparent)';
|
|
409
|
-
this._elements.svg.replaceChildren(path4, pathModifiedBackground);
|
|
410
|
-
this._elements.svg2.replaceChildren(path1, path2, ...elements);
|
|
411
|
-
this._elements.editorContainer.style.top = `${topEdit.y}px`;
|
|
412
|
-
this._elements.editorContainer.style.left = `${topEdit.x}px`;
|
|
413
|
-
this._previewEditor.layout({ height: editHeight, width });
|
|
414
|
-
}));
|
|
415
|
-
const toolbarDropdownVisible = observableFromEvent(this, this._toolbar.onDidChangeDropdownVisibility, (e) => e ?? false);
|
|
416
|
-
this._register(autorun(reader => {
|
|
417
|
-
this._elements.root.classList.toggle('toolbarDropdownVisible', toolbarDropdownVisible.read(reader));
|
|
418
|
-
}));
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
|
-
InlineEditsView = ( __decorate([
|
|
422
|
-
( __param(3, IInstantiationService)),
|
|
423
|
-
( __param(4, ICommandService))
|
|
424
|
-
], InlineEditsView));
|
|
425
|
-
|
|
426
|
-
export { InlineEditsView };
|