@codingame/monaco-vscode-api 18.4.0 → 19.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 +1217 -2932
- package/monaco.js +0 -3
- package/package.json +8 -8
- package/services.d.ts +12 -8
- package/services.js +12 -7
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/dom.d.ts +83 -2
- package/vscode/src/vs/base/browser/dom.js +280 -3
- package/vscode/src/vs/base/browser/domStylesheets.d.ts +2 -0
- package/vscode/src/vs/base/browser/domStylesheets.js +11 -1
- package/vscode/src/vs/base/browser/markdownRenderer.d.ts +1 -0
- package/vscode/src/vs/base/browser/markdownRenderer.js +34 -18
- package/vscode/src/vs/base/browser/ui/button/button.js +4 -1
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/list/list.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/list/listView.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/list/listView.js +5 -5
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +5 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +3 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +21 -4
- package/vscode/src/vs/base/common/arrays.d.ts +0 -1
- package/vscode/src/vs/base/common/arrays.js +1 -6
- package/vscode/src/vs/base/common/async.d.ts +1 -0
- package/vscode/src/vs/base/common/async.js +2 -1
- package/vscode/src/vs/base/common/buffer.d.ts +1 -0
- package/vscode/src/vs/base/common/buffer.js +3 -0
- package/vscode/src/vs/base/common/codicons.d.ts +7 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +7 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +7 -0
- package/vscode/src/vs/base/common/collections.d.ts +1 -0
- package/vscode/src/vs/base/common/collections.js +14 -1
- package/vscode/src/vs/base/common/color.js +2 -2
- package/vscode/src/vs/base/common/dataTransfer.d.ts +1 -1
- package/vscode/src/vs/base/common/decorators.d.ts +1 -1
- package/vscode/src/vs/base/common/event.d.ts +1 -1
- package/vscode/src/vs/base/common/glob.d.ts +1 -1
- package/vscode/src/vs/base/common/glob.js +2 -2
- package/vscode/src/vs/base/common/hotReloadHelpers.js +1 -1
- package/vscode/src/vs/base/common/iterator.d.ts +1 -1
- package/vscode/src/vs/base/common/network.d.ts +1 -0
- package/vscode/src/vs/base/common/network.js +1 -0
- package/vscode/src/vs/base/common/oauth.d.ts +34 -4
- package/vscode/src/vs/base/common/oauth.js +77 -6
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/utils.js +8 -1
- package/vscode/src/vs/base/common/observableInternal/set.js +0 -1
- package/vscode/src/vs/base/common/performance.js +1 -1
- package/vscode/src/vs/base/common/product.d.ts +2 -1
- package/vscode/src/vs/base/common/types.d.ts +4 -8
- package/vscode/src/vs/base/common/types.js +3 -3
- package/vscode/src/vs/base/common/worker/webWorker.js +1 -1
- package/vscode/src/vs/editor/browser/config/migrateOptions.js +8 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +2 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +18 -14
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +5 -3
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.js +5 -4
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.js +3 -3
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +2 -3
- package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +6 -0
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +38 -1
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +9 -1
- package/vscode/src/vs/editor/browser/services/bulkEditService.d.ts +2 -0
- package/vscode/src/vs/editor/browser/services/editorWorkerService.d.ts +4 -0
- package/vscode/src/vs/editor/browser/services/editorWorkerService.js +18 -2
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.d.ts +32 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +141 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.d.ts +11 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.js +6 -0
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +2 -2
- package/vscode/src/vs/editor/browser/view/viewController.js +5 -1
- package/vscode/src/vs/editor/browser/view.d.ts +1 -1
- package/vscode/src/vs/editor/browser/view.js +5 -5
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.d.ts +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +3 -3
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +14 -6
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.d.ts +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +3 -7
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +12 -2
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +4 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +8 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +39 -9
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.css +52 -49
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +15 -15
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +3 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +7 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +54 -54
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +173 -160
- package/vscode/src/vs/editor/common/config/editorOptions.js +645 -570
- package/vscode/src/vs/editor/common/config/fontInfo.js +1 -1
- package/vscode/src/vs/editor/common/core/2d/point.d.ts +5 -0
- package/vscode/src/vs/editor/common/core/2d/point.js +23 -0
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/edits/edit.d.ts +6 -0
- package/vscode/src/vs/editor/common/core/edits/edit.js +41 -0
- package/vscode/src/vs/editor/common/core/edits/lineEdit.d.ts +17 -11
- package/vscode/src/vs/editor/common/core/edits/lineEdit.js +36 -9
- package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +63 -16
- package/vscode/src/vs/editor/common/core/edits/stringEdit.js +205 -48
- package/vscode/src/vs/editor/common/core/edits/textEdit.d.ts +5 -1
- package/vscode/src/vs/editor/common/core/edits/textEdit.js +18 -2
- package/vscode/src/vs/editor/common/core/text/abstractText.d.ts +3 -1
- package/vscode/src/vs/editor/common/core/text/abstractText.js +10 -1
- package/vscode/src/vs/editor/common/core/text/getPositionOffsetTransformerFromTextModel.js +2 -1
- package/vscode/src/vs/editor/common/core/text/positionToOffset.d.ts +2 -28
- package/vscode/src/vs/editor/common/core/text/positionToOffset.js +11 -92
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.d.ts +37 -0
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.js +104 -0
- package/vscode/src/vs/editor/common/cursor/cursor.d.ts +3 -2
- package/vscode/src/vs/editor/common/cursor/cursor.js +24 -16
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +3 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +1 -0
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +11 -1
- package/vscode/src/vs/editor/common/editorCommon.d.ts +2 -1
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languages/defaultDocumentColorsComputer.js +1 -1
- package/vscode/src/vs/editor/common/languages/languageConfiguration.d.ts +5 -1
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.d.ts +1 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +7 -1
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +31 -27
- package/vscode/src/vs/editor/common/languages.js +57 -62
- package/vscode/src/vs/editor/common/model/editStack.d.ts +2 -1
- package/vscode/src/vs/editor/common/model/editStack.js +4 -3
- package/vscode/src/vs/editor/common/model/intervalTree.d.ts +2 -2
- package/vscode/src/vs/editor/common/model/intervalTree.js +24 -7
- package/vscode/src/vs/editor/common/model/textModel.d.ts +24 -10
- package/vscode/src/vs/editor/common/model/textModel.js +114 -53
- package/vscode/src/vs/editor/common/model/tokens/abstractSyntaxTokenBackend.js +1 -1
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterSyntaxTokenBackend.d.ts +0 -3
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterSyntaxTokenBackend.js +1 -13
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTree.d.ts +2 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTree.js +13 -2
- package/vscode/src/vs/editor/common/model.d.ts +8 -2
- package/vscode/src/vs/editor/common/services/editorWebWorker.d.ts +4 -0
- package/vscode/src/vs/editor/common/services/editorWebWorker.js +14 -0
- package/vscode/src/vs/editor/common/services/editorWorker.service.d.ts +4 -0
- package/vscode/src/vs/editor/common/services/findSectionHeaders.js +7 -0
- package/vscode/src/vs/editor/common/services/languageFeatures.service.d.ts +1 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.d.ts +1 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +0 -1
- package/vscode/src/vs/editor/common/services/model.service.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/modelService.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/modelService.js +3 -2
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.service.d.ts +1 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +159 -157
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +160 -159
- package/vscode/src/vs/editor/common/standaloneStrings.js +50 -49
- package/vscode/src/vs/editor/common/textModelEditReason.d.ts +94 -12
- package/vscode/src/vs/editor/common/textModelEditReason.js +86 -20
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +24 -0
- package/vscode/src/vs/editor/common/textModelEvents.js +33 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +22 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.js +79 -2
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.d.ts +5 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.js +10 -4
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +3 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +39 -12
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.d.ts +3 -3
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.js +6 -6
- package/vscode/src/vs/editor/common/viewModel.d.ts +3 -1
- package/vscode/src/vs/editor/common/viewModel.js +2 -1
- package/vscode/src/vs/editor/common/viewModelEventDispatcher.d.ts +11 -3
- package/vscode/src/vs/editor/common/viewModelEventDispatcher.js +14 -1
- 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 +20 -20
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +3 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.css +2 -7
- 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/defaultDocumentColorProvider.js +3 -3
- 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/comment/browser/lineCommentCommand.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.js +9 -5
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +29 -29
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.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 +10 -5
- 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 +10 -6
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +22 -47
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- 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 +11 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +3 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/animation.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/animation.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.js +35 -30
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.js +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/graph.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/graph.js +66 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +12 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +144 -100
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +7 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +100 -49
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +4 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +37 -29
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +39 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +150 -162
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +2 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +12 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js +9 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +13 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.d.ts +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.d.ts +5 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +5 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +103 -62
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +25 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.js +13 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.js +1 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +4 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +7 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +16 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.d.ts +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +34 -34
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +13 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +6 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.js +20 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +4 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +10 -7
- 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/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/middleScroll/browser/middleScroll.contribution.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScroll.contribution.js +5 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScroll.css +20 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.js +132 -0
- 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 +9 -9
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +21 -17
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.css +0 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +14 -12
- 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.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +5 -5
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +3 -2
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css +24 -24
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +13 -13
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +18 -10
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.d.ts +4 -3
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +34 -39
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.d.ts +5 -6
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +65 -70
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +13 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -18
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +4 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js +1 -1
- 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 +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +5 -2
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +79 -69
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +4 -4
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +0 -1
- package/vscode/src/vs/platform/actions/common/actions.js +0 -1
- 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/configuration.js +4 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +11 -11
- 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/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/environment/common/argv.d.ts +11 -0
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +19 -19
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +9 -3
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +9 -3
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.d.ts +6 -1
- package/vscode/src/vs/platform/files/common/files.js +11 -7
- package/vscode/src/vs/platform/files/common/files.service.d.ts +1 -0
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.d.ts +2 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/keybinding/common/keybinding.service.d.ts +2 -1
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.d.ts +1 -7
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.d.ts +4 -0
- package/vscode/src/vs/platform/log/common/log.js +15 -7
- package/vscode/src/vs/platform/markers/common/markerService.js +4 -3
- package/vscode/src/vs/platform/markers/common/markers.d.ts +2 -0
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +9 -4
- package/vscode/src/vs/platform/mcp/common/mcpResourceScannerService.service.d.ts +10 -0
- package/vscode/src/vs/platform/mcp/common/mcpResourceScannerService.service.js +6 -0
- package/vscode/src/vs/platform/notification/common/notification.d.ts +1 -0
- package/vscode/src/vs/platform/notification/common/notification.js +12 -2
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- 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 +7 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +7 -12
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +2 -1
- package/vscode/src/vs/platform/remote/common/remoteAgentEnvironment.d.ts +1 -0
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.d.ts +2 -2
- 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/commonProperties.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +2 -0
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +2 -1
- package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +2 -1
- package/vscode/src/vs/platform/theme/browser/defaultStyles.d.ts +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.d.ts +1 -0
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -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/theme/common/themeService.d.ts +1 -1
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +3 -1
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +6 -2
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +2 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +7 -6
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +1 -1
- package/vscode/src/vs/platform/window/common/window.d.ts +1 -0
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +5 -7
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +25 -24
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +10 -4
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +109 -77
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +22 -0
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDocuments.d.ts +4 -2
- package/vscode/src/vs/workbench/api/common/extHostDocuments.js +35 -5
- package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +3 -4
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +1 -5
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +34 -182
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +7 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +2 -3
- 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 +71 -20
- package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +7 -5
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditor.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +7 -3
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.d.ts +4 -3
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +5 -2
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +16 -7
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +20 -8
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +16 -13
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +11 -12
- package/vscode/src/vs/workbench/api/common/extHostWebviewMessaging.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/contextkeys.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/contextkeys.js +6 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.d.ts +1 -1
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +1 -0
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -72
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +2 -1
- package/vscode/src/vs/workbench/common/editor.js +6 -6
- 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 +157 -160
- 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/chatAttachmentResolveService.service.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +62 -41
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +24 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +29 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +152 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +160 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +11 -24
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +22 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/frontMatterCodec/tokens/index.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/simpleCodec/tokens/tokens.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +2 -17
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.d.ts → promptsService.d.ts} +14 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.service.d.ts → promptsService.service.d.ts} +6 -7
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.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 +73 -65
- package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.js +7 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +3 -3
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +1 -1
- 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/mcpTypes.d.ts +55 -9
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +29 -13
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +16 -6
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +119 -31
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.js +1 -1
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.service.js +6 -0
- 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/constants.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +10 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +13 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +13 -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/services/accounts/common/defaultAccount.d.ts +1 -0
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +6 -4
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +4 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.d.ts +132 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.service.d.ts +20 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.service.js +6 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.js +6 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/environment/common/environmentService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.d.ts +1 -0
- 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 +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +2 -2
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +17 -17
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +5 -1
- 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/mcp/common/mcpWorkbenchManagementService.service.d.ts +16 -0
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.js +6 -0
- 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 +1 -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 +3 -3
- 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/userDataSync/common/userDataSync.js +13 -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 +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +1 -1
- package/vscode-dts/vscode.proposed.authProviderSpecific.d.ts +30 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +10 -0
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +10 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +139 -10
- package/vscode-dts/vscode.proposed.d.ts +3 -1
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +5 -0
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +21 -4
- package/vscode-dts/vscode.proposed.languageModelDataPart.d.ts +1 -0
- package/vscode-dts/vscode.proposed.remoteCodingAgents.d.ts +8 -0
- package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +2 -0
- package/vscode-dts/vscode.proposed.textDocumentChangeReason.d.ts +30 -0
- package/workbench.d.ts +1 -1
- package/vscode/src/vs/base/browser/domImpl/domObservable.d.ts +0 -3
- package/vscode/src/vs/base/browser/domImpl/domObservable.js +0 -16
- package/vscode/src/vs/base/browser/domImpl/n.d.ts +0 -83
- package/vscode/src/vs/base/browser/domImpl/n.js +0 -283
- package/vscode/src/vs/editor/common/codecs/frontMatterCodec/tokens/index.d.ts +0 -5
- package/vscode/src/vs/editor/common/codecs/simpleCodec/tokens/index.d.ts +0 -20
- package/vscode/src/vs/editor/common/tokens/tokenArray.d.ts +0 -25
- package/vscode/src/vs/editor/common/tokens/tokenArray.js +0 -84
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.d.ts +0 -16
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.js +0 -94
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +0 -243
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +0 -426
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +0 -601
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +0 -1185
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +0 -130
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +0 -235
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/index.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfigPathsService.service.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfigPathsService.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExpService.service.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExpService.service.js +0 -6
- package/vscode-dts/vscode.proposed.inlineEdit.d.ts +0 -103
- /package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.service.js → promptsService.service.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { LineReplacement } from '../../../../../common/core/edits/lineEdit.js';
|
|
3
3
|
import { LineRange } from '../../../../../common/core/ranges/lineRange.js';
|
|
4
4
|
|
|
5
5
|
class InlineEditWithChanges {
|
|
6
6
|
get lineEdit() {
|
|
7
|
-
return
|
|
7
|
+
return LineReplacement.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]; }
|
|
@@ -2,10 +2,10 @@ 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
4
|
import { LineRange } from "../../../../../common/core/ranges/lineRange.js";
|
|
5
|
-
import { Command, InlineCompletionDisplayLocation } from "../../../../../common/languages.js";
|
|
5
|
+
import { Command, InlineCompletionCommand, InlineCompletionDisplayLocation } from "../../../../../common/languages.js";
|
|
6
6
|
import { InlineCompletionsModel } from "../../model/inlineCompletionsModel.js";
|
|
7
7
|
import { InlineCompletionItem } from "../../model/inlineSuggestionItem.js";
|
|
8
|
-
import { IInlineEditHost, IInlineEditModel, InlineEditTabAction } from "./inlineEditsViewInterface.js";
|
|
8
|
+
import { IInlineEditHost, IInlineEditModel, InlineCompletionViewData, InlineCompletionViewKind, InlineEditTabAction } from "./inlineEditsViewInterface.js";
|
|
9
9
|
import { InlineEditWithChanges } from "./inlineEditWithChanges.js";
|
|
10
10
|
export declare class InlineEditModel implements IInlineEditModel {
|
|
11
11
|
private readonly _model;
|
|
@@ -13,14 +13,15 @@ export declare class InlineEditModel implements IInlineEditModel {
|
|
|
13
13
|
readonly tabAction: IObservable<InlineEditTabAction>;
|
|
14
14
|
readonly action: Command | undefined;
|
|
15
15
|
readonly displayName: string;
|
|
16
|
-
readonly extensionCommands:
|
|
16
|
+
readonly extensionCommands: InlineCompletionCommand[];
|
|
17
|
+
readonly isInDiffEditor: boolean;
|
|
17
18
|
readonly displayLocation: InlineCompletionDisplayLocation | undefined;
|
|
18
19
|
readonly showCollapsed: IObservable<boolean>;
|
|
19
20
|
constructor(_model: InlineCompletionsModel, inlineEdit: InlineEditWithChanges, tabAction: IObservable<InlineEditTabAction>);
|
|
20
21
|
accept(): void;
|
|
21
22
|
jump(): void;
|
|
22
23
|
abort(reason: string): void;
|
|
23
|
-
handleInlineEditShown(): void;
|
|
24
|
+
handleInlineEditShown(viewKind: InlineCompletionViewKind, viewData: InlineCompletionViewData): void;
|
|
24
25
|
}
|
|
25
26
|
export declare class InlineEditHost implements IInlineEditHost {
|
|
26
27
|
private readonly _model;
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js
CHANGED
|
@@ -14,8 +14,9 @@ class InlineEditModel {
|
|
|
14
14
|
this.inlineEdit = inlineEdit;
|
|
15
15
|
this.tabAction = tabAction;
|
|
16
16
|
this.action = this.inlineEdit.inlineCompletion.action;
|
|
17
|
-
this.displayName = this.inlineEdit.inlineCompletion.source.provider.displayName ?? ( localize(
|
|
17
|
+
this.displayName = this.inlineEdit.inlineCompletion.source.provider.displayName ?? ( localize(1291, "Inline Edit"));
|
|
18
18
|
this.extensionCommands = this.inlineEdit.inlineCompletion.source.inlineSuggestions.commands ?? [];
|
|
19
|
+
this.isInDiffEditor = this._model.isInDiffEditor;
|
|
19
20
|
this.displayLocation = this.inlineEdit.inlineCompletion.displayLocation;
|
|
20
21
|
this.showCollapsed = this._model.showCollapsed;
|
|
21
22
|
}
|
|
@@ -27,10 +28,11 @@ class InlineEditModel {
|
|
|
27
28
|
}
|
|
28
29
|
abort(reason) {
|
|
29
30
|
console.error(reason);
|
|
31
|
+
this.inlineEdit.inlineCompletion.reportInlineEditError(reason);
|
|
30
32
|
this._model.stop();
|
|
31
33
|
}
|
|
32
|
-
handleInlineEditShown() {
|
|
33
|
-
this._model.handleInlineSuggestionShown(this.inlineEdit.inlineCompletion);
|
|
34
|
+
handleInlineEditShown(viewKind, viewData) {
|
|
35
|
+
this._model.handleInlineSuggestionShown(this.inlineEdit.inlineCompletion, viewKind, viewData);
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
class InlineEditHost {
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ export declare class InlineEditsView extends Disposable {
|
|
|
21
21
|
private readonly _editorObs;
|
|
22
22
|
private readonly _useCodeShifting;
|
|
23
23
|
private readonly _renderSideBySide;
|
|
24
|
-
private readonly _useMultiLineGhostText;
|
|
25
24
|
private readonly _tabAction;
|
|
26
25
|
private _previousView;
|
|
27
26
|
constructor(_editor: ICodeEditor, _host: IObservable<InlineEditHost | undefined>, _model: IObservable<InlineEditModel | undefined>, _ghostTextIndicator: IObservable<GhostTextIndicator | undefined>, _focusIsInMenu: ISettableObservable<boolean>, _instantiationService: IInstantiationService);
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js
CHANGED
|
@@ -18,7 +18,7 @@ import { RangeMapping, lineRangeMappingFromRangeMappings } from '../../../../../
|
|
|
18
18
|
import { TextModel } from '../../../../../common/model/textModel.js';
|
|
19
19
|
import { InlineEditsGutterIndicator } from './components/gutterIndicatorView.js';
|
|
20
20
|
import { InlineEditsOnboardingExperience } from './inlineEditsNewUsers.js';
|
|
21
|
-
import { InlineEditTabAction } from './inlineEditsViewInterface.js';
|
|
21
|
+
import { InlineEditTabAction, InlineCompletionViewKind } from './inlineEditsViewInterface.js';
|
|
22
22
|
import { InlineEditsCollapsedView } from './inlineEditsViews/inlineEditsCollapsedView.js';
|
|
23
23
|
import { InlineEditsCustomView } from './inlineEditsViews/inlineEditsCustomView.js';
|
|
24
24
|
import { InlineEditsDeletionView } from './inlineEditsViews/inlineEditsDeletionView.js';
|
|
@@ -52,7 +52,6 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
52
52
|
if (!model || !this._constructorDone.read(reader)) {
|
|
53
53
|
return undefined;
|
|
54
54
|
}
|
|
55
|
-
model.handleInlineEditShown();
|
|
56
55
|
const inlineEdit = model.inlineEdit;
|
|
57
56
|
let mappings = RangeMapping.fromEdit(inlineEdit.edit);
|
|
58
57
|
let newText = inlineEdit.edit.apply(inlineEdit.originalText);
|
|
@@ -62,7 +61,7 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
62
61
|
model.abort(`unable to determine view: tried to render ${this._previousView?.view}`);
|
|
63
62
|
return undefined;
|
|
64
63
|
}
|
|
65
|
-
if (state.kind ===
|
|
64
|
+
if (state.kind === InlineCompletionViewKind.SideBySide) {
|
|
66
65
|
const indentationAdjustmentEdit = createReindentEdit(newText, inlineEdit.modifiedLineRange);
|
|
67
66
|
newText = indentationAdjustmentEdit.applyToString(newText);
|
|
68
67
|
mappings = applyEditToModifiedRangeMappings(mappings, indentationAdjustmentEdit);
|
|
@@ -74,14 +73,16 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
74
73
|
this._previewTextModel.setValue(newText);
|
|
75
74
|
}
|
|
76
75
|
if (model.showCollapsed.read(reader) && !this._indicator.read(reader)?.isHoverVisible.read(reader)) {
|
|
77
|
-
state = { kind:
|
|
76
|
+
state = { kind: InlineCompletionViewKind.Collapsed, viewData: state.viewData };
|
|
78
77
|
}
|
|
78
|
+
model.handleInlineEditShown(state.kind, state.viewData);
|
|
79
79
|
return {
|
|
80
80
|
state,
|
|
81
81
|
diff,
|
|
82
82
|
edit: inlineEdit,
|
|
83
83
|
newText,
|
|
84
84
|
newTextLineCount: inlineEdit.modifiedLineRange.length,
|
|
85
|
+
isInDiffEditor: model.isInDiffEditor,
|
|
85
86
|
};
|
|
86
87
|
});
|
|
87
88
|
this._previewTextModel = this._register(this._instantiationService.createInstance(TextModel, '', this._editor.getModel().getLanguageId(), { ...TextModel.DEFAULT_CREATION_OPTIONS, bracketPairColorizationOptions: { enabled: true, independentColorPoolPerBracketType: false } }, null));
|
|
@@ -143,24 +144,29 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
143
144
|
}
|
|
144
145
|
return 0;
|
|
145
146
|
});
|
|
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 ===
|
|
147
|
+
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 === InlineCompletionViewKind.SideBySide ? ({
|
|
147
148
|
newTextLineCount: s.newTextLineCount,
|
|
149
|
+
isInDiffEditor: s.isInDiffEditor,
|
|
148
150
|
}) : undefined)), this._tabAction));
|
|
149
|
-
this._deletion = this._register(this._instantiationService.createInstance(InlineEditsDeletionView, this._editor, ( this._model.map(m => m?.inlineEdit)), ( this._uiState.map(s => s && s.state?.kind ===
|
|
151
|
+
this._deletion = this._register(this._instantiationService.createInstance(InlineEditsDeletionView, this._editor, ( this._model.map(m => m?.inlineEdit)), ( this._uiState.map(s => s && s.state?.kind === InlineCompletionViewKind.Deletion ? ({
|
|
150
152
|
originalRange: s.state.originalRange,
|
|
151
153
|
deletions: s.state.deletions,
|
|
154
|
+
inDiffEditor: s.isInDiffEditor,
|
|
152
155
|
}) : undefined)), this._tabAction));
|
|
153
|
-
this._insertion = this._register(this._instantiationService.createInstance(InlineEditsInsertionView, this._editor, ( this._uiState.map(
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
this._insertion = this._register(this._instantiationService.createInstance(InlineEditsInsertionView, this._editor, ( this._uiState.map(
|
|
157
|
+
s => s && s.state?.kind === InlineCompletionViewKind.InsertionMultiLine ? ({
|
|
158
|
+
lineNumber: s.state.lineNumber,
|
|
159
|
+
startColumn: s.state.column,
|
|
160
|
+
text: s.state.text,
|
|
161
|
+
inDiffEditor: s.isInDiffEditor,
|
|
162
|
+
}) : undefined
|
|
163
|
+
)), this._tabAction));
|
|
158
164
|
this._inlineDiffViewState = derived(this, reader => {
|
|
159
165
|
const e = this._uiState.read(reader);
|
|
160
166
|
if (!e || !e.state) {
|
|
161
167
|
return undefined;
|
|
162
168
|
}
|
|
163
|
-
if (e.state.kind === 'wordReplacements' || e.state.kind === '
|
|
169
|
+
if (e.state.kind === 'wordReplacements' || e.state.kind === 'insertionMultiLine' || e.state.kind === 'collapsed' || e.state.kind === 'custom') {
|
|
164
170
|
return undefined;
|
|
165
171
|
}
|
|
166
172
|
return {
|
|
@@ -168,6 +174,7 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
168
174
|
diff: e.diff,
|
|
169
175
|
mode: e.state.kind,
|
|
170
176
|
modifiedCodeEditor: this._sideBySide.previewEditor,
|
|
177
|
+
isInDiffEditor: e.isInDiffEditor,
|
|
171
178
|
};
|
|
172
179
|
});
|
|
173
180
|
this._inlineCollapsedView = this._register(this._instantiationService.createInstance(InlineEditsCollapsedView, this._editor, ( this._model.map(
|
|
@@ -180,15 +187,14 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
180
187
|
this._wordReplacementViews = mapObservableArrayCached(this, ( this._uiState.map(s => s?.state?.kind === 'wordReplacements' ? s.state.replacements : [])), (e, store) => {
|
|
181
188
|
return store.add(this._instantiationService.createInstance(InlineEditsWordReplacementView, this._editorObs, e, this._tabAction));
|
|
182
189
|
});
|
|
183
|
-
this._lineReplacementView = this._register(this._instantiationService.createInstance(InlineEditsLineReplacementView, this._editorObs, ( this._uiState.map(s => s?.state?.kind ===
|
|
190
|
+
this._lineReplacementView = this._register(this._instantiationService.createInstance(InlineEditsLineReplacementView, this._editorObs, ( this._uiState.map(s => s?.state?.kind === InlineCompletionViewKind.LineReplacement ? ({
|
|
184
191
|
originalRange: s.state.originalRange,
|
|
185
192
|
modifiedRange: s.state.modifiedRange,
|
|
186
193
|
modifiedLines: s.state.modifiedLines,
|
|
187
194
|
replacements: s.state.replacements,
|
|
188
|
-
}) : undefined)), this._tabAction));
|
|
195
|
+
}) : undefined)), ( this._uiState.map(s => s?.isInDiffEditor ?? false)), this._tabAction));
|
|
189
196
|
this._useCodeShifting = ( this._editorObs.getOption(EditorOption.inlineSuggest).map(s => s.edits.allowCodeShifting));
|
|
190
197
|
this._renderSideBySide = ( this._editorObs.getOption(EditorOption.inlineSuggest).map(s => s.edits.renderSideBySide));
|
|
191
|
-
this._useMultiLineGhostText = ( this._editorObs.getOption(EditorOption.inlineSuggest).map(s => s.edits.useMultiLineGhostText));
|
|
192
198
|
this._register(autorunWithStore((reader, store) => {
|
|
193
199
|
const model = this._model.read(reader);
|
|
194
200
|
if (!model) {
|
|
@@ -214,103 +220,132 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
214
220
|
const inlineEdit = model.inlineEdit;
|
|
215
221
|
const canUseCache = this._previousView?.id === this.getCacheId(model);
|
|
216
222
|
const reconsiderViewEditorWidthChange = this._previousView?.editorWidth !== this._editorObs.layoutInfoWidth.read(reader) &&
|
|
217
|
-
(this._previousView?.view ===
|
|
218
|
-
this._previousView?.view ===
|
|
223
|
+
(this._previousView?.view === InlineCompletionViewKind.SideBySide ||
|
|
224
|
+
this._previousView?.view === InlineCompletionViewKind.LineReplacement);
|
|
219
225
|
if (canUseCache && !reconsiderViewEditorWidthChange) {
|
|
220
226
|
return this._previousView.view;
|
|
221
227
|
}
|
|
222
228
|
if (model.displayLocation) {
|
|
223
|
-
return
|
|
229
|
+
return InlineCompletionViewKind.Custom;
|
|
224
230
|
}
|
|
231
|
+
const numOriginalLines = inlineEdit.originalLineRange.length;
|
|
232
|
+
const numModifiedLines = inlineEdit.modifiedLineRange.length;
|
|
225
233
|
const inner = diff.flatMap(d => d.innerChanges ?? []);
|
|
226
234
|
const isSingleInnerEdit = inner.length === 1;
|
|
227
|
-
if (
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
235
|
+
if (!model.isInDiffEditor) {
|
|
236
|
+
if (isSingleInnerEdit
|
|
237
|
+
&& this._useCodeShifting.read(reader) !== 'never'
|
|
238
|
+
&& isSingleLineInsertion(diff)) {
|
|
239
|
+
if (isSingleLineInsertionAfterPosition(diff, inlineEdit.cursorPosition)) {
|
|
240
|
+
return InlineCompletionViewKind.InsertionInline;
|
|
241
|
+
}
|
|
242
|
+
return InlineCompletionViewKind.LineReplacement;
|
|
232
243
|
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
if (allInnerChangesNotTooLong && isSingleInnerEdit && numOriginalLines === 1 && numModifiedLines === 1) {
|
|
248
|
-
if (!( inner.some(m => m.originalRange.isEmpty())) ||
|
|
249
|
-
!( growEditsUntilWhitespace(( inner.map(m => ( new TextReplacement(m.originalRange, '')))), inlineEdit.originalText).some(
|
|
250
|
-
e => e.range.isEmpty() && TextLength.ofRange(e.range).columnCount < InlineEditsWordReplacementView.MAX_LENGTH
|
|
251
|
-
))) {
|
|
252
|
-
return 'wordReplacements';
|
|
244
|
+
if (isDeletion(inner, inlineEdit, newText)) {
|
|
245
|
+
return InlineCompletionViewKind.Deletion;
|
|
246
|
+
}
|
|
247
|
+
if (isSingleMultiLineInsertion(diff) && this._useCodeShifting.read(reader) === 'always') {
|
|
248
|
+
return InlineCompletionViewKind.InsertionMultiLine;
|
|
249
|
+
}
|
|
250
|
+
const allInnerChangesNotTooLong = inner.every(m => TextLength.ofRange(m.originalRange).columnCount < InlineEditsWordReplacementView.MAX_LENGTH && TextLength.ofRange(m.modifiedRange).columnCount < InlineEditsWordReplacementView.MAX_LENGTH);
|
|
251
|
+
if (allInnerChangesNotTooLong && isSingleInnerEdit && numOriginalLines === 1 && numModifiedLines === 1) {
|
|
252
|
+
if (!( inner.some(m => m.originalRange.isEmpty())) ||
|
|
253
|
+
!( growEditsUntilWhitespace(( inner.map(m => ( new TextReplacement(m.originalRange, '')))), inlineEdit.originalText).some(
|
|
254
|
+
e => e.range.isEmpty() && TextLength.ofRange(e.range).columnCount < InlineEditsWordReplacementView.MAX_LENGTH
|
|
255
|
+
))) {
|
|
256
|
+
return InlineCompletionViewKind.WordReplacements;
|
|
257
|
+
}
|
|
253
258
|
}
|
|
254
259
|
}
|
|
255
260
|
if (numOriginalLines > 0 && numModifiedLines > 0) {
|
|
256
|
-
if (numOriginalLines === 1 && numModifiedLines === 1) {
|
|
257
|
-
return
|
|
261
|
+
if (numOriginalLines === 1 && numModifiedLines === 1 && !model.isInDiffEditor ) {
|
|
262
|
+
return InlineCompletionViewKind.LineReplacement;
|
|
258
263
|
}
|
|
259
264
|
if (this._renderSideBySide.read(reader) !== 'never' && InlineEditsSideBySideView.fitsInsideViewport(this._editor, this._previewTextModel, inlineEdit, reader)) {
|
|
260
|
-
return
|
|
265
|
+
return InlineCompletionViewKind.SideBySide;
|
|
266
|
+
}
|
|
267
|
+
return InlineCompletionViewKind.LineReplacement;
|
|
268
|
+
}
|
|
269
|
+
if (model.isInDiffEditor) {
|
|
270
|
+
if (isDeletion(inner, inlineEdit, newText)) {
|
|
271
|
+
return InlineCompletionViewKind.Deletion;
|
|
272
|
+
}
|
|
273
|
+
if (isSingleMultiLineInsertion(diff) && this._useCodeShifting.read(reader) === 'always') {
|
|
274
|
+
return InlineCompletionViewKind.InsertionMultiLine;
|
|
261
275
|
}
|
|
262
|
-
return 'lineReplacement';
|
|
263
276
|
}
|
|
264
|
-
return
|
|
277
|
+
return InlineCompletionViewKind.SideBySide;
|
|
265
278
|
}
|
|
266
279
|
determineRenderState(model, reader, diff, newText) {
|
|
267
280
|
const inlineEdit = model.inlineEdit;
|
|
268
281
|
const view = this.determineView(model, reader, diff, newText);
|
|
269
282
|
this._previousView = { id: this.getCacheId(model), view, editorWidth: this._editor.getLayoutInfo().width, timestamp: Date.now() };
|
|
283
|
+
const inner = diff.flatMap(d => d.innerChanges ?? []);
|
|
284
|
+
const textModel = this._editor.getModel();
|
|
285
|
+
const stringChanges = ( inner.map(m => ({
|
|
286
|
+
originalRange: m.originalRange,
|
|
287
|
+
modifiedRange: m.modifiedRange,
|
|
288
|
+
original: textModel.getValueInRange(m.originalRange),
|
|
289
|
+
modified: newText.getValueOfRange(m.modifiedRange)
|
|
290
|
+
})));
|
|
291
|
+
const cursorPosition = inlineEdit.cursorPosition;
|
|
292
|
+
const viewData = {
|
|
293
|
+
cursorColumnDistance: inlineEdit.edit.replacements[0].range.getStartPosition().column - cursorPosition.column,
|
|
294
|
+
cursorLineDistance: inlineEdit.lineEdit.lineRange.startLineNumber - cursorPosition.lineNumber,
|
|
295
|
+
lineCountOriginal: inlineEdit.lineEdit.lineRange.length,
|
|
296
|
+
lineCountModified: inlineEdit.lineEdit.newLines.length,
|
|
297
|
+
characterCountOriginal: stringChanges.reduce((acc, r) => acc + r.original.length, 0),
|
|
298
|
+
characterCountModified: stringChanges.reduce((acc, r) => acc + r.modified.length, 0),
|
|
299
|
+
disjointReplacements: stringChanges.length,
|
|
300
|
+
sameShapeReplacements: stringChanges.length > 1 ? stringChanges.every(r => r.original === stringChanges[0].original && r.modified === stringChanges[0].modified) : undefined,
|
|
301
|
+
};
|
|
270
302
|
switch (view) {
|
|
271
|
-
case
|
|
272
|
-
case
|
|
273
|
-
case
|
|
274
|
-
case
|
|
303
|
+
case InlineCompletionViewKind.InsertionInline: return { kind: InlineCompletionViewKind.InsertionInline, viewData };
|
|
304
|
+
case InlineCompletionViewKind.SideBySide: return { kind: InlineCompletionViewKind.SideBySide, viewData };
|
|
305
|
+
case InlineCompletionViewKind.Collapsed: return { kind: InlineCompletionViewKind.Collapsed, viewData };
|
|
306
|
+
case InlineCompletionViewKind.Custom: return { kind: InlineCompletionViewKind.Custom, displayLocation: model.displayLocation, viewData };
|
|
275
307
|
}
|
|
276
|
-
|
|
277
|
-
if (view === 'deletion') {
|
|
308
|
+
if (view === InlineCompletionViewKind.Deletion) {
|
|
278
309
|
return {
|
|
279
|
-
kind:
|
|
310
|
+
kind: InlineCompletionViewKind.Deletion,
|
|
280
311
|
originalRange: inlineEdit.originalLineRange,
|
|
281
312
|
deletions: ( inner.map(m => m.originalRange)),
|
|
313
|
+
viewData,
|
|
282
314
|
};
|
|
283
315
|
}
|
|
284
|
-
if (view ===
|
|
316
|
+
if (view === InlineCompletionViewKind.InsertionMultiLine) {
|
|
285
317
|
const change = inner[0];
|
|
286
318
|
return {
|
|
287
|
-
kind:
|
|
319
|
+
kind: InlineCompletionViewKind.InsertionMultiLine,
|
|
288
320
|
lineNumber: change.originalRange.startLineNumber,
|
|
289
321
|
column: change.originalRange.startColumn,
|
|
290
322
|
text: newText.getValueOfRange(change.modifiedRange),
|
|
323
|
+
viewData,
|
|
291
324
|
};
|
|
292
325
|
}
|
|
293
|
-
const replacements = (
|
|
326
|
+
const replacements = ( stringChanges.map(m => ( new TextReplacement(m.originalRange, m.modified))));
|
|
294
327
|
if (replacements.length === 0) {
|
|
295
328
|
return undefined;
|
|
296
329
|
}
|
|
297
|
-
if (view ===
|
|
330
|
+
if (view === InlineCompletionViewKind.WordReplacements) {
|
|
298
331
|
let grownEdits = growEditsToEntireWord(replacements, inlineEdit.originalText);
|
|
299
332
|
if (( grownEdits.some(e => e.range.isEmpty()))) {
|
|
300
333
|
grownEdits = growEditsUntilWhitespace(replacements, inlineEdit.originalText);
|
|
301
334
|
}
|
|
302
335
|
return {
|
|
303
|
-
kind:
|
|
336
|
+
kind: InlineCompletionViewKind.WordReplacements,
|
|
304
337
|
replacements: grownEdits,
|
|
338
|
+
viewData,
|
|
305
339
|
};
|
|
306
340
|
}
|
|
307
|
-
if (view ===
|
|
341
|
+
if (view === InlineCompletionViewKind.LineReplacement) {
|
|
308
342
|
return {
|
|
309
|
-
kind:
|
|
343
|
+
kind: InlineCompletionViewKind.LineReplacement,
|
|
310
344
|
originalRange: inlineEdit.originalLineRange,
|
|
311
345
|
modifiedRange: inlineEdit.modifiedLineRange,
|
|
312
346
|
modifiedLines: inlineEdit.modifiedLineRange.mapToLineArray(line => newText.getLineAt(line)),
|
|
313
347
|
replacements: ( inner.map(m => ({ originalRange: m.originalRange, modifiedRange: m.modifiedRange }))),
|
|
348
|
+
viewData,
|
|
314
349
|
};
|
|
315
350
|
}
|
|
316
351
|
return undefined;
|
|
@@ -374,6 +409,12 @@ function isSingleMultiLineInsertion(diff) {
|
|
|
374
409
|
}
|
|
375
410
|
return true;
|
|
376
411
|
}
|
|
412
|
+
function isDeletion(inner, inlineEdit, newText) {
|
|
413
|
+
const innerValues = ( inner.map(
|
|
414
|
+
m => ({ original: inlineEdit.originalText.getValueOfRange(m.originalRange), modified: newText.getValueOfRange(m.modifiedRange) })
|
|
415
|
+
));
|
|
416
|
+
return innerValues.every(({ original, modified }) => modified.trim() === '' && original.length > 0 && (original.length > modified.length || original.trim() !== ''));
|
|
417
|
+
}
|
|
377
418
|
function growEditsToEntireWord(replacements, originalText) {
|
|
378
419
|
return _growEdits(replacements, originalText, (char) => /^[a-zA-Z]$/.test(char));
|
|
379
420
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IMouseEvent } from "../../../../../../base/browser/mouseEvent.js";
|
|
2
2
|
import { Event } from "../../../../../../base/common/event.js";
|
|
3
3
|
import { IObservable } from "../../../../../../base/common/observable.js";
|
|
4
|
-
import { Command, InlineCompletionDisplayLocation } from "../../../../../common/languages.js";
|
|
4
|
+
import { Command, InlineCompletionCommand, InlineCompletionDisplayLocation } from "../../../../../common/languages.js";
|
|
5
5
|
import { InlineEditWithChanges } from "./inlineEditWithChanges.js";
|
|
6
6
|
export declare enum InlineEditTabAction {
|
|
7
7
|
Jump = "jump",
|
|
@@ -19,13 +19,35 @@ export interface IInlineEditHost {
|
|
|
19
19
|
export interface IInlineEditModel {
|
|
20
20
|
displayName: string;
|
|
21
21
|
action: Command | undefined;
|
|
22
|
-
extensionCommands:
|
|
22
|
+
extensionCommands: InlineCompletionCommand[];
|
|
23
|
+
isInDiffEditor: boolean;
|
|
23
24
|
inlineEdit: InlineEditWithChanges;
|
|
24
25
|
tabAction: IObservable<InlineEditTabAction>;
|
|
25
26
|
showCollapsed: IObservable<boolean>;
|
|
26
27
|
displayLocation: InlineCompletionDisplayLocation | undefined;
|
|
27
|
-
handleInlineEditShown(): void;
|
|
28
|
+
handleInlineEditShown(viewKind: string, viewData?: InlineCompletionViewData): void;
|
|
28
29
|
accept(): void;
|
|
29
30
|
jump(): void;
|
|
30
31
|
abort(reason: string): void;
|
|
31
32
|
}
|
|
33
|
+
export declare enum InlineCompletionViewKind {
|
|
34
|
+
GhostText = "ghostText",
|
|
35
|
+
Custom = "custom",
|
|
36
|
+
SideBySide = "sideBySide",
|
|
37
|
+
Deletion = "deletion",
|
|
38
|
+
InsertionInline = "insertionInline",
|
|
39
|
+
InsertionMultiLine = "insertionMultiLine",
|
|
40
|
+
WordReplacements = "wordReplacements",
|
|
41
|
+
LineReplacement = "lineReplacement",
|
|
42
|
+
Collapsed = "collapsed"
|
|
43
|
+
}
|
|
44
|
+
export type InlineCompletionViewData = {
|
|
45
|
+
cursorColumnDistance: number;
|
|
46
|
+
cursorLineDistance: number;
|
|
47
|
+
lineCountOriginal: number;
|
|
48
|
+
lineCountModified: number;
|
|
49
|
+
characterCountOriginal: number;
|
|
50
|
+
characterCountModified: number;
|
|
51
|
+
disjointReplacements: number;
|
|
52
|
+
sameShapeReplacements?: boolean;
|
|
53
|
+
};
|
|
@@ -6,5 +6,17 @@ var InlineEditTabAction;
|
|
|
6
6
|
InlineEditTabAction["Accept"] = "accept";
|
|
7
7
|
InlineEditTabAction["Inactive"] = "inactive";
|
|
8
8
|
})(InlineEditTabAction || (InlineEditTabAction = {}));
|
|
9
|
+
var InlineCompletionViewKind;
|
|
10
|
+
(function (InlineCompletionViewKind) {
|
|
11
|
+
InlineCompletionViewKind["GhostText"] = "ghostText";
|
|
12
|
+
InlineCompletionViewKind["Custom"] = "custom";
|
|
13
|
+
InlineCompletionViewKind["SideBySide"] = "sideBySide";
|
|
14
|
+
InlineCompletionViewKind["Deletion"] = "deletion";
|
|
15
|
+
InlineCompletionViewKind["InsertionInline"] = "insertionInline";
|
|
16
|
+
InlineCompletionViewKind["InsertionMultiLine"] = "insertionMultiLine";
|
|
17
|
+
InlineCompletionViewKind["WordReplacements"] = "wordReplacements";
|
|
18
|
+
InlineCompletionViewKind["LineReplacement"] = "lineReplacement";
|
|
19
|
+
InlineCompletionViewKind["Collapsed"] = "collapsed";
|
|
20
|
+
})(InlineCompletionViewKind || (InlineCompletionViewKind = {}));
|
|
9
21
|
|
|
10
|
-
export { InlineEditTabAction };
|
|
22
|
+
export { InlineCompletionViewKind, InlineEditTabAction };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '../../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import '../../../../../../../base/browser/dom.js';
|
|
3
|
+
import { n } from '../../../../../../../base/browser/dom.js';
|
|
4
4
|
import { Emitter } from '../../../../../../../base/common/event.js';
|
|
5
5
|
import { Disposable } from '../../../../../../../base/common/lifecycle.js';
|
|
6
6
|
import '../../../../../../../base/common/observableInternal/index.js';
|
|
@@ -11,7 +11,6 @@ import { Point } from '../../../../../../common/core/2d/point.js';
|
|
|
11
11
|
import { singleTextRemoveCommonPrefix } from '../../../model/singleTextEditHelpers.js';
|
|
12
12
|
import { inlineEditIndicatorPrimaryBorder } from '../theme.js';
|
|
13
13
|
import { rectToProps, getEditorValidOverlayRect, PathBuilder } from '../utils/utils.js';
|
|
14
|
-
import { n } from '../../../../../../../base/browser/domImpl/n.js';
|
|
15
14
|
import { constObservable } from '../../../../../../../base/common/observableInternal/observables/constObservable.js';
|
|
16
15
|
import { derived } from '../../../../../../../base/common/observableInternal/observables/derived.js';
|
|
17
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '../../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { getWindow } from '../../../../../../../base/browser/dom.js';
|
|
3
|
+
import { n, getWindow } from '../../../../../../../base/browser/dom.js';
|
|
4
4
|
import { StandardMouseEvent } from '../../../../../../../base/browser/mouseEvent.js';
|
|
5
5
|
import { Emitter } from '../../../../../../../base/common/event.js';
|
|
6
6
|
import { Disposable } from '../../../../../../../base/common/lifecycle.js';
|
|
@@ -18,18 +18,16 @@ import '../../../../../../../platform/theme/common/colors/quickpickColors.js';
|
|
|
18
18
|
import '../../../../../../../platform/theme/common/colors/searchColors.js';
|
|
19
19
|
import { IThemeService } from '../../../../../../../platform/theme/common/themeService.service.js';
|
|
20
20
|
import { observableCodeEditor } from '../../../../../../browser/observableCodeEditor.js';
|
|
21
|
-
import { Rect } from '../../../../../../common/core/2d/rect.js';
|
|
22
21
|
import { renderLines, LineSource, RenderOptions } from '../../../../../../browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js';
|
|
23
22
|
import { EditorOption } from '../../../../../../common/config/editorOptions.js';
|
|
23
|
+
import { Rect } from '../../../../../../common/core/2d/rect.js';
|
|
24
24
|
import { LineRange } from '../../../../../../common/core/ranges/lineRange.js';
|
|
25
25
|
import { ILanguageService } from '../../../../../../common/languages/language.service.js';
|
|
26
|
-
import { LineTokens } from '../../../../../../common/tokens/lineTokens.js';
|
|
27
|
-
import { TokenArray } from '../../../../../../common/tokens/tokenArray.js';
|
|
26
|
+
import { TokenArray, LineTokens } from '../../../../../../common/tokens/lineTokens.js';
|
|
28
27
|
import { InlineEditTabAction } from '../inlineEditsViewInterface.js';
|
|
29
28
|
import { inlineEditIndicatorsuccessfulBackground, inlineEditIndicatorPrimaryBackground, inlineEditIndicatorSecondaryBackground, getEditorBlendedColor } from '../theme.js';
|
|
30
29
|
import { maxContentWidthInRange, rectToProps } from '../utils/utils.js';
|
|
31
30
|
import { observableValue } from '../../../../../../../base/common/observableInternal/observables/observableValue.js';
|
|
32
|
-
import { n } from '../../../../../../../base/browser/domImpl/n.js';
|
|
33
31
|
import { constObservable } from '../../../../../../../base/common/observableInternal/observables/constObservable.js';
|
|
34
32
|
import { autorun } from '../../../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
35
33
|
import { derived } from '../../../../../../../base/common/observableInternal/observables/derived.js';
|
|
@@ -121,7 +119,7 @@ let InlineEditsCustomView = class InlineEditsCustomView extends Disposable {
|
|
|
121
119
|
const endLineNumber = displayLocation.range.endLineNumber;
|
|
122
120
|
const { lineWidth, lineWidthBelow, lineWidthAbove, startContentLeftOffset, endContentLeftOffset } = contentState.read(reader);
|
|
123
121
|
const contentLeft = this._editorObs.layoutInfoContentLeft.read(reader);
|
|
124
|
-
const lineHeight = this._editorObs.
|
|
122
|
+
const lineHeight = this._editorObs.observeLineHeightForLine(startLineNumber).read(reader);
|
|
125
123
|
const scrollTop = this._editorObs.scrollTop.read(reader);
|
|
126
124
|
const scrollLeft = this._editorObs.scrollLeft.read(reader);
|
|
127
125
|
let position;
|
|
@@ -20,6 +20,7 @@ export declare class InlineEditsDeletionView extends Disposable implements IInli
|
|
|
20
20
|
constructor(_editor: ICodeEditor, _edit: IObservable<InlineEditWithChanges | undefined>, _uiState: IObservable<{
|
|
21
21
|
originalRange: LineRange;
|
|
22
22
|
deletions: Range[];
|
|
23
|
+
inDiffEditor: boolean;
|
|
23
24
|
} | undefined>, _tabAction: IObservable<InlineEditTabAction>);
|
|
24
25
|
private readonly _display;
|
|
25
26
|
private readonly _editorMaxContentWidthInRange;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import '../../../../../../../base/browser/dom.js';
|
|
2
|
+
import { n } from '../../../../../../../base/browser/dom.js';
|
|
3
3
|
import { Emitter } from '../../../../../../../base/common/event.js';
|
|
4
4
|
import { Disposable } from '../../../../../../../base/common/lifecycle.js';
|
|
5
5
|
import '../../../../../../../base/common/observableInternal/index.js';
|
|
@@ -24,12 +24,12 @@ import { maxContentWidthInRange, getPrefixTrim, mapOutFalsy } from '../utils/uti
|
|
|
24
24
|
import { derived } from '../../../../../../../base/common/observableInternal/observables/derived.js';
|
|
25
25
|
import { constObservable } from '../../../../../../../base/common/observableInternal/observables/constObservable.js';
|
|
26
26
|
import { derivedObservableWithCache } from '../../../../../../../base/common/observableInternal/utils/utils.js';
|
|
27
|
-
import { n } from '../../../../../../../base/browser/domImpl/n.js';
|
|
28
27
|
|
|
29
28
|
const HORIZONTAL_PADDING = 0;
|
|
30
29
|
const VERTICAL_PADDING = 0;
|
|
31
30
|
const BORDER_WIDTH = 1;
|
|
32
31
|
const WIDGET_SEPARATOR_WIDTH = 1;
|
|
32
|
+
const WIDGET_SEPARATOR_DIFF_EDITOR_WIDTH = 3;
|
|
33
33
|
const BORDER_RADIUS = 4;
|
|
34
34
|
class InlineEditsDeletionView extends Disposable {
|
|
35
35
|
constructor(_editor, _edit, _uiState, _tabAction) {
|
|
@@ -100,14 +100,17 @@ class InlineEditsDeletionView extends Disposable {
|
|
|
100
100
|
const overlayHider = overlayhider.read(reader);
|
|
101
101
|
return rect.intersectHorizontal(( new OffsetRange(overlayHider.left, Number.MAX_SAFE_INTEGER)));
|
|
102
102
|
});
|
|
103
|
-
const
|
|
103
|
+
const separatorWidth = ( this._uiState.map(
|
|
104
|
+
s => s?.inDiffEditor ? WIDGET_SEPARATOR_DIFF_EDITOR_WIDTH : WIDGET_SEPARATOR_WIDTH
|
|
105
|
+
)).read(reader);
|
|
106
|
+
const separatorRect = ( overlayRect.map(rect => rect.withMargin(separatorWidth, separatorWidth)));
|
|
104
107
|
return [
|
|
105
108
|
n.div({
|
|
106
109
|
class: 'originalSeparatorDeletion',
|
|
107
110
|
style: {
|
|
108
111
|
...separatorRect.read(reader).toStyles(),
|
|
109
112
|
borderRadius: `${BORDER_RADIUS}px`,
|
|
110
|
-
border: `${BORDER_WIDTH +
|
|
113
|
+
border: `${BORDER_WIDTH + separatorWidth}px solid ${asCssVariable(editorBackground)}`,
|
|
111
114
|
boxSizing: 'border-box',
|
|
112
115
|
}
|
|
113
116
|
}),
|
|
@@ -25,6 +25,7 @@ export declare class InlineEditsInsertionView extends Disposable implements IInl
|
|
|
25
25
|
lineNumber: number;
|
|
26
26
|
startColumn: number;
|
|
27
27
|
text: string;
|
|
28
|
+
inDiffEditor: boolean;
|
|
28
29
|
} | undefined>, _tabAction: IObservable<InlineEditTabAction>, instantiationService: IInstantiationService, _languageService: ILanguageService);
|
|
29
30
|
private readonly _display;
|
|
30
31
|
private readonly _editorMaxContentWidthInRange;
|