@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
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
import { __decorate } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
3
3
|
import { memoize } from '../../../../base/common/decorators.js';
|
|
4
4
|
import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
5
|
+
import { isMacintosh } from '../../../../base/common/platform.js';
|
|
5
6
|
import { StringBuilder } from '../../../common/core/stringBuilder.js';
|
|
6
7
|
import { TokenMetadata, FontStyle } from '../../../common/encodedTokenAttributes.js';
|
|
7
8
|
import { ensureNonNullable } from '../gpuUtils.js';
|
|
9
|
+
import { ViewGpuContext } from '../viewGpuContext.js';
|
|
8
10
|
|
|
9
11
|
let nextId = 0;
|
|
10
12
|
class GlyphRasterizer extends Disposable {
|
|
@@ -32,18 +34,20 @@ class GlyphRasterizer extends Disposable {
|
|
|
32
34
|
fontBoundingBoxAscent: 0,
|
|
33
35
|
fontBoundingBoxDescent: 0,
|
|
34
36
|
};
|
|
35
|
-
this._workGlyphConfig = { chars: undefined, tokenMetadata: 0,
|
|
37
|
+
this._workGlyphConfig = { chars: undefined, tokenMetadata: 0, decorationStyleSetId: 0 };
|
|
38
|
+
this._antiAliasing = isMacintosh ? 'greyscale' : 'subpixel';
|
|
36
39
|
const devicePixelFontSize = Math.ceil(this.fontSize * devicePixelRatio);
|
|
37
40
|
this._canvas = ( new OffscreenCanvas(devicePixelFontSize * 3, devicePixelFontSize * 3));
|
|
38
41
|
this._ctx = ensureNonNullable(this._canvas.getContext('2d', {
|
|
39
|
-
willReadFrequently: true
|
|
42
|
+
willReadFrequently: true,
|
|
43
|
+
alpha: this._antiAliasing === 'greyscale',
|
|
40
44
|
}));
|
|
41
45
|
this._ctx.textBaseline = 'top';
|
|
42
46
|
this._ctx.fillStyle = '#FFFFFF';
|
|
43
47
|
this._ctx.font = `${devicePixelFontSize}px ${this.fontFamily}`;
|
|
44
48
|
this._textMetrics = this._ctx.measureText('A');
|
|
45
49
|
}
|
|
46
|
-
rasterizeGlyph(chars, tokenMetadata,
|
|
50
|
+
rasterizeGlyph(chars, tokenMetadata, decorationStyleSetId, colorMap) {
|
|
47
51
|
if (chars === '') {
|
|
48
52
|
return {
|
|
49
53
|
source: this._canvas,
|
|
@@ -53,43 +57,70 @@ class GlyphRasterizer extends Disposable {
|
|
|
53
57
|
fontBoundingBoxDescent: 0,
|
|
54
58
|
};
|
|
55
59
|
}
|
|
56
|
-
if (this._workGlyphConfig.chars === chars && this._workGlyphConfig.tokenMetadata === tokenMetadata && this._workGlyphConfig.
|
|
60
|
+
if (this._workGlyphConfig.chars === chars && this._workGlyphConfig.tokenMetadata === tokenMetadata && this._workGlyphConfig.decorationStyleSetId === decorationStyleSetId) {
|
|
57
61
|
return this._workGlyph;
|
|
58
62
|
}
|
|
59
63
|
this._workGlyphConfig.chars = chars;
|
|
60
64
|
this._workGlyphConfig.tokenMetadata = tokenMetadata;
|
|
61
|
-
this._workGlyphConfig.
|
|
62
|
-
return this._rasterizeGlyph(chars, tokenMetadata,
|
|
65
|
+
this._workGlyphConfig.decorationStyleSetId = decorationStyleSetId;
|
|
66
|
+
return this._rasterizeGlyph(chars, tokenMetadata, decorationStyleSetId, colorMap);
|
|
63
67
|
}
|
|
64
|
-
_rasterizeGlyph(chars,
|
|
68
|
+
_rasterizeGlyph(chars, tokenMetadata, decorationStyleSetId, colorMap) {
|
|
65
69
|
const devicePixelFontSize = Math.ceil(this.fontSize * this.devicePixelRatio);
|
|
66
70
|
const canvasDim = devicePixelFontSize * 3;
|
|
67
71
|
if (this._canvas.width !== canvasDim) {
|
|
68
72
|
this._canvas.width = canvasDim;
|
|
69
73
|
this._canvas.height = canvasDim;
|
|
70
74
|
}
|
|
71
|
-
this._ctx.
|
|
75
|
+
this._ctx.save();
|
|
76
|
+
const xSubPixelXOffset = (tokenMetadata & 0b1111) / 10;
|
|
77
|
+
const bgId = TokenMetadata.getBackground(tokenMetadata);
|
|
78
|
+
const bg = colorMap[bgId];
|
|
79
|
+
const decorationStyleSet = ViewGpuContext.decorationStyleCache.getStyleSet(decorationStyleSetId);
|
|
80
|
+
if (this._antiAliasing === 'subpixel') {
|
|
81
|
+
this._ctx.fillStyle = bg;
|
|
82
|
+
this._ctx.fillRect(0, 0, this._canvas.width, this._canvas.height);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
this._ctx.clearRect(0, 0, this._canvas.width, this._canvas.height);
|
|
86
|
+
}
|
|
72
87
|
const fontSb = ( new StringBuilder(200));
|
|
73
|
-
const fontStyle = TokenMetadata.getFontStyle(
|
|
88
|
+
const fontStyle = TokenMetadata.getFontStyle(tokenMetadata);
|
|
74
89
|
if (fontStyle & FontStyle.Italic) {
|
|
75
90
|
fontSb.appendString('italic ');
|
|
76
91
|
}
|
|
77
|
-
if (
|
|
92
|
+
if (decorationStyleSet?.bold !== undefined) {
|
|
93
|
+
if (decorationStyleSet.bold) {
|
|
94
|
+
fontSb.appendString('bold ');
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
else if (fontStyle & FontStyle.Bold) {
|
|
78
98
|
fontSb.appendString('bold ');
|
|
79
99
|
}
|
|
80
100
|
fontSb.appendString(`${devicePixelFontSize}px ${this.fontFamily}`);
|
|
81
101
|
this._ctx.font = fontSb.build();
|
|
82
102
|
const originX = devicePixelFontSize;
|
|
83
103
|
const originY = devicePixelFontSize;
|
|
84
|
-
if (
|
|
85
|
-
this._ctx.fillStyle = `#${(
|
|
104
|
+
if (decorationStyleSet?.color !== undefined) {
|
|
105
|
+
this._ctx.fillStyle = `#${( decorationStyleSet.color.toString(16)).padStart(8, '0')}`;
|
|
86
106
|
}
|
|
87
107
|
else {
|
|
88
|
-
this._ctx.fillStyle = colorMap[TokenMetadata.getForeground(
|
|
108
|
+
this._ctx.fillStyle = colorMap[TokenMetadata.getForeground(tokenMetadata)];
|
|
89
109
|
}
|
|
90
110
|
this._ctx.textBaseline = 'top';
|
|
91
|
-
|
|
111
|
+
if (decorationStyleSet?.opacity !== undefined) {
|
|
112
|
+
this._ctx.globalAlpha = decorationStyleSet.opacity;
|
|
113
|
+
}
|
|
114
|
+
this._ctx.fillText(chars, originX + xSubPixelXOffset, originY);
|
|
115
|
+
this._ctx.restore();
|
|
92
116
|
const imageData = this._ctx.getImageData(0, 0, this._canvas.width, this._canvas.height);
|
|
117
|
+
if (this._antiAliasing === 'subpixel') {
|
|
118
|
+
const bgR = parseInt(bg.substring(1, 3), 16);
|
|
119
|
+
const bgG = parseInt(bg.substring(3, 5), 16);
|
|
120
|
+
const bgB = parseInt(bg.substring(5, 7), 16);
|
|
121
|
+
this._clearColor(imageData, bgR, bgG, bgB);
|
|
122
|
+
this._ctx.putImageData(imageData, 0, 0);
|
|
123
|
+
}
|
|
93
124
|
this._findGlyphBoundingBox(imageData, this._workGlyph.boundingBox);
|
|
94
125
|
this._workGlyph.source = this._canvas;
|
|
95
126
|
this._workGlyph.originOffset.x = this._workGlyph.boundingBox.left - originX;
|
|
@@ -98,6 +129,15 @@ class GlyphRasterizer extends Disposable {
|
|
|
98
129
|
this._workGlyph.fontBoundingBoxDescent = this._textMetrics.fontBoundingBoxDescent;
|
|
99
130
|
return this._workGlyph;
|
|
100
131
|
}
|
|
132
|
+
_clearColor(imageData, r, g, b) {
|
|
133
|
+
for (let offset = 0; offset < imageData.data.length; offset += 4) {
|
|
134
|
+
if (imageData.data[offset] === r &&
|
|
135
|
+
imageData.data[offset + 1] === g &&
|
|
136
|
+
imageData.data[offset + 2] === b) {
|
|
137
|
+
imageData.data[offset + 3] = 0;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
101
141
|
_findGlyphBoundingBox(imageData, outBoundingBox) {
|
|
102
142
|
const height = this._canvas.height;
|
|
103
143
|
const width = this._canvas.width;
|
|
@@ -161,6 +201,9 @@ class GlyphRasterizer extends Disposable {
|
|
|
161
201
|
}
|
|
162
202
|
}
|
|
163
203
|
}
|
|
204
|
+
getTextMetrics(text) {
|
|
205
|
+
return this._ctx.measureText(text);
|
|
206
|
+
}
|
|
164
207
|
}
|
|
165
208
|
GlyphRasterizer.__decorator = ( __decorate([
|
|
166
209
|
memoize
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export interface IGlyphRasterizer {
|
|
2
2
|
readonly id: number;
|
|
3
3
|
readonly cacheKey: string;
|
|
4
|
-
rasterizeGlyph(chars: string, tokenMetadata: number,
|
|
4
|
+
rasterizeGlyph(chars: string, tokenMetadata: number, decorationStyleSetId: number, colorMap: string[]): Readonly<IRasterizedGlyph>;
|
|
5
|
+
getTextMetrics(text: string): TextMetrics;
|
|
5
6
|
}
|
|
6
7
|
export interface IBoundingBox {
|
|
7
8
|
left: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IObservable } from "../../../base/common/observable.js";
|
|
1
2
|
import { ViewEventHandler } from "../../common/viewEventHandler.js";
|
|
2
3
|
import type { ViewScrollChangedEvent } from "../../common/viewEvents.js";
|
|
3
4
|
import type { ViewportData } from "../../common/viewLayout/viewLinesViewportData.js";
|
|
@@ -31,6 +32,8 @@ export type RectangleRendererEntrySpec = [
|
|
|
31
32
|
];
|
|
32
33
|
export declare class RectangleRenderer extends ViewEventHandler {
|
|
33
34
|
private readonly _context;
|
|
35
|
+
private readonly _contentLeft;
|
|
36
|
+
private readonly _devicePixelRatio;
|
|
34
37
|
private readonly _canvas;
|
|
35
38
|
private readonly _ctx;
|
|
36
39
|
private _device;
|
|
@@ -44,7 +47,7 @@ export declare class RectangleRenderer extends ViewEventHandler {
|
|
|
44
47
|
private _scrollOffsetValueBuffer;
|
|
45
48
|
private _initialized;
|
|
46
49
|
private readonly _shapeCollection;
|
|
47
|
-
constructor(_context: ViewContext, _canvas: HTMLCanvasElement, _ctx: GPUCanvasContext, device: Promise<GPUDevice>);
|
|
50
|
+
constructor(_context: ViewContext, _contentLeft: IObservable<number>, _devicePixelRatio: IObservable<number>, _canvas: HTMLCanvasElement, _ctx: GPUCanvasContext, device: Promise<GPUDevice>);
|
|
48
51
|
private _initWebgpu;
|
|
49
52
|
private _updateBindGroup;
|
|
50
53
|
register(x: number, y: number, width: number, height: number, red: number, green: number, blue: number, alpha: number): IObjectCollectionBufferEntry<RectangleRendererEntrySpec>;
|
|
@@ -10,9 +10,11 @@ import { createObjectCollectionBuffer } from './objectCollectionBuffer.js';
|
|
|
10
10
|
import { rectangleRendererWgsl, RectangleRendererBindingId } from './rectangleRenderer.wgsl.js';
|
|
11
11
|
|
|
12
12
|
class RectangleRenderer extends ViewEventHandler {
|
|
13
|
-
constructor(_context, _canvas, _ctx, device) {
|
|
13
|
+
constructor(_context, _contentLeft, _devicePixelRatio, _canvas, _ctx, device) {
|
|
14
14
|
super();
|
|
15
15
|
this._context = _context;
|
|
16
|
+
this._contentLeft = _contentLeft;
|
|
17
|
+
this._devicePixelRatio = _devicePixelRatio;
|
|
16
18
|
this._canvas = _canvas;
|
|
17
19
|
this._ctx = _ctx;
|
|
18
20
|
this._shapeBindBuffer = this._register(( new MutableDisposable()));
|
|
@@ -192,6 +194,8 @@ class RectangleRenderer extends ViewEventHandler {
|
|
|
192
194
|
pass.setPipeline(this._pipeline);
|
|
193
195
|
pass.setVertexBuffer(0, this._vertexBuffer);
|
|
194
196
|
pass.setBindGroup(0, this._bindGroup);
|
|
197
|
+
const contentLeft = Math.ceil(this._contentLeft.get() * this._devicePixelRatio.get());
|
|
198
|
+
pass.setScissorRect(contentLeft, 0, this._canvas.width - contentLeft, this._canvas.height);
|
|
195
199
|
pass.draw(quadVertices.length / 2, this._shapeCollection.entryCount);
|
|
196
200
|
pass.end();
|
|
197
201
|
const commandBuffer = encoder.finish();
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ViewEventHandler } from "../../../common/viewEventHandler.js";
|
|
2
|
+
import type { ViewportData } from "../../../common/viewLayout/viewLinesViewportData.js";
|
|
3
|
+
import type { ViewContext } from "../../../common/viewModel/viewContext.js";
|
|
4
|
+
import type { ViewLineOptions } from "../../viewParts/viewLines/viewLineOptions.js";
|
|
5
|
+
import type { IGpuRenderStrategy } from "../gpu.js";
|
|
6
|
+
import { GlyphRasterizer } from "../raster/glyphRasterizer.js";
|
|
7
|
+
import type { ViewGpuContext } from "../viewGpuContext.js";
|
|
8
|
+
export declare abstract class BaseRenderStrategy extends ViewEventHandler implements IGpuRenderStrategy {
|
|
9
|
+
protected readonly _context: ViewContext;
|
|
10
|
+
protected readonly _viewGpuContext: ViewGpuContext;
|
|
11
|
+
protected readonly _device: GPUDevice;
|
|
12
|
+
protected readonly _glyphRasterizer: {
|
|
13
|
+
value: GlyphRasterizer;
|
|
14
|
+
};
|
|
15
|
+
get glyphRasterizer(): GlyphRasterizer;
|
|
16
|
+
abstract type: string;
|
|
17
|
+
abstract wgsl: string;
|
|
18
|
+
abstract bindGroupEntries: GPUBindGroupEntry[];
|
|
19
|
+
constructor(_context: ViewContext, _viewGpuContext: ViewGpuContext, _device: GPUDevice, _glyphRasterizer: {
|
|
20
|
+
value: GlyphRasterizer;
|
|
21
|
+
});
|
|
22
|
+
abstract reset(): void;
|
|
23
|
+
abstract update(viewportData: ViewportData, viewLineOptions: ViewLineOptions): number;
|
|
24
|
+
abstract draw(pass: GPURenderPassEncoder, viewportData: ViewportData): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
import { ViewEventHandler } from '../../../common/viewEventHandler.js';
|
|
3
|
+
|
|
4
|
+
class BaseRenderStrategy extends ViewEventHandler {
|
|
5
|
+
get glyphRasterizer() { return this._glyphRasterizer.value; }
|
|
6
|
+
constructor(_context, _viewGpuContext, _device, _glyphRasterizer) {
|
|
7
|
+
super();
|
|
8
|
+
this._context = _context;
|
|
9
|
+
this._viewGpuContext = _viewGpuContext;
|
|
10
|
+
this._device = _device;
|
|
11
|
+
this._glyphRasterizer = _glyphRasterizer;
|
|
12
|
+
this._context.addEventHandler(this);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { BaseRenderStrategy };
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
export declare class FullFileRenderStrategy extends
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { type ViewConfigurationChangedEvent, type ViewDecorationsChangedEvent, type ViewLineMappingChangedEvent, type ViewLinesChangedEvent, type ViewLinesDeletedEvent, type ViewLinesInsertedEvent, type ViewScrollChangedEvent, type ViewThemeChangedEvent, type ViewTokensChangedEvent, type ViewZonesChangedEvent } from "../../../common/viewEvents.js";
|
|
2
|
+
import type { ViewportData } from "../../../common/viewLayout/viewLinesViewportData.js";
|
|
3
|
+
import type { ViewContext } from "../../../common/viewModel/viewContext.js";
|
|
4
|
+
import type { ViewLineOptions } from "../../viewParts/viewLines/viewLineOptions.js";
|
|
5
|
+
import { GlyphRasterizer } from "../raster/glyphRasterizer.js";
|
|
6
|
+
import { ViewGpuContext } from "../viewGpuContext.js";
|
|
7
|
+
import { BaseRenderStrategy } from "./baseRenderStrategy.js";
|
|
8
|
+
export declare class FullFileRenderStrategy extends BaseRenderStrategy {
|
|
9
|
+
static readonly maxSupportedLines = 3000;
|
|
10
|
+
static readonly maxSupportedColumns = 200;
|
|
11
|
+
readonly type = "fullfile";
|
|
12
12
|
readonly wgsl: string;
|
|
13
|
-
private readonly _glyphRasterizer;
|
|
14
13
|
private _cellBindBuffer;
|
|
15
14
|
private _cellValueBuffers;
|
|
16
15
|
private _activeDoubleBufferIndex;
|
|
@@ -22,7 +21,9 @@ export declare class FullFileRenderStrategy extends ViewEventHandler implements
|
|
|
22
21
|
private _scrollInitialized;
|
|
23
22
|
private readonly _queuedBufferUpdates;
|
|
24
23
|
get bindGroupEntries(): GPUBindGroupEntry[];
|
|
25
|
-
constructor(
|
|
24
|
+
constructor(context: ViewContext, viewGpuContext: ViewGpuContext, device: GPUDevice, glyphRasterizer: {
|
|
25
|
+
value: GlyphRasterizer;
|
|
26
|
+
});
|
|
26
27
|
onConfigurationChanged(e: ViewConfigurationChangedEvent): boolean;
|
|
27
28
|
onDecorationsChanged(e: ViewDecorationsChangedEvent): boolean;
|
|
28
29
|
onTokensChanged(e: ViewTokensChangedEvent): boolean;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
import { getActiveWindow } from '
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { ViewEventType } from '../../common/viewEvents.js';
|
|
2
|
+
import { getActiveWindow } from '../../../../base/browser/dom.js';
|
|
3
|
+
import { Color } from '../../../../base/common/color.js';
|
|
4
|
+
import { BugIndicatingError } from '../../../../base/common/errors.js';
|
|
5
|
+
import { CursorColumns } from '../../../common/core/cursorColumns.js';
|
|
6
|
+
import { ViewEventType } from '../../../common/viewEvents.js';
|
|
7
|
+
import { createContentSegmenter } from '../contentSegmenter.js';
|
|
9
8
|
import { fullFileRenderStrategyWgsl } from './fullFileRenderStrategy.wgsl.js';
|
|
10
|
-
import { BindingId } from '
|
|
11
|
-
import { GPULifecycle } from '
|
|
12
|
-
import { quadVertices } from '
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { Color } from '../../../base/common/color.js';
|
|
9
|
+
import { BindingId } from '../gpu.js';
|
|
10
|
+
import { GPULifecycle } from '../gpuDisposable.js';
|
|
11
|
+
import { quadVertices } from '../gpuUtils.js';
|
|
12
|
+
import { ViewGpuContext } from '../viewGpuContext.js';
|
|
13
|
+
import { BaseRenderStrategy } from './baseRenderStrategy.js';
|
|
16
14
|
|
|
17
15
|
var Constants;
|
|
18
16
|
(function (Constants) {
|
|
@@ -29,18 +27,18 @@ var CellBufferInfo;
|
|
|
29
27
|
CellBufferInfo[CellBufferInfo["GlyphIndex"] = 4] = "GlyphIndex";
|
|
30
28
|
CellBufferInfo[CellBufferInfo["TextureIndex"] = 5] = "TextureIndex";
|
|
31
29
|
})(CellBufferInfo || (CellBufferInfo = {}));
|
|
32
|
-
class FullFileRenderStrategy extends
|
|
30
|
+
class FullFileRenderStrategy extends BaseRenderStrategy {
|
|
31
|
+
static { this.maxSupportedLines = 3000; }
|
|
32
|
+
static { this.maxSupportedColumns = 200; }
|
|
33
33
|
get bindGroupEntries() {
|
|
34
34
|
return [
|
|
35
35
|
{ binding: BindingId.Cells, resource: { buffer: this._cellBindBuffer } },
|
|
36
36
|
{ binding: BindingId.ScrollOffset, resource: { buffer: this._scrollOffsetBindBuffer } }
|
|
37
37
|
];
|
|
38
38
|
}
|
|
39
|
-
constructor(
|
|
40
|
-
super();
|
|
41
|
-
this.
|
|
42
|
-
this._viewGpuContext = _viewGpuContext;
|
|
43
|
-
this._device = _device;
|
|
39
|
+
constructor(context, viewGpuContext, device, glyphRasterizer) {
|
|
40
|
+
super(context, viewGpuContext, device, glyphRasterizer);
|
|
41
|
+
this.type = 'fullfile';
|
|
44
42
|
this.wgsl = fullFileRenderStrategyWgsl;
|
|
45
43
|
this._activeDoubleBufferIndex = 0;
|
|
46
44
|
this._upToDateLines = [( new Set()), ( new Set())];
|
|
@@ -48,11 +46,7 @@ class FullFileRenderStrategy extends ViewEventHandler {
|
|
|
48
46
|
this._finalRenderedLine = 0;
|
|
49
47
|
this._scrollInitialized = false;
|
|
50
48
|
this._queuedBufferUpdates = [[], []];
|
|
51
|
-
|
|
52
|
-
const fontFamily = this._context.configuration.options.get(EditorOption.fontFamily);
|
|
53
|
-
const fontSize = this._context.configuration.options.get(EditorOption.fontSize);
|
|
54
|
-
this._glyphRasterizer = this._register(( new MandatoryMutableDisposable(( new GlyphRasterizer(fontSize, fontFamily, this._viewGpuContext.devicePixelRatio.get())))));
|
|
55
|
-
const bufferSize = this._viewGpuContext.maxGpuLines * this._viewGpuContext.maxGpuCols * Constants.IndicesPerCell * Float32Array.BYTES_PER_ELEMENT;
|
|
49
|
+
const bufferSize = FullFileRenderStrategy.maxSupportedLines * FullFileRenderStrategy.maxSupportedColumns * Constants.IndicesPerCell * Float32Array.BYTES_PER_ELEMENT;
|
|
56
50
|
this._cellBindBuffer = this._register(GPULifecycle.createBuffer(this._device, {
|
|
57
51
|
label: 'Monaco full file cell buffer',
|
|
58
52
|
size: bufferSize,
|
|
@@ -73,14 +67,6 @@ class FullFileRenderStrategy extends ViewEventHandler {
|
|
|
73
67
|
onConfigurationChanged(e) {
|
|
74
68
|
this._invalidateAllLines();
|
|
75
69
|
this._queueBufferUpdate(e);
|
|
76
|
-
const fontFamily = this._context.configuration.options.get(EditorOption.fontFamily);
|
|
77
|
-
const fontSize = this._context.configuration.options.get(EditorOption.fontSize);
|
|
78
|
-
const devicePixelRatio = this._viewGpuContext.devicePixelRatio.get();
|
|
79
|
-
if (this._glyphRasterizer.value.fontFamily !== fontFamily ||
|
|
80
|
-
this._glyphRasterizer.value.fontSize !== fontSize ||
|
|
81
|
-
this._glyphRasterizer.value.devicePixelRatio !== devicePixelRatio) {
|
|
82
|
-
this._glyphRasterizer.value = ( new GlyphRasterizer(fontSize, fontFamily, devicePixelRatio));
|
|
83
|
-
}
|
|
84
70
|
return true;
|
|
85
71
|
}
|
|
86
72
|
onDecorationsChanged(e) {
|
|
@@ -158,32 +144,36 @@ class FullFileRenderStrategy extends ViewEventHandler {
|
|
|
158
144
|
}
|
|
159
145
|
update(viewportData, viewLineOptions) {
|
|
160
146
|
let chars = '';
|
|
147
|
+
let segment;
|
|
148
|
+
let charWidth = 0;
|
|
161
149
|
let y = 0;
|
|
162
150
|
let x = 0;
|
|
163
151
|
let absoluteOffsetX = 0;
|
|
164
152
|
let absoluteOffsetY = 0;
|
|
165
|
-
let
|
|
153
|
+
let tabXOffset = 0;
|
|
166
154
|
let glyph;
|
|
167
155
|
let cellIndex = 0;
|
|
168
156
|
let tokenStartIndex = 0;
|
|
169
157
|
let tokenEndIndex = 0;
|
|
170
158
|
let tokenMetadata = 0;
|
|
171
|
-
let
|
|
159
|
+
let decorationStyleSetBold;
|
|
160
|
+
let decorationStyleSetColor;
|
|
161
|
+
let decorationStyleSetOpacity;
|
|
172
162
|
let lineData;
|
|
173
163
|
let decoration;
|
|
174
|
-
let content = '';
|
|
175
164
|
let fillStartIndex = 0;
|
|
176
165
|
let fillEndIndex = 0;
|
|
177
166
|
let tokens;
|
|
178
167
|
const dpr = getActiveWindow().devicePixelRatio;
|
|
168
|
+
let contentSegmenter;
|
|
179
169
|
if (!this._scrollInitialized) {
|
|
180
170
|
this.onScrollChanged();
|
|
181
171
|
this._scrollInitialized = true;
|
|
182
172
|
}
|
|
183
173
|
const cellBuffer = ( new Float32Array(this._cellValueBuffers[this._activeDoubleBufferIndex]));
|
|
184
|
-
const lineIndexCount =
|
|
174
|
+
const lineIndexCount = FullFileRenderStrategy.maxSupportedColumns * Constants.IndicesPerCell;
|
|
185
175
|
const upToDateLines = this._upToDateLines[this._activeDoubleBufferIndex];
|
|
186
|
-
let dirtyLineStart =
|
|
176
|
+
let dirtyLineStart = 3000;
|
|
187
177
|
let dirtyLineEnd = 0;
|
|
188
178
|
const queuedBufferUpdates = this._queuedBufferUpdates[this._activeDoubleBufferIndex];
|
|
189
179
|
while (queuedBufferUpdates.length) {
|
|
@@ -199,9 +189,9 @@ class FullFileRenderStrategy extends ViewEventHandler {
|
|
|
199
189
|
break;
|
|
200
190
|
}
|
|
201
191
|
case ViewEventType.ViewLinesDeleted: {
|
|
202
|
-
const deletedLineContentStartIndex = (e.fromLineNumber - 1) *
|
|
203
|
-
const deletedLineContentEndIndex = (e.toLineNumber) *
|
|
204
|
-
const nullContentStartIndex = (this._finalRenderedLine - (e.toLineNumber - e.fromLineNumber + 1)) *
|
|
192
|
+
const deletedLineContentStartIndex = (e.fromLineNumber - 1) * FullFileRenderStrategy.maxSupportedColumns * Constants.IndicesPerCell;
|
|
193
|
+
const deletedLineContentEndIndex = (e.toLineNumber) * FullFileRenderStrategy.maxSupportedColumns * Constants.IndicesPerCell;
|
|
194
|
+
const nullContentStartIndex = (this._finalRenderedLine - (e.toLineNumber - e.fromLineNumber + 1)) * FullFileRenderStrategy.maxSupportedColumns * Constants.IndicesPerCell;
|
|
205
195
|
cellBuffer.set(cellBuffer.subarray(deletedLineContentEndIndex), deletedLineContentStartIndex);
|
|
206
196
|
cellBuffer.fill(0, nullContentStartIndex);
|
|
207
197
|
dirtyLineStart = Math.min(dirtyLineStart, e.fromLineNumber);
|
|
@@ -213,8 +203,8 @@ class FullFileRenderStrategy extends ViewEventHandler {
|
|
|
213
203
|
}
|
|
214
204
|
for (y = viewportData.startLineNumber; y <= viewportData.endLineNumber; y++) {
|
|
215
205
|
if (!this._viewGpuContext.canRender(viewLineOptions, viewportData, y)) {
|
|
216
|
-
fillStartIndex = ((y - 1) *
|
|
217
|
-
fillEndIndex = (y *
|
|
206
|
+
fillStartIndex = ((y - 1) * FullFileRenderStrategy.maxSupportedColumns) * Constants.IndicesPerCell;
|
|
207
|
+
fillEndIndex = (y * FullFileRenderStrategy.maxSupportedColumns) * Constants.IndicesPerCell;
|
|
218
208
|
cellBuffer.fill(0, fillStartIndex, fillEndIndex);
|
|
219
209
|
dirtyLineStart = Math.min(dirtyLineStart, y);
|
|
220
210
|
dirtyLineEnd = Math.max(dirtyLineEnd, y);
|
|
@@ -226,8 +216,10 @@ class FullFileRenderStrategy extends ViewEventHandler {
|
|
|
226
216
|
dirtyLineStart = Math.min(dirtyLineStart, y);
|
|
227
217
|
dirtyLineEnd = Math.max(dirtyLineEnd, y);
|
|
228
218
|
lineData = viewportData.getViewLineRenderingData(y);
|
|
229
|
-
|
|
230
|
-
|
|
219
|
+
tabXOffset = 0;
|
|
220
|
+
contentSegmenter = createContentSegmenter(lineData, viewLineOptions);
|
|
221
|
+
charWidth = viewLineOptions.spaceWidth * dpr;
|
|
222
|
+
absoluteOffsetX = 0;
|
|
231
223
|
tokens = lineData.tokens;
|
|
232
224
|
tokenStartIndex = lineData.minColumn - 1;
|
|
233
225
|
tokenEndIndex = 0;
|
|
@@ -238,11 +230,20 @@ class FullFileRenderStrategy extends ViewEventHandler {
|
|
|
238
230
|
}
|
|
239
231
|
tokenMetadata = tokens.getMetadata(tokenIndex);
|
|
240
232
|
for (x = tokenStartIndex; x < tokenEndIndex; x++) {
|
|
241
|
-
if (x >
|
|
233
|
+
if (x > FullFileRenderStrategy.maxSupportedColumns) {
|
|
242
234
|
break;
|
|
243
235
|
}
|
|
244
|
-
|
|
245
|
-
|
|
236
|
+
segment = contentSegmenter.getSegmentAtIndex(x);
|
|
237
|
+
if (segment === undefined) {
|
|
238
|
+
continue;
|
|
239
|
+
}
|
|
240
|
+
chars = segment;
|
|
241
|
+
if (!(lineData.isBasicASCII && viewLineOptions.useMonospaceOptimizations)) {
|
|
242
|
+
charWidth = this.glyphRasterizer.getTextMetrics(chars).width;
|
|
243
|
+
}
|
|
244
|
+
decorationStyleSetColor = undefined;
|
|
245
|
+
decorationStyleSetBold = undefined;
|
|
246
|
+
decorationStyleSetOpacity = undefined;
|
|
246
247
|
for (decoration of lineData.inlineDecorations) {
|
|
247
248
|
if ((y < decoration.range.startLineNumber || y > decoration.range.endLineNumber) ||
|
|
248
249
|
(y === decoration.range.startLineNumber && x < decoration.range.startColumn - 1) ||
|
|
@@ -259,7 +260,22 @@ class FullFileRenderStrategy extends ViewEventHandler {
|
|
|
259
260
|
if (!parsedColor) {
|
|
260
261
|
throw ( new BugIndicatingError('Invalid color format ' + value));
|
|
261
262
|
}
|
|
262
|
-
|
|
263
|
+
decorationStyleSetColor = parsedColor.toNumber32Bit();
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
case 'font-weight': {
|
|
267
|
+
const parsedValue = parseCssFontWeight(value);
|
|
268
|
+
if (parsedValue >= 400) {
|
|
269
|
+
decorationStyleSetBold = true;
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
decorationStyleSetBold = false;
|
|
273
|
+
}
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
case 'opacity': {
|
|
277
|
+
const parsedValue = parseCssOpacity(value);
|
|
278
|
+
decorationStyleSetOpacity = parsedValue;
|
|
263
279
|
break;
|
|
264
280
|
}
|
|
265
281
|
default: throw ( new BugIndicatingError('Unexpected inline decoration style'));
|
|
@@ -268,33 +284,42 @@ class FullFileRenderStrategy extends ViewEventHandler {
|
|
|
268
284
|
}
|
|
269
285
|
}
|
|
270
286
|
if (chars === ' ' || chars === '\t') {
|
|
271
|
-
cellIndex = ((y - 1) *
|
|
287
|
+
cellIndex = ((y - 1) * FullFileRenderStrategy.maxSupportedColumns + x) * Constants.IndicesPerCell;
|
|
272
288
|
cellBuffer.fill(0, cellIndex, cellIndex + CellBufferInfo.FloatsPerEntry);
|
|
273
289
|
if (chars === '\t') {
|
|
274
|
-
|
|
290
|
+
const offsetBefore = x + tabXOffset;
|
|
291
|
+
tabXOffset = CursorColumns.nextRenderTabStop(x + tabXOffset, lineData.tabSize);
|
|
292
|
+
absoluteOffsetX += charWidth * (tabXOffset - offsetBefore);
|
|
293
|
+
tabXOffset -= x + 1;
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
absoluteOffsetX += charWidth;
|
|
275
297
|
}
|
|
276
298
|
continue;
|
|
277
299
|
}
|
|
278
|
-
|
|
279
|
-
|
|
300
|
+
const decorationStyleSetId = ViewGpuContext.decorationStyleCache.getOrCreateEntry(decorationStyleSetColor, decorationStyleSetBold, decorationStyleSetOpacity);
|
|
301
|
+
glyph = this._viewGpuContext.atlas.getGlyph(this.glyphRasterizer, chars, tokenMetadata, decorationStyleSetId, absoluteOffsetX);
|
|
280
302
|
absoluteOffsetY = Math.round(
|
|
281
303
|
viewportData.relativeVerticalOffset[y - viewportData.startLineNumber] * dpr +
|
|
282
304
|
Math.floor((viewportData.lineHeight * dpr - (glyph.fontBoundingBoxAscent + glyph.fontBoundingBoxDescent)) / 2) +
|
|
283
305
|
glyph.fontBoundingBoxAscent);
|
|
284
|
-
cellIndex = ((y - 1) *
|
|
285
|
-
cellBuffer[cellIndex + CellBufferInfo.Offset_X] = absoluteOffsetX;
|
|
306
|
+
cellIndex = ((y - 1) * FullFileRenderStrategy.maxSupportedColumns + x) * Constants.IndicesPerCell;
|
|
307
|
+
cellBuffer[cellIndex + CellBufferInfo.Offset_X] = Math.floor(absoluteOffsetX);
|
|
286
308
|
cellBuffer[cellIndex + CellBufferInfo.Offset_Y] = absoluteOffsetY;
|
|
287
309
|
cellBuffer[cellIndex + CellBufferInfo.GlyphIndex] = glyph.glyphIndex;
|
|
288
310
|
cellBuffer[cellIndex + CellBufferInfo.TextureIndex] = glyph.pageIndex;
|
|
311
|
+
absoluteOffsetX += charWidth;
|
|
289
312
|
}
|
|
290
313
|
tokenStartIndex = tokenEndIndex;
|
|
291
314
|
}
|
|
292
|
-
fillStartIndex = ((y - 1) *
|
|
293
|
-
fillEndIndex = (y *
|
|
315
|
+
fillStartIndex = ((y - 1) * FullFileRenderStrategy.maxSupportedColumns + tokenEndIndex) * Constants.IndicesPerCell;
|
|
316
|
+
fillEndIndex = (y * FullFileRenderStrategy.maxSupportedColumns) * Constants.IndicesPerCell;
|
|
294
317
|
cellBuffer.fill(0, fillStartIndex, fillEndIndex);
|
|
295
318
|
upToDateLines.add(y);
|
|
296
319
|
}
|
|
297
320
|
const visibleObjectCount = (viewportData.endLineNumber - viewportData.startLineNumber + 1) * lineIndexCount;
|
|
321
|
+
dirtyLineStart = Math.min(dirtyLineStart, FullFileRenderStrategy.maxSupportedLines);
|
|
322
|
+
dirtyLineEnd = Math.min(dirtyLineEnd, FullFileRenderStrategy.maxSupportedLines);
|
|
298
323
|
if (dirtyLineStart <= dirtyLineEnd) {
|
|
299
324
|
this._device.queue.writeBuffer(this._cellBindBuffer, (dirtyLineStart - 1) * lineIndexCount * Float32Array.BYTES_PER_ELEMENT, cellBuffer.buffer, (dirtyLineStart - 1) * lineIndexCount * Float32Array.BYTES_PER_ELEMENT, (dirtyLineEnd - dirtyLineStart + 1) * lineIndexCount * Float32Array.BYTES_PER_ELEMENT);
|
|
300
325
|
}
|
|
@@ -307,12 +332,30 @@ class FullFileRenderStrategy extends ViewEventHandler {
|
|
|
307
332
|
if (this._visibleObjectCount <= 0) {
|
|
308
333
|
throw ( new BugIndicatingError('Attempt to draw 0 objects'));
|
|
309
334
|
}
|
|
310
|
-
pass.draw(quadVertices.length / 2, this._visibleObjectCount, undefined, (viewportData.startLineNumber - 1) *
|
|
335
|
+
pass.draw(quadVertices.length / 2, this._visibleObjectCount, undefined, (viewportData.startLineNumber - 1) * FullFileRenderStrategy.maxSupportedColumns);
|
|
311
336
|
}
|
|
312
337
|
_queueBufferUpdate(e) {
|
|
313
338
|
this._queuedBufferUpdates[0].push(e);
|
|
314
339
|
this._queuedBufferUpdates[1].push(e);
|
|
315
340
|
}
|
|
316
341
|
}
|
|
342
|
+
function parseCssFontWeight(value) {
|
|
343
|
+
switch (value) {
|
|
344
|
+
case 'lighter':
|
|
345
|
+
case 'normal': return 400;
|
|
346
|
+
case 'bolder':
|
|
347
|
+
case 'bold': return 700;
|
|
348
|
+
}
|
|
349
|
+
return parseInt(value);
|
|
350
|
+
}
|
|
351
|
+
function parseCssOpacity(value) {
|
|
352
|
+
if (value.endsWith('%')) {
|
|
353
|
+
return parseFloat(value.substring(0, value.length - 1)) / 100;
|
|
354
|
+
}
|
|
355
|
+
if (value.match(/^\d+(?:\.\d*)/)) {
|
|
356
|
+
return parseFloat(value);
|
|
357
|
+
}
|
|
358
|
+
return 1;
|
|
359
|
+
}
|
|
317
360
|
|
|
318
361
|
export { FullFileRenderStrategy };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { TextureAtlas } from '
|
|
3
|
-
import { TextureAtlasPage } from '
|
|
4
|
-
import { BindingId } from '
|
|
2
|
+
import { TextureAtlas } from '../atlas/textureAtlas.js';
|
|
3
|
+
import { TextureAtlasPage } from '../atlas/textureAtlasPage.js';
|
|
4
|
+
import { BindingId } from '../gpu.js';
|
|
5
5
|
|
|
6
6
|
const fullFileRenderStrategyWgsl = `
|
|
7
7
|
struct GlyphInfo {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type ViewConfigurationChangedEvent, type ViewDecorationsChangedEvent, type ViewLineMappingChangedEvent, type ViewLinesChangedEvent, type ViewLinesDeletedEvent, type ViewLinesInsertedEvent, type ViewScrollChangedEvent, type ViewThemeChangedEvent, type ViewTokensChangedEvent, type ViewZonesChangedEvent } from "../../../common/viewEvents.js";
|
|
2
|
+
import type { ViewportData } from "../../../common/viewLayout/viewLinesViewportData.js";
|
|
3
|
+
import type { ViewContext } from "../../../common/viewModel/viewContext.js";
|
|
4
|
+
import type { ViewLineOptions } from "../../viewParts/viewLines/viewLineOptions.js";
|
|
5
|
+
import { GlyphRasterizer } from "../raster/glyphRasterizer.js";
|
|
6
|
+
import { ViewGpuContext } from "../viewGpuContext.js";
|
|
7
|
+
import { BaseRenderStrategy } from "./baseRenderStrategy.js";
|
|
8
|
+
export declare class ViewportRenderStrategy extends BaseRenderStrategy {
|
|
9
|
+
static readonly maxSupportedColumns = 2000;
|
|
10
|
+
readonly type = "viewport";
|
|
11
|
+
readonly wgsl: string;
|
|
12
|
+
private _cellBindBufferLineCapacity;
|
|
13
|
+
private _cellBindBuffer;
|
|
14
|
+
private _cellValueBuffers;
|
|
15
|
+
private _activeDoubleBufferIndex;
|
|
16
|
+
private _visibleObjectCount;
|
|
17
|
+
private _scrollOffsetBindBuffer;
|
|
18
|
+
private _scrollOffsetValueBuffer;
|
|
19
|
+
private _scrollInitialized;
|
|
20
|
+
get bindGroupEntries(): GPUBindGroupEntry[];
|
|
21
|
+
private readonly _onDidChangeBindGroupEntries;
|
|
22
|
+
readonly onDidChangeBindGroupEntries: import("../../../../base/common/event.js").Event<void>;
|
|
23
|
+
constructor(context: ViewContext, viewGpuContext: ViewGpuContext, device: GPUDevice, glyphRasterizer: {
|
|
24
|
+
value: GlyphRasterizer;
|
|
25
|
+
});
|
|
26
|
+
private _rebuildCellBuffer;
|
|
27
|
+
onConfigurationChanged(e: ViewConfigurationChangedEvent): boolean;
|
|
28
|
+
onDecorationsChanged(e: ViewDecorationsChangedEvent): boolean;
|
|
29
|
+
onTokensChanged(e: ViewTokensChangedEvent): boolean;
|
|
30
|
+
onLinesDeleted(e: ViewLinesDeletedEvent): boolean;
|
|
31
|
+
onLinesInserted(e: ViewLinesInsertedEvent): boolean;
|
|
32
|
+
onLinesChanged(e: ViewLinesChangedEvent): boolean;
|
|
33
|
+
onScrollChanged(e?: ViewScrollChangedEvent): boolean;
|
|
34
|
+
onThemeChanged(e: ViewThemeChangedEvent): boolean;
|
|
35
|
+
onLineMappingChanged(e: ViewLineMappingChangedEvent): boolean;
|
|
36
|
+
onZonesChanged(e: ViewZonesChangedEvent): boolean;
|
|
37
|
+
reset(): void;
|
|
38
|
+
update(viewportData: ViewportData, viewLineOptions: ViewLineOptions): number;
|
|
39
|
+
draw(pass: GPURenderPassEncoder, viewportData: ViewportData): void;
|
|
40
|
+
}
|