@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
|
@@ -4,18 +4,19 @@ import { Disposable, IDisposable } from "../../../../base/common/lifecycle.js";
|
|
|
4
4
|
import { IObservable, ITransaction, ObservablePromise } from "../../../../base/common/observable.js";
|
|
5
5
|
import { ThemeIcon } from "../../../../base/common/themables.js";
|
|
6
6
|
import { URI, UriComponents, UriDto } from "../../../../base/common/uri.js";
|
|
7
|
-
import { IOffsetRange } from "../../../../editor/common/core/offsetRange.js";
|
|
8
7
|
import { IRange } from "../../../../editor/common/core/range.js";
|
|
8
|
+
import { IOffsetRange } from "../../../../editor/common/core/ranges/offsetRange.js";
|
|
9
9
|
import { Location, SymbolKind, TextEdit } from "../../../../editor/common/languages.js";
|
|
10
10
|
import { ILogService } from "../../../../platform/log/common/log.service.js";
|
|
11
11
|
import { IMarker, MarkerSeverity } from "../../../../platform/markers/common/markers.js";
|
|
12
12
|
import { ICellEditOperation } from "../../notebook/common/notebookCommon.js";
|
|
13
|
+
import { ISCMHistoryItem } from "../../scm/common/history.js";
|
|
13
14
|
import { IChatAgentCommand, IChatAgentData, IChatAgentResult } from "./chatAgents.js";
|
|
14
15
|
import { IChatAgentService } from "./chatAgents.service.js";
|
|
15
16
|
import { IChatEditingSession } from "./chatEditingService.js";
|
|
16
17
|
import { IChatEditingService } from "./chatEditingService.service.js";
|
|
17
18
|
import { IParsedChatRequest } from "./chatParserTypes.js";
|
|
18
|
-
import { ChatAgentVoteDirection, ChatAgentVoteDownReason, IChatAgentMarkdownContentWithVulnerability, IChatCodeCitation, IChatCommandButton, IChatConfirmation, IChatContentInlineReference, IChatContentReference, IChatEditingSessionAction, IChatExtensionsContent, IChatFollowup, IChatLocationData, IChatMarkdownContent, IChatNotebookEdit, IChatProgress, IChatProgressMessage, IChatResponseCodeblockUriPart, IChatResponseProgressFileTreeData, IChatTask, IChatTextEdit, IChatToolInvocation, IChatToolInvocationSerialized, IChatTreeData, IChatUndoStop, IChatUsedContext, IChatWarningMessage } from "./chatService.js";
|
|
19
|
+
import { ChatAgentVoteDirection, ChatAgentVoteDownReason, IChatAgentMarkdownContentWithVulnerability, IChatCodeCitation, IChatCommandButton, IChatConfirmation, IChatContentInlineReference, IChatContentReference, IChatEditingSessionAction, IChatExtensionsContent, IChatFollowup, IChatLocationData, IChatMarkdownContent, IChatNotebookEdit, IChatPrepareToolInvocationPart, IChatProgress, IChatProgressMessage, IChatResponseCodeblockUriPart, IChatResponseProgressFileTreeData, IChatTask, IChatTaskSerialized, IChatTextEdit, IChatToolInvocation, IChatToolInvocationSerialized, IChatTreeData, IChatUndoStop, IChatUsedContext, IChatWarningMessage } from "./chatService.js";
|
|
19
20
|
import { IChatRequestVariableValue } from "./chatVariables.js";
|
|
20
21
|
import { ChatAgentLocation } from "./constants.js";
|
|
21
22
|
interface IBaseChatRequestVariableEntry {
|
|
@@ -46,6 +47,10 @@ export declare enum OmittedState {
|
|
|
46
47
|
export interface IChatRequestToolEntry extends IBaseChatRequestVariableEntry {
|
|
47
48
|
readonly kind: "tool";
|
|
48
49
|
}
|
|
50
|
+
export interface IChatRequestToolSetEntry extends IBaseChatRequestVariableEntry {
|
|
51
|
+
readonly kind: "toolset";
|
|
52
|
+
readonly value: IChatRequestToolEntry[];
|
|
53
|
+
}
|
|
49
54
|
export interface IChatRequestImplicitVariableEntry extends IBaseChatRequestVariableEntry {
|
|
50
55
|
readonly kind: "implicit";
|
|
51
56
|
readonly isFile: true;
|
|
@@ -110,7 +115,18 @@ export interface IDiagnosticVariableEntry extends IBaseChatRequestVariableEntry,
|
|
|
110
115
|
export interface IElementVariableEntry extends IBaseChatRequestVariableEntry {
|
|
111
116
|
readonly kind: "element";
|
|
112
117
|
}
|
|
113
|
-
export
|
|
118
|
+
export interface IPromptFileVariableEntry extends IBaseChatRequestVariableEntry {
|
|
119
|
+
readonly kind: "promptFile";
|
|
120
|
+
}
|
|
121
|
+
export interface ISCMHistoryItemVariableEntry extends IBaseChatRequestVariableEntry {
|
|
122
|
+
readonly kind: "scmHistoryItem";
|
|
123
|
+
readonly value: URI;
|
|
124
|
+
readonly historyItem: ISCMHistoryItem;
|
|
125
|
+
}
|
|
126
|
+
export type IChatRequestVariableEntry = IGenericChatRequestVariableEntry | IChatRequestImplicitVariableEntry | IChatRequestPasteVariableEntry | ISymbolVariableEntry | ICommandResultVariableEntry | IDiagnosticVariableEntry | IImageVariableEntry | IChatRequestToolEntry | IChatRequestToolSetEntry | IChatRequestDirectoryEntry | IChatRequestFileEntry | INotebookOutputVariableEntry | IElementVariableEntry | IPromptFileVariableEntry | ISCMHistoryItemVariableEntry;
|
|
127
|
+
export declare namespace IChatRequestVariableEntry {
|
|
128
|
+
function toUri(entry: IChatRequestVariableEntry): URI | undefined;
|
|
129
|
+
}
|
|
114
130
|
export declare function isImplicitVariableEntry(obj: IChatRequestVariableEntry): obj is IChatRequestImplicitVariableEntry;
|
|
115
131
|
export declare function isPasteVariableEntry(obj: IChatRequestVariableEntry): obj is IChatRequestPasteVariableEntry;
|
|
116
132
|
export declare function isImageVariableEntry(obj: IChatRequestVariableEntry): obj is IImageVariableEntry;
|
|
@@ -119,6 +135,9 @@ export declare function isElementVariableEntry(obj: IChatRequestVariableEntry):
|
|
|
119
135
|
export declare function isDiagnosticsVariableEntry(obj: IChatRequestVariableEntry): obj is IDiagnosticVariableEntry;
|
|
120
136
|
export declare function isChatRequestFileEntry(obj: IChatRequestVariableEntry): obj is IChatRequestFileEntry;
|
|
121
137
|
export declare function isChatRequestVariableEntry(obj: unknown): obj is IChatRequestVariableEntry;
|
|
138
|
+
export declare function isSCMHistoryItemVariableEntry(obj: IChatRequestVariableEntry): obj is ISCMHistoryItemVariableEntry;
|
|
139
|
+
export declare const CHAT_ATTACHABLE_IMAGE_MIME_TYPES: Record<string, string>;
|
|
140
|
+
export declare function getAttachableImageExtension(mimeType: string): string | undefined;
|
|
122
141
|
export interface IChatRequestVariableData {
|
|
123
142
|
variables: IChatRequestVariableEntry[];
|
|
124
143
|
}
|
|
@@ -162,8 +181,8 @@ export interface IChatNotebookEditGroup {
|
|
|
162
181
|
kind: "notebookEditGroup";
|
|
163
182
|
done: boolean | undefined;
|
|
164
183
|
}
|
|
165
|
-
export type IChatProgressHistoryResponseContent = IChatMarkdownContent | IChatAgentMarkdownContentWithVulnerability | IChatResponseCodeblockUriPart | IChatTreeData | IChatContentInlineReference | IChatProgressMessage | IChatCommandButton | IChatWarningMessage | IChatTask | IChatTextEditGroup | IChatNotebookEditGroup | IChatConfirmation | IChatExtensionsContent;
|
|
166
|
-
export type IChatProgressResponseContent = IChatProgressHistoryResponseContent | IChatToolInvocation | IChatToolInvocationSerialized | IChatUndoStop;
|
|
184
|
+
export type IChatProgressHistoryResponseContent = IChatMarkdownContent | IChatAgentMarkdownContentWithVulnerability | IChatResponseCodeblockUriPart | IChatTreeData | IChatContentInlineReference | IChatProgressMessage | IChatCommandButton | IChatWarningMessage | IChatTask | IChatTaskSerialized | IChatTextEditGroup | IChatNotebookEditGroup | IChatConfirmation | IChatExtensionsContent;
|
|
185
|
+
export type IChatProgressResponseContent = IChatProgressHistoryResponseContent | IChatToolInvocation | IChatToolInvocationSerialized | IChatUndoStop | IChatPrepareToolInvocationPart;
|
|
167
186
|
export declare function toChatHistoryContent(content: ReadonlyArray<IChatProgressResponseContent>): IChatProgressHistoryResponseContent[];
|
|
168
187
|
export type IChatProgressRenderableResponseContent = Exclude<IChatProgressResponseContent, IChatContentInlineReference | IChatAgentMarkdownContentWithVulnerability | IChatResponseCodeblockUriPart>;
|
|
169
188
|
export interface IResponse {
|
|
@@ -190,7 +209,8 @@ export interface IChatResponseModel {
|
|
|
190
209
|
readonly isComplete: boolean;
|
|
191
210
|
readonly isCanceled: boolean;
|
|
192
211
|
readonly isPaused: IObservable<boolean>;
|
|
193
|
-
readonly isPendingConfirmation: boolean
|
|
212
|
+
readonly isPendingConfirmation: IObservable<boolean>;
|
|
213
|
+
readonly isInProgress: IObservable<boolean>;
|
|
194
214
|
readonly shouldBeRemovedOnSend: IChatRequestDisablement | undefined;
|
|
195
215
|
readonly isCompleteAddedRequest: boolean;
|
|
196
216
|
readonly isStale: boolean;
|
|
@@ -273,7 +293,7 @@ export declare class Response extends AbstractResponse implements IDisposable {
|
|
|
273
293
|
constructor(value: IMarkdownString | ReadonlyArray<IMarkdownString | IChatResponseProgressFileTreeData | IChatContentInlineReference | IChatAgentMarkdownContentWithVulnerability | IChatResponseCodeblockUriPart>);
|
|
274
294
|
dispose(): void;
|
|
275
295
|
clear(): void;
|
|
276
|
-
updateContent(progress: IChatProgressResponseContent | IChatTextEdit | IChatNotebookEdit | IChatTask
|
|
296
|
+
updateContent(progress: IChatProgressResponseContent | IChatTextEdit | IChatNotebookEdit | IChatTask, quiet?: boolean): void;
|
|
277
297
|
addCitation(citation: IChatCodeCitation): void;
|
|
278
298
|
protected _updateRepr(quiet?: boolean): void;
|
|
279
299
|
}
|
|
@@ -337,9 +357,10 @@ export declare class ChatResponseModel extends Disposable implements IChatRespon
|
|
|
337
357
|
get progressMessages(): ReadonlyArray<IChatProgressMessage>;
|
|
338
358
|
private _isStale;
|
|
339
359
|
get isStale(): boolean;
|
|
340
|
-
private _isPaused;
|
|
360
|
+
private readonly _isPaused;
|
|
341
361
|
get isPaused(): IObservable<boolean>;
|
|
342
|
-
|
|
362
|
+
readonly isPendingConfirmation: IObservable<boolean>;
|
|
363
|
+
readonly isInProgress: IObservable<boolean>;
|
|
343
364
|
private _responseView?;
|
|
344
365
|
get response(): IResponse;
|
|
345
366
|
private bufferedPauseContent?;
|
|
@@ -374,11 +395,10 @@ export interface IChatModel {
|
|
|
374
395
|
readonly onDidDispose: Event<void>;
|
|
375
396
|
readonly onDidChange: Event<IChatChangeEvent>;
|
|
376
397
|
readonly sessionId: string;
|
|
377
|
-
readonly initState: ChatModelInitState;
|
|
378
398
|
readonly initialLocation: ChatAgentLocation;
|
|
379
399
|
readonly title: string;
|
|
380
|
-
readonly sampleQuestions: IChatFollowup[] | undefined;
|
|
381
400
|
readonly requestInProgress: boolean;
|
|
401
|
+
readonly requestInProgressObs: IObservable<boolean>;
|
|
382
402
|
readonly requestPausibility: ChatPauseState;
|
|
383
403
|
readonly inputPlaceholder?: string;
|
|
384
404
|
readonly editingSessionObs?: ObservablePromise<IChatEditingSession> | undefined;
|
|
@@ -489,11 +509,6 @@ export interface IChatSetAgentEvent {
|
|
|
489
509
|
export interface IChatInitEvent {
|
|
490
510
|
kind: "initialize";
|
|
491
511
|
}
|
|
492
|
-
export declare enum ChatModelInitState {
|
|
493
|
-
Created = 0,
|
|
494
|
-
Initializing = 1,
|
|
495
|
-
Initialized = 2
|
|
496
|
-
}
|
|
497
512
|
export declare class ChatModel extends Disposable implements IChatModel {
|
|
498
513
|
private readonly initialData;
|
|
499
514
|
private readonly _initialLocation;
|
|
@@ -506,13 +521,10 @@ export declare class ChatModel extends Disposable implements IChatModel {
|
|
|
506
521
|
private readonly _onDidChange;
|
|
507
522
|
readonly onDidChange: Event<IChatChangeEvent>;
|
|
508
523
|
private _requests;
|
|
509
|
-
private _initState;
|
|
510
|
-
private _isInitializedDeferred;
|
|
511
|
-
private _sampleQuestions;
|
|
512
|
-
get sampleQuestions(): IChatFollowup[] | undefined;
|
|
513
524
|
private _sessionId;
|
|
514
525
|
get sessionId(): string;
|
|
515
526
|
get requestInProgress(): boolean;
|
|
527
|
+
readonly requestInProgressObs: IObservable<boolean>;
|
|
516
528
|
get requestPausibility(): ChatPauseState;
|
|
517
529
|
get hasRequests(): boolean;
|
|
518
530
|
get lastRequest(): ChatRequestModel | undefined;
|
|
@@ -527,7 +539,6 @@ export declare class ChatModel extends Disposable implements IChatModel {
|
|
|
527
539
|
get requesterAvatarIconUri(): URI | undefined;
|
|
528
540
|
private readonly _initialResponderAvatarIconUri;
|
|
529
541
|
get responderAvatarIcon(): ThemeIcon | URI | undefined;
|
|
530
|
-
get initState(): ChatModelInitState;
|
|
531
542
|
private _isImported;
|
|
532
543
|
get isImported(): boolean;
|
|
533
544
|
private _customTitle;
|
|
@@ -545,11 +556,6 @@ export declare class ChatModel extends Disposable implements IChatModel {
|
|
|
545
556
|
private reviveVariableData;
|
|
546
557
|
private getParsedRequestFromString;
|
|
547
558
|
toggleLastRequestPaused(isPaused?: boolean): void;
|
|
548
|
-
startInitialize(): void;
|
|
549
|
-
deinitialize(): void;
|
|
550
|
-
initialize(sampleQuestions?: IChatFollowup[]): void;
|
|
551
|
-
setInitializationError(error: Error): void;
|
|
552
|
-
waitForInitialization(): Promise<void>;
|
|
553
559
|
getRequests(): ChatRequestModel[];
|
|
554
560
|
private _checkpoint;
|
|
555
561
|
get checkpoint(): ChatRequestModel | undefined;
|
|
@@ -582,4 +588,14 @@ export interface IChatAgentEditedFileEvent {
|
|
|
582
588
|
readonly uri: URI;
|
|
583
589
|
readonly eventKind: ChatRequestEditedFileEventKind;
|
|
584
590
|
}
|
|
591
|
+
export declare namespace ChatResponseResource {
|
|
592
|
+
const scheme = "vscode-chat-response-resource";
|
|
593
|
+
function createUri(sessionId: string, requestId: string, toolCallId: string, index: number, basename?: string): URI;
|
|
594
|
+
function parseUri(uri: URI): undefined | {
|
|
595
|
+
sessionId: string;
|
|
596
|
+
requestId: string;
|
|
597
|
+
toolCallId: string;
|
|
598
|
+
index: number;
|
|
599
|
+
};
|
|
600
|
+
}
|
|
585
601
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
3
3
|
import { asArray } from '../../../../base/common/arrays.js';
|
|
4
|
-
import { DeferredPromise } from '../../../../base/common/async.js';
|
|
5
4
|
import { Codicon } from '../../../../base/common/codicons.js';
|
|
6
5
|
import { Emitter } from '../../../../base/common/event.js';
|
|
7
6
|
import { isMarkdownString, MarkdownString } from '../../../../base/common/htmlContent.js';
|
|
@@ -14,8 +13,8 @@ import '../../../../base/common/observableInternal/index.js';
|
|
|
14
13
|
import { basename, isEqual } from '../../../../base/common/resources.js';
|
|
15
14
|
import { URI, isUriComponents } from '../../../../base/common/uri.js';
|
|
16
15
|
import { generateUuid } from '../../../../base/common/uuid.js';
|
|
17
|
-
import { OffsetRange } from '../../../../editor/common/core/offsetRange.js';
|
|
18
|
-
import { TextEdit } from '../../../../editor/common/languages.js';
|
|
16
|
+
import { OffsetRange } from '../../../../editor/common/core/ranges/offsetRange.js';
|
|
17
|
+
import { isLocation, TextEdit } from '../../../../editor/common/languages.js';
|
|
19
18
|
import { localize } from '../../../../nls.js';
|
|
20
19
|
import { ILogService } from '../../../../platform/log/common/log.service.js';
|
|
21
20
|
import { CellUri } from '../../notebook/common/notebookCommon.js';
|
|
@@ -25,8 +24,10 @@ import { IChatEditingService } from './chatEditingService.service.js';
|
|
|
25
24
|
import { reviveParsedChatRequest, ChatRequestTextPart } from './chatParserTypes.js';
|
|
26
25
|
import { isIUsedContext } from './chatService.js';
|
|
27
26
|
import { ChatAgentLocation, ChatMode } from './constants.js';
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
27
|
+
import { observableSignalFromEvent } from '../../../../base/common/observableInternal/observables/observableSignalFromEvent.js';
|
|
28
|
+
import { observableFromEvent } from '../../../../base/common/observableInternal/observables/observableFromEvent.js';
|
|
29
|
+
import { ObservablePromise } from '../../../../base/common/observableInternal/utils/promise.js';
|
|
30
|
+
import { observableValue } from '../../../../base/common/observableInternal/observables/observableValue.js';
|
|
30
31
|
|
|
31
32
|
var ChatModel_1;
|
|
32
33
|
var OmittedState;
|
|
@@ -78,14 +79,25 @@ var IDiagnosticVariableEntryFilterData;
|
|
|
78
79
|
}
|
|
79
80
|
return data.problemMessage.substring(0, lastSpace) + '…';
|
|
80
81
|
}
|
|
81
|
-
let labelStr = ( localize(
|
|
82
|
+
let labelStr = ( localize(5153, "All Problems"));
|
|
82
83
|
if (data.filterUri) {
|
|
83
|
-
labelStr = ( localize(
|
|
84
|
+
labelStr = ( localize(5154, "Problems in {0}", basename(data.filterUri)));
|
|
84
85
|
}
|
|
85
86
|
return labelStr;
|
|
86
87
|
}
|
|
87
88
|
IDiagnosticVariableEntryFilterData.label = label;
|
|
88
89
|
})(IDiagnosticVariableEntryFilterData || (IDiagnosticVariableEntryFilterData = {}));
|
|
90
|
+
var IChatRequestVariableEntry;
|
|
91
|
+
(function (IChatRequestVariableEntry) {
|
|
92
|
+
function toUri(entry) {
|
|
93
|
+
return URI.isUri(entry.value)
|
|
94
|
+
? entry.value
|
|
95
|
+
: isLocation(entry.value)
|
|
96
|
+
? entry.value.uri
|
|
97
|
+
: undefined;
|
|
98
|
+
}
|
|
99
|
+
IChatRequestVariableEntry.toUri = toUri;
|
|
100
|
+
})(IChatRequestVariableEntry || (IChatRequestVariableEntry = {}));
|
|
89
101
|
function isPasteVariableEntry(obj) {
|
|
90
102
|
return obj.kind === 'paste';
|
|
91
103
|
}
|
|
@@ -101,11 +113,26 @@ function isElementVariableEntry(obj) {
|
|
|
101
113
|
function isChatRequestFileEntry(obj) {
|
|
102
114
|
return obj.kind === 'file';
|
|
103
115
|
}
|
|
116
|
+
function isSCMHistoryItemVariableEntry(obj) {
|
|
117
|
+
return obj.kind === 'scmHistoryItem';
|
|
118
|
+
}
|
|
119
|
+
const CHAT_ATTACHABLE_IMAGE_MIME_TYPES = {
|
|
120
|
+
png: 'image/png',
|
|
121
|
+
jpg: 'image/jpeg',
|
|
122
|
+
jpeg: 'image/jpeg',
|
|
123
|
+
gif: 'image/gif',
|
|
124
|
+
webp: 'image/webp',
|
|
125
|
+
};
|
|
126
|
+
function getAttachableImageExtension(mimeType) {
|
|
127
|
+
return Object.entries(CHAT_ATTACHABLE_IMAGE_MIME_TYPES).find(([_, value]) => value === mimeType)?.[0];
|
|
128
|
+
}
|
|
104
129
|
function isCellTextEditOperation(value) {
|
|
105
130
|
const candidate = value;
|
|
106
131
|
return !!candidate && !!candidate.edit && !!candidate.uri && URI.isUri(candidate.uri);
|
|
107
132
|
}
|
|
108
|
-
const nonHistoryKinds = ( new Set(
|
|
133
|
+
const nonHistoryKinds = ( new Set(
|
|
134
|
+
['toolInvocation', 'toolInvocationSerialized', 'undoStop', 'prepareToolInvocation']
|
|
135
|
+
));
|
|
109
136
|
function isChatProgressHistoryResponseContent(content) {
|
|
110
137
|
return !( nonHistoryKinds.has(content.kind));
|
|
111
138
|
}
|
|
@@ -207,6 +234,7 @@ class AbstractResponse {
|
|
|
207
234
|
case 'toolInvocationSerialized':
|
|
208
235
|
case 'extensions':
|
|
209
236
|
case 'undoStop':
|
|
237
|
+
case 'prepareToolInvocation':
|
|
210
238
|
continue;
|
|
211
239
|
case 'inlineReference':
|
|
212
240
|
segment = { text: this.inlineRefToRepr(part) };
|
|
@@ -216,7 +244,7 @@ class AbstractResponse {
|
|
|
216
244
|
break;
|
|
217
245
|
case 'textEditGroup':
|
|
218
246
|
case 'notebookEditGroup':
|
|
219
|
-
segment = { text: ( localize(
|
|
247
|
+
segment = { text: ( localize(5155, "Made changes.")), isBlock: true };
|
|
220
248
|
break;
|
|
221
249
|
case 'confirmation':
|
|
222
250
|
segment = { text: `${part.title}\n${part.message}`, isBlock: true };
|
|
@@ -258,7 +286,10 @@ class AbstractResponse {
|
|
|
258
286
|
}
|
|
259
287
|
class ResponseView extends AbstractResponse {
|
|
260
288
|
constructor(_response, undoStop) {
|
|
261
|
-
|
|
289
|
+
let idx = _response.value.findIndex(v => v.kind === 'undoStop' && v.id === undoStop);
|
|
290
|
+
if (_response.value[idx + 1]?.kind === 'codeblockUri' && _response.value[idx - 1]?.kind === 'markdownContent') {
|
|
291
|
+
idx--;
|
|
292
|
+
}
|
|
262
293
|
super(idx === -1 ? _response.value.slice() : _response.value.slice(0, idx));
|
|
263
294
|
this.undoStop = undoStop;
|
|
264
295
|
}
|
|
@@ -431,10 +462,6 @@ class ChatResponseModel extends Disposable {
|
|
|
431
462
|
get isPaused() {
|
|
432
463
|
return this._isPaused;
|
|
433
464
|
}
|
|
434
|
-
get isPendingConfirmation() {
|
|
435
|
-
return ( this._response.value.some(part => part.kind === 'toolInvocation' && part.isConfirmed === undefined
|
|
436
|
-
|| part.kind === 'confirmation' && part.isUsed === false));
|
|
437
|
-
}
|
|
438
465
|
get response() {
|
|
439
466
|
const undoStop = this._shouldBeRemovedOnSend?.afterUndoStop;
|
|
440
467
|
if (!undoStop) {
|
|
@@ -468,6 +495,18 @@ class ChatResponseModel extends Disposable {
|
|
|
468
495
|
this._shouldBeRemovedOnSend = params.shouldBeRemovedOnSend;
|
|
469
496
|
this._isStale = Array.isArray(params.responseContent) && (params.responseContent.length !== 0 || isMarkdownString(params.responseContent) && params.responseContent.value.length !== 0);
|
|
470
497
|
this._response = this._register(( new Response(params.responseContent)));
|
|
498
|
+
const signal = observableSignalFromEvent(this, this.onDidChange);
|
|
499
|
+
this.isPendingConfirmation = ( signal.map((_value, r) => {
|
|
500
|
+
signal.read(r);
|
|
501
|
+
return ( this._response.value.some(part => part.kind === 'toolInvocation' && part.isConfirmed === undefined
|
|
502
|
+
|| part.kind === 'confirmation' && part.isUsed === false));
|
|
503
|
+
}));
|
|
504
|
+
this.isInProgress = ( signal.map((_value, r) => {
|
|
505
|
+
signal.read(r);
|
|
506
|
+
return !this.isPendingConfirmation.read(r)
|
|
507
|
+
&& !this.shouldBeRemovedOnSend
|
|
508
|
+
&& !this._isComplete;
|
|
509
|
+
}));
|
|
471
510
|
this._register(this._response.onDidChangeValue(() => this._onDidChange.fire(defaultChatResponseModelChangeReason)));
|
|
472
511
|
this.id = params.restoredId ?? 'response_' + generateUuid();
|
|
473
512
|
}
|
|
@@ -628,12 +667,6 @@ var ChatRequestRemovalReason;
|
|
|
628
667
|
ChatRequestRemovalReason[ChatRequestRemovalReason["Resend"] = 1] = "Resend";
|
|
629
668
|
ChatRequestRemovalReason[ChatRequestRemovalReason["Adoption"] = 2] = "Adoption";
|
|
630
669
|
})(ChatRequestRemovalReason || (ChatRequestRemovalReason = {}));
|
|
631
|
-
var ChatModelInitState;
|
|
632
|
-
(function (ChatModelInitState) {
|
|
633
|
-
ChatModelInitState[ChatModelInitState["Created"] = 0] = "Created";
|
|
634
|
-
ChatModelInitState[ChatModelInitState["Initializing"] = 1] = "Initializing";
|
|
635
|
-
ChatModelInitState[ChatModelInitState["Initialized"] = 2] = "Initialized";
|
|
636
|
-
})(ChatModelInitState || (ChatModelInitState = {}));
|
|
637
670
|
let ChatModel = ChatModel_1 = class ChatModel extends Disposable {
|
|
638
671
|
static getDefaultTitle(requests) {
|
|
639
672
|
const firstRequestMessage = requests.at(0)?.message ?? '';
|
|
@@ -642,25 +675,15 @@ let ChatModel = ChatModel_1 = class ChatModel extends Disposable {
|
|
|
642
675
|
firstRequestMessage.text;
|
|
643
676
|
return message.split('\n')[0].substring(0, 50);
|
|
644
677
|
}
|
|
645
|
-
get sampleQuestions() {
|
|
646
|
-
return this._sampleQuestions;
|
|
647
|
-
}
|
|
648
678
|
get sessionId() {
|
|
649
679
|
return this._sessionId;
|
|
650
680
|
}
|
|
651
681
|
get requestInProgress() {
|
|
652
|
-
|
|
653
|
-
if (!lastRequest?.response) {
|
|
654
|
-
return false;
|
|
655
|
-
}
|
|
656
|
-
if (lastRequest.response.isPendingConfirmation) {
|
|
657
|
-
return false;
|
|
658
|
-
}
|
|
659
|
-
return !lastRequest.response.isComplete;
|
|
682
|
+
return this.requestInProgressObs.get();
|
|
660
683
|
}
|
|
661
684
|
get requestPausibility() {
|
|
662
685
|
const lastRequest = this.lastRequest;
|
|
663
|
-
if (!lastRequest?.response?.agent || lastRequest.response.isComplete || lastRequest.response.isPendingConfirmation) {
|
|
686
|
+
if (!lastRequest?.response?.agent || lastRequest.response.isComplete || lastRequest.response.isPendingConfirmation.get()) {
|
|
664
687
|
return ChatPauseState.NotPausable;
|
|
665
688
|
}
|
|
666
689
|
return lastRequest.response.isPaused.get() ? ChatPauseState.Paused : ChatPauseState.Unpaused;
|
|
@@ -696,9 +719,6 @@ let ChatModel = ChatModel_1 = class ChatModel extends Disposable {
|
|
|
696
719
|
return this._defaultAgent?.metadata.themeIcon ??
|
|
697
720
|
this._initialResponderAvatarIconUri;
|
|
698
721
|
}
|
|
699
|
-
get initState() {
|
|
700
|
-
return this._initState;
|
|
701
|
-
}
|
|
702
722
|
get isImported() {
|
|
703
723
|
return this._isImported;
|
|
704
724
|
}
|
|
@@ -728,8 +748,6 @@ let ChatModel = ChatModel_1 = class ChatModel extends Disposable {
|
|
|
728
748
|
this.onDidDispose = this._onDidDispose.event;
|
|
729
749
|
this._onDidChange = this._register(( new Emitter()));
|
|
730
750
|
this.onDidChange = this._onDidChange.event;
|
|
731
|
-
this._initState = ChatModelInitState.Created;
|
|
732
|
-
this._isInitializedDeferred = ( new DeferredPromise());
|
|
733
751
|
this._isImported = false;
|
|
734
752
|
this.currentEditedFileEvents = ( new ResourceMap());
|
|
735
753
|
this._checkpoint = undefined;
|
|
@@ -745,6 +763,10 @@ let ChatModel = ChatModel_1 = class ChatModel extends Disposable {
|
|
|
745
763
|
this._customTitle = isValid ? initialData.customTitle : undefined;
|
|
746
764
|
this._initialRequesterAvatarIconUri = initialData?.requesterAvatarIconUri && URI.revive(initialData.requesterAvatarIconUri);
|
|
747
765
|
this._initialResponderAvatarIconUri = isUriComponents(initialData?.responderAvatarIconUri) ? URI.revive(initialData.responderAvatarIconUri) : initialData?.responderAvatarIconUri;
|
|
766
|
+
const lastResponse = observableFromEvent(this, this.onDidChange, () => this._requests.at(-1)?.response);
|
|
767
|
+
this.requestInProgressObs = ( lastResponse.map((response, r) => {
|
|
768
|
+
return response?.isInProgress.read(r) ?? false;
|
|
769
|
+
}));
|
|
748
770
|
}
|
|
749
771
|
startEditingSession(isGlobalEditingSession) {
|
|
750
772
|
const editingSessionPromise = isGlobalEditingSession ?
|
|
@@ -859,42 +881,6 @@ let ChatModel = ChatModel_1 = class ChatModel extends Disposable {
|
|
|
859
881
|
this._onDidChange.fire({ kind: 'changedRequest', request: this.lastRequest });
|
|
860
882
|
}
|
|
861
883
|
}
|
|
862
|
-
startInitialize() {
|
|
863
|
-
if (this.initState !== ChatModelInitState.Created) {
|
|
864
|
-
throw ( new Error(
|
|
865
|
-
`ChatModel is in the wrong state for startInitialize: ${ChatModelInitState[this.initState]}`
|
|
866
|
-
));
|
|
867
|
-
}
|
|
868
|
-
this._initState = ChatModelInitState.Initializing;
|
|
869
|
-
}
|
|
870
|
-
deinitialize() {
|
|
871
|
-
this._initState = ChatModelInitState.Created;
|
|
872
|
-
this._isInitializedDeferred = ( new DeferredPromise());
|
|
873
|
-
}
|
|
874
|
-
initialize(sampleQuestions) {
|
|
875
|
-
if (this.initState !== ChatModelInitState.Initializing) {
|
|
876
|
-
throw ( new Error(
|
|
877
|
-
`ChatModel is in the wrong state for initialize: ${ChatModelInitState[this.initState]}`
|
|
878
|
-
));
|
|
879
|
-
}
|
|
880
|
-
this._initState = ChatModelInitState.Initialized;
|
|
881
|
-
this._sampleQuestions = sampleQuestions;
|
|
882
|
-
this._isInitializedDeferred.complete();
|
|
883
|
-
this._onDidChange.fire({ kind: 'initialize' });
|
|
884
|
-
}
|
|
885
|
-
setInitializationError(error) {
|
|
886
|
-
if (this.initState !== ChatModelInitState.Initializing) {
|
|
887
|
-
throw ( new Error(
|
|
888
|
-
`ChatModel is in the wrong state for setInitializationError: ${ChatModelInitState[this.initState]}`
|
|
889
|
-
));
|
|
890
|
-
}
|
|
891
|
-
if (!this._isInitializedDeferred.isSettled) {
|
|
892
|
-
this._isInitializedDeferred.error(error);
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
waitForInitialization() {
|
|
896
|
-
return this._isInitializedDeferred.p;
|
|
897
|
-
}
|
|
898
884
|
getRequests() {
|
|
899
885
|
return this._requests;
|
|
900
886
|
}
|
|
@@ -974,23 +960,7 @@ let ChatModel = ChatModel_1 = class ChatModel extends Disposable {
|
|
|
974
960
|
if (request.response.isComplete) {
|
|
975
961
|
throw ( new Error('acceptResponseProgress: Adding progress to a completed response'));
|
|
976
962
|
}
|
|
977
|
-
if (progress.kind === '
|
|
978
|
-
progress.kind === 'treeData' ||
|
|
979
|
-
progress.kind === 'inlineReference' ||
|
|
980
|
-
progress.kind === 'codeblockUri' ||
|
|
981
|
-
progress.kind === 'markdownVuln' ||
|
|
982
|
-
progress.kind === 'progressMessage' ||
|
|
983
|
-
progress.kind === 'command' ||
|
|
984
|
-
progress.kind === 'textEdit' ||
|
|
985
|
-
progress.kind === 'notebookEdit' ||
|
|
986
|
-
progress.kind === 'warning' ||
|
|
987
|
-
progress.kind === 'progressTask' ||
|
|
988
|
-
progress.kind === 'confirmation' ||
|
|
989
|
-
progress.kind === 'extensions' ||
|
|
990
|
-
progress.kind === 'toolInvocation') {
|
|
991
|
-
request.response.updateContent(progress, quiet);
|
|
992
|
-
}
|
|
993
|
-
else if (progress.kind === 'usedContext' || progress.kind === 'reference') {
|
|
963
|
+
if (progress.kind === 'usedContext' || progress.kind === 'reference') {
|
|
994
964
|
request.response.applyReference(progress);
|
|
995
965
|
}
|
|
996
966
|
else if (progress.kind === 'codeCitation') {
|
|
@@ -999,12 +969,16 @@ let ChatModel = ChatModel_1 = class ChatModel extends Disposable {
|
|
|
999
969
|
else if (progress.kind === 'move') {
|
|
1000
970
|
this._onDidChange.fire({ kind: 'move', target: progress.uri, range: progress.range });
|
|
1001
971
|
}
|
|
1002
|
-
else if (progress.kind === '
|
|
1003
|
-
request.response.addUndoStop(
|
|
972
|
+
else if (progress.kind === 'codeblockUri' && progress.isEdit) {
|
|
973
|
+
request.response.addUndoStop({ id: generateUuid(), kind: 'undoStop' });
|
|
974
|
+
request.response.updateContent(progress, quiet);
|
|
1004
975
|
}
|
|
1005
|
-
else {
|
|
976
|
+
else if (progress.kind === 'progressTaskResult') {
|
|
1006
977
|
this.logService.error(`Couldn't handle progress: ${JSON.stringify(progress)}`);
|
|
1007
978
|
}
|
|
979
|
+
else {
|
|
980
|
+
request.response.updateContent(progress, quiet);
|
|
981
|
+
}
|
|
1008
982
|
}
|
|
1009
983
|
removeRequest(id, reason = ChatRequestRemovalReason.Removal) {
|
|
1010
984
|
const index = this._requests.findIndex(request => request.id === id);
|
|
@@ -1165,8 +1139,8 @@ function getCodeCitationsMessage(citations) {
|
|
|
1165
1139
|
}
|
|
1166
1140
|
const licenseTypes = citations.reduce((set, c) => set.add(c.license), ( new Set()));
|
|
1167
1141
|
const label = licenseTypes.size === 1 ?
|
|
1168
|
-
( localize(
|
|
1169
|
-
( localize(
|
|
1142
|
+
( localize(5156, "Similar code found with 1 license type", licenseTypes.size)) :
|
|
1143
|
+
( localize(5157, "Similar code found with {0} license types", licenseTypes.size));
|
|
1170
1144
|
return label;
|
|
1171
1145
|
}
|
|
1172
1146
|
var ChatRequestEditedFileEventKind;
|
|
@@ -1175,5 +1149,37 @@ var ChatRequestEditedFileEventKind;
|
|
|
1175
1149
|
ChatRequestEditedFileEventKind[ChatRequestEditedFileEventKind["Undo"] = 2] = "Undo";
|
|
1176
1150
|
ChatRequestEditedFileEventKind[ChatRequestEditedFileEventKind["UserModification"] = 3] = "UserModification";
|
|
1177
1151
|
})(ChatRequestEditedFileEventKind || (ChatRequestEditedFileEventKind = {}));
|
|
1152
|
+
var ChatResponseResource;
|
|
1153
|
+
(function (ChatResponseResource) {
|
|
1154
|
+
ChatResponseResource.scheme = 'vscode-chat-response-resource';
|
|
1155
|
+
function createUri(sessionId, requestId, toolCallId, index, basename) {
|
|
1156
|
+
return ( URI.from({
|
|
1157
|
+
scheme: ChatResponseResource.scheme,
|
|
1158
|
+
authority: sessionId,
|
|
1159
|
+
path: `/tool/${requestId}/${toolCallId}/${index}` + (basename ? `/${basename}` : ''),
|
|
1160
|
+
}));
|
|
1161
|
+
}
|
|
1162
|
+
ChatResponseResource.createUri = createUri;
|
|
1163
|
+
function parseUri(uri) {
|
|
1164
|
+
if (uri.scheme !== ChatResponseResource.scheme) {
|
|
1165
|
+
return undefined;
|
|
1166
|
+
}
|
|
1167
|
+
const parts = uri.path.split('/');
|
|
1168
|
+
if (parts.length < 5) {
|
|
1169
|
+
return undefined;
|
|
1170
|
+
}
|
|
1171
|
+
const [, kind, requestId, toolCallId, index] = parts;
|
|
1172
|
+
if (kind !== 'tool') {
|
|
1173
|
+
return undefined;
|
|
1174
|
+
}
|
|
1175
|
+
return {
|
|
1176
|
+
sessionId: uri.authority,
|
|
1177
|
+
requestId: requestId,
|
|
1178
|
+
toolCallId: toolCallId,
|
|
1179
|
+
index: Number(index),
|
|
1180
|
+
};
|
|
1181
|
+
}
|
|
1182
|
+
ChatResponseResource.parseUri = parseUri;
|
|
1183
|
+
})(ChatResponseResource || (ChatResponseResource = {}));
|
|
1178
1184
|
|
|
1179
|
-
export {
|
|
1185
|
+
export { CHAT_ATTACHABLE_IMAGE_MIME_TYPES, ChatModel, ChatPauseState, ChatRequestEditedFileEventKind, ChatRequestModel, ChatRequestRemovalReason, ChatResponseModel, ChatResponseResource, IChatRequestVariableEntry, IDiagnosticVariableEntryFilterData, OmittedState, Response, appendMarkdownString, canMergeMarkdownStrings, getAttachableImageExtension, getCodeCitationsMessage, isCellTextEditOperation, isChatRequestFileEntry, isElementVariableEntry, isExportableSessionData, isImageVariableEntry, isNotebookOutputVariableEntry, isPasteVariableEntry, isSCMHistoryItemVariableEntry, isSerializableSessionData, normalizeSerializableChatData, toChatHistoryContent, updateRanges };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ThemeIcon } from "../../../../base/common/themables.js";
|
|
2
|
-
import { IOffsetRange, OffsetRange } from "../../../../editor/common/core/offsetRange.js";
|
|
2
|
+
import { IOffsetRange, OffsetRange } from "../../../../editor/common/core/ranges/offsetRange.js";
|
|
3
3
|
import { IRange } from "../../../../editor/common/core/range.js";
|
|
4
4
|
import { IChatAgentCommand, IChatAgentData } from "./chatAgents.js";
|
|
5
5
|
import { IChatAgentService } from "./chatAgents.service.js";
|
|
6
|
-
import { IChatRequestVariableEntry } from "./chatModel.js";
|
|
6
|
+
import { IChatRequestToolEntry, IChatRequestToolSetEntry, IChatRequestVariableEntry } from "./chatModel.js";
|
|
7
7
|
import { IChatSlashData } from "@codingame/monaco-vscode-chat-service-override/vscode/vs/workbench/contrib/chat/common/chatSlashCommands";
|
|
8
8
|
import { IChatRequestVariableValue } from "./chatVariables.js";
|
|
9
9
|
import { ChatAgentLocation } from "./constants.js";
|
|
@@ -48,7 +48,21 @@ export declare class ChatRequestToolPart implements IParsedChatRequestPart {
|
|
|
48
48
|
constructor(range: OffsetRange, editorRange: IRange, toolName: string, toolId: string, displayName?: string | undefined, icon?: IToolData["icon"]);
|
|
49
49
|
get text(): string;
|
|
50
50
|
get promptText(): string;
|
|
51
|
-
toVariableEntry():
|
|
51
|
+
toVariableEntry(): IChatRequestToolEntry;
|
|
52
|
+
}
|
|
53
|
+
export declare class ChatRequestToolSetPart implements IParsedChatRequestPart {
|
|
54
|
+
readonly range: OffsetRange;
|
|
55
|
+
readonly editorRange: IRange;
|
|
56
|
+
readonly id: string;
|
|
57
|
+
readonly name: string;
|
|
58
|
+
readonly icon: ThemeIcon;
|
|
59
|
+
readonly tools: IChatRequestToolEntry[];
|
|
60
|
+
static readonly Kind = "toolset";
|
|
61
|
+
readonly kind = "toolset";
|
|
62
|
+
constructor(range: OffsetRange, editorRange: IRange, id: string, name: string, icon: ThemeIcon, tools: IChatRequestToolEntry[]);
|
|
63
|
+
get text(): string;
|
|
64
|
+
get promptText(): string;
|
|
65
|
+
toVariableEntry(): IChatRequestToolSetEntry;
|
|
52
66
|
}
|
|
53
67
|
export declare class ChatRequestAgentPart implements IParsedChatRequestPart {
|
|
54
68
|
readonly range: OffsetRange;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { revive } from '../../../../base/common/marshalling.js';
|
|
3
3
|
import { ThemeIcon } from '../../../../base/common/themables.js';
|
|
4
|
-
import { OffsetRange } from '../../../../editor/common/core/offsetRange.js';
|
|
4
|
+
import { OffsetRange } from '../../../../editor/common/core/ranges/offsetRange.js';
|
|
5
5
|
import { reviveSerializedAgent } from './chatAgents.js';
|
|
6
6
|
import { IDiagnosticVariableEntryFilterData } from './chatModel.js';
|
|
7
7
|
|
|
@@ -64,6 +64,27 @@ class ChatRequestToolPart {
|
|
|
64
64
|
return { kind: 'tool', id: this.toolId, name: this.toolName, range: this.range, value: undefined, icon: ThemeIcon.isThemeIcon(this.icon) ? this.icon : undefined, fullName: this.displayName };
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
+
class ChatRequestToolSetPart {
|
|
68
|
+
static { this.Kind = 'toolset'; }
|
|
69
|
+
constructor(range, editorRange, id, name, icon, tools) {
|
|
70
|
+
this.range = range;
|
|
71
|
+
this.editorRange = editorRange;
|
|
72
|
+
this.id = id;
|
|
73
|
+
this.name = name;
|
|
74
|
+
this.icon = icon;
|
|
75
|
+
this.tools = tools;
|
|
76
|
+
this.kind = ChatRequestToolSetPart.Kind;
|
|
77
|
+
}
|
|
78
|
+
get text() {
|
|
79
|
+
return `${chatVariableLeader}${this.name}`;
|
|
80
|
+
}
|
|
81
|
+
get promptText() {
|
|
82
|
+
return this.text;
|
|
83
|
+
}
|
|
84
|
+
toVariableEntry() {
|
|
85
|
+
return { kind: 'toolset', id: this.id, name: this.name, range: this.range, icon: this.icon, value: this.tools };
|
|
86
|
+
}
|
|
87
|
+
}
|
|
67
88
|
class ChatRequestAgentPart {
|
|
68
89
|
static { this.Kind = 'agent'; }
|
|
69
90
|
constructor(range, editorRange, agent) {
|
|
@@ -165,6 +186,9 @@ function reviveParsedChatRequest(serialized) {
|
|
|
165
186
|
else if (part.kind === ChatRequestToolPart.Kind) {
|
|
166
187
|
return ( new ChatRequestToolPart(( new OffsetRange(part.range.start, part.range.endExclusive)), part.editorRange, part.toolName, part.toolId, part.displayName, part.icon));
|
|
167
188
|
}
|
|
189
|
+
else if (part.kind === ChatRequestToolSetPart.Kind) {
|
|
190
|
+
return ( new ChatRequestToolSetPart(( new OffsetRange(part.range.start, part.range.endExclusive)), part.editorRange, part.id, part.name, part.icon, part.tools ?? []));
|
|
191
|
+
}
|
|
168
192
|
else if (part.kind === ChatRequestAgentPart.Kind) {
|
|
169
193
|
let agent = part.agent;
|
|
170
194
|
agent = reviveSerializedAgent(agent);
|
|
@@ -208,4 +232,4 @@ function formatChatQuestion(chatAgentService, location, prompt, participant = nu
|
|
|
208
232
|
return question + prompt;
|
|
209
233
|
}
|
|
210
234
|
|
|
211
|
-
export { ChatRequestAgentPart, ChatRequestAgentSubcommandPart, ChatRequestDynamicVariablePart, ChatRequestSlashCommandPart, ChatRequestSlashPromptPart, ChatRequestTextPart, ChatRequestToolPart, chatAgentLeader, chatSubcommandLeader, chatVariableLeader, extractAgentAndCommand, formatChatQuestion, getPromptText, reviveParsedChatRequest };
|
|
235
|
+
export { ChatRequestAgentPart, ChatRequestAgentSubcommandPart, ChatRequestDynamicVariablePart, ChatRequestSlashCommandPart, ChatRequestSlashPromptPart, ChatRequestTextPart, ChatRequestToolPart, ChatRequestToolSetPart, chatAgentLeader, chatSubcommandLeader, chatVariableLeader, extractAgentAndCommand, formatChatQuestion, getPromptText, reviveParsedChatRequest };
|