@codingame/monaco-vscode-api 13.1.7 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extensions.d.ts +3 -2
- package/missing-services.js +177 -63
- package/monaco.d.ts +1 -1
- package/package.json +8 -8
- package/services.d.ts +2 -2
- package/services.js +2 -3
- package/vscode/src/vs/base/browser/cssValue.js +1 -1
- package/vscode/src/vs/base/browser/dom.js +4 -1
- package/vscode/src/vs/base/browser/markdownRenderer.js +12 -0
- package/vscode/src/vs/base/browser/touch.js +2 -1
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/button/button.d.ts +2 -1
- package/vscode/src/vs/base/browser/ui/button/button.js +10 -6
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.d.ts +2 -1
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +2 -2
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +1 -1
- package/vscode/src/vs/base/browser/ui/list/listView.d.ts +10 -0
- package/vscode/src/vs/base/browser/ui/list/listView.js +102 -6
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/menu/menu.js +4 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +6 -6
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.d.ts +1 -2
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +18 -8
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +2 -2
- package/vscode/src/vs/base/common/actions.d.ts +1 -1
- package/vscode/src/vs/base/common/arrays.d.ts +1 -2
- package/vscode/src/vs/base/common/arrays.js +2 -2
- package/vscode/src/vs/base/common/assert.d.ts +1 -1
- package/vscode/src/vs/base/common/assert.js +5 -2
- package/vscode/src/vs/base/common/async.js +16 -2
- package/vscode/src/vs/base/common/codicons.d.ts +1 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +1 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +1 -0
- package/vscode/src/vs/base/common/color.d.ts +2 -2
- package/vscode/src/vs/base/common/color.js +4 -4
- package/vscode/src/vs/base/common/decorators.d.ts +1 -0
- package/vscode/src/vs/base/common/decorators.js +2 -0
- package/vscode/src/vs/base/common/errors.d.ts +2 -0
- package/vscode/src/vs/base/common/errors.js +10 -2
- package/vscode/src/vs/base/common/event.d.ts +3 -3
- package/vscode/src/vs/base/common/event.js +2 -2
- package/vscode/src/vs/base/common/filters.js +1 -1
- package/vscode/src/vs/base/common/iterator.d.ts +1 -1
- package/vscode/src/vs/base/common/iterator.js +8 -2
- package/vscode/src/vs/base/common/lifecycle.d.ts +7 -0
- package/vscode/src/vs/base/common/map.d.ts +8 -16
- package/vscode/src/vs/base/common/map.js +43 -30
- package/vscode/src/vs/base/common/network.d.ts +2 -2
- package/vscode/src/vs/base/common/network.js +4 -4
- package/vscode/src/vs/base/common/numbers.d.ts +1 -0
- package/vscode/src/vs/base/common/observableInternal/autorun.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/autorun.js +14 -1
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +13 -9
- package/vscode/src/vs/base/common/observableInternal/base.js +7 -1
- package/vscode/src/vs/base/common/observableInternal/derived.d.ts +5 -3
- package/vscode/src/vs/base/common/observableInternal/derived.js +31 -4
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/lazyObservableValue.js +5 -2
- package/vscode/src/vs/base/common/observableInternal/logging.d.ts +10 -4
- package/vscode/src/vs/base/common/observableInternal/logging.js +310 -1
- package/vscode/src/vs/base/common/observableInternal/utils.d.ts +9 -9
- package/vscode/src/vs/base/common/observableInternal/utils.js +13 -4
- package/vscode/src/vs/base/common/path.js +1 -2
- package/vscode/src/vs/base/common/product.d.ts +5 -0
- package/vscode/src/vs/base/common/stream.d.ts +1 -1
- package/vscode/src/vs/base/common/stream.js +13 -5
- package/vscode/src/vs/base/common/strings.d.ts +1 -0
- package/vscode/src/vs/base/common/strings.js +19 -9
- package/vscode/src/vs/base/common/types.d.ts +2 -1
- package/vscode/src/vs/base/common/types.js +9 -4
- package/vscode/src/vs/base/common/uuid.js +1 -50
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +2 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +26 -12
- package/vscode/src/vs/editor/browser/editorDom.js +3 -3
- package/vscode/src/vs/editor/browser/editorExtensions.js +15 -0
- package/vscode/src/vs/editor/browser/gpu/atlas/atlas.d.ts +7 -2
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.d.ts +1 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.js +34 -27
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasPage.d.ts +1 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasPage.js +8 -8
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasSlabAllocator.js +3 -3
- package/vscode/src/vs/editor/browser/gpu/contentSegmenter.d.ts +7 -0
- package/vscode/src/vs/editor/browser/gpu/contentSegmenter.js +49 -0
- package/vscode/src/vs/editor/browser/gpu/{decorationCssRuleExtractor.d.ts → css/decorationCssRuleExtractor.d.ts} +1 -1
- package/vscode/src/vs/editor/browser/gpu/{decorationCssRuleExtractor.js → css/decorationCssRuleExtractor.js} +2 -2
- package/vscode/src/vs/editor/browser/gpu/css/decorationStyleCache.d.ts +15 -0
- package/vscode/src/vs/editor/browser/gpu/css/decorationStyleCache.js +37 -0
- package/vscode/src/vs/editor/browser/gpu/{media → css/media}/decorationCssRuleExtractor.css.js +1 -1
- package/vscode/src/vs/editor/browser/gpu/gpu.d.ts +6 -2
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.d.ts +5 -2
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.js +57 -14
- package/vscode/src/vs/editor/browser/gpu/raster/raster.d.ts +2 -1
- package/vscode/src/vs/editor/browser/gpu/rectangleRenderer.d.ts +4 -1
- package/vscode/src/vs/editor/browser/gpu/rectangleRenderer.js +5 -1
- package/vscode/src/vs/editor/browser/gpu/renderStrategy/baseRenderStrategy.d.ts +25 -0
- package/vscode/src/vs/editor/browser/gpu/renderStrategy/baseRenderStrategy.js +16 -0
- package/vscode/src/vs/editor/browser/gpu/{fullFileRenderStrategy.d.ts → renderStrategy/fullFileRenderStrategy.d.ts} +14 -13
- package/vscode/src/vs/editor/browser/gpu/{fullFileRenderStrategy.js → renderStrategy/fullFileRenderStrategy.js} +100 -57
- package/vscode/src/vs/editor/browser/gpu/{fullFileRenderStrategy.wgsl.js → renderStrategy/fullFileRenderStrategy.wgsl.js} +3 -3
- package/vscode/src/vs/editor/browser/gpu/renderStrategy/viewportRenderStrategy.d.ts +40 -0
- package/vscode/src/vs/editor/browser/gpu/renderStrategy/viewportRenderStrategy.js +287 -0
- package/vscode/src/vs/editor/browser/gpu/taskQueue.d.ts +4 -3
- package/vscode/src/vs/editor/browser/gpu/taskQueue.js +17 -2
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.d.ts +8 -9
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +45 -34
- package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +28 -21
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +68 -2
- package/vscode/src/vs/editor/browser/point.d.ts +9 -0
- package/vscode/src/vs/editor/browser/point.js +22 -0
- package/vscode/src/vs/editor/browser/rect.d.ts +30 -0
- package/vscode/src/vs/editor/browser/rect.js +131 -0
- package/vscode/src/vs/editor/browser/services/editorWorkerService.d.ts +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +1 -1
- package/vscode/src/vs/editor/browser/view/viewLayer.d.ts +1 -1
- package/vscode/src/vs/editor/browser/view/viewLayer.js +8 -1
- package/vscode/src/vs/editor/browser/view.d.ts +1 -0
- package/vscode/src/vs/editor/browser/view.js +9 -5
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.d.ts +7 -3
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +140 -56
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +1 -0
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +5 -0
- package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.d.ts +2 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js +8 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.d.ts +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +14 -9
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.d.ts +12 -10
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +12 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.d.ts +4 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +29 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.d.ts +28 -28
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.d.ts +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +0 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.d.ts +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.d.ts +2 -2
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.d.ts +3 -6
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +3 -10
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +8 -6
- package/vscode/src/vs/editor/common/config/editorOptions.js +409 -392
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/offsetEdit.d.ts +3 -0
- package/vscode/src/vs/editor/common/core/offsetEdit.js +9 -0
- package/vscode/src/vs/editor/common/core/offsetRange.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/offsetRange.js +3 -0
- package/vscode/src/vs/editor/common/core/position.js +1 -1
- package/vscode/src/vs/editor/common/core/positionToOffset.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/positionToOffset.js +20 -1
- package/vscode/src/vs/editor/common/core/range.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/range.js +3 -0
- package/vscode/src/vs/editor/common/core/textEdit.d.ts +0 -6
- package/vscode/src/vs/editor/common/core/textEdit.js +0 -1
- package/vscode/src/vs/editor/common/core/textLength.js +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +10 -7
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.d.ts +2 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js +6 -6
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.d.ts +1 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js +20 -0
- package/vscode/src/vs/editor/common/diff/linesDiffComputer.d.ts +1 -0
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +1 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +1 -22
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languages/defaultDocumentColorsComputer.js +1 -1
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +5 -5
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +21 -25
- package/vscode/src/vs/editor/common/languages.js +27 -27
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/model/textModel.d.ts +1 -0
- package/vscode/src/vs/editor/common/model/textModel.js +6 -3
- package/vscode/src/vs/editor/common/model/textModelTokens.d.ts +2 -2
- package/vscode/src/vs/editor/common/model/textModelTokens.js +11 -18
- package/vscode/src/vs/editor/common/model/tokenStore.d.ts +59 -0
- package/vscode/src/vs/editor/common/model/tokenStore.js +384 -0
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.d.ts +5 -5
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +10 -15
- package/vscode/src/vs/editor/common/model/tokens.d.ts +2 -2
- package/vscode/src/vs/editor/common/model/treeSitterTokenStoreService.d.ts +44 -0
- package/vscode/src/vs/editor/common/model/treeSitterTokenStoreService.js +114 -0
- package/vscode/src/vs/editor/common/model/treeSitterTokens.d.ts +4 -5
- package/vscode/src/vs/editor/common/model/treeSitterTokens.js +18 -10
- package/vscode/src/vs/editor/common/services/editorSimpleWorker.d.ts +1 -1
- package/vscode/src/vs/editor/common/services/editorWorker.d.ts +1 -1
- package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +1 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.d.ts +1 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +0 -1
- package/vscode/src/vs/editor/common/services/treeSitterParserService.d.ts +18 -5
- package/vscode/src/vs/editor/common/standaloneStrings.d.ts +3 -0
- package/vscode/src/vs/editor/common/standaloneStrings.js +54 -38
- package/vscode/src/vs/editor/common/tokenizationTextModelPart.d.ts +1 -13
- package/vscode/src/vs/editor/common/tokenizationTextModelPart.js +1 -13
- package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +1 -0
- package/vscode/src/vs/editor/common/tokens/lineTokens.js +3 -0
- package/vscode/src/vs/editor/common/tokens/tokenArray.d.ts +5 -0
- package/vscode/src/vs/editor/common/tokens/tokenArray.js +24 -0
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +1 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +1 -1
- package/vscode/src/vs/editor/contrib/codelens/browser/codelens.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/codelens/browser/codelens.js +7 -5
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPicker.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPicker.js +12 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerContribution.d.ts +1 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerContribution.js +2 -9
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +3 -5
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerParticipant.d.ts +12 -8
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerParticipant.js +41 -41
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerWidget.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerWidget.js +13 -8
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +32 -33
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +20 -17
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +32 -30
- package/vscode/src/vs/editor/contrib/find/browser/replaceWidgetHistory.d.ts +21 -0
- package/vscode/src/vs/editor/contrib/find/browser/replaceWidgetHistory.js +76 -0
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +40 -36
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +56 -30
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +43 -41
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +3 -2
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +5 -4
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +5 -5
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.d.ts +1 -3
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +54 -59
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +47 -16
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +27 -15
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +10 -1
- package/vscode/src/vs/editor/contrib/hover/browser/glyphHoverWidget.js +2 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hover.css.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +4 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +38 -25
- package/vscode/src/vs/editor/contrib/hover/browser/hoverContribution.js +2 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hoverOperation.js +1 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverTypes.d.ts +4 -1
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +65 -33
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +38 -24
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.d.ts +7 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +50 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +8 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/computeGhostText.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/computeGhostText.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +18 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +55 -27
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +22 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +199 -21
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.js +3 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +5 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +38 -15
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +10 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.d.ts +16 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +65 -30
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.d.ts +6 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js +7 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/deletionView.d.ts +29 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/deletionView.js +141 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/gutterIndicatorMenu.d.ts +19 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/gutterIndicatorMenu.js +143 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/gutterIndicatorView.d.ts +37 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/gutterIndicatorView.js +259 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{inlineEditsIndicatorView.d.ts → indicatorView.d.ts} +1 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{inlineEditsIndicatorView.js → indicatorView.js} +9 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineDiffView.d.ts +5 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineDiffView.js +39 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/insertionView.d.ts +32 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/insertionView.js +204 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/sideBySideDiff.d.ts +71 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/sideBySideDiff.js +584 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils.d.ts +123 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils.js +348 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css.js +6 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.d.ts +41 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.js +365 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{inlineEditsViewAndDiffProducer.d.ts → viewAndDiffProducer.d.ts} +7 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/viewAndDiffProducer.js +92 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/wordReplacementView.d.ts +58 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/wordReplacementView.js +520 -0
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/getLinks.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/links/browser/getLinks.js +16 -12
- package/vscode/src/vs/editor/contrib/links/browser/links.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/links/browser/links.js +13 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.d.ts +1 -2
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +18 -26
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css.js +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.d.ts +2 -3
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +19 -15
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.d.ts +14 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +48 -19
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +25 -6
- package/vscode/src/vs/editor/contrib/suggest/browser/media/suggest.css.js +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +20 -20
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +9 -7
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +3 -7
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +5 -1
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +8 -3
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.d.ts +4 -0
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +3 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +2 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterService.d.ts +3 -7
- package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterService.js +1 -1
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +3 -2
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.js +1 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleViewRegistry.d.ts +4 -4
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +52 -52
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +4 -4
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.d.ts +39 -0
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +145 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.d.ts +1 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +6 -6
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +4 -1
- package/vscode/src/vs/platform/actions/common/actions.js +9 -6
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/commands/common/commands.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configuration.d.ts +4 -1
- package/vscode/src/vs/platform/configuration/common/configuration.js +3 -0
- package/vscode/src/vs/platform/configuration/common/configurationModels.d.ts +2 -2
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +39 -21
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +9 -4
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +25 -15
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/contextview/browser/contextView.service.d.ts +2 -2
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/environment/common/argv.d.ts +2 -0
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +5 -3
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +17 -6
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +5 -5
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.d.ts +2 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +10 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.d.ts +3 -5
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +8 -13
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.service.d.ts +2 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.d.ts +20 -14
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +127 -125
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.service.d.ts +8 -9
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +56 -25
- package/vscode/src/vs/platform/extensions/common/extensions.js +8 -1
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +11 -8
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +12 -9
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/instantiation/common/extensions.d.ts +3 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/label/common/label.service.d.ts +2 -1
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.d.ts +1 -0
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.d.ts +6 -0
- package/vscode/src/vs/platform/log/common/log.js +18 -9
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +5 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +19 -9
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.d.ts +11 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +241 -12
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.d.ts +4 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +3 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +2 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.service.d.ts +4 -0
- package/vscode/src/vs/platform/request/common/request.d.ts +2 -2
- package/vscode/src/vs/platform/request/common/request.js +171 -112
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.d.ts +2 -0
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +3 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +6 -2
- package/vscode/src/vs/platform/terminal/common/terminal.js +5 -1
- package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +96 -96
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +45 -45
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.d.ts +7 -0
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +17 -7
- package/vscode/src/vs/platform/theme/common/theme.d.ts +6 -0
- package/vscode/src/vs/platform/theme/common/theme.js +8 -1
- package/vscode/src/vs/platform/theme/common/themeService.d.ts +12 -3
- package/vscode/src/vs/platform/theme/common/themeService.js +5 -5
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +7 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +3 -3
- package/vscode/src/vs/platform/window/common/window.d.ts +6 -1
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/platform/workspaces/common/workspaces.service.d.ts +2 -2
- package/vscode/src/vs/workbench/api/browser/statusBarService.d.ts +3 -2
- package/vscode/src/vs/workbench/api/browser/statusBarService.js +3 -2
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +10 -14
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +18 -11
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +1 -20
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -0
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +37 -10
- package/vscode/src/vs/workbench/api/common/extHostCodeMapper.js +4 -18
- package/vscode/src/vs/workbench/api/common/extHostCommands.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostComments.js +3 -5
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.d.ts +16 -0
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +4 -0
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDialogs.d.ts +1 -2
- package/vscode/src/vs/workbench/api/common/extHostDialogs.js +1 -5
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLabelService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +0 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +29 -65
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +3 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +33 -13
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +3 -2
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMemento.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.d.ts +10 -2
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +47 -7
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +12 -8
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +3 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +66 -5
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +18 -1
- package/vscode/src/vs/workbench/api/common/extHostTimeline.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +4 -13
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +7 -61
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +24 -3
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +37 -5
- package/vscode/src/vs/workbench/api/common/extHostVariableResolverService.js +22 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +3 -2
- package/vscode/src/vs/workbench/api/common/extensionHostMain.js +17 -8
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.d.ts +12 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +247 -0
- package/vscode/src/vs/workbench/common/activity.d.ts +2 -0
- package/vscode/src/vs/workbench/common/activity.js +6 -0
- package/vscode/src/vs/workbench/common/configuration.js +12 -12
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +44 -0
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +166 -0
- package/vscode/src/vs/workbench/common/editor.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +159 -164
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +152 -142
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +16 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +521 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +136 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +51 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.js +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorActions.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorActions.js +309 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorController.d.ts +81 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorController.js +681 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +169 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorOverlay.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorOverlay.js +296 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotasService.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotasService.js +198 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotasService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/screenshot.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/screenshot.js +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditorController.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditorOverlay.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/annotations.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +134 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +16 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +48 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.service.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +15 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +61 -29
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +19 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +17 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +3 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +444 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +991 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +112 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +181 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.js +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.d.ts +234 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +375 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +38 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +42 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +10 -5
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +168 -0
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +9 -19
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +14 -10
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +64 -64
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.d.ts +167 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +85 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/logs/common/defaultLogLevels.service.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditContext.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditContext.js +7 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizer.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.d.ts +602 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +143 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.d.ts +60 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +316 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.js +73 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.js +11 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookSynchronizerService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffModel.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/{diff.service.js → quickDiffModel.service.js} +2 -2
- package/vscode/src/vs/workbench/contrib/scm/common/history.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.d.ts +30 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +95 -0
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.js +82 -0
- package/vscode/src/vs/workbench/contrib/scm/common/scm.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +30 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testId.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testId.js +3 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.d.ts +1 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.d.ts +1 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +26 -15
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +5 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +10 -4
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +3 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +83 -83
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +63 -0
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +164 -0
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/log/common/logConstants.d.ts +2 -0
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +3 -1
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/output/common/output.d.ts +51 -8
- package/vscode/src/vs/workbench/services/output/common/output.js +30 -4
- package/vscode/src/vs/workbench/services/output/common/output.service.d.ts +8 -1
- package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +9 -4
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.js +5 -1
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +15 -21
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.service.d.ts +21 -2
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.service.d.ts +3 -3
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceEditing.service.d.ts +1 -1
- package/vscode-dts/vscode.d.ts +375 -32
- package/vscode-dts/vscode.proposed.aiRelatedInformation.d.ts +1 -1
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +11 -0
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +9 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +4 -0
- package/vscode-dts/vscode.proposed.chatReadonlyPromptReference.d.ts +17 -0
- package/vscode-dts/vscode.proposed.chatReferenceBinaryData.d.ts +5 -0
- package/vscode-dts/vscode.proposed.d.ts +132 -131
- package/vscode-dts/vscode.proposed.externalUriOpener.d.ts +3 -3
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +2 -0
- package/vscode-dts/vscode.proposed.inlineEdit.d.ts +14 -3
- package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +21 -1
- package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +3 -3
- package/vscode-dts/vscode.proposed.quickDiffProvider.d.ts +1 -1
- package/vscode-dts/vscode.proposed.resolvers.d.ts +3 -3
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +4 -2
- package/vscode-dts/vscode.proposed.statusBarItemTooltip.d.ts +19 -0
- package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +10 -0
- package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +2 -2
- package/vscode-dts/vscode.proposed.terminalShellEnv.d.ts +18 -0
- package/vscode-dts/vscode.proposed.terminalShellType.d.ts +40 -0
- package/vscode/src/vs/base/common/observableInternal/index.js +0 -8
- package/vscode/src/vs/base/common/observableInternal/promise.d.ts +0 -28
- package/vscode/src/vs/base/common/observableInternal/promise.js +0 -65
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.css.js +0 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +0 -45
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +0 -426
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewAndDiffProducer.js +0 -116
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingService.service.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingService.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/mappedEdits/common/mappedEdits.contribution.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/mappedEdits/common/mappedEdits.contribution.js +0 -24
- package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.service.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/scm/browser/diff.service.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +0 -66
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.d.ts +0 -155
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +0 -1454
- package/vscode/src/vs/workbench/contrib/scm/browser/media/dirtydiffDecorator.css.js +0 -6
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +0 -164
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.js +0 -74
- package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.d.ts +0 -8
- package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +0 -93
- package/vscode-dts/vscode.proposed.documentPaste.d.ts +0 -316
- package/vscode-dts/vscode.proposed.fileComments.d.ts +0 -42
- package/vscode-dts/vscode.proposed.showLocal.d.ts +0 -19
- /package/vscode/src/vs/editor/browser/gpu/{fullFileRenderStrategy.wgsl.d.ts → renderStrategy/fullFileRenderStrategy.wgsl.d.ts} +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Disposable } from "../../../../base/common/lifecycle.js";
|
|
2
|
+
import { ThemeIcon } from "../../../../base/common/themables.js";
|
|
3
|
+
import { URI } from "../../../../base/common/uri.js";
|
|
4
|
+
import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js";
|
|
5
|
+
import { EditorInputCapabilities, IEditorSerializer, IUntypedEditorInput } from "../../../common/editor.js";
|
|
6
|
+
import { EditorInput } from "../../../common/editor/editorInput.js";
|
|
7
|
+
import type { IChatEditorOptions } from "@codingame/monaco-vscode-chat-service-override/vscode/vs/workbench/contrib/chat/browser/chatEditor";
|
|
8
|
+
import { IChatModel } from "../common/chatModel.js";
|
|
9
|
+
import { IChatService } from "../common/chatService.service.js";
|
|
10
|
+
export declare class ChatEditorInput extends EditorInput {
|
|
11
|
+
readonly resource: URI;
|
|
12
|
+
readonly options: IChatEditorOptions;
|
|
13
|
+
private readonly chatService;
|
|
14
|
+
static readonly countsInUse: Set<number>;
|
|
15
|
+
static readonly TypeID: string;
|
|
16
|
+
static readonly EditorID: string;
|
|
17
|
+
private readonly inputCount;
|
|
18
|
+
sessionId: string | undefined;
|
|
19
|
+
private model;
|
|
20
|
+
static getNewEditorUri(): URI;
|
|
21
|
+
static getNextCount(): number;
|
|
22
|
+
constructor(resource: URI, options: IChatEditorOptions, chatService: IChatService);
|
|
23
|
+
get editorId(): string | undefined;
|
|
24
|
+
get capabilities(): EditorInputCapabilities;
|
|
25
|
+
matches(otherInput: EditorInput | IUntypedEditorInput): boolean;
|
|
26
|
+
get typeId(): string;
|
|
27
|
+
getName(): string;
|
|
28
|
+
getIcon(): ThemeIcon;
|
|
29
|
+
resolve(): Promise<ChatEditorModel | null>;
|
|
30
|
+
dispose(): void;
|
|
31
|
+
}
|
|
32
|
+
export declare class ChatEditorModel extends Disposable {
|
|
33
|
+
readonly model: IChatModel;
|
|
34
|
+
private _onWillDispose;
|
|
35
|
+
readonly onWillDispose: import("../../../../base/common/event.js").Event<void>;
|
|
36
|
+
private _isDisposed;
|
|
37
|
+
private _isResolved;
|
|
38
|
+
constructor(model: IChatModel);
|
|
39
|
+
resolve(): Promise<void>;
|
|
40
|
+
isResolved(): boolean;
|
|
41
|
+
isDisposed(): boolean;
|
|
42
|
+
dispose(): void;
|
|
43
|
+
}
|
|
44
|
+
export declare namespace ChatUri {
|
|
45
|
+
const scheme = "vscode-chat-editor";
|
|
46
|
+
function generate(handle: number): URI;
|
|
47
|
+
function parse(resource: URI): {
|
|
48
|
+
handle: number;
|
|
49
|
+
} | undefined;
|
|
50
|
+
}
|
|
51
|
+
export declare class ChatEditorInputSerializer implements IEditorSerializer {
|
|
52
|
+
canSerialize(input: EditorInput): input is ChatEditorInput & {
|
|
53
|
+
readonly sessionId: string;
|
|
54
|
+
};
|
|
55
|
+
serialize(input: EditorInput): string | undefined;
|
|
56
|
+
deserialize(instantiationService: IInstantiationService, serializedEditor: string): EditorInput | undefined;
|
|
57
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import { CancellationToken } from '../../../../base/common/cancellation.js';
|
|
4
|
+
import { Codicon } from '../../../../base/common/codicons.js';
|
|
5
|
+
import { Emitter } from '../../../../base/common/event.js';
|
|
6
|
+
import { toDisposable, Disposable } from '../../../../base/common/lifecycle.js';
|
|
7
|
+
import { Schemas } from '../../../../base/common/network.js';
|
|
8
|
+
import { URI } from '../../../../base/common/uri.js';
|
|
9
|
+
import { localize } from '../../../../nls.js';
|
|
10
|
+
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
11
|
+
import { EditorInputCapabilities } from '../../../common/editor.js';
|
|
12
|
+
import { EditorInput } from '../../../common/editor/editorInput.js';
|
|
13
|
+
import { ChatAgentLocation } from '../common/chatAgents.js';
|
|
14
|
+
import { IChatService } from '../common/chatService.service.js';
|
|
15
|
+
|
|
16
|
+
var ChatEditorInput_1;
|
|
17
|
+
const ChatEditorIcon = registerIcon('chat-editor-label-icon', Codicon.commentDiscussion, ( localize(4522, 'Icon of the chat editor label.')));
|
|
18
|
+
let ChatEditorInput = class ChatEditorInput extends EditorInput {
|
|
19
|
+
static { ChatEditorInput_1 = this; }
|
|
20
|
+
static { this.countsInUse = ( new Set()); }
|
|
21
|
+
static { this.TypeID = 'workbench.input.chatSession'; }
|
|
22
|
+
static { this.EditorID = 'workbench.editor.chatSession'; }
|
|
23
|
+
static getNewEditorUri() {
|
|
24
|
+
const handle = Math.floor(Math.random() * 1e9);
|
|
25
|
+
return ChatUri.generate(handle);
|
|
26
|
+
}
|
|
27
|
+
static getNextCount() {
|
|
28
|
+
let count = 0;
|
|
29
|
+
while (( ChatEditorInput_1.countsInUse.has(count))) {
|
|
30
|
+
count++;
|
|
31
|
+
}
|
|
32
|
+
return count;
|
|
33
|
+
}
|
|
34
|
+
constructor(resource, options, chatService) {
|
|
35
|
+
super();
|
|
36
|
+
this.resource = resource;
|
|
37
|
+
this.options = options;
|
|
38
|
+
this.chatService = chatService;
|
|
39
|
+
const parsed = ChatUri.parse(resource);
|
|
40
|
+
if (typeof parsed?.handle !== 'number') {
|
|
41
|
+
throw ( new Error('Invalid chat URI'));
|
|
42
|
+
}
|
|
43
|
+
this.sessionId = (options.target && 'sessionId' in options.target) ?
|
|
44
|
+
options.target.sessionId :
|
|
45
|
+
undefined;
|
|
46
|
+
this.inputCount = ChatEditorInput_1.getNextCount();
|
|
47
|
+
ChatEditorInput_1.countsInUse.add(this.inputCount);
|
|
48
|
+
this._register(toDisposable(() => ChatEditorInput_1.countsInUse.delete(this.inputCount)));
|
|
49
|
+
}
|
|
50
|
+
get editorId() {
|
|
51
|
+
return ChatEditorInput_1.EditorID;
|
|
52
|
+
}
|
|
53
|
+
get capabilities() {
|
|
54
|
+
return super.capabilities | EditorInputCapabilities.Singleton;
|
|
55
|
+
}
|
|
56
|
+
matches(otherInput) {
|
|
57
|
+
return otherInput instanceof ChatEditorInput_1 && ( otherInput.resource.toString()) === ( this.resource.toString());
|
|
58
|
+
}
|
|
59
|
+
get typeId() {
|
|
60
|
+
return ChatEditorInput_1.TypeID;
|
|
61
|
+
}
|
|
62
|
+
getName() {
|
|
63
|
+
return this.model?.title || ( localize(4523, "Chat")) + (this.inputCount > 0 ? ` ${this.inputCount + 1}` : '');
|
|
64
|
+
}
|
|
65
|
+
getIcon() {
|
|
66
|
+
return ChatEditorIcon;
|
|
67
|
+
}
|
|
68
|
+
async resolve() {
|
|
69
|
+
if (typeof this.sessionId === 'string') {
|
|
70
|
+
this.model = this.chatService.getOrRestoreSession(this.sessionId);
|
|
71
|
+
}
|
|
72
|
+
else if (!this.options.target) {
|
|
73
|
+
this.model = this.chatService.startSession(ChatAgentLocation.Panel, CancellationToken.None);
|
|
74
|
+
}
|
|
75
|
+
else if ('data' in this.options.target) {
|
|
76
|
+
this.model = this.chatService.loadSessionFromContent(this.options.target.data);
|
|
77
|
+
}
|
|
78
|
+
if (!this.model) {
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
this.sessionId = this.model.sessionId;
|
|
82
|
+
this._register(this.model.onDidChange(() => this._onDidChangeLabel.fire()));
|
|
83
|
+
return this._register(( new ChatEditorModel(this.model)));
|
|
84
|
+
}
|
|
85
|
+
dispose() {
|
|
86
|
+
super.dispose();
|
|
87
|
+
if (this.sessionId) {
|
|
88
|
+
this.chatService.clearSession(this.sessionId);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
ChatEditorInput = ChatEditorInput_1 = ( __decorate([
|
|
93
|
+
( __param(2, IChatService))
|
|
94
|
+
], ChatEditorInput));
|
|
95
|
+
class ChatEditorModel extends Disposable {
|
|
96
|
+
constructor(model) {
|
|
97
|
+
super();
|
|
98
|
+
this.model = model;
|
|
99
|
+
this._onWillDispose = this._register(( new Emitter()));
|
|
100
|
+
this.onWillDispose = this._onWillDispose.event;
|
|
101
|
+
this._isDisposed = false;
|
|
102
|
+
this._isResolved = false;
|
|
103
|
+
}
|
|
104
|
+
async resolve() {
|
|
105
|
+
this._isResolved = true;
|
|
106
|
+
}
|
|
107
|
+
isResolved() {
|
|
108
|
+
return this._isResolved;
|
|
109
|
+
}
|
|
110
|
+
isDisposed() {
|
|
111
|
+
return this._isDisposed;
|
|
112
|
+
}
|
|
113
|
+
dispose() {
|
|
114
|
+
super.dispose();
|
|
115
|
+
this._isDisposed = true;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
var ChatUri;
|
|
119
|
+
(function (ChatUri) {
|
|
120
|
+
ChatUri.scheme = Schemas.vscodeChatSesssion;
|
|
121
|
+
function generate(handle) {
|
|
122
|
+
return ( URI.from({ scheme: ChatUri.scheme, path: `chat-${handle}` }));
|
|
123
|
+
}
|
|
124
|
+
ChatUri.generate = generate;
|
|
125
|
+
function parse(resource) {
|
|
126
|
+
if (resource.scheme !== ChatUri.scheme) {
|
|
127
|
+
return undefined;
|
|
128
|
+
}
|
|
129
|
+
const match = resource.path.match(/chat-(\d+)/);
|
|
130
|
+
const handleStr = match?.[1];
|
|
131
|
+
if (typeof handleStr !== 'string') {
|
|
132
|
+
return undefined;
|
|
133
|
+
}
|
|
134
|
+
const handle = parseInt(handleStr);
|
|
135
|
+
if (isNaN(handle)) {
|
|
136
|
+
return undefined;
|
|
137
|
+
}
|
|
138
|
+
return { handle };
|
|
139
|
+
}
|
|
140
|
+
ChatUri.parse = parse;
|
|
141
|
+
})(ChatUri || (ChatUri = {}));
|
|
142
|
+
class ChatEditorInputSerializer {
|
|
143
|
+
canSerialize(input) {
|
|
144
|
+
return input instanceof ChatEditorInput && typeof input.sessionId === 'string';
|
|
145
|
+
}
|
|
146
|
+
serialize(input) {
|
|
147
|
+
if (!this.canSerialize(input)) {
|
|
148
|
+
return undefined;
|
|
149
|
+
}
|
|
150
|
+
const obj = {
|
|
151
|
+
options: input.options,
|
|
152
|
+
sessionId: input.sessionId,
|
|
153
|
+
resource: input.resource
|
|
154
|
+
};
|
|
155
|
+
return JSON.stringify(obj);
|
|
156
|
+
}
|
|
157
|
+
deserialize(instantiationService, serializedEditor) {
|
|
158
|
+
try {
|
|
159
|
+
const parsed = JSON.parse(serializedEditor);
|
|
160
|
+
const resource = URI.revive(parsed.resource);
|
|
161
|
+
return instantiationService.createInstance(ChatEditorInput, resource, { ...parsed.options, target: { sessionId: parsed.sessionId } });
|
|
162
|
+
}
|
|
163
|
+
catch (err) {
|
|
164
|
+
return undefined;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export { ChatEditorInput, ChatEditorInputSerializer, ChatEditorModel, ChatUri };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IObservable } from "../../../../base/common/observable.js";
|
|
2
|
+
import { ICodeEditor } from "../../../../editor/browser/editorBrowser.js";
|
|
3
|
+
import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js";
|
|
4
|
+
import { IChatEditingSession, IModifiedFileEntry } from "../common/chatEditingService.js";
|
|
5
|
+
import { IEditorContribution } from "../../../../editor/common/editorCommon.js";
|
|
6
|
+
export declare class ChatEditorOverlayController implements IEditorContribution {
|
|
7
|
+
private readonly _editor;
|
|
8
|
+
private readonly _instaService;
|
|
9
|
+
static readonly ID = "editor.contrib.chatEditorOverlayController";
|
|
10
|
+
static get(editor: ICodeEditor): ChatEditorOverlayController | undefined;
|
|
11
|
+
private readonly _overlayWidget;
|
|
12
|
+
constructor(_editor: ICodeEditor, _instaService: IInstantiationService);
|
|
13
|
+
dispose(): void;
|
|
14
|
+
showRequest(session: IChatEditingSession): void;
|
|
15
|
+
showEntry(session: IChatEditingSession, activeEntry: IModifiedFileEntry, next: IModifiedFileEntry, indicies: {
|
|
16
|
+
entryIndex: IObservable<number | undefined>;
|
|
17
|
+
changeIndex: IObservable<number | undefined>;
|
|
18
|
+
}): void;
|
|
19
|
+
hide(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import { DisposableStore, MutableDisposable } from '../../../../base/common/lifecycle.js';
|
|
4
|
+
import { observableValue, transaction } from '../../../../base/common/observableInternal/base.js';
|
|
5
|
+
import '../../../../base/common/arrays.js';
|
|
6
|
+
import '../../../../base/common/event.js';
|
|
7
|
+
import { autorun } from '../../../../base/common/observableInternal/autorun.js';
|
|
8
|
+
import '../../../../base/common/observableInternal/derived.js';
|
|
9
|
+
import '../../../../base/common/cancellation.js';
|
|
10
|
+
import { observableFromEvent } from '../../../../base/common/observableInternal/utils.js';
|
|
11
|
+
import { OverlayWidgetPositionPreference } from '../../../../editor/browser/editorBrowser.js';
|
|
12
|
+
import { MenuWorkbenchToolBar, HiddenItemStrategy } from '../../../../platform/actions/browser/toolbar.js';
|
|
13
|
+
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
14
|
+
import { MenuId } from '../../../../platform/actions/common/actions.js';
|
|
15
|
+
import { ActionViewItem } from '../../../../base/browser/ui/actionbar/actionViewItems.js';
|
|
16
|
+
import { ACTIVE_GROUP } from '../../../services/editor/common/editorService.js';
|
|
17
|
+
import { IEditorService } from '../../../services/editor/common/editorService.service.js';
|
|
18
|
+
import { Range } from '../../../../editor/common/core/range.js';
|
|
19
|
+
import { append, $, addDisposableGenericMouseMoveListener, reset } from '../../../../base/browser/dom.js';
|
|
20
|
+
import { renderIcon } from '../../../../base/browser/ui/iconLabel/iconLabels.js';
|
|
21
|
+
import { ThemeIcon } from '../../../../base/common/themables.js';
|
|
22
|
+
import { Codicon } from '../../../../base/common/codicons.js';
|
|
23
|
+
import { assertType } from '../../../../base/common/types.js';
|
|
24
|
+
import { localize } from '../../../../nls.js';
|
|
25
|
+
import { navigationBearingFakeActionId, AcceptAction, RejectAction } from './chatEditorActions.js';
|
|
26
|
+
import { ChatEditorController } from './chatEditorController.js';
|
|
27
|
+
import './media/chatEditorOverlay.css.js';
|
|
28
|
+
import { findDiffEditorContainingCodeEditor } from '../../../../editor/browser/widget/diffEditor/commands.js';
|
|
29
|
+
import { IChatService } from '../common/chatService.service.js';
|
|
30
|
+
import { rcut } from '../../../../base/common/strings.js';
|
|
31
|
+
import { IHoverService } from '../../../../platform/hover/browser/hover.service.js';
|
|
32
|
+
import { Lazy } from '../../../../base/common/lazy.js';
|
|
33
|
+
|
|
34
|
+
var ChatEditorOverlayController_1;
|
|
35
|
+
let ChatEditorOverlayWidget = class ChatEditorOverlayWidget {
|
|
36
|
+
constructor(_editor, editorService, _hoverService, _chatService, _instaService) {
|
|
37
|
+
this._editor = _editor;
|
|
38
|
+
this._hoverService = _hoverService;
|
|
39
|
+
this._chatService = _chatService;
|
|
40
|
+
this._instaService = _instaService;
|
|
41
|
+
this.allowEditorOverflow = true;
|
|
42
|
+
this._isAdded = false;
|
|
43
|
+
this._showStore = ( new DisposableStore());
|
|
44
|
+
this._entry = observableValue(this, undefined);
|
|
45
|
+
this._navigationBearings = observableValue(this, { changeCount: -1, activeIdx: -1, entriesCount: -1 });
|
|
46
|
+
this._domNode = document.createElement('div');
|
|
47
|
+
this._domNode.classList.add('chat-editor-overlay-widget');
|
|
48
|
+
const progressNode = document.createElement('div');
|
|
49
|
+
progressNode.classList.add('chat-editor-overlay-progress');
|
|
50
|
+
append(progressNode, renderIcon(ThemeIcon.modify(Codicon.loading, 'spin')));
|
|
51
|
+
this._progressNode = append(progressNode, $('SPAN.busy-label'));
|
|
52
|
+
this._domNode.appendChild(progressNode);
|
|
53
|
+
const toolbarNode = document.createElement('div');
|
|
54
|
+
toolbarNode.classList.add('chat-editor-overlay-toolbar');
|
|
55
|
+
this._domNode.appendChild(toolbarNode);
|
|
56
|
+
this._toolbar = _instaService.createInstance(MenuWorkbenchToolBar, toolbarNode, MenuId.ChatEditingEditorContent, {
|
|
57
|
+
telemetrySource: 'chatEditor.overlayToolbar',
|
|
58
|
+
hiddenItemStrategy: HiddenItemStrategy.Ignore,
|
|
59
|
+
toolbarOptions: {
|
|
60
|
+
primaryGroup: () => true,
|
|
61
|
+
useSeparatorsInPrimaryActions: true
|
|
62
|
+
},
|
|
63
|
+
menuOptions: { renderShortTitle: true },
|
|
64
|
+
actionViewItemProvider: (action, options) => {
|
|
65
|
+
const that = this;
|
|
66
|
+
if (action.id === navigationBearingFakeActionId) {
|
|
67
|
+
return new (class extends ActionViewItem {
|
|
68
|
+
constructor() {
|
|
69
|
+
super(undefined, action, { ...options, icon: false, label: true, keybindingNotRenderedWithLabel: true });
|
|
70
|
+
}
|
|
71
|
+
render(container) {
|
|
72
|
+
super.render(container);
|
|
73
|
+
container.classList.add('label-item');
|
|
74
|
+
this._store.add(autorun(r => {
|
|
75
|
+
assertType(this.label);
|
|
76
|
+
const { changeCount, activeIdx } = that._navigationBearings.read(r);
|
|
77
|
+
const n = activeIdx === -1 ? '?' : `${activeIdx + 1}`;
|
|
78
|
+
const m = changeCount === -1 ? '?' : `${changeCount}`;
|
|
79
|
+
this.label.innerText = ( localize(4524, "{0} of {1}", n, m));
|
|
80
|
+
this.updateTooltip();
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
getTooltip() {
|
|
84
|
+
const { changeCount, entriesCount } = that._navigationBearings.get();
|
|
85
|
+
if (changeCount === -1 || entriesCount === -1) {
|
|
86
|
+
return undefined;
|
|
87
|
+
}
|
|
88
|
+
else if (changeCount === 1 && entriesCount === 1) {
|
|
89
|
+
return localize(4525, "1 change in 1 file");
|
|
90
|
+
}
|
|
91
|
+
else if (changeCount === 1) {
|
|
92
|
+
return localize(4526, "1 change in {0} files", entriesCount);
|
|
93
|
+
}
|
|
94
|
+
else if (entriesCount === 1) {
|
|
95
|
+
return localize(4527, "{0} changes in 1 file", changeCount);
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
return localize(4528, "{0} changes in {1} files", changeCount, entriesCount);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
onClick(event, preserveFocus) {
|
|
102
|
+
ChatEditorController.get(that._editor)?.unlockScroll();
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
if (action.id === AcceptAction.ID || action.id === RejectAction.ID) {
|
|
107
|
+
return new (class extends ActionViewItem {
|
|
108
|
+
constructor() {
|
|
109
|
+
super(undefined, action, { ...options, icon: false, label: true, keybindingNotRenderedWithLabel: true });
|
|
110
|
+
this._reveal = this._store.add(( new MutableDisposable()));
|
|
111
|
+
}
|
|
112
|
+
render(container) {
|
|
113
|
+
super.render(container);
|
|
114
|
+
if (action.id === AcceptAction.ID) {
|
|
115
|
+
const listener = this._store.add(( new MutableDisposable()));
|
|
116
|
+
this._store.add(autorun(r => {
|
|
117
|
+
assertType(this.label);
|
|
118
|
+
assertType(this.element);
|
|
119
|
+
const ctrl = that._entry.read(r)?.entry.autoAcceptController.read(r);
|
|
120
|
+
if (ctrl) {
|
|
121
|
+
const r = -100 * (ctrl.remaining / ctrl.total);
|
|
122
|
+
this.element.style.setProperty('--vscode-action-item-auto-timeout', `${r}%`);
|
|
123
|
+
this.element.classList.toggle('auto', true);
|
|
124
|
+
listener.value = addDisposableGenericMouseMoveListener(this.element, () => ctrl.cancel());
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
this.element.classList.toggle('auto', false);
|
|
128
|
+
listener.clear();
|
|
129
|
+
}
|
|
130
|
+
}));
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
set actionRunner(actionRunner) {
|
|
134
|
+
super.actionRunner = actionRunner;
|
|
135
|
+
const store = ( new DisposableStore());
|
|
136
|
+
store.add(actionRunner.onWillRun(_e => {
|
|
137
|
+
that._editor.focus();
|
|
138
|
+
}));
|
|
139
|
+
store.add(actionRunner.onDidRun(e => {
|
|
140
|
+
if (e.action !== this.action) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
const d = that._entry.get();
|
|
144
|
+
if (!d || d.entry === d.next) {
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
const change = d.next.diffInfo.get().changes.at(0);
|
|
148
|
+
return editorService.openEditor({
|
|
149
|
+
resource: d.next.modifiedURI,
|
|
150
|
+
options: {
|
|
151
|
+
selection: change && Range.fromPositions({ lineNumber: change.original.startLineNumber, column: 1 }),
|
|
152
|
+
revealIfOpened: false,
|
|
153
|
+
revealIfVisible: false,
|
|
154
|
+
}
|
|
155
|
+
}, ACTIVE_GROUP);
|
|
156
|
+
}));
|
|
157
|
+
this._reveal.value = store;
|
|
158
|
+
}
|
|
159
|
+
get actionRunner() {
|
|
160
|
+
return super.actionRunner;
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
return undefined;
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
dispose() {
|
|
169
|
+
this.hide();
|
|
170
|
+
this._showStore.dispose();
|
|
171
|
+
this._toolbar.dispose();
|
|
172
|
+
}
|
|
173
|
+
getId() {
|
|
174
|
+
return 'chatEditorOverlayWidget';
|
|
175
|
+
}
|
|
176
|
+
getDomNode() {
|
|
177
|
+
return this._domNode;
|
|
178
|
+
}
|
|
179
|
+
getPosition() {
|
|
180
|
+
return { preference: OverlayWidgetPositionPreference.BOTTOM_RIGHT_CORNER };
|
|
181
|
+
}
|
|
182
|
+
showRequest(session) {
|
|
183
|
+
this._showStore.clear();
|
|
184
|
+
const chatModel = this._chatService.getSession(session.chatSessionId);
|
|
185
|
+
const chatRequest = chatModel?.getRequests().at(-1);
|
|
186
|
+
if (!chatRequest || !chatRequest.response) {
|
|
187
|
+
this.hide();
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
this._domNode.classList.toggle('busy', true);
|
|
191
|
+
const message = rcut(chatRequest.message.text, 47);
|
|
192
|
+
reset(this._progressNode, message);
|
|
193
|
+
this._showStore.add(this._hoverService.setupDelayedHover(this._progressNode, {
|
|
194
|
+
content: chatRequest.message.text,
|
|
195
|
+
appearance: { showPointer: true }
|
|
196
|
+
}));
|
|
197
|
+
this._show();
|
|
198
|
+
}
|
|
199
|
+
showEntry(session, activeEntry, next, indicies) {
|
|
200
|
+
this._showStore.clear();
|
|
201
|
+
this._entry.set({ entry: activeEntry, next }, undefined);
|
|
202
|
+
this._showStore.add(autorun(r => {
|
|
203
|
+
const busy = activeEntry.isCurrentlyBeingModified.read(r);
|
|
204
|
+
this._domNode.classList.toggle('busy', busy);
|
|
205
|
+
}));
|
|
206
|
+
this._showStore.add(autorun(r => {
|
|
207
|
+
const value = activeEntry.rewriteRatio.read(r);
|
|
208
|
+
reset(this._progressNode, (value === 0
|
|
209
|
+
? ( localize(4529, "Generating Edits"))
|
|
210
|
+
: ( localize(4530, "{0}% Applying Edits", Math.round(value * 100)))));
|
|
211
|
+
}));
|
|
212
|
+
this._showStore.add(autorun(r => {
|
|
213
|
+
const entryIndex = indicies.entryIndex.read(r);
|
|
214
|
+
const changeIndex = indicies.changeIndex.read(r);
|
|
215
|
+
const entries = session.entries.read(r);
|
|
216
|
+
let activeIdx = entryIndex !== undefined && changeIndex !== undefined
|
|
217
|
+
? changeIndex
|
|
218
|
+
: -1;
|
|
219
|
+
let changes = 0;
|
|
220
|
+
for (let i = 0; i < entries.length; i++) {
|
|
221
|
+
const diffInfo = entries[i].diffInfo.read(r);
|
|
222
|
+
changes += diffInfo.changes.length;
|
|
223
|
+
if (entryIndex !== undefined && i < entryIndex) {
|
|
224
|
+
activeIdx += diffInfo.changes.length;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
this._navigationBearings.set({ changeCount: changes, activeIdx, entriesCount: entries.length }, undefined);
|
|
228
|
+
}));
|
|
229
|
+
this._show();
|
|
230
|
+
}
|
|
231
|
+
_show() {
|
|
232
|
+
const editorWidthObs = observableFromEvent(this._editor.onDidLayoutChange, () => {
|
|
233
|
+
const diffEditor = this._instaService.invokeFunction(findDiffEditorContainingCodeEditor, this._editor);
|
|
234
|
+
return diffEditor
|
|
235
|
+
? diffEditor.getOriginalEditor().getLayoutInfo().contentWidth + diffEditor.getModifiedEditor().getLayoutInfo().contentWidth
|
|
236
|
+
: this._editor.getLayoutInfo().contentWidth;
|
|
237
|
+
});
|
|
238
|
+
this._showStore.add(autorun(r => {
|
|
239
|
+
const width = editorWidthObs.read(r);
|
|
240
|
+
this._domNode.style.maxWidth = `${width - 20}px`;
|
|
241
|
+
}));
|
|
242
|
+
if (!this._isAdded) {
|
|
243
|
+
this._editor.addOverlayWidget(this);
|
|
244
|
+
this._isAdded = true;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
hide() {
|
|
248
|
+
transaction(tx => {
|
|
249
|
+
this._entry.set(undefined, tx);
|
|
250
|
+
this._navigationBearings.set({ changeCount: -1, activeIdx: -1, entriesCount: -1 }, tx);
|
|
251
|
+
});
|
|
252
|
+
if (this._isAdded) {
|
|
253
|
+
this._editor.removeOverlayWidget(this);
|
|
254
|
+
this._isAdded = false;
|
|
255
|
+
this._showStore.clear();
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
ChatEditorOverlayWidget = ( __decorate([
|
|
260
|
+
( __param(1, IEditorService)),
|
|
261
|
+
( __param(2, IHoverService)),
|
|
262
|
+
( __param(3, IChatService)),
|
|
263
|
+
( __param(4, IInstantiationService))
|
|
264
|
+
], ChatEditorOverlayWidget));
|
|
265
|
+
let ChatEditorOverlayController = class ChatEditorOverlayController {
|
|
266
|
+
static { ChatEditorOverlayController_1 = this; }
|
|
267
|
+
static { this.ID = 'editor.contrib.chatEditorOverlayController'; }
|
|
268
|
+
static get(editor) {
|
|
269
|
+
return editor.getContribution(ChatEditorOverlayController_1.ID) ?? undefined;
|
|
270
|
+
}
|
|
271
|
+
constructor(_editor, _instaService) {
|
|
272
|
+
this._editor = _editor;
|
|
273
|
+
this._instaService = _instaService;
|
|
274
|
+
this._overlayWidget = ( new Lazy(
|
|
275
|
+
() => this._instaService.createInstance(ChatEditorOverlayWidget, this._editor)
|
|
276
|
+
));
|
|
277
|
+
}
|
|
278
|
+
dispose() {
|
|
279
|
+
this.hide();
|
|
280
|
+
this._overlayWidget.rawValue?.dispose();
|
|
281
|
+
}
|
|
282
|
+
showRequest(session) {
|
|
283
|
+
this._overlayWidget.value.showRequest(session);
|
|
284
|
+
}
|
|
285
|
+
showEntry(session, activeEntry, next, indicies) {
|
|
286
|
+
this._overlayWidget.value.showEntry(session, activeEntry, next, indicies);
|
|
287
|
+
}
|
|
288
|
+
hide() {
|
|
289
|
+
this._overlayWidget.rawValue?.hide();
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
ChatEditorOverlayController = ChatEditorOverlayController_1 = ( __decorate([
|
|
293
|
+
( __param(1, IInstantiationService))
|
|
294
|
+
], ChatEditorOverlayController));
|
|
295
|
+
|
|
296
|
+
export { ChatEditorOverlayController };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Event } from "../../../../base/common/event.js";
|
|
2
|
+
import { Disposable } from "../../../../base/common/lifecycle.js";
|
|
3
|
+
import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js";
|
|
4
|
+
import { IWorkbenchContribution } from "../../../common/contributions.js";
|
|
5
|
+
import { IStatusbarService } from "../../../services/statusbar/browser/statusbar.service.js";
|
|
6
|
+
import { IChatQuotasService } from "./chatQuotasService.service.js";
|
|
7
|
+
export interface IChatQuotas {
|
|
8
|
+
chatQuotaExceeded: boolean;
|
|
9
|
+
completionsQuotaExceeded: boolean;
|
|
10
|
+
quotaResetDate: Date | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare const OPEN_CHAT_QUOTA_EXCEEDED_DIALOG = "workbench.action.chat.openQuotaExceededDialog";
|
|
13
|
+
export declare class ChatQuotasService extends Disposable implements IChatQuotasService {
|
|
14
|
+
private readonly contextKeyService;
|
|
15
|
+
_serviceBrand: undefined;
|
|
16
|
+
private readonly _onDidChangeQuotas;
|
|
17
|
+
readonly onDidChangeQuotas: Event<void>;
|
|
18
|
+
private _quotas;
|
|
19
|
+
get quotas(): IChatQuotas;
|
|
20
|
+
private readonly chatQuotaExceededContextKey;
|
|
21
|
+
private readonly completionsQuotaExceededContextKey;
|
|
22
|
+
private ExtensionQuotaContextKeys;
|
|
23
|
+
constructor(contextKeyService: IContextKeyService);
|
|
24
|
+
private registerListeners;
|
|
25
|
+
private registerActions;
|
|
26
|
+
acceptQuotas(quotas: IChatQuotas): void;
|
|
27
|
+
clearQuotas(): void;
|
|
28
|
+
private updateContextKeys;
|
|
29
|
+
}
|
|
30
|
+
export declare class ChatQuotasStatusBarEntry extends Disposable implements IWorkbenchContribution {
|
|
31
|
+
private readonly statusbarService;
|
|
32
|
+
private readonly chatQuotasService;
|
|
33
|
+
static readonly ID = "chat.quotasStatusBarEntry";
|
|
34
|
+
private readonly entry;
|
|
35
|
+
constructor(statusbarService: IStatusbarService, chatQuotasService: IChatQuotasService);
|
|
36
|
+
private updateStatusbarEntry;
|
|
37
|
+
}
|
|
38
|
+
export declare function quotaToButtonMessage({ chatQuotaExceeded, completionsQuotaExceeded }: {
|
|
39
|
+
chatQuotaExceeded: boolean;
|
|
40
|
+
completionsQuotaExceeded: boolean;
|
|
41
|
+
}): string;
|