@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
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js
CHANGED
|
@@ -1,127 +1,100 @@
|
|
|
1
1
|
|
|
2
2
|
import { assertNever } from '../../../../../base/common/assert.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { AsyncIterableObject } from '../../../../../base/common/async.js';
|
|
4
|
+
import { CancellationTokenSource } from '../../../../../base/common/cancellation.js';
|
|
5
5
|
import { onUnexpectedExternalError } from '../../../../../base/common/errors.js';
|
|
6
6
|
import { Disposable } from '../../../../../base/common/lifecycle.js';
|
|
7
|
-
import { SetMap } from '../../../../../base/common/map.js';
|
|
8
7
|
import { generateUuid } from '../../../../../base/common/uuid.js';
|
|
9
8
|
import { StringReplacement } from '../../../../common/core/edits/stringEdit.js';
|
|
10
9
|
import { OffsetRange } from '../../../../common/core/ranges/offsetRange.js';
|
|
11
|
-
import { Position } from '../../../../common/core/position.js';
|
|
12
10
|
import { Range } from '../../../../common/core/range.js';
|
|
13
11
|
import { TextReplacement } from '../../../../common/core/edits/textEdit.js';
|
|
14
|
-
import {
|
|
12
|
+
import { InlineCompletionEndOfLifeReasonKind } from '../../../../common/languages.js';
|
|
15
13
|
import { fixBracketsInLine } from '../../../../common/model/bracketPairsTextModelPart/fixBrackets.js';
|
|
16
|
-
import { TextModelText } from '../../../../common/model/textModelText.js';
|
|
17
14
|
import { SnippetParser, Text } from '../../../snippet/browser/snippetParser.js';
|
|
18
15
|
import { getReadonlyEmptyArray } from '../utils.js';
|
|
16
|
+
import { groupByMap } from '../../../../../base/common/collections.js';
|
|
17
|
+
import { DirectedGraph } from './graph.js';
|
|
18
|
+
import { CachedFunction } from '../../../../../base/common/cache.js';
|
|
19
|
+
import { InlineCompletionViewKind } from '../view/inlineEdits/inlineEditsViewInterface.js';
|
|
20
|
+
import { isDefined } from '../../../../../base/common/types.js';
|
|
21
|
+
import { inlineCompletionIsVisible } from './inlineSuggestionItem.js';
|
|
19
22
|
|
|
20
|
-
|
|
21
|
-
const requestUuid = generateUuid();
|
|
22
|
-
const
|
|
23
|
-
|
|
23
|
+
function provideInlineCompletions(providers, position, model, context, requestInfo, languageConfigurationService) {
|
|
24
|
+
const requestUuid = 'icr-' + generateUuid();
|
|
25
|
+
const cancellationTokenSource = ( new CancellationTokenSource());
|
|
26
|
+
let cancelReason = undefined;
|
|
24
27
|
const contextWithUuid = { ...context, requestUuid: requestUuid };
|
|
25
|
-
const defaultReplaceRange =
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
const defaultReplaceRange = getDefaultRange(position, model);
|
|
29
|
+
const providersByGroupId = groupByMap(providers, p => p.groupId);
|
|
30
|
+
const yieldsToGraph = DirectedGraph.from(providers, p => {
|
|
31
|
+
return p.yieldsToGroupIds?.flatMap(groupId => providersByGroupId.get(groupId) ?? []) ?? [];
|
|
32
|
+
});
|
|
33
|
+
const { foundCycles } = yieldsToGraph.removeCycles();
|
|
34
|
+
if (foundCycles.length > 0) {
|
|
35
|
+
onUnexpectedExternalError(( new Error(`Inline completions: cyclic yield-to dependency detected.`
|
|
36
|
+
+ ` Path: ${( foundCycles.map(s => s.toString ? ( s.toString()) : ('' + s))).join(' -> ')}`)));
|
|
31
37
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return [];
|
|
35
|
-
}
|
|
36
|
-
const result = [];
|
|
37
|
-
for (const groupId of provider.yieldsToGroupIds || []) {
|
|
38
|
-
const providers = multiMap.get(groupId);
|
|
39
|
-
for (const p of providers) {
|
|
40
|
-
result.push(p);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return result;
|
|
44
|
-
}
|
|
45
|
-
function findPreferredProviderCircle(provider, stack, seen) {
|
|
46
|
-
stack = [...stack, provider];
|
|
47
|
-
if (( seen.has(provider))) {
|
|
48
|
-
return stack;
|
|
49
|
-
}
|
|
50
|
-
seen.add(provider);
|
|
38
|
+
let runningCount = 0;
|
|
39
|
+
const queryProvider = ( new CachedFunction(async (provider) => {
|
|
51
40
|
try {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
if (c) {
|
|
56
|
-
return c;
|
|
57
|
-
}
|
|
41
|
+
runningCount++;
|
|
42
|
+
if (cancellationTokenSource.token.isCancellationRequested) {
|
|
43
|
+
return undefined;
|
|
58
44
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
if (circle) {
|
|
72
|
-
onUnexpectedExternalError(( new Error(`Inline completions: cyclic yield-to dependency detected.`
|
|
73
|
-
+ ` Path: ${( circle.map(s => s.toString ? ( s.toString()) : ('' + s))).join(' -> ')}`)));
|
|
74
|
-
}
|
|
75
|
-
const deferredPromise = ( new DeferredPromise());
|
|
76
|
-
states.set(provider, deferredPromise.p);
|
|
77
|
-
(async () => {
|
|
78
|
-
if (!circle) {
|
|
79
|
-
const preferred = getPreferredProviders(provider);
|
|
80
|
-
for (const p of preferred) {
|
|
81
|
-
const result = await queryProviderOrPreferredProvider(p, states);
|
|
82
|
-
if (result && result.inlineSuggestions.items.length > 0) {
|
|
83
|
-
return undefined;
|
|
45
|
+
const yieldsTo = yieldsToGraph.getOutgoing(provider);
|
|
46
|
+
for (const p of yieldsTo) {
|
|
47
|
+
const result = await queryProvider.get(p);
|
|
48
|
+
if (result) {
|
|
49
|
+
for (const item of result.inlineSuggestions.items) {
|
|
50
|
+
if (item.isInlineEdit || typeof item.insertText !== 'string') {
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
const t = ( new TextReplacement(Range.lift(item.range) ?? defaultReplaceRange, item.insertText));
|
|
54
|
+
if (inlineCompletionIsVisible(t, undefined, model, position)) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
84
57
|
}
|
|
85
58
|
}
|
|
86
59
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
async function query(provider) {
|
|
92
|
-
let result;
|
|
93
|
-
try {
|
|
94
|
-
if (positionOrRange instanceof Position) {
|
|
95
|
-
result = await provider.provideInlineCompletions(model, positionOrRange, contextWithUuid, token);
|
|
60
|
+
let result;
|
|
61
|
+
try {
|
|
62
|
+
result = await provider.provideInlineCompletions(model, position, contextWithUuid, cancellationTokenSource.token);
|
|
96
63
|
}
|
|
97
|
-
|
|
98
|
-
|
|
64
|
+
catch (e) {
|
|
65
|
+
onUnexpectedExternalError(e);
|
|
66
|
+
return undefined;
|
|
99
67
|
}
|
|
68
|
+
if (!result) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
const data = [];
|
|
72
|
+
const list = ( new InlineSuggestionList(result, data, provider));
|
|
73
|
+
list.addRef();
|
|
74
|
+
runWhenCancelled(cancellationTokenSource.token, () => {
|
|
75
|
+
return list.removeRef(cancelReason);
|
|
76
|
+
});
|
|
77
|
+
for (const item of result.items) {
|
|
78
|
+
data.push(toInlineSuggestData(item, list, defaultReplaceRange, model, languageConfigurationService, contextWithUuid, requestInfo));
|
|
79
|
+
}
|
|
80
|
+
return list;
|
|
100
81
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
return undefined;
|
|
104
|
-
}
|
|
105
|
-
if (!result) {
|
|
106
|
-
return undefined;
|
|
82
|
+
finally {
|
|
83
|
+
runningCount--;
|
|
107
84
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
85
|
+
}));
|
|
86
|
+
const inlineCompletionLists = AsyncIterableObject.fromPromisesResolveOrder(( providers.map(p => queryProvider.get(p)))).filter(isDefined);
|
|
87
|
+
return {
|
|
88
|
+
get didAllProvidersReturn() { return runningCount === 0; },
|
|
89
|
+
lists: inlineCompletionLists,
|
|
90
|
+
cancelAndDispose: reason => {
|
|
91
|
+
if (cancelReason !== undefined) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
cancelReason = reason;
|
|
95
|
+
cancellationTokenSource.dispose(true);
|
|
112
96
|
}
|
|
113
|
-
|
|
114
|
-
return list;
|
|
115
|
-
}
|
|
116
|
-
const states = ( new Map());
|
|
117
|
-
const inlineCompletionLists = AsyncIterableObject.fromPromisesResolveOrder(( providers.map(p => queryProviderOrPreferredProvider(p, states))));
|
|
118
|
-
if (token.isCancellationRequested) {
|
|
119
|
-
tokenSource.dispose(true);
|
|
120
|
-
return ( new InlineCompletionProviderResult([], ( new Set()), []));
|
|
121
|
-
}
|
|
122
|
-
const result = await addRefAndCreateResult(contextWithUuid, inlineCompletionLists, model);
|
|
123
|
-
tokenSource.dispose(true);
|
|
124
|
-
return result;
|
|
97
|
+
};
|
|
125
98
|
}
|
|
126
99
|
function runWhenCancelled(token, callback) {
|
|
127
100
|
if (token.isCancellationRequested) {
|
|
@@ -136,61 +109,7 @@ function runWhenCancelled(token, callback) {
|
|
|
136
109
|
return { dispose: () => listener.dispose() };
|
|
137
110
|
}
|
|
138
111
|
}
|
|
139
|
-
|
|
140
|
-
const itemsByHash = ( new Map());
|
|
141
|
-
let shouldStop = false;
|
|
142
|
-
const lists = [];
|
|
143
|
-
for await (const completions of inlineCompletionLists) {
|
|
144
|
-
if (!completions) {
|
|
145
|
-
continue;
|
|
146
|
-
}
|
|
147
|
-
completions.addRef();
|
|
148
|
-
lists.push(completions);
|
|
149
|
-
for (const item of completions.inlineSuggestionsData) {
|
|
150
|
-
if (!context.includeInlineEdits && (item.isInlineEdit || item.showInlineEditMenu)) {
|
|
151
|
-
continue;
|
|
152
|
-
}
|
|
153
|
-
if (!context.includeInlineCompletions && !(item.isInlineEdit || item.showInlineEditMenu)) {
|
|
154
|
-
continue;
|
|
155
|
-
}
|
|
156
|
-
itemsByHash.set(createHashFromSingleTextEdit(item.getSingleTextEdit()), item);
|
|
157
|
-
if (!(item.isInlineEdit || item.showInlineEditMenu) && context.triggerKind === InlineCompletionTriggerKind.Automatic) {
|
|
158
|
-
const minifiedEdit = item.getSingleTextEdit().removeCommonPrefix(( new TextModelText(model)));
|
|
159
|
-
if (!minifiedEdit.isEmpty) {
|
|
160
|
-
shouldStop = true;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
if (shouldStop) {
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
return ( new InlineCompletionProviderResult(Array.from(( itemsByHash.values())), ( new Set(( itemsByHash.keys()))), lists));
|
|
169
|
-
}
|
|
170
|
-
class InlineCompletionProviderResult {
|
|
171
|
-
constructor(
|
|
172
|
-
completions, hashs, providerResults) {
|
|
173
|
-
this.completions = completions;
|
|
174
|
-
this.hashs = hashs;
|
|
175
|
-
this.providerResults = providerResults;
|
|
176
|
-
}
|
|
177
|
-
has(edit) {
|
|
178
|
-
return ( this.hashs.has(createHashFromSingleTextEdit(edit)));
|
|
179
|
-
}
|
|
180
|
-
isEmpty() {
|
|
181
|
-
return this.completions.length === 0
|
|
182
|
-
|| this.completions.every(c => c.range.isEmpty() && c.insertText.length === 0);
|
|
183
|
-
}
|
|
184
|
-
dispose() {
|
|
185
|
-
for (const result of this.providerResults) {
|
|
186
|
-
result.removeRef();
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
function createHashFromSingleTextEdit(edit) {
|
|
191
|
-
return JSON.stringify([edit.text, ( edit.range.getStartPosition().toString())]);
|
|
192
|
-
}
|
|
193
|
-
function createInlineCompletionItem(inlineCompletion, source, defaultReplaceRange, textModel, languageConfigurationService, context) {
|
|
112
|
+
function toInlineSuggestData(inlineCompletion, source, defaultReplaceRange, textModel, languageConfigurationService, context, requestInfo) {
|
|
194
113
|
let insertText;
|
|
195
114
|
let snippetInfo;
|
|
196
115
|
let range = inlineCompletion.range ? Range.lift(inlineCompletion.range) : defaultReplaceRange;
|
|
@@ -253,11 +172,12 @@ function createInlineCompletionItem(inlineCompletion, source, defaultReplaceRang
|
|
|
253
172
|
inlineCompletion,
|
|
254
173
|
source,
|
|
255
174
|
context,
|
|
256
|
-
inlineCompletion.isInlineEdit ?? false
|
|
175
|
+
inlineCompletion.isInlineEdit ?? false,
|
|
176
|
+
requestInfo
|
|
257
177
|
));
|
|
258
178
|
}
|
|
259
179
|
class InlineSuggestData {
|
|
260
|
-
constructor(range, insertText, snippetInfo, displayLocation, additionalTextEdits, sourceInlineCompletion, source, context, isInlineEdit) {
|
|
180
|
+
constructor(range, insertText, snippetInfo, displayLocation, additionalTextEdits, sourceInlineCompletion, source, context, isInlineEdit, _requestInfo) {
|
|
261
181
|
this.range = range;
|
|
262
182
|
this.insertText = insertText;
|
|
263
183
|
this.snippetInfo = snippetInfo;
|
|
@@ -267,25 +187,38 @@ class InlineSuggestData {
|
|
|
267
187
|
this.source = source;
|
|
268
188
|
this.context = context;
|
|
269
189
|
this.isInlineEdit = isInlineEdit;
|
|
190
|
+
this._requestInfo = _requestInfo;
|
|
270
191
|
this._didShow = false;
|
|
192
|
+
this._timeUntilShown = undefined;
|
|
193
|
+
this._showStartTime = undefined;
|
|
194
|
+
this._shownDuration = 0;
|
|
195
|
+
this._showUncollapsedStartTime = undefined;
|
|
196
|
+
this._showUncollapsedDuration = 0;
|
|
271
197
|
this._didReportEndOfLife = false;
|
|
272
198
|
this._lastSetEndOfLifeReason = undefined;
|
|
199
|
+
this._partiallyAcceptedCount = 0;
|
|
200
|
+
this._viewData = { editorType: _requestInfo.editorType };
|
|
273
201
|
}
|
|
274
202
|
get showInlineEditMenu() { return this.sourceInlineCompletion.showInlineEditMenu ?? false; }
|
|
275
203
|
getSingleTextEdit() {
|
|
276
204
|
return ( new TextReplacement(this.range, this.insertText));
|
|
277
205
|
}
|
|
278
|
-
async reportInlineEditShown(commandService, updatedInsertText) {
|
|
206
|
+
async reportInlineEditShown(commandService, updatedInsertText, viewKind, viewData) {
|
|
207
|
+
this.updateShownDuration(viewKind);
|
|
279
208
|
if (this._didShow) {
|
|
280
209
|
return;
|
|
281
210
|
}
|
|
282
211
|
this._didShow = true;
|
|
212
|
+
this._viewData.viewKind = viewKind;
|
|
213
|
+
this._viewData.renderData = viewData;
|
|
214
|
+
this._timeUntilShown = Date.now() - this._requestInfo.startTime;
|
|
283
215
|
this.source.provider.handleItemDidShow?.(this.source.inlineSuggestions, this.sourceInlineCompletion, updatedInsertText);
|
|
284
216
|
if (this.sourceInlineCompletion.shownCommand) {
|
|
285
217
|
await commandService.executeCommand(this.sourceInlineCompletion.shownCommand.id, ...(this.sourceInlineCompletion.shownCommand.arguments || []));
|
|
286
218
|
}
|
|
287
219
|
}
|
|
288
220
|
reportPartialAccept(acceptedCharacters, info) {
|
|
221
|
+
this._partiallyAcceptedCount++;
|
|
289
222
|
this.source.provider.handlePartialAccept?.(this.source.inlineSuggestions, this.sourceInlineCompletion, acceptedCharacters, info);
|
|
290
223
|
}
|
|
291
224
|
reportEndOfLife(reason) {
|
|
@@ -293,6 +226,7 @@ class InlineSuggestData {
|
|
|
293
226
|
return;
|
|
294
227
|
}
|
|
295
228
|
this._didReportEndOfLife = true;
|
|
229
|
+
this.reportInlineEditHidden();
|
|
296
230
|
if (!reason) {
|
|
297
231
|
reason = this._lastSetEndOfLifeReason ?? { kind: InlineCompletionEndOfLifeReasonKind.Ignored, userTypingDisagreed: false, supersededBy: undefined };
|
|
298
232
|
}
|
|
@@ -300,30 +234,84 @@ class InlineSuggestData {
|
|
|
300
234
|
this.source.provider.handleRejection(this.source.inlineSuggestions, this.sourceInlineCompletion);
|
|
301
235
|
}
|
|
302
236
|
if (this.source.provider.handleEndOfLifetime) {
|
|
303
|
-
|
|
237
|
+
const summary = {
|
|
238
|
+
requestUuid: this.context.requestUuid,
|
|
239
|
+
partiallyAccepted: this._partiallyAcceptedCount,
|
|
240
|
+
shown: this._didShow,
|
|
241
|
+
shownDuration: this._shownDuration,
|
|
242
|
+
shownDurationUncollapsed: this._showUncollapsedDuration,
|
|
243
|
+
timeUntilShown: this._timeUntilShown,
|
|
244
|
+
editorType: this._viewData.editorType,
|
|
245
|
+
languageId: this._requestInfo.languageId,
|
|
246
|
+
requestReason: this._requestInfo.reason,
|
|
247
|
+
viewKind: this._viewData.viewKind,
|
|
248
|
+
error: this._viewData.error,
|
|
249
|
+
...this._viewData.renderData,
|
|
250
|
+
};
|
|
251
|
+
this.source.provider.handleEndOfLifetime(this.source.inlineSuggestions, this.sourceInlineCompletion, reason, summary);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
reportInlineEditError(message) {
|
|
255
|
+
if (this._viewData.error) {
|
|
256
|
+
this._viewData.error += `; ${message}`;
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
this._viewData.error = message;
|
|
304
260
|
}
|
|
305
261
|
}
|
|
306
262
|
setEndOfLifeReason(reason) {
|
|
263
|
+
this.reportInlineEditHidden();
|
|
307
264
|
this._lastSetEndOfLifeReason = reason;
|
|
308
265
|
}
|
|
266
|
+
updateShownDuration(viewKind) {
|
|
267
|
+
const timeNow = Date.now();
|
|
268
|
+
if (!this._showStartTime) {
|
|
269
|
+
this._showStartTime = timeNow;
|
|
270
|
+
}
|
|
271
|
+
const isCollapsed = viewKind === InlineCompletionViewKind.Collapsed;
|
|
272
|
+
if (!isCollapsed && this._showUncollapsedStartTime === undefined) {
|
|
273
|
+
this._showUncollapsedStartTime = timeNow;
|
|
274
|
+
}
|
|
275
|
+
if (isCollapsed && this._showUncollapsedStartTime !== undefined) {
|
|
276
|
+
this._showUncollapsedDuration += timeNow - this._showUncollapsedStartTime;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
reportInlineEditHidden() {
|
|
280
|
+
if (this._showStartTime === undefined) {
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
const timeNow = Date.now();
|
|
284
|
+
this._shownDuration += timeNow - this._showStartTime;
|
|
285
|
+
this._showStartTime = undefined;
|
|
286
|
+
if (this._showUncollapsedStartTime === undefined) {
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
this._showUncollapsedDuration += timeNow - this._showUncollapsedStartTime;
|
|
290
|
+
this._showUncollapsedStartTime = undefined;
|
|
291
|
+
}
|
|
309
292
|
}
|
|
293
|
+
var InlineCompletionEditorType;
|
|
294
|
+
(function (InlineCompletionEditorType) {
|
|
295
|
+
InlineCompletionEditorType["TextEditor"] = "textEditor";
|
|
296
|
+
InlineCompletionEditorType["DiffEditor"] = "diffEditor";
|
|
297
|
+
})(InlineCompletionEditorType || (InlineCompletionEditorType = {}));
|
|
310
298
|
class InlineSuggestionList {
|
|
311
299
|
constructor(inlineSuggestions, inlineSuggestionsData, provider) {
|
|
312
300
|
this.inlineSuggestions = inlineSuggestions;
|
|
313
301
|
this.inlineSuggestionsData = inlineSuggestionsData;
|
|
314
302
|
this.provider = provider;
|
|
315
|
-
this.refCount =
|
|
303
|
+
this.refCount = 0;
|
|
316
304
|
}
|
|
317
305
|
addRef() {
|
|
318
306
|
this.refCount++;
|
|
319
307
|
}
|
|
320
|
-
removeRef() {
|
|
308
|
+
removeRef(reason = { kind: 'other' }) {
|
|
321
309
|
this.refCount--;
|
|
322
310
|
if (this.refCount === 0) {
|
|
323
311
|
for (const item of this.inlineSuggestionsData) {
|
|
324
312
|
item.reportEndOfLife();
|
|
325
313
|
}
|
|
326
|
-
this.provider.
|
|
314
|
+
this.provider.disposeInlineCompletions(this.inlineSuggestions, reason);
|
|
327
315
|
}
|
|
328
316
|
}
|
|
329
317
|
}
|
|
@@ -346,4 +334,4 @@ function closeBrackets(text, position, model, languageConfigurationService) {
|
|
|
346
334
|
return fixedText;
|
|
347
335
|
}
|
|
348
336
|
|
|
349
|
-
export {
|
|
337
|
+
export { InlineCompletionEditorType, InlineSuggestData, InlineSuggestionList, provideInlineCompletions, runWhenCancelled };
|
|
@@ -16,7 +16,6 @@ export type LogEntryData = IEventFetchEnd;
|
|
|
16
16
|
export interface IDocumentEventDataSetChangeReason {
|
|
17
17
|
sourceId: "TextModel.setChangeReason";
|
|
18
18
|
source: "inlineSuggestion.accept" | "snippet" | string;
|
|
19
|
-
detailedSource?: string;
|
|
20
19
|
}
|
|
21
20
|
interface IDocumentEventFetchStart {
|
|
22
21
|
sourceId: "InlineCompletions.fetch";
|
|
@@ -3,10 +3,11 @@ import { Permutation, compareBy } from '../../../../base/common/arrays.js';
|
|
|
3
3
|
import '../../../../base/common/observableInternal/index.js';
|
|
4
4
|
import { bindContextKey } from '../../../../platform/observable/common/platformObservableUtils.js';
|
|
5
5
|
import { Position } from '../../../common/core/position.js';
|
|
6
|
-
import
|
|
6
|
+
import '../../../common/core/text/positionToOffset.js';
|
|
7
7
|
import { Range } from '../../../common/core/range.js';
|
|
8
8
|
import { TextEdit } from '../../../common/core/edits/textEdit.js';
|
|
9
9
|
import { getPositionOffsetTransformerFromTextModel } from '../../../common/core/text/getPositionOffsetTransformerFromTextModel.js';
|
|
10
|
+
import { PositionOffsetTransformer } from '../../../common/core/text/positionToOffsetImpl.js';
|
|
10
11
|
import { observableValue } from '../../../../base/common/observableInternal/observables/observableValue.js';
|
|
11
12
|
import { autorun } from '../../../../base/common/observableInternal/reactions/autorun.js';
|
|
12
13
|
import { transaction } from '../../../../base/common/observableInternal/transaction.js';
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { LineTokens } from "../../../../../common/tokens/lineTokens.js";
|
|
|
10
10
|
import { LineDecoration } from "../../../../../common/viewLayout/lineDecorations.js";
|
|
11
11
|
import { GhostText, GhostTextReplacement } from "../../model/ghostText.js";
|
|
12
12
|
import { IMouseEvent } from "../../../../../../base/browser/mouseEvent.js";
|
|
13
|
+
import { InlineCompletionViewData } from "../inlineEdits/inlineEditsViewInterface.js";
|
|
13
14
|
export interface IGhostTextWidgetModel {
|
|
14
15
|
readonly targetTextModel: IObservable<ITextModel | undefined>;
|
|
15
16
|
readonly ghostText: IObservable<GhostText | GhostTextReplacement | undefined>;
|
|
@@ -17,6 +18,7 @@ export interface IGhostTextWidgetModel {
|
|
|
17
18
|
icon: IconPath | undefined;
|
|
18
19
|
} | undefined>;
|
|
19
20
|
readonly minReservedLineCount: IObservable<number>;
|
|
21
|
+
readonly handleInlineCompletionShown: IObservable<(viewData: InlineCompletionViewData) => void>;
|
|
20
22
|
}
|
|
21
23
|
export declare class GhostTextView extends Disposable {
|
|
22
24
|
private readonly _editor;
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js
CHANGED
|
@@ -112,6 +112,18 @@ let GhostTextView = class GhostTextView extends Disposable {
|
|
|
112
112
|
decorations: l.decorations,
|
|
113
113
|
};
|
|
114
114
|
}));
|
|
115
|
+
const cursorColumn = this._editor.getSelection()?.getStartPosition().column;
|
|
116
|
+
const renderData = {
|
|
117
|
+
cursorColumnDistance: cursorColumn !== undefined ? Math.abs((inlineTextsWithTokens.length > 0 ? inlineTextsWithTokens[0].column : 1) - cursorColumn) : -1,
|
|
118
|
+
cursorLineDistance: inlineTextsWithTokens.length > 0 ? 0 : additionalLines.findIndex(line => line.content !== ''),
|
|
119
|
+
lineCountOriginal: inlineTextsWithTokens.length > 0 ? 1 : 0,
|
|
120
|
+
lineCountModified: additionalLines.length + (inlineTextsWithTokens.length > 0 ? 1 : 0),
|
|
121
|
+
characterCountOriginal: 0,
|
|
122
|
+
characterCountModified: inlineTextsWithTokens.reduce((acc, inline) => acc + inline.text.length, 0) + tokenizedAdditionalLines.reduce((acc, line) => acc + line.content.getTextLength(), 0),
|
|
123
|
+
disjointReplacements: inlineTextsWithTokens.length + (additionalLines.length > 0 ? 1 : 0),
|
|
124
|
+
sameShapeReplacements: inlineTextsWithTokens.length > 1 && inlineTextsWithTokens.length === 0 ? inlineTextsWithTokens.every(inline => inline.text.length === inlineTextsWithTokens[0].text.length) : undefined,
|
|
125
|
+
};
|
|
126
|
+
this._model.handleInlineCompletionShown.read(reader)?.(renderData);
|
|
115
127
|
return {
|
|
116
128
|
replacedRange,
|
|
117
129
|
inlineTexts: inlineTextsWithTokens,
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import '../../../../../base/browser/
|
|
3
|
+
import { createStyleSheetFromObservable } from '../../../../../base/browser/domStylesheets.js';
|
|
4
4
|
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';
|
|
@@ -9,8 +9,8 @@ import { EditorOption } from '../../../../common/config/editorOptions.js';
|
|
|
9
9
|
import { InlineCompletionsHintsWidget } from '../hintsWidget/inlineCompletionsHintsWidget.js';
|
|
10
10
|
import { convertItemsToStableObservables } from '../utils.js';
|
|
11
11
|
import { GhostTextView } from './ghostText/ghostTextView.js';
|
|
12
|
+
import { InlineCompletionViewKind } from './inlineEdits/inlineEditsViewInterface.js';
|
|
12
13
|
import { InlineEditsViewAndDiffProducer } from './inlineEdits/inlineEditsViewProducer.js';
|
|
13
|
-
import { createStyleSheetFromObservable } from '../../../../../base/browser/domImpl/domObservable.js';
|
|
14
14
|
import { derived, derivedDisposable } from '../../../../../base/common/observableInternal/observables/derived.js';
|
|
15
15
|
import { mapObservableArrayCached, derivedObservableWithCache } from '../../../../../base/common/observableInternal/utils/utils.js';
|
|
16
16
|
import { constObservable } from '../../../../../base/common/observableInternal/observables/constObservable.js';
|
|
@@ -36,6 +36,13 @@ let InlineCompletionsView = class InlineCompletionsView extends Disposable {
|
|
|
36
36
|
})),
|
|
37
37
|
minReservedLineCount: constObservable(0),
|
|
38
38
|
targetTextModel: ( this._model.map(v => v?.textModel)),
|
|
39
|
+
handleInlineCompletionShown: ( this._model.map((model, reader) => {
|
|
40
|
+
const inlineCompletion = model?.inlineCompletionState.read(reader)?.inlineCompletion;
|
|
41
|
+
if (inlineCompletion) {
|
|
42
|
+
return (viewData) => model.handleInlineSuggestionShown(inlineCompletion, InlineCompletionViewKind.GhostText, viewData);
|
|
43
|
+
}
|
|
44
|
+
return () => { };
|
|
45
|
+
})),
|
|
39
46
|
}, ( this._editorObs.getOption(EditorOption.inlineSuggest).map(v => ({ syntaxHighlightingEnabled: v.syntaxHighlightingEnabled }))), false, false)).recomputeInitiallyAndOnChange(store)).recomputeInitiallyAndOnChange(this._store);
|
|
40
47
|
this._inlineEdit = derived(this, reader => this._model.read(reader)?.inlineEditState.read(reader)?.inlineEdit);
|
|
41
48
|
this._everHadInlineEdit = derivedObservableWithCache(this, (reader, last) => last || !!this._inlineEdit.read(reader) || !!this._model.read(reader)?.inlineCompletionState.read(reader)?.inlineCompletion?.showInlineEditMenu);
|
|
@@ -49,9 +56,6 @@ let InlineCompletionsView = class InlineCompletionsView extends Disposable {
|
|
|
49
56
|
this._fontFamily = ( this._editorObs.getOption(EditorOption.inlineSuggest).map(val => val.fontFamily));
|
|
50
57
|
this._register(createStyleSheetFromObservable(derived(reader => {
|
|
51
58
|
const fontFamily = this._fontFamily.read(reader);
|
|
52
|
-
if (fontFamily === '' || fontFamily === 'default') {
|
|
53
|
-
return '';
|
|
54
|
-
}
|
|
55
59
|
return `
|
|
56
60
|
.monaco-editor .ghost-text-decoration,
|
|
57
61
|
.monaco-editor .ghost-text-decoration-preview,
|
|
@@ -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 { ActionBar } from '../../../../../../../base/browser/ui/actionbar/actionbar.js';
|
|
5
5
|
import { renderIcon } from '../../../../../../../base/browser/ui/iconLabel/iconLabels.js';
|
|
6
6
|
import { KeybindingLabel } from '../../../../../../../base/browser/ui/keybindingLabel/keybindingLabel.js';
|
|
@@ -31,7 +31,6 @@ import { observableValue } from '../../../../../../../base/common/observableInte
|
|
|
31
31
|
import { constObservable } from '../../../../../../../base/common/observableInternal/observables/constObservable.js';
|
|
32
32
|
import { observableFromEvent } from '../../../../../../../base/common/observableInternal/observables/observableFromEvent.js';
|
|
33
33
|
import { derived } from '../../../../../../../base/common/observableInternal/observables/derived.js';
|
|
34
|
-
import { n } from '../../../../../../../base/browser/domImpl/n.js';
|
|
35
34
|
import { autorun } from '../../../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
36
35
|
|
|
37
36
|
let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
|
|
@@ -65,35 +64,39 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
|
|
|
65
64
|
const title = header(this._model.displayName);
|
|
66
65
|
const gotoAndAccept = option(createOptionArgs({
|
|
67
66
|
id: 'gotoAndAccept',
|
|
68
|
-
title: `${( localize(
|
|
67
|
+
title: `${( localize(1285, "Go To"))} / ${( localize(1286, "Accept"))}`,
|
|
69
68
|
icon: Codicon.check,
|
|
70
69
|
commandId: inlineSuggestCommitId
|
|
71
70
|
}));
|
|
72
71
|
const reject = option(createOptionArgs({
|
|
73
72
|
id: 'reject',
|
|
74
|
-
title: ( localize(
|
|
73
|
+
title: ( localize(1287, "Reject")),
|
|
75
74
|
icon: Codicon.close,
|
|
76
75
|
commandId: hideInlineCompletionId
|
|
77
76
|
}));
|
|
78
|
-
const extensionCommands = ( this._model.extensionCommands.map(
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
const extensionCommands = ( this._model.extensionCommands.map((c, idx) => option(createOptionArgs({
|
|
78
|
+
id: c.command.id + '_' + idx,
|
|
79
|
+
title: c.command.title,
|
|
80
|
+
icon: c.icon ?? Codicon.symbolEvent,
|
|
81
|
+
commandId: c.command.id,
|
|
82
|
+
commandArgs: c.command.arguments
|
|
83
|
+
}))));
|
|
81
84
|
const toggleCollapsedMode = ( this._inlineEditsShowCollapsed.map(showCollapsed => showCollapsed ?
|
|
82
85
|
option(createOptionArgs({
|
|
83
86
|
id: 'showExpanded',
|
|
84
|
-
title: ( localize(
|
|
87
|
+
title: ( localize(1288, "Show Expanded")),
|
|
85
88
|
icon: Codicon.expandAll,
|
|
86
89
|
commandId: toggleShowCollapsedId
|
|
87
90
|
}))
|
|
88
91
|
: option(createOptionArgs({
|
|
89
92
|
id: 'showCollapsed',
|
|
90
|
-
title: ( localize(
|
|
93
|
+
title: ( localize(1289, "Show Collapsed")),
|
|
91
94
|
icon: Codicon.collapseAll,
|
|
92
95
|
commandId: toggleShowCollapsedId
|
|
93
96
|
}))));
|
|
94
97
|
const settings = option(createOptionArgs({
|
|
95
98
|
id: 'settings',
|
|
96
|
-
title: ( localize(
|
|
99
|
+
title: ( localize(1290, "Settings")),
|
|
97
100
|
icon: Codicon.gear,
|
|
98
101
|
commandId: 'workbench.action.openSettings',
|
|
99
102
|
commandArgs: ['@tag:nextEditSuggestions']
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '../../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { trackFocus } from '../../../../../../../base/browser/dom.js';
|
|
3
|
+
import { n, trackFocus } from '../../../../../../../base/browser/dom.js';
|
|
4
4
|
import { renderIcon } from '../../../../../../../base/browser/ui/iconLabel/iconLabels.js';
|
|
5
5
|
import { Codicon } from '../../../../../../../base/common/codicons.js';
|
|
6
6
|
import { BugIndicatingError } from '../../../../../../../base/common/errors.js';
|
|
@@ -25,7 +25,6 @@ import { derived } from '../../../../../../../base/common/observableInternal/obs
|
|
|
25
25
|
import { observableValue } from '../../../../../../../base/common/observableInternal/observables/observableValue.js';
|
|
26
26
|
import { observableFromEvent } from '../../../../../../../base/common/observableInternal/observables/observableFromEvent.js';
|
|
27
27
|
import { constObservable } from '../../../../../../../base/common/observableInternal/observables/constObservable.js';
|
|
28
|
-
import { n } from '../../../../../../../base/browser/domImpl/n.js';
|
|
29
28
|
import { runOnChange } from '../../../../../../../base/common/observableInternal/utils/runOnChange.js';
|
|
30
29
|
import { autorun } from '../../../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
31
30
|
|
|
@@ -173,7 +172,7 @@ let InlineEditsGutterIndicator = class InlineEditsGutterIndicator extends Dispos
|
|
|
173
172
|
return undefined;
|
|
174
173
|
}
|
|
175
174
|
const layout = this._editorObs.layoutInfo.read(reader);
|
|
176
|
-
const lineHeight = this._editorObs.
|
|
175
|
+
const lineHeight = this._editorObs.observeLineHeightForLine(( s.range.map(r => r.startLineNumber))).read(reader);
|
|
177
176
|
const gutterViewPortPadding = 1;
|
|
178
177
|
const gutterWidthWithoutPadding = layout.decorationsLeft + layout.decorationsWidth - layout.glyphMarginLeft - 2 * gutterViewPortPadding;
|
|
179
178
|
const gutterHeightWithoutPadding = layout.height - 2 * gutterViewPortPadding;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LineReplacement } from "../../../../../common/core/edits/lineEdit.js";
|
|
2
2
|
import { LineRange } from "../../../../../common/core/ranges/lineRange.js";
|
|
3
3
|
import { Position } from "../../../../../common/core/position.js";
|
|
4
4
|
import { TextEdit } from "../../../../../common/core/edits/textEdit.js";
|
|
5
5
|
import { AbstractText } from "../../../../../common/core/text/abstractText.js";
|
|
6
|
-
import {
|
|
6
|
+
import { InlineCompletionCommand } from "../../../../../common/languages.js";
|
|
7
7
|
import { InlineSuggestionItem } from "../../model/inlineSuggestionItem.js";
|
|
8
8
|
export declare class InlineEditWithChanges {
|
|
9
9
|
readonly originalText: AbstractText;
|
|
10
10
|
readonly edit: TextEdit;
|
|
11
11
|
readonly cursorPosition: Position;
|
|
12
|
-
readonly commands: readonly
|
|
12
|
+
readonly commands: readonly InlineCompletionCommand[];
|
|
13
13
|
readonly inlineCompletion: InlineSuggestionItem;
|
|
14
|
-
get lineEdit():
|
|
14
|
+
get lineEdit(): LineReplacement;
|
|
15
15
|
get originalLineRange(): LineRange;
|
|
16
16
|
get modifiedLineRange(): LineRange;
|
|
17
17
|
get displayRange(): LineRange;
|
|
18
|
-
constructor(originalText: AbstractText, edit: TextEdit, cursorPosition: Position, commands: readonly
|
|
18
|
+
constructor(originalText: AbstractText, edit: TextEdit, cursorPosition: Position, commands: readonly InlineCompletionCommand[], inlineCompletion: InlineSuggestionItem);
|
|
19
19
|
equals(other: InlineEditWithChanges): boolean;
|
|
20
20
|
}
|