@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
|
@@ -26,13 +26,13 @@ import '../../../../../../../platform/theme/common/colors/miscColors.js';
|
|
|
26
26
|
import '../../../../../../../platform/theme/common/colors/quickpickColors.js';
|
|
27
27
|
import '../../../../../../../platform/theme/common/colors/searchColors.js';
|
|
28
28
|
import { EditorOption } from '../../../../../../common/config/editorOptions.js';
|
|
29
|
-
import { inlineSuggestCommitId,
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { derived
|
|
29
|
+
import { inlineSuggestCommitId, hideInlineCompletionId, toggleShowCollapsedId } from '../../../controller/commandIds.js';
|
|
30
|
+
import { observableValue } from '../../../../../../../base/common/observableInternal/observables/observableValue.js';
|
|
31
|
+
import { constObservable } from '../../../../../../../base/common/observableInternal/observables/constObservable.js';
|
|
32
|
+
import { observableFromEvent } from '../../../../../../../base/common/observableInternal/observables/observableFromEvent.js';
|
|
33
|
+
import { derived } from '../../../../../../../base/common/observableInternal/observables/derived.js';
|
|
34
34
|
import { n } from '../../../../../../../base/browser/domImpl/n.js';
|
|
35
|
-
import { autorun } from '../../../../../../../base/common/observableInternal/autorun.js';
|
|
35
|
+
import { autorun } from '../../../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
36
36
|
|
|
37
37
|
let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
|
|
38
38
|
constructor(_model, _close, _editorObs, _contextKeyService, _keybindingService, _commandService) {
|
|
@@ -65,17 +65,13 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
|
|
|
65
65
|
const title = header(this._model.displayName);
|
|
66
66
|
const gotoAndAccept = option(createOptionArgs({
|
|
67
67
|
id: 'gotoAndAccept',
|
|
68
|
-
title: `${( localize(
|
|
69
|
-
icon:
|
|
70
|
-
|
|
71
|
-
)),
|
|
72
|
-
commandId: ( this._model.tabAction.map(
|
|
73
|
-
action => action === InlineEditTabAction.Accept ? inlineSuggestCommitId : jumpToNextInlineEditId
|
|
74
|
-
))
|
|
68
|
+
title: `${( localize(1274, "Go To"))} / ${( localize(1275, "Accept"))}`,
|
|
69
|
+
icon: Codicon.check,
|
|
70
|
+
commandId: inlineSuggestCommitId
|
|
75
71
|
}));
|
|
76
72
|
const reject = option(createOptionArgs({
|
|
77
73
|
id: 'reject',
|
|
78
|
-
title: ( localize(
|
|
74
|
+
title: ( localize(1276, "Reject")),
|
|
79
75
|
icon: Codicon.close,
|
|
80
76
|
commandId: hideInlineCompletionId
|
|
81
77
|
}));
|
|
@@ -85,19 +81,19 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
|
|
|
85
81
|
const toggleCollapsedMode = ( this._inlineEditsShowCollapsed.map(showCollapsed => showCollapsed ?
|
|
86
82
|
option(createOptionArgs({
|
|
87
83
|
id: 'showExpanded',
|
|
88
|
-
title: ( localize(
|
|
84
|
+
title: ( localize(1277, "Show Expanded")),
|
|
89
85
|
icon: Codicon.expandAll,
|
|
90
86
|
commandId: toggleShowCollapsedId
|
|
91
87
|
}))
|
|
92
88
|
: option(createOptionArgs({
|
|
93
89
|
id: 'showCollapsed',
|
|
94
|
-
title: ( localize(
|
|
90
|
+
title: ( localize(1278, "Show Collapsed")),
|
|
95
91
|
icon: Codicon.collapseAll,
|
|
96
92
|
commandId: toggleShowCollapsedId
|
|
97
93
|
}))));
|
|
98
94
|
const settings = option(createOptionArgs({
|
|
99
95
|
id: 'settings',
|
|
100
|
-
title: ( localize(
|
|
96
|
+
title: ( localize(1279, "Settings")),
|
|
101
97
|
icon: Codicon.gear,
|
|
102
98
|
commandId: 'workbench.action.openSettings',
|
|
103
99
|
commandArgs: ['@tag:nextEditSuggestions']
|
|
@@ -157,7 +153,7 @@ function header(title) {
|
|
|
157
153
|
}, [title]);
|
|
158
154
|
}
|
|
159
155
|
function option(props) {
|
|
160
|
-
return
|
|
156
|
+
return derived((_reader) => n.div({
|
|
161
157
|
class: ['monaco-menu-option', props.isActive?.map(v => v && 'active')],
|
|
162
158
|
onmouseenter: () => props.onHoverChange?.(true),
|
|
163
159
|
onmouseleave: () => props.onHoverChange?.(false),
|
|
@@ -182,7 +178,7 @@ function option(props) {
|
|
|
182
178
|
n.div({
|
|
183
179
|
style: { marginLeft: 'auto' },
|
|
184
180
|
ref: elem => {
|
|
185
|
-
const keybindingLabel = store.add(( new KeybindingLabel(elem, OS, {
|
|
181
|
+
const keybindingLabel = _reader.store.add(( new KeybindingLabel(elem, OS, {
|
|
186
182
|
disableTitle: true,
|
|
187
183
|
...defaultKeybindingLabelStyles,
|
|
188
184
|
keybindingLabelShadow: undefined,
|
|
@@ -190,7 +186,7 @@ function option(props) {
|
|
|
190
186
|
keybindingLabelBorder: 'transparent',
|
|
191
187
|
keybindingLabelBottomBorder: undefined,
|
|
192
188
|
})));
|
|
193
|
-
store.add(autorun(reader => {
|
|
189
|
+
_reader.store.add(autorun(reader => {
|
|
194
190
|
keybindingLabel.set(props.keybinding.read(reader));
|
|
195
191
|
}));
|
|
196
192
|
}
|
|
@@ -198,7 +194,7 @@ function option(props) {
|
|
|
198
194
|
]));
|
|
199
195
|
}
|
|
200
196
|
function actionBar(actions, options) {
|
|
201
|
-
return
|
|
197
|
+
return derived((_reader) => n.div({
|
|
202
198
|
class: ['action-widget-action-bar'],
|
|
203
199
|
style: {
|
|
204
200
|
padding: '0 10px',
|
|
@@ -206,7 +202,7 @@ function actionBar(actions, options) {
|
|
|
206
202
|
}, [
|
|
207
203
|
n.div({
|
|
208
204
|
ref: elem => {
|
|
209
|
-
const actionBar = store.add(( new ActionBar(elem, options)));
|
|
205
|
+
const actionBar = _reader.store.add(( new ActionBar(elem, options)));
|
|
210
206
|
actionBar.push(actions, { icon: false, label: true });
|
|
211
207
|
}
|
|
212
208
|
})
|
|
@@ -5,7 +5,7 @@ import { IInstantiationService } from "../../../../../../../platform/instantiati
|
|
|
5
5
|
import { IThemeService } from "../../../../../../../platform/theme/common/themeService.service.js";
|
|
6
6
|
import { ObservableCodeEditor } from "../../../../../../browser/observableCodeEditor.js";
|
|
7
7
|
import { HoverService } from "../../../../../../browser/services/hoverService/hoverService.js";
|
|
8
|
-
import { LineRange } from "../../../../../../common/core/lineRange.js";
|
|
8
|
+
import { LineRange } from "../../../../../../common/core/ranges/lineRange.js";
|
|
9
9
|
import { IInlineEditModel } from "../inlineEditsViewInterface.js";
|
|
10
10
|
export declare class InlineEditsGutterIndicator extends Disposable {
|
|
11
11
|
private readonly _editorObs;
|
|
@@ -11,20 +11,23 @@ import { IHoverService } from '../../../../../../../platform/hover/browser/hover
|
|
|
11
11
|
import { IInstantiationService } from '../../../../../../../platform/instantiation/common/instantiation.js';
|
|
12
12
|
import { asCssVariable } from '../../../../../../../platform/theme/common/colorUtils.js';
|
|
13
13
|
import { IThemeService } from '../../../../../../../platform/theme/common/themeService.service.js';
|
|
14
|
-
import { Point } from '../../../../../../
|
|
15
|
-
import { Rect } from '../../../../../../
|
|
14
|
+
import { Point } from '../../../../../../common/core/2d/point.js';
|
|
15
|
+
import { Rect } from '../../../../../../common/core/2d/rect.js';
|
|
16
16
|
import { EditorOption, RenderLineNumbersType } from '../../../../../../common/config/editorOptions.js';
|
|
17
|
-
import { OffsetRange } from '../../../../../../common/core/offsetRange.js';
|
|
17
|
+
import { OffsetRange } from '../../../../../../common/core/ranges/offsetRange.js';
|
|
18
18
|
import { StickyScrollController } from '../../../../../stickyScroll/browser/stickyScrollController.js';
|
|
19
19
|
import { InlineEditTabAction } from '../inlineEditsViewInterface.js';
|
|
20
|
-
import {
|
|
20
|
+
import { getEditorBlendedColor, inlineEditIndicatorsuccessfulBorder, inlineEditIndicatorsuccessfulForeground, inlineEditIndicatorsuccessfulBackground, inlineEditIndicatorPrimaryBorder, inlineEditIndicatorPrimaryForeground, inlineEditIndicatorPrimaryBackground, inlineEditIndicatorSecondaryBorder, inlineEditIndicatorSecondaryForeground, inlineEditIndicatorSecondaryBackground, inlineEditIndicatorBackground } from '../theme.js';
|
|
21
21
|
import { mapOutFalsy, rectToProps } from '../utils/utils.js';
|
|
22
22
|
import { GutterIndicatorMenuContent } from './gutterIndicatorMenu.js';
|
|
23
|
-
import {
|
|
24
|
-
import { derived } from '../../../../../../../base/common/observableInternal/derived.js';
|
|
23
|
+
import { debouncedObservable } from '../../../../../../../base/common/observableInternal/utils/utils.js';
|
|
24
|
+
import { derived } from '../../../../../../../base/common/observableInternal/observables/derived.js';
|
|
25
|
+
import { observableValue } from '../../../../../../../base/common/observableInternal/observables/observableValue.js';
|
|
26
|
+
import { observableFromEvent } from '../../../../../../../base/common/observableInternal/observables/observableFromEvent.js';
|
|
27
|
+
import { constObservable } from '../../../../../../../base/common/observableInternal/observables/constObservable.js';
|
|
25
28
|
import { n } from '../../../../../../../base/browser/domImpl/n.js';
|
|
26
|
-
import {
|
|
27
|
-
import { autorun } from '../../../../../../../base/common/observableInternal/autorun.js';
|
|
29
|
+
import { runOnChange } from '../../../../../../../base/common/observableInternal/utils/runOnChange.js';
|
|
30
|
+
import { autorun } from '../../../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
28
31
|
|
|
29
32
|
let InlineEditsGutterIndicator = class InlineEditsGutterIndicator extends Disposable {
|
|
30
33
|
get model() {
|
|
@@ -45,6 +48,38 @@ let InlineEditsGutterIndicator = class InlineEditsGutterIndicator extends Dispos
|
|
|
45
48
|
this._hoverService = _hoverService;
|
|
46
49
|
this._instantiationService = _instantiationService;
|
|
47
50
|
this._accessibilityService = _accessibilityService;
|
|
51
|
+
this._tabAction = derived(this, reader => {
|
|
52
|
+
const model = this._model.read(reader);
|
|
53
|
+
if (!model) {
|
|
54
|
+
return InlineEditTabAction.Inactive;
|
|
55
|
+
}
|
|
56
|
+
return model.tabAction.read(reader);
|
|
57
|
+
});
|
|
58
|
+
this._hoverVisible = observableValue(this, false);
|
|
59
|
+
this.isHoverVisible = this._hoverVisible;
|
|
60
|
+
this._isHoveredOverIcon = observableValue(this, false);
|
|
61
|
+
this._isHoveredOverIconDebounced = debouncedObservable(this._isHoveredOverIcon, 100);
|
|
62
|
+
this.isHoveredOverIcon = this._isHoveredOverIconDebounced;
|
|
63
|
+
this._isHoveredOverInlineEditDebounced = debouncedObservable(this._isHoveringOverInlineEdit, 100);
|
|
64
|
+
this._gutterIndicatorStyles = ( this._tabAction.map((v, reader) => {
|
|
65
|
+
switch (v) {
|
|
66
|
+
case InlineEditTabAction.Inactive: return {
|
|
67
|
+
background: ( getEditorBlendedColor(inlineEditIndicatorSecondaryBackground, themeService).read(reader).toString()),
|
|
68
|
+
foreground: ( getEditorBlendedColor(inlineEditIndicatorSecondaryForeground, themeService).read(reader).toString()),
|
|
69
|
+
border: ( getEditorBlendedColor(inlineEditIndicatorSecondaryBorder, themeService).read(reader).toString()),
|
|
70
|
+
};
|
|
71
|
+
case InlineEditTabAction.Jump: return {
|
|
72
|
+
background: ( getEditorBlendedColor(inlineEditIndicatorPrimaryBackground, themeService).read(reader).toString()),
|
|
73
|
+
foreground: ( getEditorBlendedColor(inlineEditIndicatorPrimaryForeground, themeService).read(reader).toString()),
|
|
74
|
+
border: ( getEditorBlendedColor(inlineEditIndicatorPrimaryBorder, themeService).read(reader).toString())
|
|
75
|
+
};
|
|
76
|
+
case InlineEditTabAction.Accept: return {
|
|
77
|
+
background: ( getEditorBlendedColor(inlineEditIndicatorsuccessfulBackground, themeService).read(reader).toString()),
|
|
78
|
+
foreground: ( getEditorBlendedColor(inlineEditIndicatorsuccessfulForeground, themeService).read(reader).toString()),
|
|
79
|
+
border: ( getEditorBlendedColor(inlineEditIndicatorsuccessfulBorder, themeService).read(reader).toString())
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
}));
|
|
48
83
|
this._originalRangeObs = mapOutFalsy(this._originalRange);
|
|
49
84
|
this._state = derived(reader => {
|
|
50
85
|
const range = this._originalRangeObs.read(reader);
|
|
@@ -143,13 +178,14 @@ let InlineEditsGutterIndicator = class InlineEditsGutterIndicator extends Dispos
|
|
|
143
178
|
const gutterWidthWithoutPadding = layout.decorationsLeft + layout.decorationsWidth - layout.glyphMarginLeft - 2 * gutterViewPortPadding;
|
|
144
179
|
const gutterHeightWithoutPadding = layout.height - 2 * gutterViewPortPadding;
|
|
145
180
|
const gutterViewPortWithStickyScroll = Rect.fromLeftTopWidthHeight(gutterViewPortPadding, gutterViewPortPadding, gutterWidthWithoutPadding, gutterHeightWithoutPadding);
|
|
146
|
-
const
|
|
181
|
+
const gutterViewPortWithoutStickyScrollWithoutPaddingTop = gutterViewPortWithStickyScroll.withTop(this._stickyScrollHeight.read(reader));
|
|
182
|
+
const gutterViewPortWithoutStickyScroll = gutterViewPortWithStickyScroll.withTop(gutterViewPortWithoutStickyScrollWithoutPaddingTop.top + gutterViewPortPadding);
|
|
147
183
|
const verticalEditRange = s.lineOffsetRange.read(reader);
|
|
148
184
|
const gutterEditArea = Rect.fromRanges(OffsetRange.fromTo(gutterViewPortWithoutStickyScroll.left, gutterViewPortWithoutStickyScroll.right), verticalEditRange);
|
|
149
185
|
const pillHeight = lineHeight;
|
|
150
186
|
const pillOffset = this._verticalOffset.read(reader);
|
|
151
187
|
const pillFullyDockedRect = gutterEditArea.withHeight(pillHeight).translateY(pillOffset);
|
|
152
|
-
const pillIsFullyDocked =
|
|
188
|
+
const pillIsFullyDocked = gutterViewPortWithoutStickyScrollWithoutPaddingTop.containsRect(pillFullyDockedRect);
|
|
153
189
|
const iconNoneDocked = ( this._tabAction.map(
|
|
154
190
|
action => action === InlineEditTabAction.Accept ? Codicon.keyboardTab : Codicon.arrowRight
|
|
155
191
|
));
|
|
@@ -172,7 +208,13 @@ let InlineEditsGutterIndicator = class InlineEditsGutterIndicator extends Dispos
|
|
|
172
208
|
};
|
|
173
209
|
if (pillIsFullyDocked) {
|
|
174
210
|
const pillRect = pillFullyDockedRect;
|
|
175
|
-
|
|
211
|
+
let lineNumberWidth;
|
|
212
|
+
if (layout.lineNumbersWidth === 0) {
|
|
213
|
+
lineNumberWidth = Math.min(Math.max(layout.lineNumbersLeft - gutterViewPortWithStickyScroll.left, 0), pillRect.width - idealIconWidth);
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
lineNumberWidth = Math.max(layout.lineNumbersLeft + layout.lineNumbersWidth - gutterViewPortWithStickyScroll.left, 0);
|
|
217
|
+
}
|
|
176
218
|
const lineNumberRect = pillRect.withWidth(lineNumberWidth);
|
|
177
219
|
const iconWidth = Math.max(Math.min(layout.decorationsWidth, idealIconWidth), minimalIconWidth);
|
|
178
220
|
const iconRect = pillRect.withWidth(iconWidth).translateX(lineNumberWidth);
|
|
@@ -215,18 +257,6 @@ let InlineEditsGutterIndicator = class InlineEditsGutterIndicator extends Dispos
|
|
|
215
257
|
});
|
|
216
258
|
this._iconRef = n.ref();
|
|
217
259
|
this.isVisible = ( this._layout.map(l => !!l));
|
|
218
|
-
this._hoverVisible = observableValue(this, false);
|
|
219
|
-
this.isHoverVisible = this._hoverVisible;
|
|
220
|
-
this._isHoveredOverIcon = observableValue(this, false);
|
|
221
|
-
this._isHoveredOverIconDebounced = debouncedObservable(this._isHoveredOverIcon, 100);
|
|
222
|
-
this.isHoveredOverIcon = this._isHoveredOverIconDebounced;
|
|
223
|
-
this._tabAction = derived(this, reader => {
|
|
224
|
-
const model = this._model.read(reader);
|
|
225
|
-
if (!model) {
|
|
226
|
-
return InlineEditTabAction.Inactive;
|
|
227
|
-
}
|
|
228
|
-
return model.tabAction.read(reader);
|
|
229
|
-
});
|
|
230
260
|
this._indicator = n.div({
|
|
231
261
|
class: 'inline-edits-view-gutter-indicator',
|
|
232
262
|
onclick: () => {
|
|
@@ -303,25 +333,6 @@ let InlineEditsGutterIndicator = class InlineEditsGutterIndicator extends Dispos
|
|
|
303
333
|
])
|
|
304
334
|
]),
|
|
305
335
|
]))).keepUpdated(this._store);
|
|
306
|
-
this._gutterIndicatorStyles = ( this._tabAction.map((v, reader) => {
|
|
307
|
-
switch (v) {
|
|
308
|
-
case InlineEditTabAction.Inactive: return {
|
|
309
|
-
background: ( getEditorBlendedColor(inlineEditIndicatorSecondaryBackground, themeService).read(reader).toString()),
|
|
310
|
-
foreground: ( getEditorBlendedColor(inlineEditIndicatorSecondaryForeground, themeService).read(reader).toString()),
|
|
311
|
-
border: ( getEditorBlendedColor(inlineEditIndicatorSecondaryBorder, themeService).read(reader).toString()),
|
|
312
|
-
};
|
|
313
|
-
case InlineEditTabAction.Jump: return {
|
|
314
|
-
background: ( getEditorBlendedColor(inlineEditIndicatorPrimaryBackground, themeService).read(reader).toString()),
|
|
315
|
-
foreground: ( getEditorBlendedColor(inlineEditIndicatorPrimaryForeground, themeService).read(reader).toString()),
|
|
316
|
-
border: ( getEditorBlendedColor(inlineEditIndicatorPrimaryBorder, themeService).read(reader).toString())
|
|
317
|
-
};
|
|
318
|
-
case InlineEditTabAction.Accept: return {
|
|
319
|
-
background: ( getEditorBlendedColor(inlineEditIndicatorsuccessfulBackground, themeService).read(reader).toString()),
|
|
320
|
-
foreground: ( getEditorBlendedColor(inlineEditIndicatorsuccessfulForeground, themeService).read(reader).toString()),
|
|
321
|
-
border: ( getEditorBlendedColor(inlineEditIndicatorsuccessfulBorder, themeService).read(reader).toString())
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
}));
|
|
325
336
|
this._register(this._editorObs.createOverlayWidget({
|
|
326
337
|
domNode: this._indicator.element,
|
|
327
338
|
position: constObservable(null),
|
|
@@ -342,7 +353,6 @@ let InlineEditsGutterIndicator = class InlineEditsGutterIndicator extends Dispos
|
|
|
342
353
|
this._register(this._editorObs.editor.onDidScrollChange(() => {
|
|
343
354
|
this._isHoveredOverIcon.set(false, undefined);
|
|
344
355
|
}));
|
|
345
|
-
this._isHoveredOverInlineEditDebounced = debouncedObservable(this._isHoveringOverInlineEdit, 100);
|
|
346
356
|
this._register(runOnChange(this._isHoveredOverInlineEditDebounced, (isHovering) => {
|
|
347
357
|
if (isHovering) {
|
|
348
358
|
this.triggerAnimation();
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { SingleLineEdit } from "../../../../../common/core/lineEdit.js";
|
|
2
|
-
import { LineRange } from "../../../../../common/core/lineRange.js";
|
|
1
|
+
import { SingleLineEdit } from "../../../../../common/core/edits/lineEdit.js";
|
|
2
|
+
import { LineRange } from "../../../../../common/core/ranges/lineRange.js";
|
|
3
3
|
import { Position } from "../../../../../common/core/position.js";
|
|
4
|
-
import {
|
|
4
|
+
import { TextEdit } from "../../../../../common/core/edits/textEdit.js";
|
|
5
|
+
import { AbstractText } from "../../../../../common/core/text/abstractText.js";
|
|
5
6
|
import { Command } from "../../../../../common/languages.js";
|
|
6
7
|
import { InlineSuggestionItem } from "../../model/inlineSuggestionItem.js";
|
|
7
8
|
export declare class InlineEditWithChanges {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
import { SingleLineEdit } from '../../../../../common/core/lineEdit.js';
|
|
3
|
-
import { LineRange } from '../../../../../common/core/lineRange.js';
|
|
2
|
+
import { SingleLineEdit } from '../../../../../common/core/edits/lineEdit.js';
|
|
3
|
+
import { LineRange } from '../../../../../common/core/ranges/lineRange.js';
|
|
4
4
|
|
|
5
5
|
class InlineEditWithChanges {
|
|
6
6
|
get lineEdit() {
|
|
7
|
-
return SingleLineEdit.fromSingleTextEdit(this.edit.
|
|
7
|
+
return SingleLineEdit.fromSingleTextEdit(this.edit.toReplacement(this.originalText), this.originalText);
|
|
8
8
|
}
|
|
9
9
|
get originalLineRange() { return this.lineEdit.lineRange; }
|
|
10
10
|
get modifiedLineRange() { return this.lineEdit.toLineEdit().getNewLineRanges()[0]; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Event } from "../../../../../../base/common/event.js";
|
|
2
2
|
import { IObservable } from "../../../../../../base/common/observable.js";
|
|
3
3
|
import { ICodeEditor } from "../../../../../browser/editorBrowser.js";
|
|
4
|
-
import { LineRange } from "../../../../../common/core/lineRange.js";
|
|
4
|
+
import { LineRange } from "../../../../../common/core/ranges/lineRange.js";
|
|
5
5
|
import { Command, InlineCompletionDisplayLocation } from "../../../../../common/languages.js";
|
|
6
6
|
import { InlineCompletionsModel } from "../../model/inlineCompletionsModel.js";
|
|
7
7
|
import { InlineCompletionItem } from "../../model/inlineSuggestionItem.js";
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import '../../../../../../base/common/observableInternal/index.js';
|
|
3
3
|
import { localize } from '../../../../../../nls.js';
|
|
4
4
|
import { observableCodeEditor } from '../../../../../browser/observableCodeEditor.js';
|
|
5
|
-
import {
|
|
5
|
+
import { TextEdit } from '../../../../../common/core/edits/textEdit.js';
|
|
6
|
+
import { StringText } from '../../../../../common/core/text/abstractText.js';
|
|
6
7
|
import { InlineEditTabAction } from './inlineEditsViewInterface.js';
|
|
7
8
|
import { InlineEditWithChanges } from './inlineEditWithChanges.js';
|
|
8
|
-
import { derived } from '../../../../../../base/common/observableInternal/derived.js';
|
|
9
|
+
import { derived } from '../../../../../../base/common/observableInternal/observables/derived.js';
|
|
9
10
|
|
|
10
11
|
class InlineEditModel {
|
|
11
12
|
constructor(_model, inlineEdit, tabAction) {
|
|
@@ -13,7 +14,7 @@ class InlineEditModel {
|
|
|
13
14
|
this.inlineEdit = inlineEdit;
|
|
14
15
|
this.tabAction = tabAction;
|
|
15
16
|
this.action = this.inlineEdit.inlineCompletion.action;
|
|
16
|
-
this.displayName = this.inlineEdit.inlineCompletion.source.provider.displayName ?? ( localize(
|
|
17
|
+
this.displayName = this.inlineEdit.inlineCompletion.source.provider.displayName ?? ( localize(1280, "Inline Edit"));
|
|
17
18
|
this.extensionCommands = this.inlineEdit.inlineCompletion.source.inlineSuggestions.commands ?? [];
|
|
18
19
|
this.displayLocation = this.inlineEdit.inlineCompletion.displayLocation;
|
|
19
20
|
this.showCollapsed = this._model.showCollapsed;
|
|
@@ -7,10 +7,10 @@ import '../../../../../../base/common/observableInternal/index.js';
|
|
|
7
7
|
import { IConfigurationService } from '../../../../../../platform/configuration/common/configuration.service.js';
|
|
8
8
|
import { StorageScope, StorageTarget } from '../../../../../../platform/storage/common/storage.js';
|
|
9
9
|
import { IStorageService } from '../../../../../../platform/storage/common/storage.service.js';
|
|
10
|
-
import { runOnChangeWithCancellationToken, runOnChange } from '../../../../../../base/common/observableInternal/utils.js';
|
|
11
|
-
import { observableValue } from '../../../../../../base/common/observableInternal/
|
|
12
|
-
import { derived } from '../../../../../../base/common/observableInternal/derived.js';
|
|
13
|
-
import { autorun, autorunWithStore } from '../../../../../../base/common/observableInternal/autorun.js';
|
|
10
|
+
import { runOnChangeWithCancellationToken, runOnChange } from '../../../../../../base/common/observableInternal/utils/runOnChange.js';
|
|
11
|
+
import { observableValue } from '../../../../../../base/common/observableInternal/observables/observableValue.js';
|
|
12
|
+
import { derived } from '../../../../../../base/common/observableInternal/observables/derived.js';
|
|
13
|
+
import { autorun, autorunWithStore } from '../../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
14
14
|
|
|
15
15
|
var UserKind;
|
|
16
16
|
(function (UserKind) {
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare class InlineEditsView extends Disposable {
|
|
|
29
29
|
private readonly _uiState;
|
|
30
30
|
private readonly _previewTextModel;
|
|
31
31
|
private readonly _indicatorCyclicDependencyCircuitBreaker;
|
|
32
|
-
protected readonly _indicator:
|
|
32
|
+
protected readonly _indicator: import("../../../../../../base/common/observable.js").IObservableWithChange<InlineEditsGutterIndicator | undefined, void>;
|
|
33
33
|
private readonly _inlineEditsIsHovered;
|
|
34
34
|
private readonly _gutterIndicatorOffset;
|
|
35
35
|
private readonly _sideBySide;
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js
CHANGED
|
@@ -9,10 +9,11 @@ import '../../../../../../base/common/observableInternal/index.js';
|
|
|
9
9
|
import { IInstantiationService } from '../../../../../../platform/instantiation/common/instantiation.js';
|
|
10
10
|
import { observableCodeEditor } from '../../../../../browser/observableCodeEditor.js';
|
|
11
11
|
import { EditorOption } from '../../../../../common/config/editorOptions.js';
|
|
12
|
-
import { LineRange } from '../../../../../common/core/lineRange.js';
|
|
12
|
+
import { LineRange } from '../../../../../common/core/ranges/lineRange.js';
|
|
13
13
|
import { Range } from '../../../../../common/core/range.js';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { TextReplacement } from '../../../../../common/core/edits/textEdit.js';
|
|
15
|
+
import { StringText } from '../../../../../common/core/text/abstractText.js';
|
|
16
|
+
import { TextLength } from '../../../../../common/core/text/textLength.js';
|
|
16
17
|
import { RangeMapping, lineRangeMappingFromRangeMappings } from '../../../../../common/diff/rangeMapping.js';
|
|
17
18
|
import { TextModel } from '../../../../../common/model/textModel.js';
|
|
18
19
|
import { InlineEditsGutterIndicator } from './components/gutterIndicatorView.js';
|
|
@@ -28,10 +29,10 @@ import { InlineEditsWordReplacementView } from './inlineEditsViews/inlineEditsWo
|
|
|
28
29
|
import { OriginalEditorInlineDiffView } from './inlineEditsViews/originalEditorInlineDiffView.js';
|
|
29
30
|
import { createReindentEdit, applyEditToModifiedRangeMappings } from './utils/utils.js';
|
|
30
31
|
import * as view from './view.css';
|
|
31
|
-
import { derived,
|
|
32
|
-
import { observableValue } from '../../../../../../base/common/observableInternal/
|
|
33
|
-
import { mapObservableArrayCached } from '../../../../../../base/common/observableInternal/utils.js';
|
|
34
|
-
import { autorunWithStore } from '../../../../../../base/common/observableInternal/autorun.js';
|
|
32
|
+
import { derived, derivedOpts } from '../../../../../../base/common/observableInternal/observables/derived.js';
|
|
33
|
+
import { observableValue } from '../../../../../../base/common/observableInternal/observables/observableValue.js';
|
|
34
|
+
import { mapObservableArrayCached } from '../../../../../../base/common/observableInternal/utils/utils.js';
|
|
35
|
+
import { autorunWithStore } from '../../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
35
36
|
|
|
36
37
|
registerCss(view);
|
|
37
38
|
let InlineEditsView = class InlineEditsView extends Disposable {
|
|
@@ -85,7 +86,7 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
85
86
|
});
|
|
86
87
|
this._previewTextModel = this._register(this._instantiationService.createInstance(TextModel, '', this._editor.getModel().getLanguageId(), { ...TextModel.DEFAULT_CREATION_OPTIONS, bracketPairColorizationOptions: { enabled: true, independentColorPoolPerBracketType: false } }, null));
|
|
87
88
|
this._indicatorCyclicDependencyCircuitBreaker = observableValue(this, false);
|
|
88
|
-
this._indicator =
|
|
89
|
+
this._indicator = derived(this, (reader) => {
|
|
89
90
|
if (!this._indicatorCyclicDependencyCircuitBreaker.read(reader)) {
|
|
90
91
|
return undefined;
|
|
91
92
|
}
|
|
@@ -121,7 +122,7 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
121
122
|
}
|
|
122
123
|
return model;
|
|
123
124
|
});
|
|
124
|
-
return store.add(this._instantiationService.createInstance(InlineEditsGutterIndicator, this._editorObs, indicatorDisplayRange, this._gutterIndicatorOffset, modelWithGhostTextSupport, this._inlineEditsIsHovered, this._focusIsInMenu));
|
|
125
|
+
return reader.store.add(this._instantiationService.createInstance(InlineEditsGutterIndicator, this._editorObs, indicatorDisplayRange, this._gutterIndicatorOffset, modelWithGhostTextSupport, this._inlineEditsIsHovered, this._focusIsInMenu));
|
|
125
126
|
});
|
|
126
127
|
this._inlineEditsIsHovered = derived(this, reader => {
|
|
127
128
|
return this._sideBySide.isHovered.read(reader)
|
|
@@ -136,6 +137,10 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
136
137
|
if (this._uiState.read(reader)?.state?.kind === 'insertionMultiLine') {
|
|
137
138
|
return this._insertion.startLineOffset.read(reader);
|
|
138
139
|
}
|
|
140
|
+
const ghostTextIndicator = this._ghostTextIndicator.read(reader);
|
|
141
|
+
if (ghostTextIndicator) {
|
|
142
|
+
return getGhostTextTopOffset(ghostTextIndicator, this._editor);
|
|
143
|
+
}
|
|
139
144
|
return 0;
|
|
140
145
|
});
|
|
141
146
|
this._sideBySide = this._register(this._instantiationService.createInstance(InlineEditsSideBySideView, this._editor, ( this._model.map(m => m?.inlineEdit)), this._previewTextModel, ( this._uiState.map(s => s && s.state?.kind === 'sideBySide' ? ({
|
|
@@ -221,8 +226,11 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
221
226
|
const isSingleInnerEdit = inner.length === 1;
|
|
222
227
|
if (isSingleInnerEdit
|
|
223
228
|
&& this._useCodeShifting.read(reader) !== 'never'
|
|
224
|
-
&&
|
|
225
|
-
|
|
229
|
+
&& isSingleLineInsertion(diff)) {
|
|
230
|
+
if (isSingleLineInsertionAfterPosition(diff, inlineEdit.cursorPosition)) {
|
|
231
|
+
return 'insertionInline';
|
|
232
|
+
}
|
|
233
|
+
return 'lineReplacement';
|
|
226
234
|
}
|
|
227
235
|
const innerValues = ( inner.map(
|
|
228
236
|
m => ({ original: inlineEdit.originalText.getValueOfRange(m.originalRange), modified: newText.getValueOfRange(m.modifiedRange) })
|
|
@@ -238,7 +246,7 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
238
246
|
const allInnerChangesNotTooLong = inner.every(m => TextLength.ofRange(m.originalRange).columnCount < InlineEditsWordReplacementView.MAX_LENGTH && TextLength.ofRange(m.modifiedRange).columnCount < InlineEditsWordReplacementView.MAX_LENGTH);
|
|
239
247
|
if (allInnerChangesNotTooLong && isSingleInnerEdit && numOriginalLines === 1 && numModifiedLines === 1) {
|
|
240
248
|
if (!( inner.some(m => m.originalRange.isEmpty())) ||
|
|
241
|
-
!( growEditsUntilWhitespace(( inner.map(m => ( new
|
|
249
|
+
!( growEditsUntilWhitespace(( inner.map(m => ( new TextReplacement(m.originalRange, '')))), inlineEdit.originalText).some(
|
|
242
250
|
e => e.range.isEmpty() && TextLength.ofRange(e.range).columnCount < InlineEditsWordReplacementView.MAX_LENGTH
|
|
243
251
|
))) {
|
|
244
252
|
return 'wordReplacements';
|
|
@@ -282,7 +290,7 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
282
290
|
text: newText.getValueOfRange(change.modifiedRange),
|
|
283
291
|
};
|
|
284
292
|
}
|
|
285
|
-
const replacements = ( inner.map(m => ( new
|
|
293
|
+
const replacements = ( inner.map(m => ( new TextReplacement(m.originalRange, newText.getValueOfRange(m.modifiedRange)))));
|
|
286
294
|
if (replacements.length === 0) {
|
|
287
295
|
return undefined;
|
|
288
296
|
}
|
|
@@ -319,13 +327,9 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
319
327
|
InlineEditsView = ( __decorate([
|
|
320
328
|
( __param(5, IInstantiationService))
|
|
321
329
|
], InlineEditsView));
|
|
322
|
-
function
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
}
|
|
326
|
-
const pos = position;
|
|
327
|
-
return diff.every(m => m.innerChanges.every(r => isStableWordInsertion(r)));
|
|
328
|
-
function isStableWordInsertion(r) {
|
|
330
|
+
function isSingleLineInsertion(diff) {
|
|
331
|
+
return diff.every(m => m.innerChanges.every(r => isWordInsertion(r)));
|
|
332
|
+
function isWordInsertion(r) {
|
|
329
333
|
if (!r.originalRange.isEmpty()) {
|
|
330
334
|
return false;
|
|
331
335
|
}
|
|
@@ -333,6 +337,19 @@ function isSingleLineInsertionAfterPosition(diff, position) {
|
|
|
333
337
|
if (!isInsertionWithinLine) {
|
|
334
338
|
return false;
|
|
335
339
|
}
|
|
340
|
+
return true;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
function isSingleLineInsertionAfterPosition(diff, position) {
|
|
344
|
+
if (!position) {
|
|
345
|
+
return false;
|
|
346
|
+
}
|
|
347
|
+
if (!isSingleLineInsertion(diff)) {
|
|
348
|
+
return false;
|
|
349
|
+
}
|
|
350
|
+
const pos = position;
|
|
351
|
+
return diff.every(m => m.innerChanges.every(r => isStableWordInsertion(r)));
|
|
352
|
+
function isStableWordInsertion(r) {
|
|
336
353
|
const insertPosition = r.originalRange.getStartPosition();
|
|
337
354
|
if (pos.isBeforeOrEqual(insertPosition)) {
|
|
338
355
|
return true;
|
|
@@ -385,14 +402,14 @@ function _growEdits(replacements, originalText, fn) {
|
|
|
385
402
|
endIndex++;
|
|
386
403
|
}
|
|
387
404
|
}
|
|
388
|
-
let newEdit = ( new
|
|
405
|
+
let newEdit = ( new TextReplacement(( new Range(
|
|
389
406
|
edit.range.startLineNumber,
|
|
390
407
|
startIndex + 1,
|
|
391
408
|
edit.range.endLineNumber,
|
|
392
409
|
endIndex + 2
|
|
393
410
|
)), prefix + edit.text + suffix));
|
|
394
411
|
if (result.length > 0 && Range.areIntersectingOrTouching(result[result.length - 1].range, newEdit.range)) {
|
|
395
|
-
newEdit =
|
|
412
|
+
newEdit = TextReplacement.joinReplacements([result.pop(), newEdit], originalText);
|
|
396
413
|
}
|
|
397
414
|
result.push(newEdit);
|
|
398
415
|
}
|
|
@@ -404,5 +421,34 @@ function _growEdits(replacements, originalText, fn) {
|
|
|
404
421
|
}
|
|
405
422
|
return result;
|
|
406
423
|
}
|
|
424
|
+
function getGhostTextTopOffset(ghostTextIndicator, editor) {
|
|
425
|
+
const replacements = ghostTextIndicator.model.inlineEdit.edit.replacements;
|
|
426
|
+
if (replacements.length !== 1) {
|
|
427
|
+
return 0;
|
|
428
|
+
}
|
|
429
|
+
const textModel = editor.getModel();
|
|
430
|
+
if (!textModel) {
|
|
431
|
+
return 0;
|
|
432
|
+
}
|
|
433
|
+
const EOL = textModel.getEOL();
|
|
434
|
+
const replacement = replacements[0];
|
|
435
|
+
if (replacement.range.isEmpty() && replacement.text.startsWith(EOL)) {
|
|
436
|
+
const lineHeight = editor.getLineHeightForPosition(replacement.range.getStartPosition());
|
|
437
|
+
return countPrefixRepeats(replacement.text, EOL) * lineHeight;
|
|
438
|
+
}
|
|
439
|
+
return 0;
|
|
440
|
+
}
|
|
441
|
+
function countPrefixRepeats(str, prefix) {
|
|
442
|
+
if (!prefix.length) {
|
|
443
|
+
return 0;
|
|
444
|
+
}
|
|
445
|
+
let count = 0;
|
|
446
|
+
let i = 0;
|
|
447
|
+
while (str.startsWith(prefix, i)) {
|
|
448
|
+
count++;
|
|
449
|
+
i += prefix.length;
|
|
450
|
+
}
|
|
451
|
+
return count;
|
|
452
|
+
}
|
|
407
453
|
|
|
408
454
|
export { InlineEditsView };
|
|
@@ -5,15 +5,15 @@ import { Disposable } from '../../../../../../base/common/lifecycle.js';
|
|
|
5
5
|
import '../../../../../../base/common/observableInternal/index.js';
|
|
6
6
|
import { IInstantiationService } from '../../../../../../platform/instantiation/common/instantiation.js';
|
|
7
7
|
import { observableCodeEditor } from '../../../../../browser/observableCodeEditor.js';
|
|
8
|
-
import { LineRange } from '../../../../../common/core/lineRange.js';
|
|
8
|
+
import { LineRange } from '../../../../../common/core/ranges/lineRange.js';
|
|
9
9
|
import { Range } from '../../../../../common/core/range.js';
|
|
10
|
-
import {
|
|
10
|
+
import { TextReplacement, TextEdit } from '../../../../../common/core/edits/textEdit.js';
|
|
11
11
|
import { TextModelText } from '../../../../../common/model/textModelText.js';
|
|
12
12
|
import { InlineEditWithChanges } from './inlineEditWithChanges.js';
|
|
13
13
|
import { InlineEditModel, InlineEditHost, GhostTextIndicator } from './inlineEditsModel.js';
|
|
14
14
|
import { InlineEditsView } from './inlineEditsView.js';
|
|
15
15
|
import { InlineEditTabAction } from './inlineEditsViewInterface.js';
|
|
16
|
-
import { derived } from '../../../../../../base/common/observableInternal/derived.js';
|
|
16
|
+
import { derived } from '../../../../../../base/common/observableInternal/observables/derived.js';
|
|
17
17
|
|
|
18
18
|
var InlineEditsViewAndDiffProducer_1;
|
|
19
19
|
let InlineEditsViewAndDiffProducer = class InlineEditsViewAndDiffProducer extends Disposable {
|
|
@@ -42,9 +42,9 @@ let InlineEditsViewAndDiffProducer = class InlineEditsViewAndDiffProducer extend
|
|
|
42
42
|
if (!editOffset) {
|
|
43
43
|
return undefined;
|
|
44
44
|
}
|
|
45
|
-
const edits = ( editOffset.
|
|
45
|
+
const edits = ( editOffset.replacements.map(e => {
|
|
46
46
|
const innerEditRange = Range.fromPositions(textModel.getPositionAt(e.replaceRange.start), textModel.getPositionAt(e.replaceRange.endExclusive));
|
|
47
|
-
return ( new
|
|
47
|
+
return ( new TextReplacement(innerEditRange, e.newText));
|
|
48
48
|
}));
|
|
49
49
|
const diffEdits = ( new TextEdit(edits));
|
|
50
50
|
const text = ( new TextModelText(textModel));
|
|
@@ -7,13 +7,13 @@ import '../../../../../../../base/common/observableInternal/index.js';
|
|
|
7
7
|
import { IAccessibilityService } from '../../../../../../../platform/accessibility/common/accessibility.service.js';
|
|
8
8
|
import { asCssVariable } from '../../../../../../../platform/theme/common/colorUtils.js';
|
|
9
9
|
import { observableCodeEditor } from '../../../../../../browser/observableCodeEditor.js';
|
|
10
|
-
import { Point } from '../../../../../../
|
|
10
|
+
import { Point } from '../../../../../../common/core/2d/point.js';
|
|
11
11
|
import { singleTextRemoveCommonPrefix } from '../../../model/singleTextEditHelpers.js';
|
|
12
12
|
import { inlineEditIndicatorPrimaryBorder } from '../theme.js';
|
|
13
|
-
import { PathBuilder } from '../utils/utils.js';
|
|
13
|
+
import { rectToProps, getEditorValidOverlayRect, PathBuilder } from '../utils/utils.js';
|
|
14
14
|
import { n } from '../../../../../../../base/browser/domImpl/n.js';
|
|
15
|
-
import { constObservable } from '../../../../../../../base/common/observableInternal/
|
|
16
|
-
import { derived } from '../../../../../../../base/common/observableInternal/derived.js';
|
|
15
|
+
import { constObservable } from '../../../../../../../base/common/observableInternal/observables/constObservable.js';
|
|
16
|
+
import { derived } from '../../../../../../../base/common/observableInternal/observables/derived.js';
|
|
17
17
|
|
|
18
18
|
let InlineEditsCollapsedView = class InlineEditsCollapsedView extends Disposable {
|
|
19
19
|
constructor(_editor, _edit, _accessibilityService) {
|
|
@@ -26,7 +26,7 @@ let InlineEditsCollapsedView = class InlineEditsCollapsedView extends Disposable
|
|
|
26
26
|
this._iconRef = n.ref();
|
|
27
27
|
this.isHovered = constObservable(false);
|
|
28
28
|
this._editorObs = observableCodeEditor(this._editor);
|
|
29
|
-
const firstEdit = ( this._edit.map(inlineEdit => inlineEdit?.edit.
|
|
29
|
+
const firstEdit = ( this._edit.map(inlineEdit => inlineEdit?.edit.replacements[0] ?? null));
|
|
30
30
|
const startPosition = ( firstEdit.map(
|
|
31
31
|
edit => edit ? singleTextRemoveCommonPrefix(edit, this._editor.getModel()).range.getStartPosition() : null
|
|
32
32
|
));
|
|
@@ -84,10 +84,7 @@ let InlineEditsCollapsedView = class InlineEditsCollapsedView extends Disposable
|
|
|
84
84
|
ref: this._iconRef,
|
|
85
85
|
style: {
|
|
86
86
|
position: 'absolute',
|
|
87
|
-
|
|
88
|
-
left: contentLeft,
|
|
89
|
-
width: this._editorObs.contentWidth,
|
|
90
|
-
height: this._editorObs.editor.getContentHeight(),
|
|
87
|
+
...rectToProps((r) => getEditorValidOverlayRect(this._editorObs).read(r)),
|
|
91
88
|
overflow: 'hidden',
|
|
92
89
|
pointerEvents: 'none',
|
|
93
90
|
}
|