@codingame/monaco-vscode-api 17.2.1 → 18.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/missing-services.js +282 -81
- package/package.json +8 -8
- package/services.d.ts +3 -4
- package/services.js +3 -3
- package/vscode/src/vs/base/browser/dnd.js +3 -2
- package/vscode/src/vs/base/browser/domImpl/domObservable.js +1 -1
- package/vscode/src/vs/base/browser/domImpl/n.js +5 -5
- package/vscode/src/vs/base/browser/markdownRenderer.d.ts +3 -3
- package/vscode/src/vs/base/browser/markdownRenderer.js +12 -10
- package/vscode/src/vs/base/browser/touch.js +1 -0
- package/vscode/src/vs/base/browser/ui/button/button.d.ts +10 -1
- package/vscode/src/vs/base/browser/ui/button/button.js +12 -4
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/list/list.d.ts +5 -2
- package/vscode/src/vs/base/browser/ui/list/listPaging.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/list/listPaging.js +3 -3
- package/vscode/src/vs/base/browser/ui/list/listView.js +5 -5
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +7 -7
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +4 -4
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +6 -6
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +14 -6
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.d.ts +4 -3
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +16 -15
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +12 -12
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/media/tree.css +2 -1
- package/vscode/src/vs/base/browser/ui/tree/objectTree.d.ts +3 -3
- package/vscode/src/vs/base/browser/ui/tree/objectTree.js +7 -10
- package/vscode/src/vs/base/browser/ui/tree/tree.d.ts +6 -1
- package/vscode/src/vs/base/browser/webWorkerFactory.js +1 -4
- package/vscode/src/vs/base/common/arrays.d.ts +3 -1
- package/vscode/src/vs/base/common/arrays.js +5 -1
- package/vscode/src/vs/base/common/async.d.ts +18 -3
- package/vscode/src/vs/base/common/async.js +105 -39
- package/vscode/src/vs/base/common/buffer.d.ts +2 -0
- package/vscode/src/vs/base/common/buffer.js +36 -1
- package/vscode/src/vs/base/common/codicons.d.ts +5 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +5 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +5 -0
- package/vscode/src/vs/base/common/comparers.js +4 -3
- package/vscode/src/vs/base/common/date.d.ts +6 -4
- package/vscode/src/vs/base/common/date.js +43 -24
- package/vscode/src/vs/base/common/decorators.js +1 -0
- package/vscode/src/vs/base/common/errors.d.ts +6 -0
- package/vscode/src/vs/base/common/errors.js +11 -1
- package/vscode/src/vs/base/common/event.d.ts +2 -1
- package/vscode/src/vs/base/common/event.js +11 -3
- package/vscode/src/vs/base/common/hash.d.ts +1 -1
- package/vscode/src/vs/base/common/hash.js +2 -2
- package/vscode/src/vs/base/common/hotReloadHelpers.js +3 -2
- package/vscode/src/vs/base/common/htmlContent.d.ts +1 -1
- package/vscode/src/vs/base/common/iterator.d.ts +3 -1
- package/vscode/src/vs/base/common/iterator.js +20 -2
- package/vscode/src/vs/base/common/json.d.ts +1 -1
- package/vscode/src/vs/base/common/marshalling.d.ts +1 -1
- package/vscode/src/vs/base/common/marshallingIds.d.ts +1 -2
- package/vscode/src/vs/base/common/marshallingIds.js +0 -1
- package/vscode/src/vs/base/common/numbers.d.ts +1 -1
- package/vscode/src/vs/base/common/oauth.d.ts +143 -0
- package/vscode/src/vs/base/common/oauth.js +124 -0
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +5 -75
- package/vscode/src/vs/base/common/observableInternal/base.js +2 -279
- package/vscode/src/vs/base/common/observableInternal/changeTracker.js +3 -0
- package/vscode/src/vs/base/common/observableInternal/commonFacade/cancellation.d.ts +1 -1
- package/vscode/src/vs/base/common/observableInternal/commonFacade/deps.d.ts +1 -1
- package/vscode/src/vs/base/common/observableInternal/{reducer.d.ts → experimental/reducer.d.ts} +5 -5
- package/vscode/src/vs/base/common/observableInternal/{reducer.js → experimental/reducer.js} +7 -5
- package/vscode/src/vs/base/common/observableInternal/experimental/utils.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/experimental/utils.js +47 -0
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +21 -7
- package/vscode/src/vs/base/common/observableInternal/index.js +6 -3
- package/vscode/src/vs/base/common/observableInternal/logging/consoleObservableLogger.d.ts +5 -4
- package/vscode/src/vs/base/common/observableInternal/logging/consoleObservableLogger.js +1 -1
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/devToolsLogger.d.ts +4 -3
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/devToolsLogger.js +4 -4
- package/vscode/src/vs/base/common/observableInternal/logging/logging.d.ts +4 -3
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.d.ts +38 -0
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.js +111 -0
- package/vscode/src/vs/base/common/observableInternal/observables/constObservable.d.ts +2 -0
- package/vscode/src/vs/base/common/observableInternal/observables/constObservable.js +30 -0
- package/vscode/src/vs/base/common/observableInternal/observables/derived.d.ts +20 -0
- package/vscode/src/vs/base/common/observableInternal/observables/derived.js +58 -0
- package/vscode/src/vs/base/common/observableInternal/{derived.d.ts → observables/derivedImpl.d.ts} +14 -22
- package/vscode/src/vs/base/common/observableInternal/{derived.js → observables/derivedImpl.js} +63 -94
- package/vscode/src/vs/base/common/observableInternal/{lazyObservableValue.d.ts → observables/lazyObservableValue.d.ts} +4 -3
- package/vscode/src/vs/base/common/observableInternal/{lazyObservableValue.js → observables/lazyObservableValue.js} +3 -2
- package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.d.ts +32 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.js +114 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableSignal.d.ts +6 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableSignal.js +42 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableSignalFromEvent.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableSignalFromEvent.js +36 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableValue.d.ts +26 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableValue.js +98 -0
- package/vscode/src/vs/base/common/observableInternal/{api.d.ts → observables/observableValueOpts.d.ts} +3 -3
- package/vscode/src/vs/base/common/observableInternal/{api.js → observables/observableValueOpts.js} +6 -5
- package/vscode/src/vs/base/common/observableInternal/reactions/autorun.d.ts +21 -0
- package/vscode/src/vs/base/common/observableInternal/reactions/autorun.js +82 -0
- package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.d.ts +44 -0
- package/vscode/src/vs/base/common/observableInternal/{autorun.js → reactions/autorunImpl.js} +50 -84
- package/vscode/src/vs/base/common/observableInternal/set.d.ts +20 -0
- package/vscode/src/vs/base/common/observableInternal/set.js +62 -0
- package/vscode/src/vs/base/common/observableInternal/transaction.d.ts +18 -0
- package/vscode/src/vs/base/common/observableInternal/transaction.js +91 -0
- package/vscode/src/vs/base/common/observableInternal/{promise.d.ts → utils/promise.d.ts} +3 -2
- package/vscode/src/vs/base/common/observableInternal/{promise.js → utils/promise.js} +10 -2
- package/vscode/src/vs/base/common/observableInternal/utils/runOnChange.d.ts +7 -0
- package/vscode/src/vs/base/common/observableInternal/utils/runOnChange.js +58 -0
- package/vscode/src/vs/base/common/observableInternal/utils/utils.d.ts +28 -0
- package/vscode/src/vs/base/common/observableInternal/utils/utils.js +200 -0
- package/vscode/src/vs/base/common/observableInternal/{utilsCancellation.d.ts → utils/utilsCancellation.d.ts} +2 -2
- package/vscode/src/vs/base/common/observableInternal/{utilsCancellation.js → utils/utilsCancellation.js} +7 -7
- package/vscode/src/vs/base/common/observableInternal/utils/valueWithChangeEvent.d.ts +10 -0
- package/vscode/src/vs/base/common/observableInternal/utils/valueWithChangeEvent.js +26 -0
- package/vscode/src/vs/base/common/product.d.ts +5 -2
- package/vscode/src/vs/base/common/strings.d.ts +1 -0
- package/vscode/src/vs/base/common/strings.js +4 -10
- package/vscode/src/vs/base/common/themables.d.ts +2 -2
- package/vscode/src/vs/base/common/themables.js +2 -2
- package/vscode/src/vs/base/common/types.d.ts +2 -1
- package/vscode/src/vs/base/common/types.js +4 -4
- package/vscode/src/vs/base/common/uri.d.ts +2 -2
- package/vscode/src/vs/base/common/uri.js +1 -1
- package/vscode/src/vs/editor/browser/config/editorConfiguration.d.ts +1 -1
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +1 -1
- package/vscode/src/vs/editor/browser/config/elementSizeObserver.d.ts +1 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +1 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +3 -2
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +1 -1
- package/vscode/src/vs/editor/browser/gpu/contentSegmenter.js +1 -1
- package/vscode/src/vs/editor/browser/gpu/gpuDisposable.js +1 -1
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +2 -2
- package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +7 -5
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +11 -7
- package/vscode/src/vs/editor/browser/services/editorWorkerService.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hover.css +4 -0
- package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.d.ts +1 -1
- package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +5 -4
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.d.ts +1 -1
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharRenderer.d.ts +1 -1
- package/vscode/src/vs/editor/browser/viewParts/rulersGpu/rulersGpu.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +3 -2
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +4 -4
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +2 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +8 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +9 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +4 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.js +3 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +8 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/delegatingEditorImpl.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.d.ts +26 -26
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +4 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.d.ts +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +8 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +6 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +12 -11
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +10 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +4 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +3 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.d.ts +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +8 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +4 -3
- package/vscode/src/vs/editor/common/codecs/frontMatterCodec/tokens/index.d.ts +1 -1
- package/vscode/src/vs/editor/common/codecs/simpleCodec/tokens/index.d.ts +1 -1
- package/vscode/src/vs/editor/common/config/editorConfiguration.d.ts +1 -1
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +1 -1
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +159 -153
- package/vscode/src/vs/editor/common/config/editorOptions.js +543 -517
- package/vscode/src/vs/editor/{browser → common/core/2d}/rect.d.ts +1 -1
- package/vscode/src/vs/editor/{browser → common/core/2d}/rect.js +1 -1
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/edits/edit.d.ts +48 -0
- package/vscode/src/vs/editor/common/core/edits/edit.js +227 -0
- package/vscode/src/vs/editor/common/core/edits/lengthEdit.d.ts +25 -0
- package/vscode/src/vs/editor/common/core/edits/lengthEdit.js +92 -0
- package/vscode/src/vs/editor/common/core/{lineEdit.d.ts → edits/lineEdit.d.ts} +9 -8
- package/vscode/src/vs/editor/common/core/{lineEdit.js → edits/lineEdit.js} +17 -17
- package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +43 -0
- package/vscode/src/vs/editor/common/core/edits/stringEdit.js +215 -0
- package/vscode/src/vs/editor/common/core/edits/textEdit.d.ts +39 -0
- package/vscode/src/vs/editor/common/core/{textEdit.js → edits/textEdit.js} +75 -149
- package/vscode/src/vs/editor/common/core/{eolCounter.js → misc/eolCounter.js} +1 -1
- package/vscode/src/vs/editor/common/core/{indentation.js → misc/indentation.js} +2 -2
- package/vscode/src/vs/editor/common/core/{columnRange.d.ts → ranges/columnRange.d.ts} +1 -1
- package/vscode/src/vs/editor/common/core/{columnRange.js → ranges/columnRange.js} +2 -2
- package/vscode/src/vs/editor/common/core/{lineRange.d.ts → ranges/lineRange.d.ts} +6 -4
- package/vscode/src/vs/editor/common/core/{lineRange.js → ranges/lineRange.js} +12 -10
- package/vscode/src/vs/editor/common/core/{offsetRange.d.ts → ranges/offsetRange.d.ts} +2 -1
- package/vscode/src/vs/editor/common/core/{offsetRange.js → ranges/offsetRange.js} +7 -1
- package/vscode/src/vs/editor/common/core/{rangeSingleLine.d.ts → ranges/rangeSingleLine.d.ts} +1 -1
- package/vscode/src/vs/editor/common/core/{rangeSingleLine.js → ranges/rangeSingleLine.js} +1 -1
- package/vscode/src/vs/editor/common/core/text/abstractText.d.ts +35 -0
- package/vscode/src/vs/editor/common/core/text/abstractText.js +84 -0
- package/vscode/src/vs/editor/common/core/text/getPositionOffsetTransformerFromTextModel.d.ts +3 -0
- package/vscode/src/vs/editor/common/core/text/getPositionOffsetTransformerFromTextModel.js +20 -0
- package/vscode/src/vs/editor/common/core/{positionToOffset.d.ts → text/positionToOffset.d.ts} +9 -11
- package/vscode/src/vs/editor/common/core/{positionToOffset.js → text/positionToOffset.js} +14 -29
- package/vscode/src/vs/editor/common/core/{textLength.d.ts → text/textLength.d.ts} +3 -3
- package/vscode/src/vs/editor/common/core/{textLength.js → text/textLength.js} +3 -3
- package/vscode/src/vs/editor/common/core/wordCharacterClassifier.js +1 -1
- package/vscode/src/vs/editor/common/cursorCommon.js +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.d.ts +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +3 -3
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.d.ts +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.d.ts +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.d.ts +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/utils.d.ts +1 -1
- package/vscode/src/vs/editor/common/diff/legacyLinesDiffComputer.js +1 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +4 -3
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +7 -7
- package/vscode/src/vs/editor/common/editorCommon.d.ts +1 -1
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +4 -28
- package/vscode/src/vs/editor/common/languages.js +65 -59
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.d.ts +1 -1
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.js +1 -1
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.js +1 -1
- package/vscode/src/vs/editor/common/model/textModel.d.ts +2 -0
- package/vscode/src/vs/editor/common/model/textModel.js +11 -6
- package/vscode/src/vs/editor/common/model/textModelStringEdit.d.ts +9 -0
- package/vscode/src/vs/editor/common/model/textModelStringEdit.js +45 -0
- package/vscode/src/vs/editor/common/model/textModelText.d.ts +2 -2
- package/vscode/src/vs/editor/common/model/textModelText.js +2 -2
- package/vscode/src/vs/editor/common/model/textModelTokens.d.ts +2 -2
- package/vscode/src/vs/editor/common/model/textModelTokens.js +3 -3
- package/vscode/src/vs/editor/common/model/{tokens.d.ts → tokens/abstractSyntaxTokenBackend.d.ts} +22 -17
- package/vscode/src/vs/editor/common/model/tokens/abstractSyntaxTokenBackend.js +118 -0
- package/vscode/src/vs/editor/common/model/{tokenizationTextModelPart.d.ts → tokens/tokenizationTextModelPart.d.ts} +25 -25
- package/vscode/src/vs/editor/common/model/tokens/tokenizationTextModelPart.js +255 -0
- package/vscode/src/vs/editor/common/model/tokens/tokenizerSyntaxTokenBackend.d.ts +37 -0
- package/vscode/src/vs/editor/common/model/tokens/tokenizerSyntaxTokenBackend.js +257 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/cursorUtils.d.ts +6 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/cursorUtils.js +76 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/tokenStore.d.ts +65 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/tokenStore.js +412 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterSyntaxTokenBackend.d.ts +40 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterSyntaxTokenBackend.js +172 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTokenizationImpl.d.ts +73 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTokenizationImpl.js +682 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTree.d.ts +53 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTree.js +381 -0
- package/vscode/src/vs/editor/common/model.d.ts +1 -0
- package/vscode/src/vs/editor/common/services/languageService.js +1 -1
- package/vscode/src/vs/editor/common/services/modelService.js +1 -1
- package/vscode/src/vs/editor/common/services/treeSitter/treeSitterLibraryService.service.d.ts +11 -0
- package/vscode/src/vs/editor/common/services/treeSitter/treeSitterLibraryService.service.js +6 -0
- package/vscode/src/vs/editor/common/services/treeSitter/treeSitterThemeService.service.d.ts +7 -0
- package/vscode/src/vs/editor/common/services/treeSitter/treeSitterThemeService.service.js +6 -0
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +156 -154
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +156 -154
- package/vscode/src/vs/editor/common/standaloneStrings.js +47 -47
- package/vscode/src/vs/editor/common/textModelEditReason.d.ts +16 -0
- package/vscode/src/vs/editor/common/textModelEditReason.js +29 -0
- package/vscode/src/vs/editor/common/tokens/contiguousMultilineTokens.d.ts +1 -1
- package/vscode/src/vs/editor/common/tokens/contiguousMultilineTokens.js +2 -2
- package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +1 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.js +1 -1
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +1 -1
- package/vscode/src/vs/editor/common/tokens/tokenArray.d.ts +1 -1
- package/vscode/src/vs/editor/common/tokens/tokenArray.js +1 -1
- package/vscode/src/vs/editor/common/tokens/tokenWithTextArray.d.ts +1 -1
- package/vscode/src/vs/editor/common/tokens/tokenWithTextArray.js +1 -1
- package/vscode/src/vs/editor/common/viewLayout/lineHeights.js +4 -2
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.d.ts +3 -8
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +6 -16
- package/vscode/src/vs/editor/common/viewModel/minimapTokensColorTracker.d.ts +1 -1
- package/vscode/src/vs/editor/common/viewModel/minimapTokensColorTracker.js +1 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +24 -17
- 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 +3 -2
- 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/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/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/diffEditorBreadcrumbs/browser/contribution.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +12 -12
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +4 -4
- 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.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +33 -28
- 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/folding/browser/hiddenRangeModel.js +1 -1
- 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.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- 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 +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- 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/indentation/common/indentation.js +1 -1
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +20 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +10 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +15 -14
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/animation.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.d.ts +0 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.js +5 -26
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/computeGhostText.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/computeGhostText.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +21 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +59 -23
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +10 -9
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +12 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +46 -31
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +5 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +7 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/singleTextEditHelpers.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/singleTextEditHelpers.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.js +6 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.d.ts +5 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +14 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +9 -9
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js +3 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +18 -22
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +53 -43
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.d.ts +4 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +4 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsNewUsers.js +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +68 -22
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.js +6 -9
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +5 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +8 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +7 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +12 -16
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.js +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +21 -21
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.d.ts +9 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +31 -9
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- 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/linesOperations/browser/sortLinesCommand.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/linesOperations/browser/sortLinesCommand.js +3 -8
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -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 +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.js +9 -8
- 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.d.ts +1 -1
- 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/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +2 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +2 -2
- 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 +17 -17
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -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/bannerController.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +26 -25
- 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 +11 -11
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +0 -2
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +4 -5
- package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterLibraryService.d.ts +11 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterLibraryService.js +21 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +6 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +81 -68
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +2 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +15 -11
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.d.ts +2 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +9 -9
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.service.d.ts +2 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +11 -8
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +9 -0
- package/vscode/src/vs/platform/actions/common/actions.js +9 -0
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/diagnostics/common/diagnostics.d.ts +1 -2
- package/vscode/src/vs/platform/diagnostics/common/diagnostics.js +2 -1
- 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/editor/common/editor.d.ts +6 -1
- package/vscode/src/vs/platform/environment/common/argv.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifest.service.d.ts +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +2 -3
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +20 -21
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +2 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.service.d.ts +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +15 -7
- package/vscode/src/vs/platform/extensionRecommendations/common/extensionRecommendations.service.d.ts +1 -1
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +10 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +6 -6
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +7 -7
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markerService.js +3 -2
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +22 -0
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.js +7 -0
- package/vscode/src/vs/platform/notification/common/notification.service.d.ts +1 -3
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +2 -2
- package/vscode/src/vs/platform/observable/common/wrapInHotClass.js +1 -1
- package/vscode/src/vs/platform/observable/common/wrapInReloadableClass.js +1 -1
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/progress/common/progress.js +1 -0
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +7 -0
- package/vscode/src/vs/platform/quickinput/browser/quickAccess.js +9 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +8 -8
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +4 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +1 -1
- package/vscode/src/vs/platform/request/common/request.d.ts +1 -1
- package/vscode/src/vs/platform/request/common/request.js +18 -18
- package/vscode/src/vs/platform/request/common/request.service.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +2 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +1 -1
- package/vscode/src/vs/platform/terminal/common/terminalDataBuffering.js +1 -1
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +2 -2
- 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 +94 -94
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +47 -47
- 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.js +6 -6
- 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 +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +2 -2
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.service.d.ts +1 -1
- package/vscode/src/vs/platform/window/common/window.d.ts +12 -4
- package/vscode/src/vs/platform/window/common/window.js +41 -6
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +14 -12
- package/vscode/src/vs/workbench/api/common/extHost.common.services.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +42 -15
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +4 -0
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +64 -3
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +495 -5
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +0 -2
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +84 -75
- package/vscode/src/vs/workbench/api/common/extHostComments.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +4 -3
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +52 -20
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +3 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +199 -29
- package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditor.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.d.ts +1 -4
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +2 -17
- package/vscode/src/vs/workbench/api/common/extHostProgress.d.ts +9 -2
- package/vscode/src/vs/workbench/api/common/extHostProgress.js +19 -6
- package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +11 -0
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostStorage.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +6 -4
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +9 -8
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +70 -45
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +14 -19
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +12 -19
- package/vscode/src/vs/workbench/api/common/extHostUrls.d.ts +7 -2
- package/vscode/src/vs/workbench/api/common/extHostUrls.js +15 -6
- package/vscode/src/vs/workbench/api/common/extHostWindow.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extensionHostMain.js +19 -5
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/api/worker/extHost.worker.services.js +2 -0
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.js +3 -1
- 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/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +4 -5
- package/vscode/src/vs/workbench/common/contextkeys.js +72 -73
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +184 -150
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +10 -15
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +7 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +3 -12
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +50 -37
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +42 -26
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +102 -96
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +17 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +26 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +21 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +1 -1
- 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 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +4 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +38 -13
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +67 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +11 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +6 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/types.d.ts +12 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/types.service.d.ts +11 -6
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +3 -9
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +6 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- 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 +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +64 -64
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +5 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +10 -6
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/issue/common/issue.service.d.ts +0 -5
- 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/mcp/common/mcpRegistryTypes.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +133 -8
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +132 -16
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +26 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.js +3 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +404 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.js +14 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.service.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/scm/common/history.d.ts +14 -4
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.js +6 -2
- package/vscode/src/vs/workbench/contrib/search/browser/replace.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/searchViewModelWorkbenchService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/search/common/searchHistoryService.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.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +14 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExpService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExpService.service.js +6 -0
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +3 -3
- package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.d.ts +1 -0
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.service.d.ts +3 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpAccessService.service.d.ts +14 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpAccessService.service.js +6 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpService.service.d.ts +19 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpService.service.js +6 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpUsageService.service.d.ts +10 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpUsageService.service.js +6 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +15 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +8 -2
- package/vscode/src/vs/workbench/services/authentication/common/dynamicAuthenticationProviderStorage.d.ts +15 -0
- package/vscode/src/vs/workbench/services/authentication/common/dynamicAuthenticationProviderStorage.service.d.ts +18 -0
- package/vscode/src/vs/workbench/services/authentication/common/dynamicAuthenticationProviderStorage.service.js +6 -0
- package/vscode/src/vs/workbench/services/browserElements/browser/browserElementsService.service.d.ts +9 -0
- package/vscode/src/vs/workbench/services/browserElements/browser/browserElementsService.service.js +6 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverExpression.d.ts +2 -1
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverExpression.js +12 -4
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +7 -5
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +2 -3
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +0 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -3
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +84 -84
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +2 -4
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +2 -2
- package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +2 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/search/common/search.d.ts +11 -1
- package/vscode/src/vs/workbench/services/search/common/search.js +10 -1
- package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +1 -1
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.service.d.ts +2 -1
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.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 +13 -13
- package/vscode/src/vs/workbench/services/title/browser/titleService.service.d.ts +2 -1
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +12 -12
- 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-dts/vscode.d.ts +162 -1
- package/vscode-dts/vscode.proposed.aiSettingsSearch.d.ts +1 -0
- package/vscode-dts/vscode.proposed.authIssuers.d.ts +30 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +12 -1
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +10 -17
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +18 -0
- package/vscode-dts/vscode.proposed.contribLanguageModelToolSets.d.ts +6 -0
- package/vscode-dts/vscode.proposed.d.ts +2 -2
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +0 -5
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +1 -3
- package/vscode-dts/vscode.proposed.inlineEdit.d.ts +1 -1
- package/vscode-dts/vscode.proposed.languageModelDataPart.d.ts +7 -32
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +2 -0
- package/vscode/src/vs/base/common/observableInternal/autorun.d.ts +0 -59
- package/vscode/src/vs/base/common/observableInternal/utils.d.ts +0 -78
- package/vscode/src/vs/base/common/observableInternal/utils.js +0 -486
- package/vscode/src/vs/editor/common/core/offsetEdit.d.ts +0 -43
- package/vscode/src/vs/editor/common/core/offsetEdit.js +0 -335
- package/vscode/src/vs/editor/common/core/textEdit.d.ts +0 -71
- package/vscode/src/vs/editor/common/model/textModelOffsetEdit.d.ts +0 -10
- package/vscode/src/vs/editor/common/model/textModelOffsetEdit.js +0 -39
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +0 -507
- package/vscode/src/vs/editor/common/model/tokens.js +0 -81
- package/vscode/src/vs/editor/common/model/treeSitterTokenStoreService.service.d.ts +0 -24
- package/vscode/src/vs/editor/common/model/treeSitterTokenStoreService.service.js +0 -6
- package/vscode/src/vs/editor/common/model/treeSitterTokens.d.ts +0 -31
- package/vscode/src/vs/editor/common/model/treeSitterTokens.js +0 -112
- package/vscode/src/vs/editor/common/services/treeSitterParserService.service.d.ts +0 -27
- package/vscode/src/vs/editor/common/services/treeSitterParserService.service.js +0 -7
- package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterService.d.ts +0 -19
- package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterService.js +0 -29
- package/vscode/src/vs/platform/native/common/native.d.ts +0 -168
- package/vscode/src/vs/workbench/services/treeSitter/browser/treeSitterTokenizationFeature.service.d.ts +0 -4
- package/vscode/src/vs/workbench/services/treeSitter/browser/treeSitterTokenizationFeature.service.js +0 -6
- package/vscode-dts/vscode.proposed.mcpConfigurationProvider.d.ts +0 -139
- package/vscode-dts/vscode.proposed.notebookCellExecutionState.d.ts +0 -52
- /package/vscode/src/vs/editor/browser/{dnd.d.ts → dataTransfer.d.ts} +0 -0
- /package/vscode/src/vs/editor/browser/{dnd.js → dataTransfer.js} +0 -0
- /package/vscode/src/vs/editor/common/core/{dimension.d.ts → 2d/dimension.d.ts} +0 -0
- /package/vscode/src/vs/editor/{browser → common/core/2d}/point.d.ts +0 -0
- /package/vscode/src/vs/editor/{browser → common/core/2d}/point.js +0 -0
- /package/vscode/src/vs/editor/common/core/{eolCounter.d.ts → misc/eolCounter.d.ts} +0 -0
- /package/vscode/src/vs/editor/common/core/{indentation.d.ts → misc/indentation.d.ts} +0 -0
- /package/vscode/src/vs/editor/common/core/{rgba.d.ts → misc/rgba.d.ts} +0 -0
- /package/vscode/src/vs/editor/common/core/{rgba.js → misc/rgba.js} +0 -0
- /package/vscode/src/vs/editor/common/core/{textModelDefaults.d.ts → misc/textModelDefaults.d.ts} +0 -0
- /package/vscode/src/vs/editor/common/core/{textModelDefaults.js → misc/textModelDefaults.js} +0 -0
|
@@ -9,7 +9,7 @@ import { ISelection } from "../../../../editor/common/core/selection.js";
|
|
|
9
9
|
import { Command, Location, TextEdit } from "../../../../editor/common/languages.js";
|
|
10
10
|
import { FileType } from "../../../../platform/files/common/files.js";
|
|
11
11
|
import { ICellEditOperation } from "../../notebook/common/notebookCommon.js";
|
|
12
|
-
import { IWorkspaceSymbol } from "@codingame/monaco-vscode-
|
|
12
|
+
import { IWorkspaceSymbol } from "@codingame/monaco-vscode-47472025-cc45-5680-86cd-09ceaba921a1-common/vscode/vs/workbench/contrib/search/common/search";
|
|
13
13
|
import { IChatAgentCommand, IChatAgentData, IChatAgentResult } from "./chatAgents.js";
|
|
14
14
|
import { IChatRequestVariableEntry, IChatResponseModel } from "./chatModel.js";
|
|
15
15
|
import { IChatParserContext } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/chatRequestParser";
|
|
@@ -25,6 +25,11 @@ export declare enum ChatErrorLevel {
|
|
|
25
25
|
Warning = 1,
|
|
26
26
|
Error = 2
|
|
27
27
|
}
|
|
28
|
+
export interface IChatResponseErrorDetailsConfirmationButton {
|
|
29
|
+
data: any;
|
|
30
|
+
label: string;
|
|
31
|
+
isSecondary?: boolean;
|
|
32
|
+
}
|
|
28
33
|
export interface IChatResponseErrorDetails {
|
|
29
34
|
message: string;
|
|
30
35
|
responseIsIncomplete?: boolean;
|
|
@@ -32,6 +37,7 @@ export interface IChatResponseErrorDetails {
|
|
|
32
37
|
responseIsRedacted?: boolean;
|
|
33
38
|
isQuotaExceeded?: boolean;
|
|
34
39
|
level?: ChatErrorLevel;
|
|
40
|
+
confirmationButtons?: IChatResponseErrorDetailsConfirmationButton[];
|
|
35
41
|
}
|
|
36
42
|
export interface IChatResponseProgressFileTreeData {
|
|
37
43
|
label: string;
|
|
@@ -115,6 +121,11 @@ export interface IChatTaskDto {
|
|
|
115
121
|
content: IMarkdownString;
|
|
116
122
|
kind: "progressTask";
|
|
117
123
|
}
|
|
124
|
+
export interface IChatTaskSerialized {
|
|
125
|
+
content: IMarkdownString;
|
|
126
|
+
progress: (IChatWarningMessage | IChatContentReference)[];
|
|
127
|
+
kind: "progressTaskSerialized";
|
|
128
|
+
}
|
|
118
129
|
export interface IChatTaskResult {
|
|
119
130
|
content: IMarkdownString | void;
|
|
120
131
|
kind: "progressTaskResult";
|
|
@@ -177,7 +188,7 @@ export interface IChatToolInputInvocationData {
|
|
|
177
188
|
}
|
|
178
189
|
export interface IChatToolInvocation {
|
|
179
190
|
presentation: IPreparedToolInvocation["presentation"];
|
|
180
|
-
toolSpecificData?: IChatTerminalToolInvocationData | IChatToolInputInvocationData;
|
|
191
|
+
toolSpecificData?: IChatTerminalToolInvocationData | IChatToolInputInvocationData | IChatExtensionsContent;
|
|
181
192
|
confirmationMessages?: IToolConfirmationMessages;
|
|
182
193
|
confirmed: DeferredPromise<boolean>;
|
|
183
194
|
isConfirmed: boolean | undefined;
|
|
@@ -198,7 +209,7 @@ export interface IChatToolInvocation {
|
|
|
198
209
|
}
|
|
199
210
|
export interface IChatToolInvocationSerialized {
|
|
200
211
|
presentation: IPreparedToolInvocation["presentation"];
|
|
201
|
-
toolSpecificData?: IChatTerminalToolInvocationData | IChatToolInputInvocationData;
|
|
212
|
+
toolSpecificData?: IChatTerminalToolInvocationData | IChatToolInputInvocationData | IChatExtensionsContent;
|
|
202
213
|
invocationMessage: string | IMarkdownString;
|
|
203
214
|
originMessage: string | IMarkdownString | undefined;
|
|
204
215
|
pastTenseMessage: string | IMarkdownString | undefined;
|
|
@@ -213,7 +224,11 @@ export interface IChatExtensionsContent {
|
|
|
213
224
|
extensions: string[];
|
|
214
225
|
kind: "extensions";
|
|
215
226
|
}
|
|
216
|
-
export
|
|
227
|
+
export interface IChatPrepareToolInvocationPart {
|
|
228
|
+
readonly kind: "prepareToolInvocation";
|
|
229
|
+
readonly toolName: string;
|
|
230
|
+
}
|
|
231
|
+
export type IChatProgress = IChatMarkdownContent | IChatAgentMarkdownContentWithVulnerability | IChatTreeData | IChatUsedContext | IChatContentReference | IChatContentInlineReference | IChatCodeCitation | IChatProgressMessage | IChatTask | IChatTaskResult | IChatCommandButton | IChatWarningMessage | IChatTextEdit | IChatNotebookEdit | IChatMoveMessage | IChatResponseCodeblockUriPart | IChatConfirmation | IChatToolInvocation | IChatToolInvocationSerialized | IChatExtensionsContent | IChatUndoStop | IChatPrepareToolInvocationPart | IChatTaskSerialized;
|
|
217
232
|
export interface IChatFollowup {
|
|
218
233
|
kind: "reply";
|
|
219
234
|
message: string;
|
|
@@ -352,8 +367,8 @@ export type IChatLocationData = IChatEditorLocationData | IChatNotebookLocationD
|
|
|
352
367
|
export interface IChatSendRequestOptions {
|
|
353
368
|
mode?: ChatMode;
|
|
354
369
|
userSelectedModelId?: string;
|
|
355
|
-
userSelectedTools?: string
|
|
356
|
-
|
|
370
|
+
userSelectedTools?: Record<string, boolean>;
|
|
371
|
+
modeInstructions?: string;
|
|
357
372
|
toolSelectionIsExclusive?: boolean;
|
|
358
373
|
location?: ChatAgentLocation;
|
|
359
374
|
locationData?: IChatLocationData;
|
|
@@ -36,7 +36,7 @@ export interface IChatService {
|
|
|
36
36
|
notifyUserAction(event: IChatUserActionEvent): void;
|
|
37
37
|
onDidDisposeSession: Event<{
|
|
38
38
|
sessionId: string;
|
|
39
|
-
reason: "
|
|
39
|
+
reason: "cleared";
|
|
40
40
|
}>;
|
|
41
41
|
transferChatSession(transferredSessionData: IChatTransferredSessionData, toWorkspace: URI): void;
|
|
42
42
|
activateDefaultAgent(location: ChatAgentLocation): Promise<void>;
|
|
@@ -19,7 +19,7 @@ export interface IChatRequestProblemsVariable {
|
|
|
19
19
|
filter: IDiagnosticVariableEntryFilterData;
|
|
20
20
|
}
|
|
21
21
|
export declare const isIChatRequestProblemsVariable: (obj: unknown) => obj is IChatRequestProblemsVariable;
|
|
22
|
-
export type IChatRequestVariableValue = string | URI | Location |
|
|
22
|
+
export type IChatRequestVariableValue = string | URI | Location | Uint8Array | IChatRequestProblemsVariable | unknown;
|
|
23
23
|
export type IChatVariableResolverProgress = IChatContentReference | IChatProgressMessage;
|
|
24
24
|
export interface IChatVariableResolver {
|
|
25
25
|
(messageText: string, arg: string | undefined, model: IChatModel, progress: (part: IChatVariableResolverProgress) => void, token: CancellationToken): Promise<IChatRequestVariableValue | undefined>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IDynamicVariable } from "./chatVariables.js";
|
|
2
|
-
import { IToolData } from "./languageModelToolsService.js";
|
|
2
|
+
import { IToolData, ToolSet } from "./languageModelToolsService.js";
|
|
3
3
|
export declare const IChatVariablesService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IChatVariablesService>;
|
|
4
4
|
export interface IChatVariablesService {
|
|
5
5
|
_serviceBrand: undefined;
|
|
6
6
|
getDynamicVariables(sessionId: string): ReadonlyArray<IDynamicVariable>;
|
|
7
7
|
getSelectedTools(sessionId: string): ReadonlyArray<IToolData>;
|
|
8
|
+
getSelectedToolSets(sessionId: string): ReadonlyArray<ToolSet>;
|
|
8
9
|
}
|
|
@@ -11,6 +11,7 @@ export declare enum ChatMode {
|
|
|
11
11
|
}
|
|
12
12
|
export declare function modeToString(mode: ChatMode): "Edit" | "Agent" | "Ask";
|
|
13
13
|
export declare function validateChatMode(mode: unknown): ChatMode | undefined;
|
|
14
|
+
export declare function isChatMode(mode: unknown): mode is ChatMode;
|
|
14
15
|
export type RawChatParticipantLocation = "panel" | "terminal" | "notebook" | "editing-session";
|
|
15
16
|
export declare enum ChatAgentLocation {
|
|
16
17
|
Panel = "panel",
|
|
@@ -34,6 +34,9 @@ function validateChatMode(mode) {
|
|
|
34
34
|
return undefined;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
+
function isChatMode(mode) {
|
|
38
|
+
return !!validateChatMode(mode);
|
|
39
|
+
}
|
|
37
40
|
var ChatAgentLocation;
|
|
38
41
|
(function (ChatAgentLocation) {
|
|
39
42
|
ChatAgentLocation["Panel"] = "panel";
|
|
@@ -54,4 +57,4 @@ var ChatAgentLocation;
|
|
|
54
57
|
ChatAgentLocation.fromRaw = fromRaw;
|
|
55
58
|
})(ChatAgentLocation || (ChatAgentLocation = {}));
|
|
56
59
|
|
|
57
|
-
export { ChatAgentLocation, ChatConfiguration, ChatMode, modeToString, validateChatMode };
|
|
60
|
+
export { ChatAgentLocation, ChatConfiguration, ChatMode, isChatMode, modeToString, validateChatMode };
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { CancellationToken } from "../../../../base/common/cancellation.js";
|
|
2
2
|
import { IMarkdownString } from "../../../../base/common/htmlContent.js";
|
|
3
3
|
import { IJSONSchema } from "../../../../base/common/jsonSchema.js";
|
|
4
|
+
import { IDisposable } from "../../../../base/common/lifecycle.js";
|
|
4
5
|
import { ThemeIcon } from "../../../../base/common/themables.js";
|
|
5
6
|
import { URI } from "../../../../base/common/uri.js";
|
|
6
7
|
import { Location } from "../../../../editor/common/languages.js";
|
|
7
8
|
import { ContextKeyExpression } from "../../../../platform/contextkey/common/contextkey.js";
|
|
8
9
|
import { ExtensionIdentifier } from "../../../../platform/extensions/common/extensions.js";
|
|
9
10
|
import { IProgress } from "../../../../platform/progress/common/progress.js";
|
|
10
|
-
import { IChatTerminalToolInvocationData, IChatToolInputInvocationData } from "./chatService.js";
|
|
11
|
+
import { IChatExtensionsContent, IChatTerminalToolInvocationData, IChatToolInputInvocationData } from "./chatService.js";
|
|
11
12
|
import { VSBuffer } from "../../../../base/common/buffer.js";
|
|
13
|
+
import { IObservable, IReader, ITransaction, ObservableSet } from "../../../../base/common/observable.js";
|
|
12
14
|
export interface IToolData {
|
|
13
15
|
id: string;
|
|
14
16
|
source: ToolDataSource;
|
|
@@ -26,29 +28,38 @@ export interface IToolData {
|
|
|
26
28
|
canBeReferencedInPrompt?: boolean;
|
|
27
29
|
runsInWorkspace?: boolean;
|
|
28
30
|
alwaysDisplayInputOutput?: boolean;
|
|
29
|
-
supportsToolPicker?: boolean;
|
|
30
31
|
}
|
|
31
32
|
export interface IToolProgressStep {
|
|
32
33
|
readonly message: string | IMarkdownString | undefined;
|
|
33
|
-
readonly increment
|
|
34
|
-
readonly total
|
|
34
|
+
readonly increment?: number;
|
|
35
|
+
readonly total?: number;
|
|
35
36
|
}
|
|
36
37
|
export type ToolProgress = IProgress<IToolProgressStep>;
|
|
37
38
|
export type ToolDataSource = {
|
|
38
39
|
type: "extension";
|
|
39
40
|
label: string;
|
|
40
41
|
extensionId: ExtensionIdentifier;
|
|
41
|
-
isExternalTool: boolean;
|
|
42
42
|
} | {
|
|
43
43
|
type: "mcp";
|
|
44
44
|
label: string;
|
|
45
45
|
collectionId: string;
|
|
46
46
|
definitionId: string;
|
|
47
|
+
} | {
|
|
48
|
+
type: "user";
|
|
49
|
+
label: string;
|
|
50
|
+
file: URI;
|
|
47
51
|
} | {
|
|
48
52
|
type: "internal";
|
|
53
|
+
label: string;
|
|
49
54
|
};
|
|
50
55
|
export declare namespace ToolDataSource {
|
|
56
|
+
const Internal: ToolDataSource;
|
|
51
57
|
function toKey(source: ToolDataSource): string;
|
|
58
|
+
function equals(a: ToolDataSource, b: ToolDataSource): boolean;
|
|
59
|
+
function classify(source: ToolDataSource): {
|
|
60
|
+
readonly ordinal: number;
|
|
61
|
+
readonly label: string;
|
|
62
|
+
};
|
|
52
63
|
}
|
|
53
64
|
export interface IToolInvocation {
|
|
54
65
|
callId: string;
|
|
@@ -58,7 +69,7 @@ export interface IToolInvocation {
|
|
|
58
69
|
context: IToolInvocationContext | undefined;
|
|
59
70
|
chatRequestId?: string;
|
|
60
71
|
chatInteractionId?: string;
|
|
61
|
-
toolSpecificData?: IChatTerminalToolInvocationData | IChatToolInputInvocationData;
|
|
72
|
+
toolSpecificData?: IChatTerminalToolInvocationData | IChatToolInputInvocationData | IChatExtensionsContent;
|
|
62
73
|
modelId?: string;
|
|
63
74
|
}
|
|
64
75
|
export interface IToolInvocationContext {
|
|
@@ -68,12 +79,11 @@ export declare function isToolInvocationContext(obj: any): obj is IToolInvocatio
|
|
|
68
79
|
export interface IToolResultInputOutputDetails {
|
|
69
80
|
readonly input: string;
|
|
70
81
|
readonly output: ({
|
|
71
|
-
type: "text";
|
|
72
82
|
value: string;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
83
|
+
isText?: boolean;
|
|
84
|
+
mimeType?: string;
|
|
85
|
+
uri?: URI;
|
|
86
|
+
asResource?: boolean;
|
|
77
87
|
})[];
|
|
78
88
|
readonly isError?: boolean;
|
|
79
89
|
}
|
|
@@ -102,8 +112,9 @@ export interface IToolResultDataPart {
|
|
|
102
112
|
};
|
|
103
113
|
}
|
|
104
114
|
export interface IToolConfirmationMessages {
|
|
105
|
-
title: string;
|
|
115
|
+
title: string | IMarkdownString;
|
|
106
116
|
message: string | IMarkdownString;
|
|
117
|
+
disclaimer?: string | IMarkdownString;
|
|
107
118
|
allowAutoConfirm?: boolean;
|
|
108
119
|
}
|
|
109
120
|
export interface IPreparedToolInvocation {
|
|
@@ -112,12 +123,26 @@ export interface IPreparedToolInvocation {
|
|
|
112
123
|
originMessage?: string | IMarkdownString;
|
|
113
124
|
confirmationMessages?: IToolConfirmationMessages;
|
|
114
125
|
presentation?: "hidden" | undefined;
|
|
115
|
-
toolSpecificData?: IChatTerminalToolInvocationData | IChatToolInputInvocationData;
|
|
126
|
+
toolSpecificData?: IChatTerminalToolInvocationData | IChatToolInputInvocationData | IChatExtensionsContent;
|
|
116
127
|
}
|
|
117
128
|
export interface IToolImpl {
|
|
118
129
|
invoke(invocation: IToolInvocation, countTokens: CountTokensCallback, progress: ToolProgress, token: CancellationToken): Promise<IToolResult>;
|
|
119
130
|
prepareToolInvocation?(parameters: any, token: CancellationToken): Promise<IPreparedToolInvocation | undefined>;
|
|
120
131
|
}
|
|
132
|
+
export declare class ToolSet {
|
|
133
|
+
readonly id: string;
|
|
134
|
+
readonly referenceName: string;
|
|
135
|
+
readonly icon: ThemeIcon;
|
|
136
|
+
readonly source: ToolDataSource;
|
|
137
|
+
readonly description?: string | undefined;
|
|
138
|
+
protected readonly _tools: ObservableSet<IToolData>;
|
|
139
|
+
protected readonly _toolSets: ObservableSet<ToolSet>;
|
|
140
|
+
readonly isHomogenous: IObservable<boolean>;
|
|
141
|
+
constructor(id: string, referenceName: string, icon: ThemeIcon, source: ToolDataSource, description?: string | undefined);
|
|
142
|
+
addTool(data: IToolData, tx?: ITransaction): IDisposable;
|
|
143
|
+
addToolSet(toolSet: ToolSet, tx?: ITransaction): IDisposable;
|
|
144
|
+
getTools(r?: IReader): Iterable<IToolData>;
|
|
145
|
+
}
|
|
121
146
|
export type CountTokensCallback = (input: string, token: CancellationToken) => Promise<number>;
|
|
122
147
|
export declare function createToolInputUri(toolOrId: IToolData | string): URI;
|
|
123
148
|
export declare function createToolSchemaUri(toolOrId: IToolData | string): URI;
|
|
@@ -1,18 +1,45 @@
|
|
|
1
1
|
|
|
2
|
+
import { toDisposable, Disposable } from '../../../../base/common/lifecycle.js';
|
|
2
3
|
import { Schemas } from '../../../../base/common/network.js';
|
|
3
4
|
import { URI } from '../../../../base/common/uri.js';
|
|
4
5
|
import { stringifyPromptElementJSON } from './tools/promptTsxTypes.js';
|
|
6
|
+
import '../../../../base/common/observableInternal/index.js';
|
|
7
|
+
import { Iterable } from '../../../../base/common/iterator.js';
|
|
8
|
+
import { localize } from '../../../../nls.js';
|
|
9
|
+
import { ObservableSet } from '../../../../base/common/observableInternal/set.js';
|
|
10
|
+
import { derived } from '../../../../base/common/observableInternal/observables/derived.js';
|
|
5
11
|
|
|
6
12
|
var ToolDataSource;
|
|
7
13
|
(function (ToolDataSource) {
|
|
14
|
+
ToolDataSource.Internal = { type: 'internal', label: 'Built-In' };
|
|
8
15
|
function toKey(source) {
|
|
9
16
|
switch (source.type) {
|
|
10
17
|
case 'extension': return `extension:${source.extensionId.value}`;
|
|
11
18
|
case 'mcp': return `mcp:${source.collectionId}:${source.definitionId}`;
|
|
19
|
+
case 'user': return `user:${( source.file.toString())}`;
|
|
12
20
|
case 'internal': return 'internal';
|
|
13
21
|
}
|
|
14
22
|
}
|
|
15
23
|
ToolDataSource.toKey = toKey;
|
|
24
|
+
function equals(a, b) {
|
|
25
|
+
return toKey(a) === toKey(b);
|
|
26
|
+
}
|
|
27
|
+
ToolDataSource.equals = equals;
|
|
28
|
+
function classify(source) {
|
|
29
|
+
if (source.type === 'internal') {
|
|
30
|
+
return { ordinal: 1, label: ( localize(5169, 'Built-In')) };
|
|
31
|
+
}
|
|
32
|
+
else if (source.type === 'mcp') {
|
|
33
|
+
return { ordinal: 2, label: ( localize(5170, 'MCP Server: {0}', source.label)) };
|
|
34
|
+
}
|
|
35
|
+
else if (source.type === 'user') {
|
|
36
|
+
return { ordinal: 0, label: ( localize(5171, 'User Defined')) };
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
return { ordinal: 3, label: ( localize(5172, 'Extension: {0}', source.label)) };
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
ToolDataSource.classify = classify;
|
|
16
43
|
})(ToolDataSource || (ToolDataSource = {}));
|
|
17
44
|
function isToolInvocationContext(obj) {
|
|
18
45
|
return typeof obj === 'object' && typeof obj.sessionId === 'string';
|
|
@@ -26,6 +53,45 @@ function toolResultHasBuffers(result) {
|
|
|
26
53
|
function stringifyPromptTsxPart(part) {
|
|
27
54
|
return stringifyPromptElementJSON(part.value);
|
|
28
55
|
}
|
|
56
|
+
class ToolSet {
|
|
57
|
+
constructor(id, referenceName, icon, source, description) {
|
|
58
|
+
this.id = id;
|
|
59
|
+
this.referenceName = referenceName;
|
|
60
|
+
this.icon = icon;
|
|
61
|
+
this.source = source;
|
|
62
|
+
this.description = description;
|
|
63
|
+
this._tools = ( new ObservableSet());
|
|
64
|
+
this._toolSets = ( new ObservableSet());
|
|
65
|
+
this.isHomogenous = derived(r => {
|
|
66
|
+
return !( Iterable.some(
|
|
67
|
+
this._tools.observable.read(r),
|
|
68
|
+
tool => !ToolDataSource.equals(tool.source, this.source)
|
|
69
|
+
))
|
|
70
|
+
&& !( Iterable.some(
|
|
71
|
+
this._toolSets.observable.read(r),
|
|
72
|
+
toolSet => !ToolDataSource.equals(toolSet.source, this.source)
|
|
73
|
+
));
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
addTool(data, tx) {
|
|
77
|
+
this._tools.add(data, tx);
|
|
78
|
+
return toDisposable(() => {
|
|
79
|
+
this._tools.delete(data);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
addToolSet(toolSet, tx) {
|
|
83
|
+
if (toolSet === this) {
|
|
84
|
+
return Disposable.None;
|
|
85
|
+
}
|
|
86
|
+
this._toolSets.add(toolSet, tx);
|
|
87
|
+
return toDisposable(() => {
|
|
88
|
+
this._toolSets.delete(toolSet);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
getTools(r) {
|
|
92
|
+
return Iterable.concat(this._tools.observable.read(r), ...( Iterable.map(this._toolSets.observable.read(r), toolSet => toolSet.getTools(r))));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
29
95
|
function createToolInputUri(toolOrId) {
|
|
30
96
|
if (typeof toolOrId !== 'string') {
|
|
31
97
|
toolOrId = toolOrId.id;
|
|
@@ -41,4 +107,4 @@ function createToolSchemaUri(toolOrId) {
|
|
|
41
107
|
));
|
|
42
108
|
}
|
|
43
109
|
|
|
44
|
-
export { ToolDataSource, createToolInputUri, createToolSchemaUri, isToolInvocationContext, isToolResultInputOutputDetails, stringifyPromptTsxPart, toolResultHasBuffers };
|
|
110
|
+
export { ToolDataSource, ToolSet, createToolInputUri, createToolSchemaUri, isToolInvocationContext, isToolResultInputOutputDetails, stringifyPromptTsxPart, toolResultHasBuffers };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { CancellationToken } from "../../../../base/common/cancellation.js";
|
|
2
2
|
import { Event } from "../../../../base/common/event.js";
|
|
3
3
|
import { IDisposable } from "../../../../base/common/lifecycle.js";
|
|
4
|
-
import {
|
|
4
|
+
import { IObservable } from "../../../../base/common/observable.js";
|
|
5
|
+
import { ThemeIcon } from "../../../../base/common/themables.js";
|
|
6
|
+
import { IToolData, IToolImpl, IToolInvocation, CountTokensCallback, IToolResult, ToolSet, ToolDataSource } from "./languageModelToolsService.js";
|
|
5
7
|
export declare const ILanguageModelToolsService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<ILanguageModelToolsService>;
|
|
6
8
|
export interface ILanguageModelToolsService {
|
|
7
9
|
_serviceBrand: undefined;
|
|
@@ -10,9 +12,16 @@ export interface ILanguageModelToolsService {
|
|
|
10
12
|
registerToolImplementation(id: string, tool: IToolImpl): IDisposable;
|
|
11
13
|
getTools(): Iterable<Readonly<IToolData>>;
|
|
12
14
|
getTool(id: string): IToolData | undefined;
|
|
13
|
-
getToolByName(name: string): IToolData | undefined;
|
|
15
|
+
getToolByName(name: string, includeDisabled?: boolean): IToolData | undefined;
|
|
14
16
|
invokeTool(invocation: IToolInvocation, countTokens: CountTokensCallback, token: CancellationToken): Promise<IToolResult>;
|
|
15
17
|
setToolAutoConfirmation(toolId: string, scope: "workspace" | "profile" | "memory", autoConfirm?: boolean): void;
|
|
16
18
|
resetToolAutoConfirmation(): void;
|
|
17
19
|
cancelToolCallsForRequest(requestId: string): void;
|
|
20
|
+
toEnablementMap(toolOrToolSetNames: Iterable<string>): Record<string, boolean>;
|
|
21
|
+
readonly toolSets: IObservable<Iterable<ToolSet>>;
|
|
22
|
+
getToolSetByName(name: string): ToolSet | undefined;
|
|
23
|
+
createToolSet(source: ToolDataSource, id: string, referenceName: string, options?: {
|
|
24
|
+
icon?: ThemeIcon;
|
|
25
|
+
description?: string;
|
|
26
|
+
}): ToolSet & IDisposable;
|
|
18
27
|
}
|
|
@@ -20,10 +20,10 @@ export interface IChatMessageImagePart {
|
|
|
20
20
|
type: "image_url";
|
|
21
21
|
value: IChatImageURLPart;
|
|
22
22
|
}
|
|
23
|
-
export interface
|
|
24
|
-
type: "
|
|
25
|
-
|
|
26
|
-
data:
|
|
23
|
+
export interface IChatMessageDataPart {
|
|
24
|
+
type: "data";
|
|
25
|
+
mimeType: string;
|
|
26
|
+
data: VSBuffer;
|
|
27
27
|
}
|
|
28
28
|
export interface IChatImageURLPart {
|
|
29
29
|
mimeType: ChatImageMimeType;
|
|
@@ -46,7 +46,7 @@ export interface IChatMessageToolResultPart {
|
|
|
46
46
|
value: (IChatResponseTextPart | IChatResponsePromptTsxPart | IChatResponseDataPart)[];
|
|
47
47
|
isError?: boolean;
|
|
48
48
|
}
|
|
49
|
-
export type IChatMessagePart = IChatMessageTextPart | IChatMessageToolResultPart | IChatResponseToolUsePart | IChatMessageImagePart |
|
|
49
|
+
export type IChatMessagePart = IChatMessageTextPart | IChatMessageToolResultPart | IChatResponseToolUsePart | IChatMessageImagePart | IChatMessageDataPart;
|
|
50
50
|
export interface IChatMessage {
|
|
51
51
|
readonly name?: string | undefined;
|
|
52
52
|
readonly role: ChatMessageRole;
|
|
@@ -104,7 +104,7 @@ export interface ILanguageModelChatMetadata {
|
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
export interface ILanguageModelChatResponse {
|
|
107
|
-
stream: AsyncIterable<IChatResponseFragment>;
|
|
107
|
+
stream: AsyncIterable<IChatResponseFragment | IChatResponseFragment[]>;
|
|
108
108
|
result: Promise<any>;
|
|
109
109
|
}
|
|
110
110
|
export interface ILanguageModelChat {
|
|
@@ -37,14 +37,14 @@ const languageModelType = {
|
|
|
37
37
|
properties: {
|
|
38
38
|
vendor: {
|
|
39
39
|
type: 'string',
|
|
40
|
-
description: ( localize(
|
|
40
|
+
description: ( localize(5173, "A globally unique vendor of language models."))
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
const languageModelExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
45
45
|
extensionPoint: 'languageModels',
|
|
46
46
|
jsonSchema: {
|
|
47
|
-
description: ( localize(
|
|
47
|
+
description: ( localize(5174, "Contribute language models of a specific vendor.")),
|
|
48
48
|
oneOf: [
|
|
49
49
|
languageModelType,
|
|
50
50
|
{
|
|
@@ -74,24 +74,24 @@ let LanguageModelsService = class LanguageModelsService {
|
|
|
74
74
|
this._vendors.clear();
|
|
75
75
|
for (const extension of extensions) {
|
|
76
76
|
if (!isProposedApiEnabled(extension.description, 'chatProvider')) {
|
|
77
|
-
extension.collector.error(( localize(
|
|
77
|
+
extension.collector.error(( localize(5175, "This contribution point requires the 'chatProvider' proposal.")));
|
|
78
78
|
continue;
|
|
79
79
|
}
|
|
80
80
|
for (const item of Iterable.wrap(extension.value)) {
|
|
81
81
|
if (( this._vendors.has(item.vendor))) {
|
|
82
82
|
extension.collector.error(( localize(
|
|
83
|
-
|
|
83
|
+
5176,
|
|
84
84
|
"The vendor '{0}' is already registered and cannot be registered twice",
|
|
85
85
|
item.vendor
|
|
86
86
|
)));
|
|
87
87
|
continue;
|
|
88
88
|
}
|
|
89
89
|
if (isFalsyOrWhitespace(item.vendor)) {
|
|
90
|
-
extension.collector.error(( localize(
|
|
90
|
+
extension.collector.error(( localize(5177, "The vendor field cannot be empty.")));
|
|
91
91
|
continue;
|
|
92
92
|
}
|
|
93
93
|
if (item.vendor.trim() !== item.vendor) {
|
|
94
|
-
extension.collector.error(( localize(
|
|
94
|
+
extension.collector.error(( localize(5178, "The vendor field cannot start or end with whitespace.")));
|
|
95
95
|
continue;
|
|
96
96
|
}
|
|
97
97
|
this._vendors.add(item.vendor);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { localize } from '../../../../../nls.js';
|
|
3
3
|
|
|
4
|
-
const DEFAULT_MODEL_PICKER_CATEGORY = { label: ( localize(
|
|
4
|
+
const DEFAULT_MODEL_PICKER_CATEGORY = { label: ( localize(5179, "Other Models")), order: Number.MAX_SAFE_INTEGER };
|
|
5
5
|
|
|
6
6
|
export { DEFAULT_MODEL_PICKER_CATEGORY };
|
package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { URI } from "../../../../../../base/common/uri.js";
|
|
2
|
+
import { Event } from "../../../../../../base/common/event.js";
|
|
2
3
|
import { ResolveError } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/promptFileReferenceErrors";
|
|
3
4
|
import { IDisposable } from "../../../../../../base/common/lifecycle.js";
|
|
4
5
|
import { VSBufferReadableStream } from "../../../../../../base/common/buffer.js";
|
|
6
|
+
import { PromptsType } from "@codingame/monaco-vscode-47472025-cc45-5680-86cd-09ceaba921a1-common/vscode/vs/platform/prompts/common/prompts";
|
|
5
7
|
export interface IPromptContentsProvider extends IDisposable {
|
|
6
8
|
readonly uri: URI;
|
|
7
9
|
readonly languageId: string;
|
|
10
|
+
readonly promptType: PromptsType | "non-prompt";
|
|
11
|
+
readonly contents: Promise<VSBufferReadableStream>;
|
|
8
12
|
readonly sourceName: string;
|
|
13
|
+
readonly onContentChanged: Event<VSBufferReadableStream | ResolveError>;
|
|
14
|
+
readonly onDispose: Event<void>;
|
|
9
15
|
start(): this;
|
|
10
|
-
onContentChanged(callback: (streamOrError: VSBufferReadableStream | ResolveError) => void): IDisposable;
|
|
11
|
-
onDispose(callback: () => void): this;
|
|
12
16
|
createNew(promptContentsSource: {
|
|
13
17
|
uri: URI;
|
|
14
18
|
}): IPromptContentsProvider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TMetadata } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/headerBase";
|
|
2
2
|
import { URI } from "../../../../../../base/common/uri.js";
|
|
3
3
|
import { ResolveError } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/promptFileReferenceErrors";
|
|
4
4
|
import { IDisposable } from "../../../../../../base/common/lifecycle.js";
|
|
@@ -12,12 +12,6 @@ export interface ITopError extends IResolveError {
|
|
|
12
12
|
readonly errorsCount: number;
|
|
13
13
|
readonly localizedMessage: string;
|
|
14
14
|
}
|
|
15
|
-
export interface IPromptMetadata {
|
|
16
|
-
description?: string;
|
|
17
|
-
tools?: readonly string[];
|
|
18
|
-
mode?: ChatMode;
|
|
19
|
-
applyTo?: string;
|
|
20
|
-
}
|
|
21
15
|
interface IPromptReferenceBase extends IDisposable {
|
|
22
16
|
readonly type: string;
|
|
23
17
|
readonly subtype: string;
|
|
@@ -32,11 +26,11 @@ interface IPromptReferenceBase extends IDisposable {
|
|
|
32
26
|
readonly errors: readonly ResolveError[];
|
|
33
27
|
readonly allErrors: readonly IResolveError[];
|
|
34
28
|
readonly topError: ITopError | undefined;
|
|
35
|
-
readonly references: readonly
|
|
36
|
-
readonly allReferences: readonly
|
|
37
|
-
readonly allValidReferences: readonly
|
|
29
|
+
readonly references: readonly TPromptReference[];
|
|
30
|
+
readonly allReferences: readonly TPromptReference[];
|
|
31
|
+
readonly allValidReferences: readonly TPromptReference[];
|
|
38
32
|
readonly allToolsMetadata: readonly string[] | null;
|
|
39
|
-
readonly metadata:
|
|
33
|
+
readonly metadata: TMetadata | null;
|
|
40
34
|
settled(): Promise<this>;
|
|
41
35
|
allSettled(): Promise<this>;
|
|
42
36
|
}
|
|
@@ -44,5 +38,5 @@ export interface IPromptFileReference extends IPromptReferenceBase {
|
|
|
44
38
|
readonly type: "file";
|
|
45
39
|
readonly subtype: "prompt" | "markdown";
|
|
46
40
|
}
|
|
47
|
-
export type
|
|
41
|
+
export type TPromptReference = IPromptFileReference;
|
|
48
42
|
export {};
|
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
import { TTree } from "@codingame/monaco-vscode-chat-service-override/vscode/vs/workbench/contrib/chat/common/promptSyntax/utils/treeUtils";
|
|
2
2
|
import { ChatMode } from "../../constants.js";
|
|
3
|
-
import { IPromptMetadata } from "../parsers/types.js";
|
|
4
3
|
import { URI } from "../../../../../../base/common/uri.js";
|
|
4
|
+
import { TMetadata } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/headerBase";
|
|
5
5
|
import { TextModelPromptParser } from "@codingame/monaco-vscode-chat-service-override/vscode/vs/workbench/contrib/chat/common/promptSyntax/parsers/textModelPromptParser";
|
|
6
|
+
import { PromptsType } from "@codingame/monaco-vscode-47472025-cc45-5680-86cd-09ceaba921a1-common/vscode/vs/platform/prompts/common/prompts";
|
|
6
7
|
export type TPromptsStorage = "local" | "user";
|
|
7
|
-
export type TPromptsType = "instructions" | "prompt";
|
|
8
8
|
export interface IPromptPath {
|
|
9
9
|
readonly uri: URI;
|
|
10
10
|
readonly storage: TPromptsStorage;
|
|
11
|
-
readonly type:
|
|
11
|
+
readonly type: PromptsType;
|
|
12
12
|
}
|
|
13
13
|
export type TSharedPrompt = Omit<TextModelPromptParser, "dispose">;
|
|
14
14
|
export interface IMetadata {
|
|
15
15
|
readonly uri: URI;
|
|
16
|
-
readonly metadata:
|
|
17
|
-
readonly children?: readonly TTree<IMetadata>[];
|
|
16
|
+
readonly metadata: TMetadata | null;
|
|
17
|
+
readonly children?: readonly TTree<IMetadata | null>[];
|
|
18
|
+
}
|
|
19
|
+
export interface ICustomChatMode {
|
|
20
|
+
readonly uri: URI;
|
|
21
|
+
readonly name: string;
|
|
22
|
+
readonly description?: string;
|
|
23
|
+
readonly tools?: readonly string[];
|
|
24
|
+
readonly body: string;
|
|
18
25
|
}
|
|
19
26
|
interface ICombinedAgentToolsMetadata {
|
|
20
27
|
readonly tools: readonly string[] | undefined;
|
|
@@ -1,19 +1,24 @@
|
|
|
1
|
+
import { CancellationToken } from "../../../../../../base/common/cancellation.js";
|
|
2
|
+
import { Event } from "../../../../../../base/common/event.js";
|
|
1
3
|
import { IDisposable } from "../../../../../../base/common/lifecycle.js";
|
|
2
4
|
import { URI } from "../../../../../../base/common/uri.js";
|
|
3
5
|
import { ITextModel } from "../../../../../../editor/common/model.js";
|
|
4
|
-
import {
|
|
6
|
+
import { PromptsType } from "@codingame/monaco-vscode-47472025-cc45-5680-86cd-09ceaba921a1-common/vscode/vs/platform/prompts/common/prompts";
|
|
7
|
+
import { TSharedPrompt, IPromptPath, IChatPromptSlashCommand, IMetadata, ICustomChatMode } from "./types.js";
|
|
5
8
|
export declare const IPromptsService: import("../../../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IPromptsService>;
|
|
6
9
|
export interface IPromptsService extends IDisposable {
|
|
7
10
|
readonly _serviceBrand: undefined;
|
|
8
11
|
getSyntaxParserFor(model: ITextModel): TSharedPrompt & {
|
|
9
|
-
|
|
12
|
+
isDisposed: false;
|
|
10
13
|
};
|
|
11
|
-
listPromptFiles(type:
|
|
12
|
-
getSourceFolders(type:
|
|
14
|
+
listPromptFiles(type: PromptsType, token: CancellationToken): Promise<readonly IPromptPath[]>;
|
|
15
|
+
getSourceFolders(type: PromptsType): readonly IPromptPath[];
|
|
13
16
|
asPromptSlashCommand(name: string): IChatPromptSlashCommand | undefined;
|
|
14
|
-
resolvePromptSlashCommand(data: IChatPromptSlashCommand): Promise<
|
|
17
|
+
resolvePromptSlashCommand(data: IChatPromptSlashCommand): Promise<IMetadata | undefined>;
|
|
15
18
|
findPromptSlashCommands(): Promise<IChatPromptSlashCommand[]>;
|
|
16
19
|
findInstructionFilesFor(fileUris: readonly URI[]): Promise<readonly URI[]>;
|
|
20
|
+
readonly onDidChangeCustomChatModes: Event<void>;
|
|
21
|
+
getCustomChatModes(): Promise<readonly ICustomChatMode[]>;
|
|
22
|
+
getMetadata(promptFileUri: URI): Promise<IMetadata>;
|
|
17
23
|
getAllMetadata(promptUris: readonly URI[]): Promise<readonly IMetadata[]>;
|
|
18
|
-
getCombinedToolsMetadata(promptUris: readonly URI[]): Promise<TCombinedToolsMetadata | null>;
|
|
19
24
|
}
|
|
@@ -3,12 +3,12 @@ import { __decorate, __param } from '../../../../../../../../external/tslib/tsli
|
|
|
3
3
|
import { MarkdownString } from '../../../../../base/common/htmlContent.js';
|
|
4
4
|
import '../../../../../base/common/observableInternal/index.js';
|
|
5
5
|
import { URI } from '../../../../../base/common/uri.js';
|
|
6
|
-
import { generateUuid } from '../../../../../base/common/uuid.js';
|
|
7
6
|
import { CellUri } from '../../../notebook/common/notebookCommon.js';
|
|
8
7
|
import { INotebookService } from '../../../notebook/common/notebookService.service.js';
|
|
9
8
|
import { ICodeMapperService } from '../chatCodeMapperService.service.js';
|
|
10
9
|
import { IChatService } from '../chatService.service.js';
|
|
11
|
-
import {
|
|
10
|
+
import { ToolDataSource } from '../languageModelToolsService.js';
|
|
11
|
+
import { autorun } from '../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
12
12
|
|
|
13
13
|
const ExtensionEditToolId = 'vscode_editFile';
|
|
14
14
|
const InternalEditToolId = 'vscode_editFile_internal';
|
|
@@ -16,7 +16,7 @@ const EditToolData = {
|
|
|
16
16
|
id: InternalEditToolId,
|
|
17
17
|
displayName: '',
|
|
18
18
|
modelDescription: '',
|
|
19
|
-
source:
|
|
19
|
+
source: ToolDataSource.Internal,
|
|
20
20
|
};
|
|
21
21
|
let EditTool = class EditTool {
|
|
22
22
|
constructor(chatService, codeMapperService, notebookService) {
|
|
@@ -33,12 +33,6 @@ let EditTool = class EditTool {
|
|
|
33
33
|
const uri = CellUri.parse(fileUri)?.notebook || fileUri;
|
|
34
34
|
const model = this.chatService.getSession(invocation.context?.sessionId);
|
|
35
35
|
const request = model.getRequests().at(-1);
|
|
36
|
-
if (request.response?.response.getMarkdown().length) {
|
|
37
|
-
model.acceptResponseProgress(request, {
|
|
38
|
-
kind: 'undoStop',
|
|
39
|
-
id: generateUuid(),
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
36
|
model.acceptResponseProgress(request, {
|
|
43
37
|
kind: 'markdownContent',
|
|
44
38
|
content: ( new MarkdownString('\n````\n'))
|