@codingame/monaco-vscode-api 17.2.1 → 18.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/missing-services.js +245 -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
|
@@ -12,11 +12,18 @@ import { McpServerLaunch, McpServerTransportType, McpConnectionState, extensionP
|
|
|
12
12
|
import { MainContext } from './extHost.protocol.js';
|
|
13
13
|
import { IExtHostRpcService } from './extHostRpcService.js';
|
|
14
14
|
import { McpServerDefinition } from './extHostTypeConverters.js';
|
|
15
|
+
import { parseWWWAuthenticateHeader, getMetadataWithDefaultValues, getDefaultMetadataForUrl, isAuthorizationProtectedResourceMetadata, AUTH_SERVER_METADATA_DISCOVERY_PATH, isAuthorizationServerMetadata } from '../../../base/common/oauth.js';
|
|
16
|
+
import { URI } from '../../../base/common/uri.js';
|
|
17
|
+
import { MCP } from '../../contrib/mcp/common/modelContextProtocol.js';
|
|
18
|
+
import { CancellationError } from '../../../base/common/errors.js';
|
|
19
|
+
import { ConfigurationTarget } from '../../../platform/configuration/common/configuration.js';
|
|
20
|
+
import { IExtHostInitDataService } from './extHostInitDataService.js';
|
|
15
21
|
|
|
16
22
|
const IExtHostMpcService = ( createDecorator('IExtHostMpcService'));
|
|
17
23
|
let ExtHostMcpService = class ExtHostMcpService extends Disposable {
|
|
18
|
-
constructor(extHostRpc) {
|
|
24
|
+
constructor(extHostRpc, _extHostInitData) {
|
|
19
25
|
super();
|
|
26
|
+
this._extHostInitData = _extHostInitData;
|
|
20
27
|
this._initialProviderPromises = ( new Set());
|
|
21
28
|
this._sseEventSources = this._register(( new DisposableMap()));
|
|
22
29
|
this._unresolvedMcpServers = ( new Map());
|
|
@@ -61,10 +68,10 @@ let ExtHostMcpService = class ExtHostMcpService extends Disposable {
|
|
|
61
68
|
}
|
|
62
69
|
registerMcpConfigurationProvider(extension, id, provider) {
|
|
63
70
|
const store = ( new DisposableStore());
|
|
64
|
-
const metadata = extension.contributes?.
|
|
71
|
+
const metadata = extension.contributes?.mcpServerDefinitionProviders?.find(m => m.id === id);
|
|
65
72
|
if (!metadata) {
|
|
66
73
|
throw ( new Error(
|
|
67
|
-
`MCP configuration providers must be registered in the contributes.
|
|
74
|
+
`MCP configuration providers must be registered in the contributes.mcpServerDefinitionProviders array within your package.json, but "${id}" was not`
|
|
68
75
|
));
|
|
69
76
|
}
|
|
70
77
|
const mcp = {
|
|
@@ -74,6 +81,7 @@ let ExtHostMcpService = class ExtHostMcpService extends Disposable {
|
|
|
74
81
|
scope: StorageScope.WORKSPACE,
|
|
75
82
|
canResolveLaunch: typeof provider.resolveMcpServerDefinition === 'function',
|
|
76
83
|
extensionId: extension.identifier.value,
|
|
84
|
+
configTarget: this._extHostInitData.remote.isRemote ? ConfigurationTarget.USER_REMOTE : ConfigurationTarget.USER,
|
|
77
85
|
};
|
|
78
86
|
const update = async () => {
|
|
79
87
|
const list = await provider.provideMcpServerDefinitions(CancellationToken.None);
|
|
@@ -92,7 +100,7 @@ let ExtHostMcpService = class ExtHostMcpService extends Disposable {
|
|
|
92
100
|
id,
|
|
93
101
|
label: item.label,
|
|
94
102
|
cacheNonce: item.version,
|
|
95
|
-
launch: McpServerDefinition.from(item)
|
|
103
|
+
launch: McpServerDefinition.from(item),
|
|
96
104
|
});
|
|
97
105
|
}
|
|
98
106
|
this._proxy.$upsertMcpCollection(mcp, servers);
|
|
@@ -101,6 +109,9 @@ let ExtHostMcpService = class ExtHostMcpService extends Disposable {
|
|
|
101
109
|
this._unresolvedMcpServers.delete(mcp.id);
|
|
102
110
|
this._proxy.$deleteMcpCollection(mcp.id);
|
|
103
111
|
}));
|
|
112
|
+
if (provider.onDidChangeMcpServerDefinitions) {
|
|
113
|
+
store.add(provider.onDidChangeMcpServerDefinitions(update));
|
|
114
|
+
}
|
|
104
115
|
if (provider.onDidChangeServerDefinitions) {
|
|
105
116
|
store.add(provider.onDidChangeServerDefinitions(update));
|
|
106
117
|
}
|
|
@@ -118,7 +129,8 @@ let ExtHostMcpService = class ExtHostMcpService extends Disposable {
|
|
|
118
129
|
}
|
|
119
130
|
};
|
|
120
131
|
ExtHostMcpService = ( __decorate([
|
|
121
|
-
( __param(0, IExtHostRpcService))
|
|
132
|
+
( __param(0, IExtHostRpcService)),
|
|
133
|
+
( __param(1, IExtHostInitDataService))
|
|
122
134
|
], ExtHostMcpService));
|
|
123
135
|
var HttpMode;
|
|
124
136
|
(function (HttpMode) {
|
|
@@ -170,28 +182,27 @@ class McpHTTPHandle extends Disposable {
|
|
|
170
182
|
if (sessionId) {
|
|
171
183
|
headers['Mcp-Session-Id'] = sessionId;
|
|
172
184
|
}
|
|
173
|
-
|
|
185
|
+
await this._addAuthHeader(headers);
|
|
186
|
+
const res = await this._fetchWithAuthRetry(( this._launch.uri.toString(true)), {
|
|
174
187
|
method: 'POST',
|
|
175
188
|
signal: this._abortCtrl.signal,
|
|
176
189
|
headers,
|
|
177
190
|
body: asBytes,
|
|
178
|
-
});
|
|
191
|
+
}, headers);
|
|
179
192
|
const wasUnknown = this._mode.value === HttpMode.Unknown;
|
|
180
193
|
const nextSessionId = res.headers.get('Mcp-Session-Id');
|
|
181
194
|
if (nextSessionId) {
|
|
182
195
|
this._mode = { value: HttpMode.Http, sessionId: nextSessionId };
|
|
183
196
|
}
|
|
184
|
-
if (this._mode.value === HttpMode.Unknown &&
|
|
197
|
+
if (this._mode.value === HttpMode.Unknown &&
|
|
198
|
+
res.status >= 400 && res.status < 500
|
|
199
|
+
&& res.status !== 401 && res.status !== 403) {
|
|
185
200
|
this._log(LogLevel.Info, `${res.status} status sending message to ${this._launch.uri}, will attempt to fall back to legacy SSE`);
|
|
186
|
-
|
|
187
|
-
if (endpoint) {
|
|
188
|
-
this._mode = { value: HttpMode.SSE, endpoint };
|
|
189
|
-
await this._sendLegacySSE(endpoint, message);
|
|
190
|
-
}
|
|
201
|
+
this._sseFallbackWithMessage(message);
|
|
191
202
|
return;
|
|
192
203
|
}
|
|
193
204
|
if (res.status >= 300) {
|
|
194
|
-
const retryWithSessionId = this._mode.value === HttpMode.Http && !!this._mode.sessionId;
|
|
205
|
+
const retryWithSessionId = this._mode.value === HttpMode.Http && !!this._mode.sessionId && (res.status === 400 || res.status === 404);
|
|
195
206
|
this._proxy.$onDidChangeState(this._id, {
|
|
196
207
|
state: McpConnectionState.Kind.Error,
|
|
197
208
|
message: `${res.status} status sending message to ${this._launch.uri}: ${await this._getErrText(res)}` + retryWithSessionId ? `; will retry with new session ID` : '',
|
|
@@ -205,9 +216,129 @@ class McpHTTPHandle extends Disposable {
|
|
|
205
216
|
if (wasUnknown) {
|
|
206
217
|
this._attachStreamableBackchannel();
|
|
207
218
|
}
|
|
208
|
-
this._handleSuccessfulStreamableHttp(res);
|
|
219
|
+
this._handleSuccessfulStreamableHttp(res, message);
|
|
220
|
+
}
|
|
221
|
+
async _sseFallbackWithMessage(message) {
|
|
222
|
+
const endpoint = await this._attachSSE();
|
|
223
|
+
if (endpoint) {
|
|
224
|
+
this._mode = { value: HttpMode.SSE, endpoint };
|
|
225
|
+
await this._sendLegacySSE(endpoint, message);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
async _populateAuthMetadata(originalResponse) {
|
|
229
|
+
let resourceMetadataChallenge;
|
|
230
|
+
if (( originalResponse.headers.has('WWW-Authenticate'))) {
|
|
231
|
+
const authHeader = originalResponse.headers.get('WWW-Authenticate');
|
|
232
|
+
const { scheme, params } = parseWWWAuthenticateHeader(authHeader);
|
|
233
|
+
if (scheme === 'Bearer' && params['resource_metadata']) {
|
|
234
|
+
resourceMetadataChallenge = params['resource_metadata'];
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
let serverMetadataUrl;
|
|
238
|
+
let scopesSupported;
|
|
239
|
+
let resource;
|
|
240
|
+
if (resourceMetadataChallenge) {
|
|
241
|
+
const resourceMetadata = await this._getResourceMetadata(resourceMetadataChallenge);
|
|
242
|
+
serverMetadataUrl = resourceMetadata.authorization_servers?.[0];
|
|
243
|
+
scopesSupported = resourceMetadata.scopes_supported;
|
|
244
|
+
resource = resourceMetadata;
|
|
245
|
+
}
|
|
246
|
+
const baseUrl = ( new URL(originalResponse.url)).origin;
|
|
247
|
+
let addtionalHeaders = {};
|
|
248
|
+
if (!serverMetadataUrl) {
|
|
249
|
+
serverMetadataUrl = baseUrl;
|
|
250
|
+
addtionalHeaders = {
|
|
251
|
+
...Object.fromEntries(this._launch.headers)
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
try {
|
|
255
|
+
const serverMetadataResponse = await this._getAuthorizationServerMetadata(serverMetadataUrl, addtionalHeaders);
|
|
256
|
+
const serverMetadataWithDefaults = getMetadataWithDefaultValues(serverMetadataResponse);
|
|
257
|
+
this._authMetadata = {
|
|
258
|
+
authorizationServer: ( URI.parse(serverMetadataUrl)),
|
|
259
|
+
serverMetadata: serverMetadataWithDefaults,
|
|
260
|
+
resourceMetadata: resource
|
|
261
|
+
};
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
catch (e) {
|
|
265
|
+
this._log(LogLevel.Warning, `Error populating auth metadata: ${String(e)}`);
|
|
266
|
+
}
|
|
267
|
+
const defaultMetadata = getDefaultMetadataForUrl(( new URL(baseUrl)));
|
|
268
|
+
defaultMetadata.scopes_supported = scopesSupported ?? defaultMetadata.scopes_supported ?? [];
|
|
269
|
+
this._authMetadata = {
|
|
270
|
+
authorizationServer: ( URI.parse(serverMetadataUrl)),
|
|
271
|
+
serverMetadata: defaultMetadata,
|
|
272
|
+
resourceMetadata: resource
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
async _getResourceMetadata(resourceMetadata) {
|
|
276
|
+
const resourceMetadataUrl = ( new URL(resourceMetadata));
|
|
277
|
+
const mcpServerUrl = ( new URL(( this._launch.uri.toString(true))));
|
|
278
|
+
let additionalHeaders = {};
|
|
279
|
+
if (resourceMetadataUrl.origin === mcpServerUrl.origin) {
|
|
280
|
+
additionalHeaders = {
|
|
281
|
+
...Object.fromEntries(this._launch.headers)
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
const resourceMetadataResponse = await fetch(resourceMetadata, {
|
|
285
|
+
method: 'GET',
|
|
286
|
+
signal: this._abortCtrl.signal,
|
|
287
|
+
headers: {
|
|
288
|
+
...additionalHeaders,
|
|
289
|
+
'Accept': 'application/json',
|
|
290
|
+
'MCP-Protocol-Version': MCP.LATEST_PROTOCOL_VERSION
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
if (resourceMetadataResponse.status !== 200) {
|
|
294
|
+
throw ( new Error(
|
|
295
|
+
`Failed to fetch resource metadata: ${resourceMetadataResponse.status} ${await this._getErrText(resourceMetadataResponse)}`
|
|
296
|
+
));
|
|
297
|
+
}
|
|
298
|
+
const body = await resourceMetadataResponse.json();
|
|
299
|
+
if (isAuthorizationProtectedResourceMetadata(body)) {
|
|
300
|
+
return body;
|
|
301
|
+
}
|
|
302
|
+
else {
|
|
303
|
+
throw ( new Error(`Invalid resource metadata: ${JSON.stringify(body)}`));
|
|
304
|
+
}
|
|
209
305
|
}
|
|
210
|
-
async
|
|
306
|
+
async _getAuthorizationServerMetadata(authorizationServer, addtionalHeaders) {
|
|
307
|
+
const authorizationServerUrl = ( new URL(authorizationServer));
|
|
308
|
+
const extraPath = authorizationServerUrl.pathname === '/' ? '' : authorizationServerUrl.pathname;
|
|
309
|
+
const pathToFetch = ( ( new URL(AUTH_SERVER_METADATA_DISCOVERY_PATH, authorizationServer)).toString()) + extraPath;
|
|
310
|
+
let authServerMetadataResponse = await fetch(pathToFetch, {
|
|
311
|
+
method: 'GET',
|
|
312
|
+
signal: this._abortCtrl.signal,
|
|
313
|
+
headers: {
|
|
314
|
+
...addtionalHeaders,
|
|
315
|
+
'Accept': 'application/json',
|
|
316
|
+
'MCP-Protocol-Version': MCP.LATEST_PROTOCOL_VERSION,
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
if (authServerMetadataResponse.status !== 200) {
|
|
320
|
+
authServerMetadataResponse = await fetch(( URI.joinPath(( URI.parse(authorizationServer)), '.well-known', 'openid-configuration').toString(true)), {
|
|
321
|
+
method: 'GET',
|
|
322
|
+
signal: this._abortCtrl.signal,
|
|
323
|
+
headers: {
|
|
324
|
+
...addtionalHeaders,
|
|
325
|
+
'Accept': 'application/json',
|
|
326
|
+
'MCP-Protocol-Version': MCP.LATEST_PROTOCOL_VERSION
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
if (authServerMetadataResponse.status !== 200) {
|
|
330
|
+
throw ( new Error(
|
|
331
|
+
`Failed to fetch authorization server metadata: ${authServerMetadataResponse.status} ${await this._getErrText(authServerMetadataResponse)}`
|
|
332
|
+
));
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
const body = await authServerMetadataResponse.json();
|
|
336
|
+
if (isAuthorizationServerMetadata(body)) {
|
|
337
|
+
return body;
|
|
338
|
+
}
|
|
339
|
+
throw ( new Error(`Invalid authorization server metadata: ${JSON.stringify(body)}`));
|
|
340
|
+
}
|
|
341
|
+
async _handleSuccessfulStreamableHttp(res, message) {
|
|
211
342
|
if (res.status === 202) {
|
|
212
343
|
return;
|
|
213
344
|
}
|
|
@@ -217,6 +348,11 @@ class McpHTTPHandle extends Disposable {
|
|
|
217
348
|
if (event.type === 'message') {
|
|
218
349
|
this._proxy.$onDidReceiveMessage(this._id, event.data);
|
|
219
350
|
}
|
|
351
|
+
else if (event.type === 'endpoint') {
|
|
352
|
+
this._log(LogLevel.Warning, `Received SSE endpoint from a POST to ${this._launch.uri}, will fall back to legacy SSE`);
|
|
353
|
+
this._sseFallbackWithMessage(message);
|
|
354
|
+
throw ( new CancellationError());
|
|
355
|
+
}
|
|
220
356
|
}));
|
|
221
357
|
try {
|
|
222
358
|
await this._doSSE(parser, res);
|
|
@@ -250,17 +386,18 @@ class McpHTTPHandle extends Disposable {
|
|
|
250
386
|
...Object.fromEntries(this._launch.headers),
|
|
251
387
|
'Accept': 'text/event-stream',
|
|
252
388
|
};
|
|
389
|
+
await this._addAuthHeader(headers);
|
|
253
390
|
if (this._mode.value === HttpMode.Http && this._mode.sessionId !== undefined) {
|
|
254
391
|
headers['Mcp-Session-Id'] = this._mode.sessionId;
|
|
255
392
|
}
|
|
256
393
|
if (lastEventId) {
|
|
257
394
|
headers['Last-Event-ID'] = lastEventId;
|
|
258
395
|
}
|
|
259
|
-
res = await
|
|
396
|
+
res = await this._fetchWithAuthRetry(( this._launch.uri.toString(true)), {
|
|
260
397
|
method: 'GET',
|
|
261
398
|
signal: this._abortCtrl.signal,
|
|
262
399
|
headers,
|
|
263
|
-
});
|
|
400
|
+
}, headers);
|
|
264
401
|
}
|
|
265
402
|
catch (e) {
|
|
266
403
|
this._log(LogLevel.Info, `Error connecting to ${this._launch.uri} for async notifications, will retry`);
|
|
@@ -289,16 +426,18 @@ class McpHTTPHandle extends Disposable {
|
|
|
289
426
|
}
|
|
290
427
|
async _attachSSE() {
|
|
291
428
|
const postEndpoint = ( new DeferredPromise());
|
|
429
|
+
const headers = {
|
|
430
|
+
...Object.fromEntries(this._launch.headers),
|
|
431
|
+
'Accept': 'text/event-stream',
|
|
432
|
+
};
|
|
433
|
+
await this._addAuthHeader(headers);
|
|
292
434
|
let res;
|
|
293
435
|
try {
|
|
294
|
-
res = await
|
|
436
|
+
res = await this._fetchWithAuthRetry(( this._launch.uri.toString(true)), {
|
|
295
437
|
method: 'GET',
|
|
296
438
|
signal: this._abortCtrl.signal,
|
|
297
|
-
headers
|
|
298
|
-
|
|
299
|
-
'Accept': 'text/event-stream',
|
|
300
|
-
},
|
|
301
|
-
});
|
|
439
|
+
headers,
|
|
440
|
+
}, headers);
|
|
302
441
|
if (res.status >= 300) {
|
|
303
442
|
this._proxy.$onDidChangeState(this._id, { state: McpConnectionState.Kind.Error, message: `${res.status} status connecting to ${this._launch.uri} as SSE: ${await this._getErrText(res)}` });
|
|
304
443
|
return;
|
|
@@ -324,14 +463,16 @@ class McpHTTPHandle extends Disposable {
|
|
|
324
463
|
}
|
|
325
464
|
async _sendLegacySSE(url, message) {
|
|
326
465
|
const asBytes = ( new TextEncoder()).encode(message);
|
|
466
|
+
const headers = {
|
|
467
|
+
...Object.fromEntries(this._launch.headers),
|
|
468
|
+
'Content-Type': 'application/json',
|
|
469
|
+
'Content-Length': String(asBytes.length),
|
|
470
|
+
};
|
|
471
|
+
await this._addAuthHeader(headers);
|
|
327
472
|
const res = await fetch(url, {
|
|
328
473
|
method: 'POST',
|
|
329
474
|
signal: this._abortCtrl.signal,
|
|
330
|
-
headers
|
|
331
|
-
...Object.fromEntries(this._launch.headers),
|
|
332
|
-
'Content-Type': 'application/json',
|
|
333
|
-
'Content-Length': String(asBytes.length),
|
|
334
|
-
},
|
|
475
|
+
headers,
|
|
335
476
|
body: asBytes,
|
|
336
477
|
});
|
|
337
478
|
if (res.status >= 300) {
|
|
@@ -362,6 +503,20 @@ class McpHTTPHandle extends Disposable {
|
|
|
362
503
|
}
|
|
363
504
|
} while (!chunk.done);
|
|
364
505
|
}
|
|
506
|
+
async _addAuthHeader(headers) {
|
|
507
|
+
if (this._authMetadata) {
|
|
508
|
+
try {
|
|
509
|
+
const token = await this._proxy.$getTokenFromServerMetadata(this._id, this._authMetadata.authorizationServer, this._authMetadata.serverMetadata, this._authMetadata.resourceMetadata);
|
|
510
|
+
if (token) {
|
|
511
|
+
headers['Authorization'] = `Bearer ${token}`;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
catch (e) {
|
|
515
|
+
this._log(LogLevel.Warning, `Error getting token from server metadata: ${String(e)}`);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
return headers;
|
|
519
|
+
}
|
|
365
520
|
_log(level, message) {
|
|
366
521
|
if (!this._store.isDisposed) {
|
|
367
522
|
this._proxy.$onDidPublishLog(this._id, level, message);
|
|
@@ -375,6 +530,21 @@ class McpHTTPHandle extends Disposable {
|
|
|
375
530
|
return res.statusText;
|
|
376
531
|
}
|
|
377
532
|
}
|
|
533
|
+
async _fetchWithAuthRetry(url, init, headers) {
|
|
534
|
+
const doFetch = () => fetch(url, init);
|
|
535
|
+
let res = await doFetch();
|
|
536
|
+
if (res.status === 401) {
|
|
537
|
+
if (!this._authMetadata) {
|
|
538
|
+
await this._populateAuthMetadata(res);
|
|
539
|
+
await this._addAuthHeader(headers);
|
|
540
|
+
if (headers['Authorization']) {
|
|
541
|
+
init.headers = headers;
|
|
542
|
+
res = await doFetch();
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
return res;
|
|
547
|
+
}
|
|
378
548
|
}
|
|
379
549
|
function isJSON(str) {
|
|
380
550
|
try {
|
|
@@ -17,7 +17,7 @@ import { IExtHostConsumerFileSystem } from "./extHostFileSystemConsumer.js";
|
|
|
17
17
|
import { ITextQuery } from "../../services/search/common/search.js";
|
|
18
18
|
import { IExtHostSearch } from "./extHostSearch.js";
|
|
19
19
|
import { IRawClosedNotebookFileMatch } from "../../contrib/search/common/searchNotebookHelpers.js";
|
|
20
|
-
import { NotebookPriorityInfo } from "@codingame/monaco-vscode-
|
|
20
|
+
import { NotebookPriorityInfo } from "@codingame/monaco-vscode-47472025-cc45-5680-86cd-09ceaba921a1-common/vscode/vs/workbench/contrib/search/common/search";
|
|
21
21
|
import { ILogService } from "../../../platform/log/common/log.service.js";
|
|
22
22
|
export declare class ExtHostNotebookController implements ExtHostNotebookShape {
|
|
23
23
|
private _textDocumentsAndEditors;
|
|
@@ -260,7 +260,7 @@ class ExtHostNotebookController {
|
|
|
260
260
|
throw ( new Error('Document version mismatch'));
|
|
261
261
|
}
|
|
262
262
|
if (!this._extHostFileSystem.value.isWritableFileSystem(uri.scheme)) {
|
|
263
|
-
throw new FileOperationError(( localize(
|
|
263
|
+
throw new FileOperationError(( localize(2588, "Unable to modify read-only file '{0}'", this._resourceForError(uri))), FileOperationResult.FILE_PERMISSION_DENIED);
|
|
264
264
|
}
|
|
265
265
|
const data = {
|
|
266
266
|
metadata: filter(document.apiNotebook.metadata, key => !(serializer.options?.transientDocumentMetadata ?? {})[key]),
|
|
@@ -432,7 +432,7 @@ class ExtHostNotebookController {
|
|
|
432
432
|
if (typeof options?.mtime === 'number' && typeof options.etag === 'string' && options.etag !== ETAG_DISABLED &&
|
|
433
433
|
typeof stat.mtime === 'number' && typeof stat.size === 'number' &&
|
|
434
434
|
options.mtime < stat.mtime && options.etag !== etag({ mtime: options.mtime , size: stat.size })) {
|
|
435
|
-
throw new FileOperationError(( localize(
|
|
435
|
+
throw new FileOperationError(( localize(2589, "File Modified Since")), FileOperationResult.FILE_MODIFIED_SINCE, options);
|
|
436
436
|
}
|
|
437
437
|
return;
|
|
438
438
|
}
|
|
@@ -35,8 +35,8 @@ class ExtHostNotebookEditor {
|
|
|
35
35
|
if (!Array.isArray(value) || !value.every(NotebookRange$1.isNotebookRange)) {
|
|
36
36
|
throw illegalArgument('selections');
|
|
37
37
|
}
|
|
38
|
-
that._selections = value;
|
|
39
|
-
that._trySetSelections(
|
|
38
|
+
that._selections = value.length === 0 ? [( new NotebookRange$1(0, 0))] : value;
|
|
39
|
+
that._trySetSelections(that._selections);
|
|
40
40
|
},
|
|
41
41
|
get visibleRanges() {
|
|
42
42
|
return that._visibleRanges;
|
|
@@ -71,7 +71,7 @@ class ExtHostNotebookEditor {
|
|
|
71
71
|
this._visibleRanges = value;
|
|
72
72
|
}
|
|
73
73
|
_acceptSelections(selections) {
|
|
74
|
-
this._selections = selections;
|
|
74
|
+
this._selections = selections.length === 0 ? [( new NotebookRange$1(0, 0))] : selections;
|
|
75
75
|
}
|
|
76
76
|
_trySetSelections(value) {
|
|
77
77
|
this._proxy.$trySetSelections(this.id, ( value.map(NotebookRange.from)));
|
|
@@ -6,7 +6,7 @@ import { ExtHostNotebookKernelsShape, IMainContext } from "./extHost.protocol.js
|
|
|
6
6
|
import { ExtHostCommands } from "./extHostCommands.js";
|
|
7
7
|
import { IExtHostInitDataService } from "./extHostInitDataService.js";
|
|
8
8
|
import { ExtHostNotebookController } from "./extHostNotebook.js";
|
|
9
|
-
import { INotebookKernelSourceAction
|
|
9
|
+
import { INotebookKernelSourceAction } from "../../contrib/notebook/common/notebookCommon.js";
|
|
10
10
|
import * as vscode from "vscode";
|
|
11
11
|
export declare class ExtHostNotebookKernels implements ExtHostNotebookKernelsShape {
|
|
12
12
|
private readonly _initData;
|
|
@@ -22,8 +22,6 @@ export declare class ExtHostNotebookKernels implements ExtHostNotebookKernelsSha
|
|
|
22
22
|
private _kernelSourceActionProviderHandlePool;
|
|
23
23
|
private readonly _kernelData;
|
|
24
24
|
private _handlePool;
|
|
25
|
-
private readonly _onDidChangeCellExecutionState;
|
|
26
|
-
readonly onDidChangeNotebookCellExecutionState: import("../../../base/common/event.js").Event<vscode.NotebookCellExecutionStateChangeEvent>;
|
|
27
25
|
constructor(mainContext: IMainContext, _initData: IExtHostInitDataService, _extHostNotebook: ExtHostNotebookController, _commands: ExtHostCommands, _logService: ILogService);
|
|
28
26
|
createNotebookController(extension: IExtensionDescription, id: string, viewType: string, label: string, handler?: (cells: vscode.NotebookCell[], notebook: vscode.NotebookDocument, controller: vscode.NotebookController) => void | Thenable<void>, preloads?: vscode.NotebookRendererScript[]): vscode.NotebookController;
|
|
29
27
|
getIdByController(controller: vscode.NotebookController): string | null;
|
|
@@ -39,7 +37,6 @@ export declare class ExtHostNotebookKernels implements ExtHostNotebookKernelsSha
|
|
|
39
37
|
private variableStore;
|
|
40
38
|
$provideVariables(handle: number, requestId: string, notebookUri: UriComponents, parentId: number | undefined, kind: "named" | "indexed", start: number, token: CancellationToken): Promise<void>;
|
|
41
39
|
$acceptKernelMessageFromRenderer(handle: number, editorId: string, message: any): void;
|
|
42
|
-
$cellExecutionChanged(uri: UriComponents, cellHandle: number, state: NotebookCellExecutionState | undefined): void;
|
|
43
40
|
_createNotebookCellExecution(cell: vscode.NotebookCell, controllerId: string): vscode.NotebookCellExecution;
|
|
44
41
|
_createNotebookExecution(nb: vscode.NotebookDocument, controllerId: string): vscode.NotebookExecution;
|
|
45
42
|
}
|
|
@@ -11,8 +11,8 @@ import { ExtensionIdentifier } from '../../../platform/extensions/common/extensi
|
|
|
11
11
|
import { ILogService } from '../../../platform/log/common/log.service.js';
|
|
12
12
|
import { MainContext } from './extHost.protocol.js';
|
|
13
13
|
import { ApiCommand, ApiCommandArgument, ApiCommandResult } from './extHostCommands.js';
|
|
14
|
-
import { NotebookRendererScript, NotebookKernelSourceAction,
|
|
15
|
-
import { NotebookControllerAffinity2, NotebookVariablesRequestKind,
|
|
14
|
+
import { NotebookRendererScript, NotebookKernelSourceAction, NotebookCellOutput as NotebookCellOutput$1, NotebookCellOutputItem } from './extHostTypeConverters.js';
|
|
15
|
+
import { NotebookControllerAffinity2, NotebookVariablesRequestKind, NotebookCellOutput } from './extHostTypes.js';
|
|
16
16
|
import { asWebviewUri } from '../../contrib/webview/common/webview.js';
|
|
17
17
|
import { CellExecutionUpdateType } from '../../contrib/notebook/common/notebookExecutionService.js';
|
|
18
18
|
import { checkProposedApiEnabled } from '../../services/extensions/common/extensions.js';
|
|
@@ -33,8 +33,6 @@ let ExtHostNotebookKernels = class ExtHostNotebookKernels {
|
|
|
33
33
|
this._kernelSourceActionProviderHandlePool = 0;
|
|
34
34
|
this._kernelData = ( new Map());
|
|
35
35
|
this._handlePool = 0;
|
|
36
|
-
this._onDidChangeCellExecutionState = ( new Emitter());
|
|
37
|
-
this.onDidChangeNotebookCellExecutionState = this._onDidChangeCellExecutionState.event;
|
|
38
36
|
this.id = 0;
|
|
39
37
|
this.variableStore = {};
|
|
40
38
|
this._proxy = ( mainContext.getProxy(MainContext.MainThreadNotebookKernels));
|
|
@@ -424,19 +422,6 @@ let ExtHostNotebookKernels = class ExtHostNotebookKernels {
|
|
|
424
422
|
const editor = this._extHostNotebook.getEditorById(editorId);
|
|
425
423
|
obj.onDidReceiveMessage.fire(( Object.freeze({ editor: editor.apiEditor, message })));
|
|
426
424
|
}
|
|
427
|
-
$cellExecutionChanged(uri, cellHandle, state) {
|
|
428
|
-
const document = this._extHostNotebook.getNotebookDocument(URI.revive(uri));
|
|
429
|
-
const cell = document.getCell(cellHandle);
|
|
430
|
-
if (cell) {
|
|
431
|
-
const newState = state ? NotebookCellExecutionState.to(state) : NotebookCellExecutionState$1.Idle;
|
|
432
|
-
if (newState !== undefined) {
|
|
433
|
-
this._onDidChangeCellExecutionState.fire({
|
|
434
|
-
cell: cell.apiCell,
|
|
435
|
-
state: newState
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
425
|
_createNotebookCellExecution(cell, controllerId) {
|
|
441
426
|
if (cell.index < 0) {
|
|
442
427
|
throw ( new Error('CANNOT execute cell that has been REMOVED from notebook'));
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { ProgressOptions } from "vscode";
|
|
2
|
-
import {
|
|
2
|
+
import { ExtHostProgressShape } from "./extHost.protocol.js";
|
|
3
3
|
import { Progress, IProgressStep } from "../../../platform/progress/common/progress.js";
|
|
4
4
|
import { CancellationToken } from "../../../base/common/cancellation.js";
|
|
5
5
|
import { IExtensionDescription } from "../../../platform/extensions/common/extensions.js";
|
|
6
|
+
import { INotificationSource } from "../../../platform/notification/common/notification.js";
|
|
7
|
+
import { IExtHostRpcService } from "./extHostRpcService.js";
|
|
8
|
+
export interface IExtHostProgress extends ExtHostProgress {
|
|
9
|
+
}
|
|
10
|
+
export declare const IExtHostProgress: import("../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IExtHostProgress>;
|
|
6
11
|
export declare class ExtHostProgress implements ExtHostProgressShape {
|
|
12
|
+
readonly _serviceBrand: undefined;
|
|
7
13
|
private _proxy;
|
|
8
14
|
private _handles;
|
|
9
15
|
private _mapHandleToCancellationSource;
|
|
10
|
-
constructor(
|
|
16
|
+
constructor(extHostRpc: IExtHostRpcService);
|
|
11
17
|
withProgress<R>(extension: IExtensionDescription, options: ProgressOptions, task: (progress: Progress<IProgressStep>, token: CancellationToken) => Thenable<R>): Promise<R>;
|
|
18
|
+
withProgressFromSource<R>(source: string | INotificationSource, options: ProgressOptions, task: (progress: Progress<IProgressStep>, token: CancellationToken) => Thenable<R>): Promise<R>;
|
|
12
19
|
private _withProgress;
|
|
13
20
|
$acceptProgressCanceled(handle: number): void;
|
|
14
21
|
}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import { MainContext } from './extHost.protocol.js';
|
|
3
4
|
import { ProgressLocation } from './extHostTypeConverters.js';
|
|
4
5
|
import { Progress } from '../../../platform/progress/common/progress.js';
|
|
5
6
|
import { CancellationTokenSource, CancellationToken } from '../../../base/common/cancellation.js';
|
|
6
7
|
import { throttle } from '../../../base/common/decorators.js';
|
|
7
8
|
import { onUnexpectedExternalError } from '../../../base/common/errors.js';
|
|
9
|
+
import { createDecorator } from '../../../platform/instantiation/common/instantiation.js';
|
|
10
|
+
import { IExtHostRpcService } from './extHostRpcService.js';
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
const IExtHostProgress = ( createDecorator('IExtHostProgress'));
|
|
13
|
+
let ExtHostProgress = class ExtHostProgress {
|
|
14
|
+
constructor(extHostRpc) {
|
|
11
15
|
this._handles = 0;
|
|
12
16
|
this._mapHandleToCancellationSource = ( new Map());
|
|
13
|
-
this._proxy =
|
|
17
|
+
this._proxy = ( extHostRpc.getProxy(MainContext.MainThreadProgress));
|
|
14
18
|
}
|
|
15
19
|
async withProgress(extension, options, task) {
|
|
16
20
|
const handle = this._handles++;
|
|
@@ -19,6 +23,12 @@ class ExtHostProgress {
|
|
|
19
23
|
this._proxy.$startProgress(handle, { location: ProgressLocation.from(location), title, source, cancellable }, !extension.isUnderDevelopment ? extension.identifier.value : undefined).catch(onUnexpectedExternalError);
|
|
20
24
|
return this._withProgress(handle, task, !!cancellable);
|
|
21
25
|
}
|
|
26
|
+
async withProgressFromSource(source, options, task) {
|
|
27
|
+
const handle = this._handles++;
|
|
28
|
+
const { title, location, cancellable } = options;
|
|
29
|
+
this._proxy.$startProgress(handle, { location: ProgressLocation.from(location), title, source, cancellable }, undefined).catch(onUnexpectedExternalError);
|
|
30
|
+
return this._withProgress(handle, task, !!cancellable);
|
|
31
|
+
}
|
|
22
32
|
_withProgress(handle, task, cancellable) {
|
|
23
33
|
let source;
|
|
24
34
|
if (cancellable) {
|
|
@@ -48,7 +58,10 @@ class ExtHostProgress {
|
|
|
48
58
|
this._mapHandleToCancellationSource.delete(handle);
|
|
49
59
|
}
|
|
50
60
|
}
|
|
51
|
-
}
|
|
61
|
+
};
|
|
62
|
+
ExtHostProgress = ( __decorate([
|
|
63
|
+
( __param(0, IExtHostRpcService))
|
|
64
|
+
], ExtHostProgress));
|
|
52
65
|
function mergeProgress(result, currentValue) {
|
|
53
66
|
result.message = currentValue.message;
|
|
54
67
|
if (typeof currentValue.increment === 'number') {
|
|
@@ -75,4 +88,4 @@ ProgressCallback.__decorator = ( __decorate([
|
|
|
75
88
|
throttle(100, (result, currentValue) => mergeProgress(result, currentValue), () => Object.create(null))
|
|
76
89
|
], ProgressCallback.prototype, "throttledReport", null));
|
|
77
90
|
|
|
78
|
-
export { ExtHostProgress };
|
|
91
|
+
export { ExtHostProgress, IExtHostProgress };
|
|
@@ -63,6 +63,7 @@ export declare class ExtHostSCM implements ExtHostSCMShape {
|
|
|
63
63
|
number
|
|
64
64
|
] | undefined>;
|
|
65
65
|
$setSelectedSourceControl(selectedSourceControlHandle: number | undefined): Promise<void>;
|
|
66
|
+
$resolveHistoryItemChatContext(sourceControlHandle: number, historyItemId: string, token: CancellationToken): Promise<string | undefined>;
|
|
66
67
|
$resolveHistoryItemRefsCommonAncestor(sourceControlHandle: number, historyItemRefs: string[], token: CancellationToken): Promise<string | undefined>;
|
|
67
68
|
$provideHistoryItemRefs(sourceControlHandle: number, historyItemRefs: string[] | undefined, token: CancellationToken): Promise<SCMHistoryItemRefDto[] | undefined>;
|
|
68
69
|
$provideHistoryItems(sourceControlHandle: number, options: any, token: CancellationToken): Promise<SCMHistoryItemDto[] | undefined>;
|
|
@@ -831,6 +831,17 @@ let ExtHostSCM = class ExtHostSCM {
|
|
|
831
831
|
this._selectedSourceControlHandle = selectedSourceControlHandle;
|
|
832
832
|
return Promise.resolve(undefined);
|
|
833
833
|
}
|
|
834
|
+
async $resolveHistoryItemChatContext(sourceControlHandle, historyItemId, token) {
|
|
835
|
+
try {
|
|
836
|
+
const historyProvider = this._sourceControls.get(sourceControlHandle)?.historyProvider;
|
|
837
|
+
const chatContext = await historyProvider?.resolveHistoryItemChatContext(historyItemId, token);
|
|
838
|
+
return chatContext ?? undefined;
|
|
839
|
+
}
|
|
840
|
+
catch (err) {
|
|
841
|
+
this.logService.error('ExtHostSCM#$resolveHistoryItemChatContext', err);
|
|
842
|
+
return undefined;
|
|
843
|
+
}
|
|
844
|
+
}
|
|
834
845
|
async $resolveHistoryItemRefsCommonAncestor(sourceControlHandle, historyItemRefs, token) {
|
|
835
846
|
try {
|
|
836
847
|
const historyProvider = this._sourceControls.get(sourceControlHandle)?.historyProvider;
|
|
@@ -188,7 +188,7 @@ class ExtHostStatusBarEntry {
|
|
|
188
188
|
}
|
|
189
189
|
else {
|
|
190
190
|
name = ( localize(
|
|
191
|
-
|
|
191
|
+
2590,
|
|
192
192
|
"{0} (Extension)",
|
|
193
193
|
this._extension.displayName || this._extension.name
|
|
194
194
|
));
|
|
@@ -221,7 +221,7 @@ class StatusBarMessage {
|
|
|
221
221
|
constructor(statusBar) {
|
|
222
222
|
this._messages = [];
|
|
223
223
|
this._item = statusBar.createStatusBarEntry(undefined, 'status.extensionMessage', StatusBarAlignment.Left, Number.MIN_VALUE);
|
|
224
|
-
this._item.name = ( localize(
|
|
224
|
+
this._item.name = ( localize(2591, "Extension Status"));
|
|
225
225
|
}
|
|
226
226
|
dispose() {
|
|
227
227
|
this._messages.length = 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtHostStorageShape } from "./extHost.protocol.js";
|
|
2
2
|
import { IExtHostRpcService } from "./extHostRpcService.js";
|
|
3
|
-
import { IExtensionIdWithVersion } from "@codingame/monaco-vscode-
|
|
3
|
+
import { IExtensionIdWithVersion } from "@codingame/monaco-vscode-cecd476b-6f89-54b7-b016-fe6fdaa6675e-common/vscode/vs/platform/extensionManagement/common/extensionStorage";
|
|
4
4
|
import { ILogService } from "../../../platform/log/common/log.service.js";
|
|
5
5
|
export interface IStorageChangeEvent {
|
|
6
6
|
shared: boolean;
|
|
@@ -28,7 +28,7 @@ let ExtHostTelemetry = class ExtHostTelemetry extends Disposable {
|
|
|
28
28
|
const id = initData.remote.isRemote ? 'remoteExtHostTelemetry' : isWorker ? 'workerExtHostTelemetry' : 'extHostTelemetry';
|
|
29
29
|
this._outputLogger = this._register(loggerService.createLogger(id, {
|
|
30
30
|
name: ( localize(
|
|
31
|
-
|
|
31
|
+
2592,
|
|
32
32
|
"Extension Telemetry{0}",
|
|
33
33
|
this._inLoggingOnlyMode ? ' (Not Sent)' : ''
|
|
34
34
|
)),
|
|
@@ -482,7 +482,7 @@ let BaseExtHostTerminalService = class BaseExtHostTerminalService extends Dispos
|
|
|
482
482
|
async $startExtensionTerminal(id, initialDimensions) {
|
|
483
483
|
const terminal = this.getTerminalById(id);
|
|
484
484
|
if (!terminal) {
|
|
485
|
-
return { message: ( localize(
|
|
485
|
+
return { message: ( localize(2593, "Could not find the terminal with id {0} on the extension host", id)) };
|
|
486
486
|
}
|
|
487
487
|
if (!terminal.isOpen) {
|
|
488
488
|
await ( new Promise(r => {
|