@codingame/monaco-vscode-api 13.1.6 → 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 +3 -3
- 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/nls.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/extHostDebugService.js +1 -1
- 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 +67 -6
- 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
|
@@ -6,20 +6,24 @@ import { toDisposable } from '../../../base/common/lifecycle.js';
|
|
|
6
6
|
import { revive } from '../../../base/common/marshalling.js';
|
|
7
7
|
import { generateUuid } from '../../../base/common/uuid.js';
|
|
8
8
|
import { isToolInvocationContext } from '../../contrib/chat/common/languageModelToolsService.js';
|
|
9
|
+
import { isProposedApiEnabled, checkProposedApiEnabled } from '../../services/extensions/common/extensions.js';
|
|
9
10
|
import { MainContext } from './extHost.protocol.js';
|
|
10
11
|
import { LanguageModelToolResult, LanguageModelToolDescription, MarkdownString } from './extHostTypeConverters.js';
|
|
12
|
+
import { EditToolData, EditToolInputProcessor } from '../../contrib/chat/common/tools/editFileTool.js';
|
|
11
13
|
|
|
12
14
|
class ExtHostLanguageModelTools {
|
|
13
15
|
constructor(mainContext) {
|
|
14
16
|
this._registeredTools = ( new Map());
|
|
15
17
|
this._tokenCountFuncs = ( new Map());
|
|
16
18
|
this._allTools = ( new Map());
|
|
19
|
+
this._toolInputProcessors = ( new Map());
|
|
17
20
|
this._proxy = ( mainContext.getProxy(MainContext.MainThreadLanguageModelTools));
|
|
18
21
|
this._proxy.$getTools().then(tools => {
|
|
19
22
|
for (const tool of tools) {
|
|
20
23
|
this._allTools.set(tool.id, revive(tool));
|
|
21
24
|
}
|
|
22
25
|
});
|
|
26
|
+
this._toolInputProcessors.set(EditToolData.id, ( new EditToolInputProcessor()));
|
|
23
27
|
}
|
|
24
28
|
async $countTokensForInvocation(callId, input, token) {
|
|
25
29
|
const fn = this._tokenCountFuncs.get(callId);
|
|
@@ -28,21 +32,26 @@ class ExtHostLanguageModelTools {
|
|
|
28
32
|
}
|
|
29
33
|
return await fn(input, token);
|
|
30
34
|
}
|
|
31
|
-
async invokeTool(toolId, options, token) {
|
|
35
|
+
async invokeTool(extension, toolId, options, token) {
|
|
32
36
|
const callId = generateUuid();
|
|
33
37
|
if (options.tokenizationOptions) {
|
|
34
38
|
this._tokenCountFuncs.set(callId, options.tokenizationOptions.countTokens);
|
|
35
39
|
}
|
|
36
|
-
if (options.toolInvocationToken && !isToolInvocationContext(options.toolInvocationToken)) {
|
|
37
|
-
throw ( new Error(`Invalid tool invocation token`));
|
|
38
|
-
}
|
|
39
40
|
try {
|
|
41
|
+
if (options.toolInvocationToken && !isToolInvocationContext(options.toolInvocationToken)) {
|
|
42
|
+
throw ( new Error(`Invalid tool invocation token`));
|
|
43
|
+
}
|
|
44
|
+
if (toolId === 'vscode_editFile' && !isProposedApiEnabled(extension, 'chatParticipantPrivate')) {
|
|
45
|
+
throw ( new Error(`Invalid tool: ${toolId}`));
|
|
46
|
+
}
|
|
47
|
+
const processedInput = this._toolInputProcessors.get(toolId)?.processInput(options.input) ?? options.input;
|
|
40
48
|
const result = await this._proxy.$invokeTool({
|
|
41
49
|
toolId,
|
|
42
50
|
callId,
|
|
43
|
-
parameters:
|
|
51
|
+
parameters: processedInput,
|
|
44
52
|
tokenBudget: options.tokenizationOptions?.tokenBudget,
|
|
45
53
|
context: options.toolInvocationToken,
|
|
54
|
+
chatRequestId: isProposedApiEnabled(extension, 'chatParticipantPrivate') ? options.chatRequestId : undefined,
|
|
46
55
|
}, token);
|
|
47
56
|
return LanguageModelToolResult.to(result);
|
|
48
57
|
}
|
|
@@ -56,16 +65,26 @@ class ExtHostLanguageModelTools {
|
|
|
56
65
|
this._allTools.set(tool.id, tool);
|
|
57
66
|
}
|
|
58
67
|
}
|
|
59
|
-
|
|
68
|
+
getTools(extension) {
|
|
60
69
|
return ( Array.from(( this._allTools.values()))
|
|
61
|
-
.map(tool => LanguageModelToolDescription.to(tool)))
|
|
70
|
+
.map(tool => LanguageModelToolDescription.to(tool)))
|
|
71
|
+
.filter(tool => {
|
|
72
|
+
if (tool.name === 'vscode_editFile') {
|
|
73
|
+
return isProposedApiEnabled(extension, 'chatParticipantPrivate');
|
|
74
|
+
}
|
|
75
|
+
return true;
|
|
76
|
+
});
|
|
62
77
|
}
|
|
63
78
|
async $invokeTool(dto, token) {
|
|
64
79
|
const item = this._registeredTools.get(dto.toolId);
|
|
65
80
|
if (!item) {
|
|
66
81
|
throw ( new Error(`Unknown tool ${dto.toolId}`));
|
|
67
82
|
}
|
|
68
|
-
const options = {
|
|
83
|
+
const options = {
|
|
84
|
+
input: dto.parameters,
|
|
85
|
+
toolInvocationToken: dto.context,
|
|
86
|
+
chatRequestId: dto.chatRequestId,
|
|
87
|
+
};
|
|
69
88
|
if (dto.tokenBudget !== undefined) {
|
|
70
89
|
options.tokenizationOptions = {
|
|
71
90
|
tokenBudget: dto.tokenBudget,
|
|
@@ -91,16 +110,17 @@ class ExtHostLanguageModelTools {
|
|
|
91
110
|
if (!result) {
|
|
92
111
|
return undefined;
|
|
93
112
|
}
|
|
113
|
+
if (result.pastTenseMessage || result.tooltip) {
|
|
114
|
+
checkProposedApiEnabled(item.extension, 'chatParticipantPrivate');
|
|
115
|
+
}
|
|
94
116
|
return {
|
|
95
117
|
confirmationMessages: result.confirmationMessages ? {
|
|
96
118
|
title: result.confirmationMessages.title,
|
|
97
119
|
message: typeof result.confirmationMessages.message === 'string' ? result.confirmationMessages.message : MarkdownString.from(result.confirmationMessages.message),
|
|
98
120
|
} : undefined,
|
|
99
|
-
invocationMessage:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
MarkdownString.from(result.invocationMessage) :
|
|
103
|
-
undefined),
|
|
121
|
+
invocationMessage: MarkdownString.fromStrict(result.invocationMessage),
|
|
122
|
+
pastTenseMessage: MarkdownString.fromStrict(result.pastTenseMessage),
|
|
123
|
+
tooltip: result.tooltip ? MarkdownString.fromStrict(result.tooltip) : undefined,
|
|
104
124
|
};
|
|
105
125
|
}
|
|
106
126
|
registerTool(extension, id, tool) {
|
|
@@ -142,6 +142,7 @@ let ExtHostLanguageModels = class ExtHostLanguageModels {
|
|
|
142
142
|
targetExtensions: metadata.extensions,
|
|
143
143
|
isDefault: metadata.isDefault,
|
|
144
144
|
isUserSelectable: metadata.isUserSelectable,
|
|
145
|
+
capabilities: metadata.capabilities,
|
|
145
146
|
});
|
|
146
147
|
const responseReceivedListener = provider.onDidReceiveLanguageModelResponse2?.(({ extensionId, participant, tokenCount }) => {
|
|
147
148
|
this._proxy.$whenLanguageModelChatRequestMade(identifier, ( new ExtensionIdentifier(extensionId)), participant, tokenCount);
|
|
@@ -324,7 +325,7 @@ let ExtHostLanguageModels = class ExtHostLanguageModels {
|
|
|
324
325
|
}
|
|
325
326
|
this._pendingRequest.delete(requestId);
|
|
326
327
|
if (error) {
|
|
327
|
-
data.res.reject(transformErrorFromSerialization(error));
|
|
328
|
+
data.res.reject(LanguageModelError.tryDeserialize(error) ?? transformErrorFromSerialization(error));
|
|
328
329
|
}
|
|
329
330
|
else {
|
|
330
331
|
data.res.resolve();
|
|
@@ -342,7 +343,7 @@ let ExtHostLanguageModels = class ExtHostLanguageModels {
|
|
|
342
343
|
}
|
|
343
344
|
try {
|
|
344
345
|
const detail = justification
|
|
345
|
-
? ( localize(
|
|
346
|
+
? ( localize(2480, "Justification: {1}", to.displayName, justification))
|
|
346
347
|
: undefined;
|
|
347
348
|
await this._extHostAuthentication.getSession(from, providerId, [], { forceNewSession: { detail } });
|
|
348
349
|
this.$updateModelAccesslist([{ from: from.identifier, to: to.identifier, enabled: true }]);
|
|
@@ -8,7 +8,7 @@ import { IExtHostInitDataService } from './extHostInitDataService.js';
|
|
|
8
8
|
let ExtHostLogService = class ExtHostLogService extends LogService {
|
|
9
9
|
constructor(isWorker, loggerService, initData) {
|
|
10
10
|
const id = initData.remote.isRemote ? 'remoteexthost' : isWorker ? 'workerexthost' : 'exthost';
|
|
11
|
-
const name = initData.remote.isRemote ? ( localize(
|
|
11
|
+
const name = initData.remote.isRemote ? ( localize(2481, "Extension Host (Remote)")) : isWorker ? ( localize(2482, "Extension Host (Worker)")) : ( localize(2483, "Extension Host"));
|
|
12
12
|
super(loggerService.createLogger(id, { name }));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
@@ -48,7 +48,12 @@ class ExtensionMemento {
|
|
|
48
48
|
return value;
|
|
49
49
|
}
|
|
50
50
|
update(key, value) {
|
|
51
|
-
|
|
51
|
+
if (value !== null && typeof value === 'object') {
|
|
52
|
+
this._value[key] = JSON.parse(JSON.stringify(value));
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
this._value[key] = value;
|
|
56
|
+
}
|
|
52
57
|
const record = this._deferredPromises.get(key);
|
|
53
58
|
if (record !== undefined) {
|
|
54
59
|
return record.p;
|
|
@@ -260,7 +260,7 @@ class ExtHostNotebookController {
|
|
|
260
260
|
throw ( new Error('Document version mismatch'));
|
|
261
261
|
}
|
|
262
262
|
if (!this._extHostFileSystem.value.isWritableFileSystem(uri.scheme)) {
|
|
263
|
-
throw new FileOperationError(( localize(
|
|
263
|
+
throw new FileOperationError(( localize(2484, "Unable to modify read-only file '{0}'", this._resourceForError(uri))), FileOperationResult.FILE_PERMISSION_DENIED);
|
|
264
264
|
}
|
|
265
265
|
const data = {
|
|
266
266
|
metadata: filter(document.apiNotebook.metadata, key => !(serializer.options?.transientDocumentMetadata ?? {})[key]),
|
|
@@ -432,7 +432,7 @@ class ExtHostNotebookController {
|
|
|
432
432
|
if (typeof options?.mtime === 'number' && typeof options.etag === 'string' && options.etag !== ETAG_DISABLED &&
|
|
433
433
|
typeof stat.mtime === 'number' && typeof stat.size === 'number' &&
|
|
434
434
|
options.mtime < stat.mtime && options.etag !== etag({ mtime: options.mtime , size: stat.size })) {
|
|
435
|
-
throw new FileOperationError(( localize(
|
|
435
|
+
throw new FileOperationError(( localize(2485, "File Modified Since")), FileOperationResult.FILE_MODIFIED_SINCE, options);
|
|
436
436
|
}
|
|
437
437
|
return;
|
|
438
438
|
}
|
|
@@ -61,10 +61,11 @@ function getHistoryItemIconDto(icon) {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
function toSCMHistoryItemDto(historyItem) {
|
|
64
|
+
const authorIcon = getHistoryItemIconDto(historyItem.authorIcon);
|
|
64
65
|
const references = historyItem.references?.map(r => ({
|
|
65
66
|
...r, icon: getHistoryItemIconDto(r.icon)
|
|
66
67
|
}));
|
|
67
|
-
return { ...historyItem, references };
|
|
68
|
+
return { ...historyItem, authorIcon, references };
|
|
68
69
|
}
|
|
69
70
|
function toSCMHistoryItemRefDto(historyItemRef) {
|
|
70
71
|
return historyItemRef ? { ...historyItemRef, icon: getHistoryItemIconDto(historyItemRef.icon) } : undefined;
|
|
@@ -3,8 +3,10 @@ import type * as vscode from "vscode";
|
|
|
3
3
|
import { MainThreadStatusBarShape, IMainContext, ExtHostStatusBarShape, StatusBarItemDto } from "./extHost.protocol.js";
|
|
4
4
|
import { CommandsConverter } from "./extHostCommands.js";
|
|
5
5
|
import { IExtensionDescription } from "../../../platform/extensions/common/extensions.js";
|
|
6
|
+
import * as htmlContent from "../../../base/common/htmlContent.js";
|
|
6
7
|
export declare class ExtHostStatusBarEntry implements vscode.StatusBarItem {
|
|
7
8
|
#private;
|
|
9
|
+
private _onDispose?;
|
|
8
10
|
private static ID_GEN;
|
|
9
11
|
private static ALLOWED_BACKGROUND_COLORS;
|
|
10
12
|
private readonly _entryId;
|
|
@@ -16,6 +18,7 @@ export declare class ExtHostStatusBarEntry implements vscode.StatusBarItem {
|
|
|
16
18
|
private _visible?;
|
|
17
19
|
private _text;
|
|
18
20
|
private _tooltip?;
|
|
21
|
+
private _tooltip2?;
|
|
19
22
|
private _name?;
|
|
20
23
|
private _color?;
|
|
21
24
|
private _backgroundColor?;
|
|
@@ -24,15 +27,17 @@ export declare class ExtHostStatusBarEntry implements vscode.StatusBarItem {
|
|
|
24
27
|
private _command?;
|
|
25
28
|
private _timeoutHandle;
|
|
26
29
|
private _accessibilityInformation?;
|
|
27
|
-
constructor(proxy: MainThreadStatusBarShape, commands: CommandsConverter, staticItems: ReadonlyMap<string, StatusBarItemDto>, extension: IExtensionDescription, id?: string, alignment?: ExtHostStatusBarAlignment, priority?: number);
|
|
28
|
-
constructor(proxy: MainThreadStatusBarShape, commands: CommandsConverter, staticItems: ReadonlyMap<string, StatusBarItemDto>, extension: IExtensionDescription | undefined, id: string, alignment?: ExtHostStatusBarAlignment, priority?: number);
|
|
30
|
+
constructor(proxy: MainThreadStatusBarShape, commands: CommandsConverter, staticItems: ReadonlyMap<string, StatusBarItemDto>, extension: IExtensionDescription, id?: string, alignment?: ExtHostStatusBarAlignment, priority?: number, _onDispose?: () => void);
|
|
31
|
+
constructor(proxy: MainThreadStatusBarShape, commands: CommandsConverter, staticItems: ReadonlyMap<string, StatusBarItemDto>, extension: IExtensionDescription | undefined, id: string, alignment?: ExtHostStatusBarAlignment, priority?: number, _onDispose?: () => void);
|
|
29
32
|
private validatePriority;
|
|
30
33
|
get id(): string;
|
|
34
|
+
get entryId(): string;
|
|
31
35
|
get alignment(): vscode.StatusBarAlignment;
|
|
32
36
|
get priority(): number | undefined;
|
|
33
37
|
get text(): string;
|
|
34
38
|
get name(): string | undefined;
|
|
35
39
|
get tooltip(): vscode.MarkdownString | string | undefined;
|
|
40
|
+
get tooltip2(): vscode.MarkdownString | string | undefined | ((token: vscode.CancellationToken) => Promise<vscode.MarkdownString | string | undefined>);
|
|
36
41
|
get color(): string | ThemeColor | undefined;
|
|
37
42
|
get backgroundColor(): ThemeColor | undefined;
|
|
38
43
|
get command(): string | vscode.Command | undefined;
|
|
@@ -40,6 +45,7 @@ export declare class ExtHostStatusBarEntry implements vscode.StatusBarItem {
|
|
|
40
45
|
set text(text: string);
|
|
41
46
|
set name(name: string | undefined);
|
|
42
47
|
set tooltip(tooltip: vscode.MarkdownString | string | undefined);
|
|
48
|
+
set tooltip2(tooltip: vscode.MarkdownString | string | undefined | ((token: vscode.CancellationToken) => Promise<vscode.MarkdownString | string | undefined>));
|
|
43
49
|
set color(color: string | ThemeColor | undefined);
|
|
44
50
|
set backgroundColor(color: ThemeColor | undefined);
|
|
45
51
|
set command(command: string | vscode.Command | undefined);
|
|
@@ -53,9 +59,11 @@ export declare class ExtHostStatusBar implements ExtHostStatusBarShape {
|
|
|
53
59
|
private readonly _proxy;
|
|
54
60
|
private readonly _commands;
|
|
55
61
|
private readonly _statusMessage;
|
|
62
|
+
private readonly _entries;
|
|
56
63
|
private readonly _existingItems;
|
|
57
64
|
constructor(mainContext: IMainContext, commands: CommandsConverter);
|
|
58
65
|
$acceptStaticEntries(added: StatusBarItemDto[]): void;
|
|
66
|
+
$provideTooltip(entryId: string, cancellation: vscode.CancellationToken): Promise<string | htmlContent.IMarkdownString | undefined>;
|
|
59
67
|
createStatusBarEntry(extension: IExtensionDescription | undefined, id: string, alignment?: ExtHostStatusBarAlignment, priority?: number): vscode.StatusBarItem;
|
|
60
68
|
createStatusBarEntry(extension: IExtensionDescription, id?: string, alignment?: ExtHostStatusBarAlignment, priority?: number): vscode.StatusBarItem;
|
|
61
69
|
setStatusBarMessage(text: string, timeoutOrThenable?: number | Thenable<any>): Disposable;
|
|
@@ -5,6 +5,7 @@ import { localize } from '../../../nls.js';
|
|
|
5
5
|
import { DisposableStore } from '../../../base/common/lifecycle.js';
|
|
6
6
|
import { MarkdownString } from './extHostTypeConverters.js';
|
|
7
7
|
import { isNumber } from '../../../base/common/types.js';
|
|
8
|
+
import { checkProposedApiEnabled } from '../../services/extensions/common/extensions.js';
|
|
8
9
|
|
|
9
10
|
class ExtHostStatusBarEntry {
|
|
10
11
|
static { this.ID_GEN = 0; }
|
|
@@ -14,7 +15,8 @@ class ExtHostStatusBarEntry {
|
|
|
14
15
|
])); }
|
|
15
16
|
#proxy;
|
|
16
17
|
#commands;
|
|
17
|
-
constructor(proxy, commands, staticItems, extension, id, alignment = StatusBarAlignment.Left, priority) {
|
|
18
|
+
constructor(proxy, commands, staticItems, extension, id, alignment = StatusBarAlignment.Left, priority, _onDispose) {
|
|
19
|
+
this._onDispose = _onDispose;
|
|
18
20
|
this._disposed = false;
|
|
19
21
|
this._text = '';
|
|
20
22
|
this._staleCommandRegistrations = ( new DisposableStore());
|
|
@@ -57,6 +59,9 @@ class ExtHostStatusBarEntry {
|
|
|
57
59
|
get id() {
|
|
58
60
|
return this._id ?? this._extension.identifier.value;
|
|
59
61
|
}
|
|
62
|
+
get entryId() {
|
|
63
|
+
return this._entryId;
|
|
64
|
+
}
|
|
60
65
|
get alignment() {
|
|
61
66
|
return this._alignment;
|
|
62
67
|
}
|
|
@@ -72,6 +77,12 @@ class ExtHostStatusBarEntry {
|
|
|
72
77
|
get tooltip() {
|
|
73
78
|
return this._tooltip;
|
|
74
79
|
}
|
|
80
|
+
get tooltip2() {
|
|
81
|
+
if (this._extension) {
|
|
82
|
+
checkProposedApiEnabled(this._extension, 'statusBarItemTooltip');
|
|
83
|
+
}
|
|
84
|
+
return this._tooltip2;
|
|
85
|
+
}
|
|
75
86
|
get color() {
|
|
76
87
|
return this._color;
|
|
77
88
|
}
|
|
@@ -96,6 +107,13 @@ class ExtHostStatusBarEntry {
|
|
|
96
107
|
this._tooltip = tooltip;
|
|
97
108
|
this.update();
|
|
98
109
|
}
|
|
110
|
+
set tooltip2(tooltip) {
|
|
111
|
+
if (this._extension) {
|
|
112
|
+
checkProposedApiEnabled(this._extension, 'statusBarItemTooltip');
|
|
113
|
+
}
|
|
114
|
+
this._tooltip2 = tooltip;
|
|
115
|
+
this.update();
|
|
116
|
+
}
|
|
99
117
|
set color(color) {
|
|
100
118
|
this._color = color;
|
|
101
119
|
this.update();
|
|
@@ -170,7 +188,7 @@ class ExtHostStatusBarEntry {
|
|
|
170
188
|
}
|
|
171
189
|
else {
|
|
172
190
|
name = ( localize(
|
|
173
|
-
|
|
191
|
+
2486,
|
|
174
192
|
"{0} (Extension)",
|
|
175
193
|
this._extension.displayName || this._extension.name
|
|
176
194
|
));
|
|
@@ -179,13 +197,23 @@ class ExtHostStatusBarEntry {
|
|
|
179
197
|
if (this._backgroundColor) {
|
|
180
198
|
color = ExtHostStatusBarEntry.ALLOWED_BACKGROUND_COLORS.get(this._backgroundColor.id);
|
|
181
199
|
}
|
|
182
|
-
|
|
183
|
-
|
|
200
|
+
let tooltip;
|
|
201
|
+
let hasTooltipProvider;
|
|
202
|
+
if (typeof this._tooltip2 === 'function') {
|
|
203
|
+
tooltip = MarkdownString.fromStrict(this._tooltip);
|
|
204
|
+
hasTooltipProvider = true;
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
tooltip = MarkdownString.fromStrict(this._tooltip2 ?? this._tooltip);
|
|
208
|
+
hasTooltipProvider = false;
|
|
209
|
+
}
|
|
210
|
+
this.#proxy.$setEntry(this._entryId, id, this._extension?.identifier.value, name, this._text, tooltip, hasTooltipProvider, this._command?.internal, color, this._backgroundColor, this._alignment === StatusBarAlignment.Left, this._priority, this._accessibilityInformation);
|
|
184
211
|
this._staleCommandRegistrations.clear();
|
|
185
212
|
}, 0);
|
|
186
213
|
}
|
|
187
214
|
dispose() {
|
|
188
215
|
this.hide();
|
|
216
|
+
this._onDispose?.();
|
|
189
217
|
this._disposed = true;
|
|
190
218
|
}
|
|
191
219
|
}
|
|
@@ -193,7 +221,7 @@ class StatusBarMessage {
|
|
|
193
221
|
constructor(statusBar) {
|
|
194
222
|
this._messages = [];
|
|
195
223
|
this._item = statusBar.createStatusBarEntry(undefined, 'status.extensionMessage', StatusBarAlignment.Left, Number.MIN_VALUE);
|
|
196
|
-
this._item.name = ( localize(
|
|
224
|
+
this._item.name = ( localize(2487, "Extension Status"));
|
|
197
225
|
}
|
|
198
226
|
dispose() {
|
|
199
227
|
this._messages.length = 0;
|
|
@@ -223,6 +251,7 @@ class StatusBarMessage {
|
|
|
223
251
|
}
|
|
224
252
|
class ExtHostStatusBar {
|
|
225
253
|
constructor(mainContext, commands) {
|
|
254
|
+
this._entries = ( new Map());
|
|
226
255
|
this._existingItems = ( new Map());
|
|
227
256
|
this._proxy = ( mainContext.getProxy(MainContext.MainThreadStatusBar));
|
|
228
257
|
this._commands = commands;
|
|
@@ -233,16 +262,27 @@ class ExtHostStatusBar {
|
|
|
233
262
|
this._existingItems.set(item.entryId, item);
|
|
234
263
|
}
|
|
235
264
|
}
|
|
265
|
+
async $provideTooltip(entryId, cancellation) {
|
|
266
|
+
const entry = this._entries.get(entryId);
|
|
267
|
+
if (!entry) {
|
|
268
|
+
return undefined;
|
|
269
|
+
}
|
|
270
|
+
const tooltip = typeof entry.tooltip2 === 'function' ? await entry.tooltip2(cancellation) : entry.tooltip2;
|
|
271
|
+
return !cancellation.isCancellationRequested ? MarkdownString.fromStrict(tooltip) : undefined;
|
|
272
|
+
}
|
|
236
273
|
createStatusBarEntry(extension, id, alignment, priority) {
|
|
237
|
-
|
|
274
|
+
const entry = ( new ExtHostStatusBarEntry(
|
|
238
275
|
this._proxy,
|
|
239
276
|
this._commands,
|
|
240
277
|
this._existingItems,
|
|
241
278
|
extension,
|
|
242
279
|
id,
|
|
243
280
|
alignment,
|
|
244
|
-
priority
|
|
281
|
+
priority,
|
|
282
|
+
() => this._entries.delete(entry.entryId)
|
|
245
283
|
));
|
|
284
|
+
this._entries.set(entry.entryId, entry);
|
|
285
|
+
return entry;
|
|
246
286
|
}
|
|
247
287
|
setStatusBarMessage(text, timeoutOrThenable) {
|
|
248
288
|
const d = this._statusMessage.setMessage(text);
|
|
@@ -8,7 +8,7 @@ import { ILoggerService } from '../../../platform/log/common/log.service.js';
|
|
|
8
8
|
import { IExtHostInitDataService } from './extHostInitDataService.js';
|
|
9
9
|
import { UIKind } from '../../services/extensions/common/extensionHostProtocol.js';
|
|
10
10
|
import { getRemoteName } from '../../../platform/remote/common/remoteHosts.js';
|
|
11
|
-
import { extensionTelemetryLogChannelId, cleanRemoteAuthority, cleanData } from '../../../platform/telemetry/common/telemetryUtils.js';
|
|
11
|
+
import { TelemetryLogGroup, extensionTelemetryLogChannelId, cleanRemoteAuthority, cleanData } from '../../../platform/telemetry/common/telemetryUtils.js';
|
|
12
12
|
import { mixin } from '../../../base/common/objects.js';
|
|
13
13
|
import { URI } from '../../../base/common/uri.js';
|
|
14
14
|
import { Disposable } from '../../../base/common/lifecycle.js';
|
|
@@ -30,19 +30,22 @@ let ExtHostTelemetry = class ExtHostTelemetry extends Disposable {
|
|
|
30
30
|
this._telemetryLoggers = ( new Map());
|
|
31
31
|
this.extHostTelemetryLogFile = URI.revive(this.initData.environment.extensionTelemetryLogResource);
|
|
32
32
|
this._inLoggingOnlyMode = this.initData.environment.isExtensionTelemetryLoggingOnly;
|
|
33
|
-
this._outputLogger = loggerService.createLogger(this.extHostTelemetryLogFile, {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
this._outputLogger = loggerService.createLogger(this.extHostTelemetryLogFile, {
|
|
34
|
+
id: extensionTelemetryLogChannelId,
|
|
35
|
+
name: ( localize(
|
|
36
|
+
2488,
|
|
37
|
+
"Extension Telemetry{0}",
|
|
38
|
+
this._inLoggingOnlyMode ? ' (Not Sent)' : ''
|
|
39
|
+
)),
|
|
40
|
+
hidden: true,
|
|
41
|
+
group: TelemetryLogGroup,
|
|
42
|
+
});
|
|
38
43
|
this._register(this._outputLogger);
|
|
39
44
|
this._register(loggerService.onDidChangeLogLevel(arg => {
|
|
40
45
|
if (isLogLevel(arg)) {
|
|
41
46
|
this.updateLoggerVisibility();
|
|
42
47
|
}
|
|
43
48
|
}));
|
|
44
|
-
this._outputLogger.info('Below are logs for extension telemetry events sent to the telemetry output channel API once the log level is set to trace.');
|
|
45
|
-
this._outputLogger.info('===========================================================');
|
|
46
49
|
}
|
|
47
50
|
updateLoggerVisibility() {
|
|
48
51
|
this.loggerService.setVisibility(this.extHostTelemetryLogFile, this._telemetryIsSupported && this.loggerService.getLogLevel() === LogLevel.Trace);
|
|
@@ -84,6 +87,7 @@ let ExtHostTelemetry = class ExtHostTelemetry extends Disposable {
|
|
|
84
87
|
commonProperties['common.extversion'] = extension.version;
|
|
85
88
|
commonProperties['common.vscodemachineid'] = this.initData.telemetryInfo.machineId;
|
|
86
89
|
commonProperties['common.vscodesessionid'] = this.initData.telemetryInfo.sessionId;
|
|
90
|
+
commonProperties['common.vscodecommithash'] = this.initData.commit;
|
|
87
91
|
commonProperties['common.sqmid'] = this.initData.telemetryInfo.sqmId;
|
|
88
92
|
commonProperties['common.devDeviceId'] = this.initData.telemetryInfo.devDeviceId;
|
|
89
93
|
commonProperties['common.vscodeversion'] = this.initData.version;
|
|
@@ -7,7 +7,7 @@ import { IDisposable, Disposable } from "../../../base/common/lifecycle.js";
|
|
|
7
7
|
import { TerminalExitReason, TerminalCompletionItem } from "./extHostTypes.js";
|
|
8
8
|
import { IExtensionDescription } from "../../../platform/extensions/common/extensions.js";
|
|
9
9
|
import { IEnvironmentVariableCollectionDescription, IEnvironmentVariableMutator, ISerializableEnvironmentVariableCollection } from "@codingame/monaco-vscode-terminal-service-override/vscode/vs/platform/terminal/common/environmentVariable";
|
|
10
|
-
import { ICreateContributedTerminalProfileOptions, IShellLaunchConfigDto, ITerminalChildProcess, ITerminalLaunchError, ITerminalProfile, TerminalIcon, TerminalLocation } from "../../../platform/terminal/common/terminal.js";
|
|
10
|
+
import { ICreateContributedTerminalProfileOptions, IShellLaunchConfigDto, ITerminalChildProcess, ITerminalLaunchError, ITerminalProfile, TerminalIcon, TerminalLocation, TerminalShellType } from "../../../platform/terminal/common/terminal.js";
|
|
11
11
|
import { ThemeColor } from "../../../base/common/themables.js";
|
|
12
12
|
import { IExtHostCommands } from "./extHostCommands.js";
|
|
13
13
|
export interface IExtHostTerminalService extends ExtHostTerminalServiceShape, IDisposable {
|
|
@@ -81,6 +81,7 @@ export declare class ExtHostTerminal extends Disposable {
|
|
|
81
81
|
setExitStatus(code: number | undefined, reason: TerminalExitReason): void;
|
|
82
82
|
setDimensions(cols: number, rows: number): boolean;
|
|
83
83
|
setInteractedWith(): boolean;
|
|
84
|
+
setShellType(shellType: TerminalShellType | undefined): boolean;
|
|
84
85
|
setSelection(selection: string | undefined): void;
|
|
85
86
|
_setProcessId(processId: number | undefined): void;
|
|
86
87
|
}
|
|
@@ -162,6 +163,7 @@ export declare abstract class BaseExtHostTerminalService extends Disposable impl
|
|
|
162
163
|
registerProfileProvider(extension: IExtensionDescription, id: string, provider: vscode.TerminalProfileProvider): vscode.Disposable;
|
|
163
164
|
registerTerminalCompletionProvider(extension: IExtensionDescription, provider: vscode.TerminalCompletionProvider<TerminalCompletionItem>, ...triggerCharacters: string[]): vscode.Disposable;
|
|
164
165
|
$provideTerminalCompletions(id: string, options: ITerminalCompletionContextDto): Promise<vscode.TerminalCompletionItem[] | vscode.TerminalCompletionList | undefined>;
|
|
166
|
+
$acceptTerminalShellType(id: number, shellType: TerminalShellType | undefined): void;
|
|
165
167
|
registerTerminalQuickFixProvider(id: string, extensionId: string, provider: vscode.TerminalQuickFixProvider): vscode.Disposable;
|
|
166
168
|
$provideTerminalQuickFixes(id: string, matchResult: TerminalCommandMatchResultDto): Promise<(ITerminalQuickFixTerminalCommandDto | ITerminalQuickFixOpenerDto | ICommandDto)[] | ITerminalQuickFixTerminalCommandDto | ITerminalQuickFixOpenerDto | ICommandDto | undefined>;
|
|
167
169
|
$createContributedProfileTerminal(id: string, options: ICreateContributedTerminalProfileOptions): Promise<void>;
|
|
@@ -6,13 +6,13 @@ import { createDecorator } from '../../../platform/instantiation/common/instanti
|
|
|
6
6
|
import { URI } from '../../../base/common/uri.js';
|
|
7
7
|
import { IExtHostRpcService } from './extHostRpcService.js';
|
|
8
8
|
import { Disposable, MutableDisposable, DisposableStore } from '../../../base/common/lifecycle.js';
|
|
9
|
-
import { Disposable as Disposable$1, EnvironmentVariableMutatorType } from './extHostTypes.js';
|
|
9
|
+
import { TerminalShellType, Disposable as Disposable$1, EnvironmentVariableMutatorType } from './extHostTypes.js';
|
|
10
10
|
import { localize } from '../../../nls.js';
|
|
11
11
|
import { NotSupportedError } from '../../../base/common/errors.js';
|
|
12
12
|
import { serializeEnvironmentVariableCollection, serializeEnvironmentDescriptionMap } from '../../../platform/terminal/common/environmentVariableShared.js';
|
|
13
13
|
import { CancellationTokenSource } from '../../../base/common/cancellation.js';
|
|
14
14
|
import { generateUuid } from '../../../base/common/uuid.js';
|
|
15
|
-
import { ProcessPropertyType } from '../../../platform/terminal/common/terminal.js';
|
|
15
|
+
import { GeneralShellType, WindowsShellType, PosixShellType, ProcessPropertyType } from '../../../platform/terminal/common/terminal.js';
|
|
16
16
|
import { TerminalDataBufferer } from '../../../platform/terminal/common/terminalDataBuffering.js';
|
|
17
17
|
import { ThemeColor } from '../../../base/common/themables.js';
|
|
18
18
|
import { Promises } from '../../../base/common/async.js';
|
|
@@ -29,7 +29,7 @@ class ExtHostTerminal extends Disposable {
|
|
|
29
29
|
this._creationOptions = _creationOptions;
|
|
30
30
|
this._name = _name;
|
|
31
31
|
this._disposed = false;
|
|
32
|
-
this._state = { isInteractedWith: false };
|
|
32
|
+
this._state = { isInteractedWith: false, shellType: undefined };
|
|
33
33
|
this.isOpen = false;
|
|
34
34
|
this._onWillDispose = this._register(( new Emitter()));
|
|
35
35
|
this.onWillDispose = this._onWillDispose.event;
|
|
@@ -167,7 +167,62 @@ class ExtHostTerminal extends Disposable {
|
|
|
167
167
|
}
|
|
168
168
|
setInteractedWith() {
|
|
169
169
|
if (!this._state.isInteractedWith) {
|
|
170
|
-
this._state = {
|
|
170
|
+
this._state = {
|
|
171
|
+
...this._state,
|
|
172
|
+
isInteractedWith: true
|
|
173
|
+
};
|
|
174
|
+
return true;
|
|
175
|
+
}
|
|
176
|
+
return false;
|
|
177
|
+
}
|
|
178
|
+
setShellType(shellType) {
|
|
179
|
+
let extHostType;
|
|
180
|
+
switch (shellType) {
|
|
181
|
+
case PosixShellType.Sh:
|
|
182
|
+
extHostType = TerminalShellType.Sh;
|
|
183
|
+
break;
|
|
184
|
+
case PosixShellType.Bash:
|
|
185
|
+
extHostType = TerminalShellType.Bash;
|
|
186
|
+
break;
|
|
187
|
+
case PosixShellType.Fish:
|
|
188
|
+
extHostType = TerminalShellType.Fish;
|
|
189
|
+
break;
|
|
190
|
+
case PosixShellType.Csh:
|
|
191
|
+
extHostType = TerminalShellType.Csh;
|
|
192
|
+
break;
|
|
193
|
+
case PosixShellType.Ksh:
|
|
194
|
+
extHostType = TerminalShellType.Ksh;
|
|
195
|
+
break;
|
|
196
|
+
case PosixShellType.Zsh:
|
|
197
|
+
extHostType = TerminalShellType.Zsh;
|
|
198
|
+
break;
|
|
199
|
+
case WindowsShellType.CommandPrompt:
|
|
200
|
+
extHostType = TerminalShellType.CommandPrompt;
|
|
201
|
+
break;
|
|
202
|
+
case WindowsShellType.GitBash:
|
|
203
|
+
extHostType = TerminalShellType.GitBash;
|
|
204
|
+
break;
|
|
205
|
+
case GeneralShellType.PowerShell:
|
|
206
|
+
extHostType = TerminalShellType.PowerShell;
|
|
207
|
+
break;
|
|
208
|
+
case GeneralShellType.Python:
|
|
209
|
+
extHostType = TerminalShellType.Python;
|
|
210
|
+
break;
|
|
211
|
+
case GeneralShellType.Julia:
|
|
212
|
+
extHostType = TerminalShellType.Julia;
|
|
213
|
+
break;
|
|
214
|
+
case GeneralShellType.NuShell:
|
|
215
|
+
extHostType = TerminalShellType.NuShell;
|
|
216
|
+
break;
|
|
217
|
+
default:
|
|
218
|
+
extHostType = undefined;
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
221
|
+
if (this._state.shellType !== shellType) {
|
|
222
|
+
this._state = {
|
|
223
|
+
...this._state,
|
|
224
|
+
shellType: extHostType
|
|
225
|
+
};
|
|
171
226
|
return true;
|
|
172
227
|
}
|
|
173
228
|
return false;
|
|
@@ -242,7 +297,7 @@ class ExtHostPseudoterminal {
|
|
|
242
297
|
startSendingEvents(initialDimensions) {
|
|
243
298
|
this._pty.onDidWrite(e => this._onProcessData.fire(e));
|
|
244
299
|
this._pty.onDidClose?.((e = undefined) => {
|
|
245
|
-
this._onProcessExit.fire(e ===
|
|
300
|
+
this._onProcessExit.fire(e === void 0 ? undefined : e);
|
|
246
301
|
});
|
|
247
302
|
this._pty.onDidOverrideDimensions?.(e => {
|
|
248
303
|
if (e) {
|
|
@@ -469,7 +524,7 @@ let BaseExtHostTerminalService = class BaseExtHostTerminalService extends Dispos
|
|
|
469
524
|
async $startExtensionTerminal(id, initialDimensions) {
|
|
470
525
|
const terminal = this.getTerminalById(id);
|
|
471
526
|
if (!terminal) {
|
|
472
|
-
return { message: ( localize(
|
|
527
|
+
return { message: ( localize(2489, "Could not find the terminal with id {0} on the extension host", id)) };
|
|
473
528
|
}
|
|
474
529
|
if (!terminal.isOpen) {
|
|
475
530
|
await ( new Promise(r => {
|
|
@@ -578,6 +633,12 @@ let BaseExtHostTerminalService = class BaseExtHostTerminalService extends Dispos
|
|
|
578
633
|
}
|
|
579
634
|
return completions;
|
|
580
635
|
}
|
|
636
|
+
$acceptTerminalShellType(id, shellType) {
|
|
637
|
+
const terminal = this.getTerminalById(id);
|
|
638
|
+
if (terminal?.setShellType(shellType)) {
|
|
639
|
+
this._onDidChangeTerminalState.fire(terminal.value);
|
|
640
|
+
}
|
|
641
|
+
}
|
|
581
642
|
registerTerminalQuickFixProvider(id, extensionId, provider) {
|
|
582
643
|
if (( this._quickFixProviders.has(id))) {
|
|
583
644
|
throw ( new Error(`Terminal quick fix provider "${id}" is already registered`));
|
|
@@ -29,6 +29,7 @@ export declare class ExtHostTerminalShellIntegration extends Disposable implemen
|
|
|
29
29
|
$shellExecutionStart(instanceId: number, commandLineValue: string, commandLineConfidence: TerminalShellExecutionCommandLineConfidence, isTrusted: boolean, cwd: UriComponents | undefined): void;
|
|
30
30
|
$shellExecutionEnd(instanceId: number, commandLineValue: string, commandLineConfidence: TerminalShellExecutionCommandLineConfidence, isTrusted: boolean, exitCode: number | undefined): void;
|
|
31
31
|
$shellExecutionData(instanceId: number, data: string): void;
|
|
32
|
+
$shellEnvChange(instanceId: number, shellEnvKeys: string[], shellEnvValues: string[]): void;
|
|
32
33
|
$cwdChange(instanceId: number, cwd: UriComponents | undefined): void;
|
|
33
34
|
$closeTerminal(instanceId: number): void;
|
|
34
35
|
}
|
|
@@ -73,6 +73,9 @@ let ExtHostTerminalShellIntegration = class ExtHostTerminalShellIntegration exte
|
|
|
73
73
|
$shellExecutionData(instanceId, data) {
|
|
74
74
|
this._activeShellIntegrations.get(instanceId)?.emitData(data);
|
|
75
75
|
}
|
|
76
|
+
$shellEnvChange(instanceId, shellEnvKeys, shellEnvValues) {
|
|
77
|
+
this._activeShellIntegrations.get(instanceId)?.setEnv(shellEnvKeys, shellEnvValues);
|
|
78
|
+
}
|
|
76
79
|
$cwdChange(instanceId, cwd) {
|
|
77
80
|
this._activeShellIntegrations.get(instanceId)?.setCwd(URI.revive(cwd));
|
|
78
81
|
}
|
|
@@ -104,6 +107,9 @@ class InternalTerminalShellIntegration extends Disposable {
|
|
|
104
107
|
get cwd() {
|
|
105
108
|
return that._cwd;
|
|
106
109
|
},
|
|
110
|
+
get env() {
|
|
111
|
+
return that._env;
|
|
112
|
+
},
|
|
107
113
|
executeCommand(commandLineOrExecutable, args) {
|
|
108
114
|
let commandLineValue = commandLineOrExecutable;
|
|
109
115
|
if (args) {
|
|
@@ -158,6 +164,14 @@ class InternalTerminalShellIntegration extends Disposable {
|
|
|
158
164
|
this._currentExecution = undefined;
|
|
159
165
|
}
|
|
160
166
|
}
|
|
167
|
+
setEnv(keys, values) {
|
|
168
|
+
const env = {};
|
|
169
|
+
for (let i = 0; i < keys.length; i++) {
|
|
170
|
+
env[keys[i]] = values[i];
|
|
171
|
+
}
|
|
172
|
+
this._env = env;
|
|
173
|
+
this._fireChangeEvent();
|
|
174
|
+
}
|
|
161
175
|
setCwd(cwd) {
|
|
162
176
|
let wasChanged = false;
|
|
163
177
|
if (URI.isUri(this._cwd)) {
|
|
@@ -168,9 +182,12 @@ class InternalTerminalShellIntegration extends Disposable {
|
|
|
168
182
|
}
|
|
169
183
|
if (wasChanged) {
|
|
170
184
|
this._cwd = cwd;
|
|
171
|
-
this.
|
|
185
|
+
this._fireChangeEvent();
|
|
172
186
|
}
|
|
173
187
|
}
|
|
188
|
+
_fireChangeEvent() {
|
|
189
|
+
this._onDidRequestChangeShellIntegration.fire({ terminal: this._terminal, shellIntegration: this.value });
|
|
190
|
+
}
|
|
174
191
|
}
|
|
175
192
|
class InternalTerminalShellExecution {
|
|
176
193
|
constructor(_commandLine, cwd) {
|