@codingame/monaco-vscode-api 22.1.9 → 23.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/extensions.d.ts +1 -1
- package/extensions.js +4 -3
- package/external/vscode-semver/semver.js +43 -43
- package/missing-services.js +170 -43
- package/package.json +10 -10
- package/services.d.ts +4 -4
- package/services.js +3 -4
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/browser.d.ts +7 -0
- package/vscode/src/vs/base/browser/browser.js +5 -2
- package/vscode/src/vs/base/browser/dom.d.ts +16 -9
- package/vscode/src/vs/base/browser/dom.js +37 -6
- package/vscode/src/vs/base/browser/domSanitize.d.ts +1 -1
- package/vscode/src/vs/base/browser/domSanitize.js +29 -21
- package/vscode/src/vs/base/browser/formattedTextRenderer.js +2 -2
- package/vscode/src/vs/base/browser/history.d.ts +2 -2
- package/vscode/src/vs/base/browser/keyboardEvent.d.ts +6 -0
- package/vscode/src/vs/base/browser/keyboardEvent.js +4 -1
- package/vscode/src/vs/base/browser/markdownRenderer.d.ts +5 -4
- package/vscode/src/vs/base/browser/markdownRenderer.js +49 -2
- package/vscode/src/vs/base/browser/trustedTypes.d.ts +3 -1
- package/vscode/src/vs/base/browser/trustedTypes.js +2 -1
- package/vscode/src/vs/base/browser/ui/button/button.js +2 -8
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/countBadge/countBadge.css +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.d.ts +2 -0
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +4 -5
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +3 -4
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.d.ts +2 -0
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +2 -2
- package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.d.ts +1 -6
- package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.js +6 -7
- package/vscode/src/vs/base/browser/ui/hover/hover.d.ts +14 -0
- package/vscode/src/vs/base/browser/ui/hover/hover.js +6 -1
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.d.ts +4 -1
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +20 -13
- package/vscode/src/vs/base/browser/ui/iconLabel/iconlabel.css +7 -3
- package/vscode/src/vs/base/browser/ui/list/listPaging.d.ts +3 -2
- package/vscode/src/vs/base/browser/ui/list/listPaging.js +5 -1
- package/vscode/src/vs/base/browser/ui/list/listView.d.ts +2 -1
- package/vscode/src/vs/base/browser/ui/list/listView.js +4 -3
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +5 -5
- package/vscode/src/vs/base/browser/ui/progressbar/progressAccessibilitySignal.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/progressbar/progressAccessibilitySignal.js +3 -3
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.js +2 -2
- package/vscode/src/vs/base/browser/ui/sash/sash.css +1 -1
- package/vscode/src/vs/base/browser/ui/scrollbar/media/scrollbars.css +4 -0
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +1 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +6 -3
- package/vscode/src/vs/base/browser/ui/table/table.css +2 -2
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +7 -7
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +12 -9
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.css +7 -0
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +10 -0
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +91 -13
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.d.ts +12 -12
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +11 -10
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +6 -4
- package/vscode/src/vs/base/browser/ui/tree/dataTree.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/media/tree.css +2 -2
- package/vscode/src/vs/base/browser/ui/tree/objectTree.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/tree/tree.d.ts +1 -1
- package/vscode/src/vs/base/browser/webWorkerFactory.js +2 -1
- package/vscode/src/vs/base/common/actions.d.ts +5 -0
- package/vscode/src/vs/base/common/arrays.d.ts +2 -0
- package/vscode/src/vs/base/common/arrays.js +11 -1
- package/vscode/src/vs/base/common/arraysFind.d.ts +6 -3
- package/vscode/src/vs/base/common/arraysFind.js +18 -2
- package/vscode/src/vs/base/common/async.d.ts +13 -3
- package/vscode/src/vs/base/common/async.js +15 -7
- package/vscode/src/vs/base/common/cache.d.ts +11 -0
- package/vscode/src/vs/base/common/codicons.d.ts +26 -4
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +26 -4
- package/vscode/src/vs/base/common/codiconsLibrary.js +26 -4
- package/vscode/src/vs/base/common/collections.d.ts +1 -1
- package/vscode/src/vs/base/common/decorators/cancelPreviousCalls.d.ts +1 -1
- package/vscode/src/vs/base/common/extpath.js +4 -4
- package/vscode/src/vs/base/common/glob.d.ts +7 -3
- package/vscode/src/vs/base/common/glob.js +40 -32
- package/vscode/src/vs/base/common/history.d.ts +2 -2
- package/vscode/src/vs/base/common/htmlContent.d.ts +4 -0
- package/vscode/src/vs/base/common/htmlContent.js +5 -1
- package/vscode/src/vs/base/common/jsonSchema.d.ts +45 -17
- package/vscode/src/vs/base/common/lifecycle.d.ts +18 -3
- package/vscode/src/vs/base/common/lifecycle.js +3 -1
- package/vscode/src/vs/base/common/network.d.ts +6 -2
- package/vscode/src/vs/base/common/network.js +2 -1
- package/vscode/src/vs/base/common/oauth.d.ts +128 -3
- package/vscode/src/vs/base/common/oauth.js +83 -18
- package/vscode/src/vs/base/common/observableInternal/observables/derived.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/observables/derived.js +3 -1
- package/vscode/src/vs/base/common/observableInternal/utils/promise.d.ts +1 -0
- package/vscode/src/vs/base/common/observableInternal/utils/promise.js +3 -0
- package/vscode/src/vs/base/common/platform.d.ts +1 -0
- package/vscode/src/vs/base/common/policy.d.ts +33 -2
- package/vscode/src/vs/base/common/policy.js +13 -0
- package/vscode/src/vs/base/common/product.d.ts +2 -0
- package/vscode/src/vs/base/common/strings.d.ts +2 -0
- package/vscode/src/vs/base/common/strings.js +9 -7
- package/vscode/src/vs/base/common/themables.d.ts +8 -0
- package/vscode/src/vs/base/common/themables.js +8 -0
- package/vscode/src/vs/base/common/types.d.ts +37 -0
- package/vscode/src/vs/base/common/types.js +14 -3
- package/vscode/src/vs/base/common/validation.d.ts +62 -0
- package/vscode/src/vs/base/common/validation.js +182 -0
- package/vscode/src/vs/base/common/worker/webWorker.d.ts +15 -14
- package/vscode/src/vs/base/common/worker/webWorker.js +28 -14
- package/vscode/src/vs/base/parts/storage/common/storage.js +1 -1
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +2 -2
- package/vscode/src/vs/editor/browser/config/migrateOptions.d.ts +5 -5
- package/vscode/src/vs/editor/browser/config/migrateOptions.js +1 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +5 -2
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +19 -12
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContextUtils.d.ts +1 -1
- package/vscode/src/vs/editor/browser/controller/mouseHandler.js +2 -1
- package/vscode/src/vs/editor/browser/controller/mouseTarget.js +1 -1
- package/vscode/src/vs/editor/browser/coreCommands.js +4 -2
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +17 -9
- package/vscode/src/vs/editor/browser/editorExtensions.d.ts +17 -15
- package/vscode/src/vs/editor/browser/editorExtensions.js +5 -0
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.d.ts +7 -7
- package/vscode/src/vs/editor/browser/services/bulkEditService.d.ts +2 -2
- package/vscode/src/vs/editor/browser/services/codeEditorService.service.d.ts +5 -5
- package/vscode/src/vs/editor/browser/services/editorWorkerService.d.ts +2 -2
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +12 -12
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.d.ts +1 -1
- package/vscode/src/vs/editor/browser/triggerInlineEditCommandsRegistry.d.ts +8 -0
- package/vscode/src/vs/editor/browser/triggerInlineEditCommandsRegistry.js +13 -0
- package/vscode/src/vs/editor/browser/view/viewLayer.js +1 -1
- package/vscode/src/vs/editor/browser/view.d.ts +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.d.ts +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.js +1 -0
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorContributions.d.ts +2 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +6 -7
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +6 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.d.ts +1 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +18 -18
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/copySelection.d.ts +18 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/copySelection.js +44 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +4 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.d.ts +4 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +24 -27
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.d.ts +21 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +75 -10
- package/vscode/src/vs/editor/browser/widget/diffEditor/delegatingEditorImpl.d.ts +2 -2
- 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.d.ts +2 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +13 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +8 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +4 -4
- 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/browser/widget/diffEditor/style.css +11 -0
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/editorMarkdownCodeBlockRenderer.d.ts +14 -0
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/editorMarkdownCodeBlockRenderer.js +68 -0
- package/vscode/src/vs/editor/common/config/editorConfiguration.d.ts +2 -2
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +54 -54
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +15 -25
- package/vscode/src/vs/editor/common/config/editorOptions.js +530 -473
- package/vscode/src/vs/editor/common/config/editorZoom.d.ts +1 -1
- package/vscode/src/vs/editor/common/config/fontInfo.d.ts +31 -17
- package/vscode/src/vs/editor/common/config/fontInfo.js +16 -25
- package/vscode/src/vs/editor/common/config/fontInfoFromSettings.d.ts +11 -0
- package/vscode/src/vs/editor/common/config/fontInfoFromSettings.js +26 -0
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/position.d.ts +1 -1
- package/vscode/src/vs/editor/common/core/position.js +1 -1
- package/vscode/src/vs/editor/common/core/range.d.ts +1 -1
- package/vscode/src/vs/editor/common/core/range.js +1 -1
- package/vscode/src/vs/editor/common/core/selection.d.ts +1 -1
- package/vscode/src/vs/editor/common/core/selection.js +1 -1
- package/vscode/src/vs/editor/common/core/text/abstractText.d.ts +3 -2
- package/vscode/src/vs/editor/common/core/text/abstractText.js +4 -1
- package/vscode/src/vs/editor/common/cursor/cursorMoveCommands.d.ts +2 -0
- package/vscode/src/vs/editor/common/cursor/cursorMoveCommands.js +10 -1
- package/vscode/src/vs/editor/common/cursor/cursorWordOperations.js +8 -0
- package/vscode/src/vs/editor/common/editorCommon.d.ts +5 -5
- package/vscode/src/vs/editor/common/editorCommon.js +1 -1
- package/vscode/src/vs/editor/common/editorContextKeys.d.ts +1 -0
- package/vscode/src/vs/editor/common/editorContextKeys.js +47 -46
- package/vscode/src/vs/editor/common/languages/language.service.d.ts +3 -3
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.service.d.ts +1 -1
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages/textToHtmlTokenizer.js +22 -11
- package/vscode/src/vs/editor/common/languages.d.ts +38 -33
- package/vscode/src/vs/editor/common/languages.js +74 -64
- package/vscode/src/vs/editor/common/model/decorationProvider.d.ts +1 -1
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/model/textModel.d.ts +2 -2
- package/vscode/src/vs/editor/common/model/textModel.js +4 -3
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/tokenStore.d.ts +2 -2
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/tokenStore.js +1 -1
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterSyntaxTokenBackend.js +1 -1
- package/vscode/src/vs/editor/common/model.d.ts +2 -2
- package/vscode/src/vs/editor/common/model.js +1 -1
- package/vscode/src/vs/editor/common/services/editorWebWorker.d.ts +3 -3
- package/vscode/src/vs/editor/common/services/editorWebWorker.js +1 -0
- package/vscode/src/vs/editor/common/services/editorWorkerHost.d.ts +2 -2
- package/vscode/src/vs/editor/common/services/markerDecorations.service.d.ts +1 -1
- package/vscode/src/vs/editor/common/services/modelService.d.ts +5 -5
- package/vscode/src/vs/editor/common/services/modelService.js +16 -23
- package/vscode/src/vs/editor/common/services/textModelSync/textModelSync.impl.d.ts +1 -1
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.service.d.ts +1 -1
- package/vscode/src/vs/editor/common/services/treeSitter/treeSitterLibraryService.service.d.ts +38 -7
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +4 -4
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +6 -6
- package/vscode/src/vs/editor/common/standaloneStrings.js +48 -48
- package/vscode/src/vs/editor/common/textModelBracketPairs.d.ts +1 -1
- package/vscode/src/vs/editor/common/textModelEditSource.d.ts +3 -1
- package/vscode/src/vs/editor/common/textModelEditSource.js +3 -2
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +3 -0
- package/vscode/src/vs/editor/common/tokens/sparseTokensStore.js +6 -1
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.d.ts +24 -0
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +39 -3
- package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +25 -13
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +2 -1
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +8 -7
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.d.ts +42 -3
- 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 +4 -4
- 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 +4 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerContribution.js +3 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +17 -13
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +13 -13
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +7 -5
- 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.d.ts +2 -8
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +69 -76
- package/vscode/src/vs/editor/contrib/find/browser/findOptionsWidget.js +4 -5
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.css +5 -5
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +41 -38
- package/vscode/src/vs/editor/contrib/folding/browser/folding.css +4 -4
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.d.ts +1 -1
- 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/format.js +7 -0
- 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 +2 -2
- 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.css +2 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +34 -11
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +7 -3
- package/vscode/src/vs/editor/contrib/hover/browser/glyphHoverWidget.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/glyphHoverWidget.js +26 -12
- package/vscode/src/vs/editor/contrib/hover/browser/hover.css +37 -0
- 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/hoverCopyButton.d.ts +15 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverCopyButton.js +40 -0
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.d.ts +4 -6
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +27 -33
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +29 -27
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +29 -16
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.d.ts +2 -3
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +18 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.d.ts +5 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +64 -53
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +17 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.d.ts +3 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +11 -15
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +2 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +4 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +36 -32
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +5 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +18 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +43 -28
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +5 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +17 -21
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/telemetry.d.ts +0 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.d.ts +1 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +2 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +12 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.d.ts +4 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +5 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.d.ts +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +3 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +40 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +1 -1
- 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.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +9 -6
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.d.ts +5 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.d.ts +8 -2
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +104 -69
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.d.ts +2 -2
- 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 +2 -2
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.d.ts +12 -4
- 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.d.ts +3 -4
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +12 -13
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +13 -12
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +8 -10
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens.js +33 -1
- package/vscode/src/vs/editor/contrib/semanticTokens/common/getSemanticTokens.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +7 -6
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetParser.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +11 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestAlternatives.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestCommitCharacters.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -24
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.d.ts +5 -6
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +16 -19
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.css +2 -0
- 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 +7 -6
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.d.ts +3 -5
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +29 -32
- 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.d.ts +5 -5
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +11 -11
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.d.ts +4 -3
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +10 -5
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +5 -4
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +2 -2
- package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterLibraryService.d.ts +3 -11
- package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterLibraryService.js +8 -2
- package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +2 -2
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +3 -3
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
- package/vscode/src/vs/platform/action/common/action.d.ts +1 -1
- package/vscode/src/vs/platform/action/common/action.js +1 -1
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +1 -1
- 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/actionViewItemService.service.d.ts +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.d.ts +4 -2
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +29 -18
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +29 -9
- package/vscode/src/vs/platform/actions/common/actions.js +7 -3
- 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/commands/common/commands.d.ts +8 -10
- package/vscode/src/vs/platform/commands/common/commands.service.d.ts +3 -3
- package/vscode/src/vs/platform/configuration/common/configuration.service.d.ts +2 -1
- package/vscode/src/vs/platform/configuration/common/configurationModels.d.ts +1 -0
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +1 -0
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +8 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +28 -14
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.d.ts +2 -3
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +12 -15
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkey.service.d.ts +1 -1
- 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/dataChannel/browser/forwardingTelemetryService.js +1 -1
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +3 -3
- package/vscode/src/vs/platform/dnd/browser/dnd.js +2 -2
- package/vscode/src/vs/platform/environment/common/argv.d.ts +1 -0
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +31 -23
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +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 +27 -7
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +31 -11
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/browser/webFileSystemAccess.d.ts +8 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/{editor/browser/services/hoverService → platform/hover/browser}/hover.css +33 -31
- package/vscode/src/vs/{editor/browser/services/hoverService → platform/hover/browser}/hoverService.d.ts +10 -10
- package/vscode/src/vs/{editor/browser/services/hoverService → platform/hover/browser}/hoverService.js +47 -40
- package/vscode/src/vs/{editor/browser/services/hoverService → platform/hover/browser}/hoverWidget.d.ts +10 -12
- package/vscode/src/vs/{editor/browser/services/hoverService → platform/hover/browser}/hoverWidget.js +44 -37
- package/vscode/src/vs/{editor/browser/services/hoverService → platform/hover/browser}/updatableHoverWidget.d.ts +3 -3
- package/vscode/src/vs/{editor/browser/services/hoverService → platform/hover/browser}/updatableHoverWidget.js +8 -8
- package/vscode/src/vs/platform/instantiation/common/descriptors.d.ts +2 -2
- package/vscode/src/vs/platform/instantiation/common/instantiation.d.ts +8 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/keybinding/common/keybinding.service.d.ts +1 -1
- package/vscode/src/vs/platform/keybinding/common/keybindingsRegistry.d.ts +3 -3
- package/vscode/src/vs/platform/label/common/label.service.d.ts +1 -1
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.js +29 -29
- package/vscode/src/vs/platform/log/common/log.d.ts +42 -42
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/log/common/logService.d.ts +5 -5
- package/vscode/src/vs/platform/markdown/browser/markdownRenderer.d.ts +32 -0
- package/vscode/src/vs/platform/markdown/browser/markdownRenderer.js +61 -0
- package/vscode/src/vs/platform/markdown/browser/markdownRenderer.service.d.ts +17 -0
- package/vscode/src/vs/platform/markdown/browser/markdownRenderer.service.js +6 -0
- package/vscode/src/vs/platform/markers/common/markerService.js +2 -2
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.d.ts +4 -3
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.js +3 -2
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +7 -6
- package/vscode/src/vs/platform/notification/common/notification.js +3 -3
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +7 -4
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +34 -19
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +6 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +15 -8
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.d.ts +4 -4
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTree.d.ts +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTree.js +9 -9
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.d.ts +2 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.d.ts +5 -2
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.js +14 -25
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeSorter.d.ts +9 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeSorter.js +43 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.d.ts +7 -2
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +14 -3
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +40 -11
- package/vscode/src/vs/platform/quickinput/common/quickInput.js +1 -0
- package/vscode/src/vs/platform/request/common/request.js +34 -19
- package/vscode/src/vs/platform/secrets/common/secrets.service.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +33 -17
- package/vscode/src/vs/platform/terminal/common/terminal.js +2 -1
- package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +2 -1
- package/vscode/src/vs/platform/terminal/common/terminalProcess.d.ts +1 -0
- 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 +18 -18
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -95
- 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.d.ts +1 -0
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +16 -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/tunnel/common/tunnel.d.ts +3 -2
- package/vscode/src/vs/platform/tunnel/common/tunnel.js +5 -1
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/webContentExtractor/common/webContentExtractor.d.ts +18 -1
- package/vscode/src/vs/platform/webContentExtractor/common/webContentExtractor.service.d.ts +2 -1
- package/vscode/src/vs/platform/window/common/window.d.ts +1 -1
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/platform/workspace/common/workspaceTrust.service.d.ts +2 -2
- package/vscode/src/vs/workbench/api/browser/statusBarService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +37 -15
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +127 -62
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +25 -6
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +6 -6
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +29 -6
- package/vscode/src/vs/workbench/api/common/extHostChatContext.d.ts +22 -0
- package/vscode/src/vs/workbench/api/common/extHostChatContext.js +99 -0
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +26 -10
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +120 -47
- package/vscode/src/vs/workbench/api/common/extHostCommands.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDebugService.d.ts +6 -6
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +4 -3
- package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +21 -13
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +7 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +45 -5
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +9 -4
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +136 -79
- package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +3 -3
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostProfileContentHandler.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostQuickOpen.js +50 -60
- package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +3 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +52 -3
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTask.d.ts +6 -6
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +12 -8
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.d.ts +3 -3
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +12 -5
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +26 -13
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +31 -11
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +153 -36
- package/vscode/src/vs/workbench/api/common/extHostTypes/diagnostic.d.ts +8 -2
- package/vscode/src/vs/workbench/api/common/extHostTypes/location.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTypes/markdownString.d.ts +3 -1
- package/vscode/src/vs/workbench/api/common/extHostTypes/markdownString.js +10 -1
- package/vscode/src/vs/workbench/api/common/extHostTypes/notebooks.d.ts +13 -13
- package/vscode/src/vs/workbench/api/common/extHostTypes/position.d.ts +5 -2
- package/vscode/src/vs/workbench/api/common/extHostTypes/range.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypes/range.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTypes/selection.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTypes/selection.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTypes/snippetString.d.ts +3 -3
- package/vscode/src/vs/workbench/api/common/extHostTypes/snippetString.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTypes/snippetTextEdit.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTypes/symbolInformation.d.ts +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTypes/textEdit.d.ts +6 -2
- package/vscode/src/vs/workbench/api/common/extHostTypes/textEdit.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTypes/workspaceEdit.d.ts +4 -1
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +54 -38
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +32 -21
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +11 -2
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +35 -35
- package/vscode/src/vs/workbench/browser/actions/media/actions.css +4 -4
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/codeeditor.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/web.api.d.ts +5 -5
- package/vscode/src/vs/workbench/common/configuration.d.ts +3 -2
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -73
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +2 -2
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.js +7 -7
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.d.ts +7 -8
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +165 -161
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextService.service.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +9 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatActions.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatActions.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +70 -50
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +30 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +7 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +112 -40
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +143 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +27 -28
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +50 -11
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +43 -12
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.service.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatUri.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatUri.js +51 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +29 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +19 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.service.d.ts +3 -2
- 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 +14 -8
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +33 -9
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsConfirmationService.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsConfirmationService.service.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsConfirmationService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +26 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +39 -10
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +10 -6
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +45 -9
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +37 -16
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +43 -7
- package/vscode/src/vs/workbench/contrib/chat/common/tools/confirmationTool.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +34 -30
- package/vscode/src/vs/workbench/contrib/chat/common/tools/runSubagentTool.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/runSubagentTool.js +203 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/toolHelpers.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/toolHelpers.js +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.js +3 -0
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- 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 +37 -33
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
- package/vscode/src/vs/workbench/contrib/debug/common/debug.service.d.ts +9 -9
- package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.js +16 -2
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/randomService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/randomService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.d.ts +38 -4
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.d.ts +2 -2
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +8 -9
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveDocumentService.service.d.ts +2 -2
- 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 +42 -8
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +18 -7
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +7 -4
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookLoggingService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookRendererMessagingService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/scm/common/artifact.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/common/scm.d.ts +171 -0
- package/vscode/src/vs/workbench/contrib/scm/common/scm.js +35 -0
- package/vscode/src/vs/workbench/contrib/scm/common/scm.service.d.ts +13 -3
- package/vscode/src/vs/workbench/contrib/search/common/searchHistoryService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.d.ts +7 -6
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +43 -44
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +69 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalExtensionPoints.service.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service.d.ts +1 -1
- 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/testing/common/testingContinuousRunService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testingDecorations.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/timeline/common/timeline.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/timeline/common/timeline.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainService.service.d.ts +1 -1
- 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 +3 -8
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.d.ts +6 -0
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +137 -34
- package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.d.ts +36 -0
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.d.ts +2 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationMcpService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/chat/common/chatContext.d.ts +19 -0
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.d.ts +2 -1
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +35 -19
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +2 -2
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +5 -4
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +5 -4
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +5 -5
- package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +6 -6
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +87 -87
- 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/inlineCompletions/common/inlineCompletionsUnification.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.service.d.ts +1 -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/outline/browser/outline.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/output/common/output.service.d.ts +3 -2
- 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/remoteExplorerService.service.d.ts +4 -4
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +7 -7
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.d.ts +9 -0
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +4 -4
- package/vscode/src/vs/workbench/services/textfile/common/encoding.js +1 -1
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.service.d.ts +3 -3
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
- 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/workingCopyHistory.service.d.ts +6 -6
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceIdentityService.service.d.ts +1 -1
- package/vscode-dts/vscode.d.ts +88 -18
- package/vscode-dts/vscode.proposed.chatContextProvider.d.ts +58 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +27 -4
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +24 -2
- package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +103 -21
- package/vscode-dts/{vscode.proposed.idToken.d.ts → vscode.proposed.contribSourceControlArtifactGroupMenu.d.ts} +2 -11
- package/vscode-dts/{vscode.proposed.contribSecondarySidebar.d.ts → vscode.proposed.contribSourceControlArtifactMenu.d.ts} +2 -1
- package/vscode-dts/vscode.proposed.d.ts +10 -3
- package/vscode-dts/vscode.proposed.dataChannels.d.ts +1 -1
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +32 -21
- package/vscode-dts/vscode.proposed.languageModelProxy.d.ts +31 -0
- package/vscode-dts/vscode.proposed.languageModelThinkingPart.d.ts +62 -0
- package/vscode-dts/vscode.proposed.markdownAlertSyntax.d.ts +29 -0
- package/vscode-dts/vscode.proposed.mcpToolDefinitions.d.ts +89 -0
- package/vscode-dts/vscode.proposed.notebookKernelSource.d.ts +1 -1
- package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +1 -1
- package/vscode-dts/vscode.proposed.quickInputButtonLocation.d.ts +14 -1
- package/vscode-dts/vscode.proposed.quickPickItemResource.d.ts +21 -0
- package/vscode-dts/vscode.proposed.quickPickPrompt.d.ts +25 -0
- package/vscode-dts/vscode.proposed.resolvers.d.ts +4 -4
- package/vscode-dts/vscode.proposed.scmArtifactProvider.d.ts +32 -0
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +3 -2
- package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +142 -63
- package/vscode-dts/vscode.proposed.textSearchProvider2.d.ts +3 -3
- package/vscode-dts/vscode.proposed.timeline.d.ts +1 -1
- package/vscode-dts/vscode.proposed.treeItemMarkdownLabel.d.ts +23 -0
- package/vscode-dts/vscode.proposed.tunnels.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.d.ts +0 -29
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +0 -97
- package/vscode/src/vs/workbench/contrib/contextmenu/browser/contextmenu.contribution.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/contextmenu/browser/contextmenu.contribution.js +0 -23
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/scm/common/history.d.ts +0 -102
- package/vscode-dts/vscode.proposed.languageModelDataPart.d.ts +0 -164
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.d.ts
CHANGED
|
@@ -82,6 +82,4 @@ export interface LineData {
|
|
|
82
82
|
content: LineTokens;
|
|
83
83
|
decorations: LineDecoration[];
|
|
84
84
|
}
|
|
85
|
-
export declare const ttPolicy: Pick<TrustedTypePolicy
|
|
86
|
-
createHTML: (value: string) => string;
|
|
87
|
-
}>, "name" | "createHTML"> | undefined;
|
|
85
|
+
export declare const ttPolicy: Pick<TrustedTypePolicy, "name" | "createHTML"> | undefined;
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js
CHANGED
|
@@ -37,12 +37,10 @@ import { derived } from '../../../../../../base/common/observableInternal/observ
|
|
|
37
37
|
import { autorunWithStore, autorun } from '../../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
38
38
|
import { observableSignalFromEvent } from '../../../../../../base/common/observableInternal/observables/observableSignalFromEvent.js';
|
|
39
39
|
|
|
40
|
-
var GhostTextView_1;
|
|
41
40
|
registerCss(ghostTextView);
|
|
42
41
|
const GHOST_TEXT_CLASS_NAME = 'ghost-text';
|
|
43
42
|
let GhostTextView = class GhostTextView extends Disposable {
|
|
44
|
-
static {
|
|
45
|
-
static { this.hot = createHotClass(GhostTextView_1); }
|
|
43
|
+
static { this.hot = createHotClass(this); }
|
|
46
44
|
constructor(_editor, _model, _options, _shouldKeepCursorStable, _isClickable, _languageService) {
|
|
47
45
|
super();
|
|
48
46
|
this._editor = _editor;
|
|
@@ -234,7 +232,7 @@ let GhostTextView = class GhostTextView extends Disposable {
|
|
|
234
232
|
return this._additionalLinesWidget.viewZoneId === viewZoneId;
|
|
235
233
|
}
|
|
236
234
|
};
|
|
237
|
-
GhostTextView =
|
|
235
|
+
GhostTextView = ( __decorate([
|
|
238
236
|
( __param(5, ILanguageService))
|
|
239
237
|
], GhostTextView));
|
|
240
238
|
class GhostTextAttachedData {
|
|
@@ -64,13 +64,13 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
|
|
|
64
64
|
const title = header(this._model.displayName);
|
|
65
65
|
const gotoAndAccept = option(createOptionArgs({
|
|
66
66
|
id: 'gotoAndAccept',
|
|
67
|
-
title: `${( localize(
|
|
67
|
+
title: `${( localize(1303, "Go To"))} / ${( localize(1304, "Accept"))}`,
|
|
68
68
|
icon: Codicon.check,
|
|
69
69
|
commandId: inlineSuggestCommitId
|
|
70
70
|
}));
|
|
71
71
|
const reject = option(createOptionArgs({
|
|
72
72
|
id: 'reject',
|
|
73
|
-
title: ( localize(
|
|
73
|
+
title: ( localize(1305, "Reject")),
|
|
74
74
|
icon: Codicon.close,
|
|
75
75
|
commandId: hideInlineCompletionId
|
|
76
76
|
}));
|
|
@@ -84,19 +84,25 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
|
|
|
84
84
|
const toggleCollapsedMode = ( this._inlineEditsShowCollapsed.map(showCollapsed => showCollapsed ?
|
|
85
85
|
option(createOptionArgs({
|
|
86
86
|
id: 'showExpanded',
|
|
87
|
-
title: ( localize(
|
|
87
|
+
title: ( localize(1306, "Show Expanded")),
|
|
88
88
|
icon: Codicon.expandAll,
|
|
89
89
|
commandId: toggleShowCollapsedId
|
|
90
90
|
}))
|
|
91
91
|
: option(createOptionArgs({
|
|
92
92
|
id: 'showCollapsed',
|
|
93
|
-
title: ( localize(
|
|
93
|
+
title: ( localize(1307, "Show Collapsed")),
|
|
94
94
|
icon: Codicon.collapseAll,
|
|
95
95
|
commandId: toggleShowCollapsedId
|
|
96
96
|
}))));
|
|
97
|
+
const snooze = option(createOptionArgs({
|
|
98
|
+
id: 'snooze',
|
|
99
|
+
title: ( localize(1308, "Snooze")),
|
|
100
|
+
icon: Codicon.bellSlash,
|
|
101
|
+
commandId: 'editor.action.inlineSuggest.snooze'
|
|
102
|
+
}));
|
|
97
103
|
const settings = option(createOptionArgs({
|
|
98
104
|
id: 'settings',
|
|
99
|
-
title: ( localize(
|
|
105
|
+
title: ( localize(1309, "Settings")),
|
|
100
106
|
icon: Codicon.gear,
|
|
101
107
|
commandId: 'workbench.action.openSettings',
|
|
102
108
|
commandArgs: ['@tag:nextEditSuggestions']
|
|
@@ -116,6 +122,7 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
|
|
|
116
122
|
reject,
|
|
117
123
|
toggleCollapsedMode,
|
|
118
124
|
extensionCommands.length ? separator() : undefined,
|
|
125
|
+
snooze,
|
|
119
126
|
settings,
|
|
120
127
|
...extensionCommands,
|
|
121
128
|
actionBarFooter ? separator() : undefined,
|
|
@@ -4,7 +4,7 @@ import { IAccessibilityService } from "../../../../../../../platform/accessibili
|
|
|
4
4
|
import { IInstantiationService } from "../../../../../../../platform/instantiation/common/instantiation.js";
|
|
5
5
|
import { IThemeService } from "../../../../../../../platform/theme/common/themeService.service.js";
|
|
6
6
|
import { ObservableCodeEditor } from "../../../../../../browser/observableCodeEditor.js";
|
|
7
|
-
import { HoverService } from "
|
|
7
|
+
import { HoverService } from "../../../../../../../platform/hover/browser/hoverService.js";
|
|
8
8
|
import { LineRange } from "../../../../../../common/core/ranges/lineRange.js";
|
|
9
9
|
import { IInlineEditModel } from "../inlineEditsViewInterface.js";
|
|
10
10
|
export declare class InlineEditsGutterIndicator extends Disposable {
|
|
@@ -90,7 +90,7 @@ let InlineEditsGutterIndicator = class InlineEditsGutterIndicator extends Dispos
|
|
|
90
90
|
}
|
|
91
91
|
return {
|
|
92
92
|
range,
|
|
93
|
-
lineOffsetRange: this._editorObs.observeLineOffsetRange(range,
|
|
93
|
+
lineOffsetRange: this._editorObs.observeLineOffsetRange(range, reader.store),
|
|
94
94
|
};
|
|
95
95
|
});
|
|
96
96
|
this._stickyScrollController = StickyScrollController.get(this._editorObs.editor);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LineReplacement } from "../../../../../common/core/edits/lineEdit.js";
|
|
2
|
-
import { LineRange } from "../../../../../common/core/ranges/lineRange.js";
|
|
3
|
-
import { Position } from "../../../../../common/core/position.js";
|
|
4
2
|
import { TextEdit } from "../../../../../common/core/edits/textEdit.js";
|
|
3
|
+
import { Position } from "../../../../../common/core/position.js";
|
|
4
|
+
import { LineRange } from "../../../../../common/core/ranges/lineRange.js";
|
|
5
5
|
import { AbstractText } from "../../../../../common/core/text/abstractText.js";
|
|
6
6
|
import { InlineCompletionCommand } from "../../../../../common/languages.js";
|
|
7
7
|
import { InlineSuggestionItem } from "../../model/inlineSuggestionItem.js";
|
|
@@ -9,12 +9,13 @@ export declare class InlineEditWithChanges {
|
|
|
9
9
|
readonly originalText: AbstractText;
|
|
10
10
|
readonly edit: TextEdit;
|
|
11
11
|
readonly cursorPosition: Position;
|
|
12
|
+
readonly multiCursorPositions: readonly Position[];
|
|
12
13
|
readonly commands: readonly InlineCompletionCommand[];
|
|
13
14
|
readonly inlineCompletion: InlineSuggestionItem;
|
|
14
15
|
get lineEdit(): LineReplacement;
|
|
15
16
|
get originalLineRange(): LineRange;
|
|
16
17
|
get modifiedLineRange(): LineRange;
|
|
17
18
|
get displayRange(): LineRange;
|
|
18
|
-
constructor(originalText: AbstractText, edit: TextEdit, cursorPosition: Position, commands: readonly InlineCompletionCommand[], inlineCompletion: InlineSuggestionItem);
|
|
19
|
+
constructor(originalText: AbstractText, edit: TextEdit, cursorPosition: Position, multiCursorPositions: readonly Position[], commands: readonly InlineCompletionCommand[], inlineCompletion: InlineSuggestionItem);
|
|
19
20
|
equals(other: InlineEditWithChanges): boolean;
|
|
20
21
|
}
|
|
@@ -4,6 +4,9 @@ import { LineRange } from '../../../../../common/core/ranges/lineRange.js';
|
|
|
4
4
|
|
|
5
5
|
class InlineEditWithChanges {
|
|
6
6
|
get lineEdit() {
|
|
7
|
+
if (this.edit.replacements.length === 0) {
|
|
8
|
+
return ( new LineReplacement(( new LineRange(1, 1)), []));
|
|
9
|
+
}
|
|
7
10
|
return LineReplacement.fromSingleTextEdit(this.edit.toReplacement(this.originalText), this.originalText);
|
|
8
11
|
}
|
|
9
12
|
get originalLineRange() { return this.lineEdit.lineRange; }
|
|
@@ -11,10 +14,11 @@ class InlineEditWithChanges {
|
|
|
11
14
|
get displayRange() {
|
|
12
15
|
return this.originalText.lineRange.intersect(this.originalLineRange.join(LineRange.ofLength(this.originalLineRange.startLineNumber, this.lineEdit.newLines.length)));
|
|
13
16
|
}
|
|
14
|
-
constructor(originalText, edit, cursorPosition, commands, inlineCompletion) {
|
|
17
|
+
constructor(originalText, edit, cursorPosition, multiCursorPositions, commands, inlineCompletion) {
|
|
15
18
|
this.originalText = originalText;
|
|
16
19
|
this.edit = edit;
|
|
17
20
|
this.cursorPosition = cursorPosition;
|
|
21
|
+
this.multiCursorPositions = multiCursorPositions;
|
|
18
22
|
this.commands = commands;
|
|
19
23
|
this.inlineCompletion = inlineCompletion;
|
|
20
24
|
}
|
|
@@ -2,9 +2,9 @@ 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, InlineCompletionCommand
|
|
5
|
+
import { Command, InlineCompletionCommand } from "../../../../../common/languages.js";
|
|
6
6
|
import { InlineCompletionsModel } from "../../model/inlineCompletionsModel.js";
|
|
7
|
-
import { InlineCompletionItem } from "../../model/inlineSuggestionItem.js";
|
|
7
|
+
import { InlineCompletionItem, InlineSuggestHint } from "../../model/inlineSuggestionItem.js";
|
|
8
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 {
|
|
@@ -15,12 +15,11 @@ export declare class InlineEditModel implements IInlineEditModel {
|
|
|
15
15
|
readonly displayName: string;
|
|
16
16
|
readonly extensionCommands: InlineCompletionCommand[];
|
|
17
17
|
readonly isInDiffEditor: boolean;
|
|
18
|
-
readonly displayLocation:
|
|
18
|
+
readonly displayLocation: InlineSuggestHint | undefined;
|
|
19
19
|
readonly showCollapsed: IObservable<boolean>;
|
|
20
20
|
constructor(_model: InlineCompletionsModel, inlineEdit: InlineEditWithChanges, tabAction: IObservable<InlineEditTabAction>);
|
|
21
21
|
accept(): void;
|
|
22
22
|
jump(): void;
|
|
23
|
-
abort(reason: string): void;
|
|
24
23
|
handleInlineEditShown(viewKind: InlineCompletionViewKind, viewData: InlineCompletionViewData): void;
|
|
25
24
|
}
|
|
26
25
|
export declare class InlineEditHost implements IInlineEditHost {
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js
CHANGED
|
@@ -14,10 +14,10 @@ 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(1310, "Inline Edit"));
|
|
18
18
|
this.extensionCommands = this.inlineEdit.inlineCompletion.source.inlineSuggestions.commands ?? [];
|
|
19
19
|
this.isInDiffEditor = this._model.isInDiffEditor;
|
|
20
|
-
this.displayLocation = this.inlineEdit.inlineCompletion.
|
|
20
|
+
this.displayLocation = this.inlineEdit.inlineCompletion.hint;
|
|
21
21
|
this.showCollapsed = this._model.showCollapsed;
|
|
22
22
|
}
|
|
23
23
|
accept() {
|
|
@@ -26,11 +26,6 @@ class InlineEditModel {
|
|
|
26
26
|
jump() {
|
|
27
27
|
this._model.jump();
|
|
28
28
|
}
|
|
29
|
-
abort(reason) {
|
|
30
|
-
console.error(reason);
|
|
31
|
-
this.inlineEdit.inlineCompletion.reportInlineEditError(reason);
|
|
32
|
-
this._model.stop();
|
|
33
|
-
}
|
|
34
29
|
handleInlineEditShown(viewKind, viewData) {
|
|
35
30
|
this._model.handleInlineSuggestionShown(this.inlineEdit.inlineCompletion, viewKind, viewData);
|
|
36
31
|
}
|
|
@@ -54,7 +49,7 @@ class GhostTextIndicator {
|
|
|
54
49
|
}
|
|
55
50
|
return InlineEditTabAction.Inactive;
|
|
56
51
|
});
|
|
57
|
-
this.model = ( new InlineEditModel(model, ( new InlineEditWithChanges(( new StringText('')), ( new TextEdit([inlineCompletion.getSingleTextEdit()])), model.primaryPosition.get(), inlineCompletion.source.inlineSuggestions.commands ?? [], inlineCompletion)), tabAction));
|
|
52
|
+
this.model = ( new InlineEditModel(model, ( new InlineEditWithChanges(( new StringText('')), ( new TextEdit([inlineCompletion.getSingleTextEdit()])), model.primaryPosition.get(), model.allPositions.get(), inlineCompletion.source.inlineSuggestions.commands ?? [], inlineCompletion)), tabAction));
|
|
58
53
|
}
|
|
59
54
|
}
|
|
60
55
|
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
3
|
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
4
|
+
import { $ } from '../../../../../../base/browser/dom.js';
|
|
4
5
|
import { equalsIfDefined, itemEquals } from '../../../../../../base/common/equals.js';
|
|
5
|
-
import { BugIndicatingError } from '../../../../../../base/common/errors.js';
|
|
6
|
+
import { onUnexpectedError, BugIndicatingError } from '../../../../../../base/common/errors.js';
|
|
6
7
|
import { Event } from '../../../../../../base/common/event.js';
|
|
7
8
|
import { Disposable } from '../../../../../../base/common/lifecycle.js';
|
|
8
9
|
import '../../../../../../base/common/observableInternal/index.js';
|
|
9
10
|
import { IInstantiationService } from '../../../../../../platform/instantiation/common/instantiation.js';
|
|
10
11
|
import { observableCodeEditor } from '../../../../../browser/observableCodeEditor.js';
|
|
11
12
|
import { EditorOption } from '../../../../../common/config/editorOptions.js';
|
|
12
|
-
import { LineRange } from '../../../../../common/core/ranges/lineRange.js';
|
|
13
|
-
import { Range } from '../../../../../common/core/range.js';
|
|
14
13
|
import { TextReplacement } from '../../../../../common/core/edits/textEdit.js';
|
|
14
|
+
import { Range } from '../../../../../common/core/range.js';
|
|
15
|
+
import { LineRange } from '../../../../../common/core/ranges/lineRange.js';
|
|
15
16
|
import { StringText } from '../../../../../common/core/text/abstractText.js';
|
|
16
17
|
import { TextLength } from '../../../../../common/core/text/textLength.js';
|
|
17
18
|
import { RangeMapping, lineRangeMappingFromRangeMappings } from '../../../../../common/diff/rangeMapping.js';
|
|
18
19
|
import { TextModel } from '../../../../../common/model/textModel.js';
|
|
20
|
+
import { InlineEditItem } from '../../model/inlineSuggestionItem.js';
|
|
19
21
|
import { InlineEditsGutterIndicator } from './components/gutterIndicatorView.js';
|
|
20
22
|
import { InlineEditsOnboardingExperience } from './inlineEditsNewUsers.js';
|
|
21
23
|
import { InlineEditTabAction, InlineCompletionViewKind } from './inlineEditsViewInterface.js';
|
|
@@ -29,7 +31,6 @@ import { InlineEditsWordReplacementView } from './inlineEditsViews/inlineEditsWo
|
|
|
29
31
|
import { OriginalEditorInlineDiffView } from './inlineEditsViews/originalEditorInlineDiffView.js';
|
|
30
32
|
import { createReindentEdit, applyEditToModifiedRangeMappings } from './utils/utils.js';
|
|
31
33
|
import * as view from './view.css';
|
|
32
|
-
import { $ } from '../../../../../../base/browser/dom.js';
|
|
33
34
|
import { derived, derivedOpts } from '../../../../../../base/common/observableInternal/observables/derived.js';
|
|
34
35
|
import { observableValue } from '../../../../../../base/common/observableInternal/observables/observableValue.js';
|
|
35
36
|
import { mapObservableArrayCached } from '../../../../../../base/common/observableInternal/utils/utils.js';
|
|
@@ -59,7 +60,7 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
59
60
|
let diff = lineRangeMappingFromRangeMappings(mappings, inlineEdit.originalText, ( new StringText(newText)));
|
|
60
61
|
let state = this.determineRenderState(model, reader, diff, ( new StringText(newText)));
|
|
61
62
|
if (!state) {
|
|
62
|
-
|
|
63
|
+
onUnexpectedError(( new Error(`unable to determine view: tried to render ${this._previousView?.view}`)));
|
|
63
64
|
return undefined;
|
|
64
65
|
}
|
|
65
66
|
if (state.kind === InlineCompletionViewKind.SideBySide) {
|
|
@@ -243,14 +244,17 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
243
244
|
}
|
|
244
245
|
determineView(model, reader, diff, newText) {
|
|
245
246
|
const inlineEdit = model.inlineEdit;
|
|
246
|
-
const canUseCache = this._previousView?.id === this.getCacheId(model);
|
|
247
|
+
const canUseCache = this._previousView?.id === this.getCacheId(model) && !model.displayLocation?.jumpToEdit;
|
|
247
248
|
const reconsiderViewEditorWidthChange = this._previousView?.editorWidth !== this._editorObs.layoutInfoWidth.read(reader) &&
|
|
248
249
|
(this._previousView?.view === InlineCompletionViewKind.SideBySide ||
|
|
249
250
|
this._previousView?.view === InlineCompletionViewKind.LineReplacement);
|
|
250
251
|
if (canUseCache && !reconsiderViewEditorWidthChange) {
|
|
251
252
|
return this._previousView.view;
|
|
252
253
|
}
|
|
253
|
-
if (model.
|
|
254
|
+
if (model.inlineEdit.inlineCompletion instanceof InlineEditItem && model.inlineEdit.inlineCompletion.uri) {
|
|
255
|
+
return InlineCompletionViewKind.Custom;
|
|
256
|
+
}
|
|
257
|
+
if (model.displayLocation && !model.inlineEdit.inlineCompletion.identity.jumpedTo.read(reader)) {
|
|
254
258
|
return InlineCompletionViewKind.Custom;
|
|
255
259
|
}
|
|
256
260
|
const numOriginalLines = inlineEdit.originalLineRange.length;
|
|
@@ -307,7 +311,15 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
307
311
|
}
|
|
308
312
|
determineRenderState(model, reader, diff, newText) {
|
|
309
313
|
const inlineEdit = model.inlineEdit;
|
|
310
|
-
|
|
314
|
+
let view = this.determineView(model, reader, diff, newText);
|
|
315
|
+
if (this._willRenderAboveCursor(reader, inlineEdit, view)) {
|
|
316
|
+
switch (view) {
|
|
317
|
+
case InlineCompletionViewKind.LineReplacement:
|
|
318
|
+
case InlineCompletionViewKind.WordReplacements:
|
|
319
|
+
view = InlineCompletionViewKind.SideBySide;
|
|
320
|
+
break;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
311
323
|
this._previousView = { id: this.getCacheId(model), view, editorWidth: this._editor.getLayoutInfo().width, timestamp: Date.now() };
|
|
312
324
|
const inner = diff.flatMap(d => d.innerChanges ?? []);
|
|
313
325
|
const textModel = this._editor.getModel();
|
|
@@ -318,9 +330,9 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
318
330
|
modified: newText.getValueOfRange(m.modifiedRange)
|
|
319
331
|
})));
|
|
320
332
|
const cursorPosition = inlineEdit.cursorPosition;
|
|
321
|
-
const startsWithEOL = stringChanges[0].modified.startsWith(textModel.getEOL());
|
|
333
|
+
const startsWithEOL = stringChanges.length === 0 ? false : stringChanges[0].modified.startsWith(textModel.getEOL());
|
|
322
334
|
const viewData = {
|
|
323
|
-
cursorColumnDistance: inlineEdit.edit.replacements[0].range.getStartPosition().column - cursorPosition.column,
|
|
335
|
+
cursorColumnDistance: inlineEdit.edit.replacements.length === 0 ? 0 : inlineEdit.edit.replacements[0].range.getStartPosition().column - cursorPosition.column,
|
|
324
336
|
cursorLineDistance: inlineEdit.lineEdit.lineRange.startLineNumber - cursorPosition.lineNumber + (startsWithEOL && inlineEdit.lineEdit.lineRange.startLineNumber >= cursorPosition.lineNumber ? 1 : 0),
|
|
325
337
|
lineCountOriginal: inlineEdit.lineEdit.lineRange.length,
|
|
326
338
|
lineCountModified: inlineEdit.lineEdit.newLines.length,
|
|
@@ -380,6 +392,24 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
380
392
|
}
|
|
381
393
|
return undefined;
|
|
382
394
|
}
|
|
395
|
+
_willRenderAboveCursor(reader, inlineEdit, view) {
|
|
396
|
+
const useCodeShifting = this._useCodeShifting.read(reader);
|
|
397
|
+
if (useCodeShifting === 'always') {
|
|
398
|
+
return false;
|
|
399
|
+
}
|
|
400
|
+
for (const cursorPosition of inlineEdit.multiCursorPositions) {
|
|
401
|
+
if (view === InlineCompletionViewKind.WordReplacements &&
|
|
402
|
+
cursorPosition.lineNumber === inlineEdit.originalLineRange.startLineNumber + 1) {
|
|
403
|
+
return true;
|
|
404
|
+
}
|
|
405
|
+
if (view === InlineCompletionViewKind.LineReplacement &&
|
|
406
|
+
cursorPosition.lineNumber >= inlineEdit.originalLineRange.endLineNumberExclusive &&
|
|
407
|
+
cursorPosition.lineNumber < inlineEdit.modifiedLineRange.endLineNumberExclusive + inlineEdit.modifiedLineRange.length) {
|
|
408
|
+
return true;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
return false;
|
|
412
|
+
}
|
|
383
413
|
_viewHasBeenShownLongerThan(durationMs) {
|
|
384
414
|
const viewCreationTime = this._previousView?.timestamp;
|
|
385
415
|
if (!viewCreationTime) {
|
|
@@ -1,7 +1,8 @@
|
|
|
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, InlineCompletionCommand
|
|
4
|
+
import { Command, InlineCompletionCommand } from "../../../../../common/languages.js";
|
|
5
|
+
import { InlineSuggestHint } from "../../model/inlineSuggestionItem.js";
|
|
5
6
|
import { InlineEditWithChanges } from "./inlineEditWithChanges.js";
|
|
6
7
|
export declare enum InlineEditTabAction {
|
|
7
8
|
Jump = "jump",
|
|
@@ -11,7 +12,7 @@ export declare enum InlineEditTabAction {
|
|
|
11
12
|
export interface IInlineEditsView {
|
|
12
13
|
isHovered: IObservable<boolean>;
|
|
13
14
|
minEditorScrollHeight?: IObservable<number>;
|
|
14
|
-
onDidClick: Event<IMouseEvent>;
|
|
15
|
+
readonly onDidClick: Event<IMouseEvent>;
|
|
15
16
|
}
|
|
16
17
|
export interface IInlineEditHost {
|
|
17
18
|
readonly onDidAccept: Event<void>;
|
|
@@ -25,11 +26,10 @@ export interface IInlineEditModel {
|
|
|
25
26
|
inlineEdit: InlineEditWithChanges;
|
|
26
27
|
tabAction: IObservable<InlineEditTabAction>;
|
|
27
28
|
showCollapsed: IObservable<boolean>;
|
|
28
|
-
displayLocation:
|
|
29
|
+
displayLocation: InlineSuggestHint | undefined;
|
|
29
30
|
handleInlineEditShown(viewKind: string, viewData?: InlineCompletionViewData): void;
|
|
30
31
|
accept(): void;
|
|
31
32
|
jump(): void;
|
|
32
|
-
abort(reason: string): void;
|
|
33
33
|
}
|
|
34
34
|
export declare enum InlineCompletionViewKind {
|
|
35
35
|
GhostText = "ghostText",
|
|
@@ -15,10 +15,8 @@ import { InlineEditsView } from './inlineEditsView.js';
|
|
|
15
15
|
import { InlineEditTabAction } from './inlineEditsViewInterface.js';
|
|
16
16
|
import { derived } from '../../../../../../base/common/observableInternal/observables/derived.js';
|
|
17
17
|
|
|
18
|
-
var InlineEditsViewAndDiffProducer_1;
|
|
19
18
|
let InlineEditsViewAndDiffProducer = class InlineEditsViewAndDiffProducer extends Disposable {
|
|
20
|
-
static {
|
|
21
|
-
static { this.hot = createHotClass(InlineEditsViewAndDiffProducer_1); }
|
|
19
|
+
static { this.hot = createHotClass(this); }
|
|
22
20
|
constructor(_editor, _edit, _model, _focusIsInMenu, instantiationService) {
|
|
23
21
|
super();
|
|
24
22
|
this._editor = _editor;
|
|
@@ -52,6 +50,7 @@ let InlineEditsViewAndDiffProducer = class InlineEditsViewAndDiffProducer extend
|
|
|
52
50
|
text,
|
|
53
51
|
diffEdits,
|
|
54
52
|
model.primaryPosition.read(undefined),
|
|
53
|
+
model.allPositions.read(undefined),
|
|
55
54
|
inlineEdit.commands,
|
|
56
55
|
inlineEdit.inlineCompletion
|
|
57
56
|
));
|
|
@@ -108,7 +107,7 @@ let InlineEditsViewAndDiffProducer = class InlineEditsViewAndDiffProducer extend
|
|
|
108
107
|
this._register(instantiationService.createInstance(InlineEditsView, this._editor, this._inlineEditHost, this._inlineEditModel, this._ghostTextIndicator, this._focusIsInMenu));
|
|
109
108
|
}
|
|
110
109
|
};
|
|
111
|
-
InlineEditsViewAndDiffProducer =
|
|
110
|
+
InlineEditsViewAndDiffProducer = ( __decorate([
|
|
112
111
|
( __param(4, IInstantiationService))
|
|
113
112
|
], InlineEditsViewAndDiffProducer));
|
|
114
113
|
|
|
@@ -3,8 +3,8 @@ import { Disposable } from "../../../../../../../base/common/lifecycle.js";
|
|
|
3
3
|
import { IObservable } from "../../../../../../../base/common/observable.js";
|
|
4
4
|
import { IThemeService } from "../../../../../../../platform/theme/common/themeService.service.js";
|
|
5
5
|
import { ICodeEditor } from "../../../../../../browser/editorBrowser.js";
|
|
6
|
-
import { InlineCompletionDisplayLocation } from "../../../../../../common/languages.js";
|
|
7
6
|
import { ILanguageService } from "../../../../../../common/languages/language.service.js";
|
|
7
|
+
import { InlineSuggestHint } from "../../../model/inlineSuggestionItem.js";
|
|
8
8
|
import { IInlineEditsView, InlineEditTabAction } from "../inlineEditsViewInterface.js";
|
|
9
9
|
export declare class InlineEditsCustomView extends Disposable implements IInlineEditsView {
|
|
10
10
|
private readonly _editor;
|
|
@@ -16,7 +16,7 @@ export declare class InlineEditsCustomView extends Disposable implements IInline
|
|
|
16
16
|
private readonly _viewRef;
|
|
17
17
|
private readonly _editorObs;
|
|
18
18
|
readonly minEditorScrollHeight: IObservable<number>;
|
|
19
|
-
constructor(_editor: ICodeEditor, displayLocation: IObservable<
|
|
19
|
+
constructor(_editor: ICodeEditor, displayLocation: IObservable<InlineSuggestHint | undefined>, tabAction: IObservable<InlineEditTabAction>, themeService: IThemeService, _languageService: ILanguageService);
|
|
20
20
|
private fitsInsideViewport;
|
|
21
21
|
private getState;
|
|
22
22
|
private getRendering;
|
|
@@ -22,7 +22,7 @@ import { renderLines, LineSource, RenderOptions } from '../../../../../../browse
|
|
|
22
22
|
import { EditorOption } from '../../../../../../common/config/editorOptions.js';
|
|
23
23
|
import { Rect } from '../../../../../../common/core/2d/rect.js';
|
|
24
24
|
import { LineRange } from '../../../../../../common/core/ranges/lineRange.js';
|
|
25
|
-
import {
|
|
25
|
+
import { InlineCompletionHintStyle } from '../../../../../../common/languages.js';
|
|
26
26
|
import { ILanguageService } from '../../../../../../common/languages/language.service.js';
|
|
27
27
|
import { TokenArray, LineTokens } from '../../../../../../common/tokens/lineTokens.js';
|
|
28
28
|
import { InlineEditTabAction } from '../inlineEditsViewInterface.js';
|
|
@@ -144,7 +144,7 @@ let InlineEditsCustomView = class InlineEditsCustomView extends Disposable {
|
|
|
144
144
|
});
|
|
145
145
|
const startLineNumber = displayLocation.range.startLineNumber;
|
|
146
146
|
const endLineNumber = displayLocation.range.endLineNumber;
|
|
147
|
-
const fitsInsideViewport = this.fitsInsideViewport(( new LineRange(startLineNumber, endLineNumber + 1)), displayLocation.
|
|
147
|
+
const fitsInsideViewport = this.fitsInsideViewport(( new LineRange(startLineNumber, endLineNumber + 1)), displayLocation.content, undefined);
|
|
148
148
|
const rect = derived(this, reader => {
|
|
149
149
|
const w = this._editorObs.getOption(EditorOption.fontInfo).read(reader).typicalHalfwidthCharacterWidth;
|
|
150
150
|
const { lineWidth, lineWidthBelow, lineWidthAbove, startContentLeftOffset, endContentLeftOffset } = contentState.read(reader);
|
|
@@ -191,20 +191,20 @@ let InlineEditsCustomView = class InlineEditsCustomView extends Disposable {
|
|
|
191
191
|
break;
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
const textRect = Rect.fromLeftTopWidthHeight(contentLeft + contentStartOffset - scrollLeft, topOfLine - scrollTop, w * displayLocation.
|
|
194
|
+
const textRect = Rect.fromLeftTopWidthHeight(contentLeft + contentStartOffset - scrollLeft, topOfLine - scrollTop, w * displayLocation.content.length, lineHeight);
|
|
195
195
|
return textRect.withMargin(PADDING_VERTICALLY, PADDING_HORIZONTALLY).translateX(deltaX).translateY(deltaY);
|
|
196
196
|
});
|
|
197
197
|
return {
|
|
198
198
|
rect,
|
|
199
|
-
label: displayLocation.
|
|
200
|
-
kind: displayLocation.
|
|
199
|
+
label: displayLocation.content,
|
|
200
|
+
kind: displayLocation.style
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
203
|
getRendering(state, styles) {
|
|
204
204
|
const line = createElement('div');
|
|
205
205
|
const t = this._editor.getModel().tokenization.tokenizeLinesAt(1, [state.label])?.[0];
|
|
206
206
|
let tokens;
|
|
207
|
-
if (t && state.kind ===
|
|
207
|
+
if (t && state.kind === InlineCompletionHintStyle.Code) {
|
|
208
208
|
tokens = TokenArray.fromLineTokens(t).toLineTokens(state.label, this._languageService.languageIdCodec);
|
|
209
209
|
}
|
|
210
210
|
else {
|
|
@@ -45,7 +45,7 @@ let InlineEditsLineReplacementView = class InlineEditsLineReplacementView extend
|
|
|
45
45
|
this._onDidClick = this._register(( new Emitter()));
|
|
46
46
|
this.onDidClick = this._onDidClick.event;
|
|
47
47
|
this._maxPrefixTrim = ( this._edit.map(
|
|
48
|
-
e => e ? getPrefixTrim(e.replacements.flatMap(r => [r.originalRange, r.modifiedRange]), e.originalRange, e.modifiedLines, this._editor.editor) : undefined
|
|
48
|
+
(e, reader) => e ? getPrefixTrim(e.replacements.flatMap(r => [r.originalRange, r.modifiedRange]), e.originalRange, e.modifiedLines, this._editor.editor, reader) : undefined
|
|
49
49
|
));
|
|
50
50
|
this._modifiedLineElements = derived(this, reader => {
|
|
51
51
|
const lines = [];
|
|
@@ -16,14 +16,14 @@ import '../../../../../../platform/theme/common/colors/searchColors.js';
|
|
|
16
16
|
import { InlineEditTabAction } from './inlineEditsViewInterface.js';
|
|
17
17
|
import { observableFromEventOpts } from '../../../../../../base/common/observableInternal/observables/observableFromEvent.js';
|
|
18
18
|
|
|
19
|
-
const originalBackgroundColor = registerColor('inlineEdit.originalBackground', ( transparent(diffRemoved, 0.2)), ( localize(
|
|
20
|
-
const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', ( transparent(diffInserted, 0.3)), ( localize(
|
|
19
|
+
const originalBackgroundColor = registerColor('inlineEdit.originalBackground', ( transparent(diffRemoved, 0.2)), ( localize(1311, 'Background color for the original text in inline edits.')), true);
|
|
20
|
+
const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', ( transparent(diffInserted, 0.3)), ( localize(1312, 'Background color for the modified text in inline edits.')), true);
|
|
21
21
|
registerColor('inlineEdit.originalChangedLineBackground', ( transparent(diffRemoved, 0.8)), ( localize(
|
|
22
|
-
|
|
22
|
+
1313,
|
|
23
23
|
'Background color for the changed lines in the original text of inline edits.'
|
|
24
24
|
)), true);
|
|
25
25
|
const originalChangedTextOverlayColor = registerColor('inlineEdit.originalChangedTextBackground', ( transparent(diffRemoved, 0.8)), ( localize(
|
|
26
|
-
|
|
26
|
+
1314,
|
|
27
27
|
'Overlay color for the changed text in the original text of inline edits.'
|
|
28
28
|
)), true);
|
|
29
29
|
const modifiedChangedLineBackgroundColor = registerColor('inlineEdit.modifiedChangedLineBackground', {
|
|
@@ -32,52 +32,52 @@ const modifiedChangedLineBackgroundColor = registerColor('inlineEdit.modifiedCha
|
|
|
32
32
|
hcDark: diffInsertedLine,
|
|
33
33
|
hcLight: diffInsertedLine
|
|
34
34
|
}, ( localize(
|
|
35
|
-
|
|
35
|
+
1315,
|
|
36
36
|
'Background color for the changed lines in the modified text of inline edits.'
|
|
37
37
|
)), true);
|
|
38
38
|
const modifiedChangedTextOverlayColor = registerColor('inlineEdit.modifiedChangedTextBackground', ( transparent(diffInserted, 0.7)), ( localize(
|
|
39
|
-
|
|
39
|
+
1316,
|
|
40
40
|
'Overlay color for the changed text in the modified text of inline edits.'
|
|
41
41
|
)), true);
|
|
42
|
-
const inlineEditIndicatorPrimaryForeground = registerColor('inlineEdit.gutterIndicator.primaryForeground', buttonForeground, ( localize(
|
|
43
|
-
const inlineEditIndicatorPrimaryBorder = registerColor('inlineEdit.gutterIndicator.primaryBorder', buttonBackground, ( localize(
|
|
42
|
+
const inlineEditIndicatorPrimaryForeground = registerColor('inlineEdit.gutterIndicator.primaryForeground', buttonForeground, ( localize(1317, 'Foreground color for the primary inline edit gutter indicator.')));
|
|
43
|
+
const inlineEditIndicatorPrimaryBorder = registerColor('inlineEdit.gutterIndicator.primaryBorder', buttonBackground, ( localize(1318, 'Border color for the primary inline edit gutter indicator.')));
|
|
44
44
|
const inlineEditIndicatorPrimaryBackground = registerColor('inlineEdit.gutterIndicator.primaryBackground', {
|
|
45
45
|
light: ( transparent(inlineEditIndicatorPrimaryBorder, 0.5)),
|
|
46
46
|
dark: ( transparent(inlineEditIndicatorPrimaryBorder, 0.4)),
|
|
47
47
|
hcDark: ( transparent(inlineEditIndicatorPrimaryBorder, 0.4)),
|
|
48
48
|
hcLight: ( transparent(inlineEditIndicatorPrimaryBorder, 0.5)),
|
|
49
|
-
}, ( localize(
|
|
50
|
-
const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, ( localize(
|
|
51
|
-
const inlineEditIndicatorSecondaryBorder = registerColor('inlineEdit.gutterIndicator.secondaryBorder', buttonSecondaryBackground, ( localize(
|
|
52
|
-
const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', inlineEditIndicatorSecondaryBorder, ( localize(
|
|
53
|
-
const inlineEditIndicatorsuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, ( localize(
|
|
54
|
-
const inlineEditIndicatorsuccessfulBorder = registerColor('inlineEdit.gutterIndicator.successfulBorder', buttonBackground, ( localize(
|
|
55
|
-
const inlineEditIndicatorsuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', inlineEditIndicatorsuccessfulBorder, ( localize(
|
|
49
|
+
}, ( localize(1319, 'Background color for the primary inline edit gutter indicator.')));
|
|
50
|
+
const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, ( localize(1320, 'Foreground color for the secondary inline edit gutter indicator.')));
|
|
51
|
+
const inlineEditIndicatorSecondaryBorder = registerColor('inlineEdit.gutterIndicator.secondaryBorder', buttonSecondaryBackground, ( localize(1321, 'Border color for the secondary inline edit gutter indicator.')));
|
|
52
|
+
const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', inlineEditIndicatorSecondaryBorder, ( localize(1322, 'Background color for the secondary inline edit gutter indicator.')));
|
|
53
|
+
const inlineEditIndicatorsuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, ( localize(1323, 'Foreground color for the successful inline edit gutter indicator.')));
|
|
54
|
+
const inlineEditIndicatorsuccessfulBorder = registerColor('inlineEdit.gutterIndicator.successfulBorder', buttonBackground, ( localize(1324, 'Border color for the successful inline edit gutter indicator.')));
|
|
55
|
+
const inlineEditIndicatorsuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', inlineEditIndicatorsuccessfulBorder, ( localize(1325, 'Background color for the successful inline edit gutter indicator.')));
|
|
56
56
|
const inlineEditIndicatorBackground = registerColor('inlineEdit.gutterIndicator.background', {
|
|
57
57
|
hcDark: ( transparent('tab.inactiveBackground', 0.5)),
|
|
58
58
|
hcLight: ( transparent('tab.inactiveBackground', 0.5)),
|
|
59
59
|
dark: ( transparent('tab.inactiveBackground', 0.5)),
|
|
60
60
|
light: '#5f5f5f18',
|
|
61
|
-
}, ( localize(
|
|
61
|
+
}, ( localize(1326, 'Background color for the inline edit gutter indicator.')));
|
|
62
62
|
const originalBorder = registerColor('inlineEdit.originalBorder', {
|
|
63
63
|
light: diffRemoved,
|
|
64
64
|
dark: diffRemoved,
|
|
65
65
|
hcDark: diffRemoved,
|
|
66
66
|
hcLight: diffRemoved
|
|
67
|
-
}, ( localize(
|
|
67
|
+
}, ( localize(1327, 'Border color for the original text in inline edits.')));
|
|
68
68
|
const modifiedBorder = registerColor('inlineEdit.modifiedBorder', {
|
|
69
69
|
light: ( darken(diffInserted, 0.6)),
|
|
70
70
|
dark: diffInserted,
|
|
71
71
|
hcDark: diffInserted,
|
|
72
72
|
hcLight: diffInserted
|
|
73
|
-
}, ( localize(
|
|
73
|
+
}, ( localize(1328, 'Border color for the modified text in inline edits.')));
|
|
74
74
|
const tabWillAcceptModifiedBorder = registerColor('inlineEdit.tabWillAcceptModifiedBorder', {
|
|
75
75
|
light: ( darken(modifiedBorder, 0)),
|
|
76
76
|
dark: ( darken(modifiedBorder, 0)),
|
|
77
77
|
hcDark: ( darken(modifiedBorder, 0)),
|
|
78
78
|
hcLight: ( darken(modifiedBorder, 0))
|
|
79
79
|
}, ( localize(
|
|
80
|
-
|
|
80
|
+
1329,
|
|
81
81
|
'Modified border color for the inline edits widget when tab will accept it.'
|
|
82
82
|
)));
|
|
83
83
|
const tabWillAcceptOriginalBorder = registerColor('inlineEdit.tabWillAcceptOriginalBorder', {
|
|
@@ -86,7 +86,7 @@ const tabWillAcceptOriginalBorder = registerColor('inlineEdit.tabWillAcceptOrigi
|
|
|
86
86
|
hcDark: ( darken(originalBorder, 0)),
|
|
87
87
|
hcLight: ( darken(originalBorder, 0))
|
|
88
88
|
}, ( localize(
|
|
89
|
-
|
|
89
|
+
1330,
|
|
90
90
|
'Original border color for the inline edits widget over the original text when tab will accept it.'
|
|
91
91
|
)));
|
|
92
92
|
function getModifiedBorderColor(tabAction) {
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DisposableStore } from "../../../../../../../base/common/lifecycle.js";
|
|
2
|
-
import { IObservable, IReader } from "../../../../../../../base/common/observable.js";
|
|
2
|
+
import { DebugLocation, IObservable, IReader } from "../../../../../../../base/common/observable.js";
|
|
3
3
|
import { URI } from "../../../../../../../base/common/uri.js";
|
|
4
4
|
import { MenuEntryActionViewItem } from "../../../../../../../platform/actions/browser/menuEntryActionViewItem.js";
|
|
5
5
|
import { ICodeEditor } from "../../../../../../browser/editorBrowser.js";
|
|
@@ -14,7 +14,7 @@ import { RangeMapping } from "../../../../../../common/diff/rangeMapping.js";
|
|
|
14
14
|
import { ITextModel } from "../../../../../../common/model.js";
|
|
15
15
|
export declare function maxContentWidthInRange(editor: ObservableCodeEditor, range: LineRange, reader: IReader | undefined): number;
|
|
16
16
|
export declare function getOffsetForPos(editor: ObservableCodeEditor, pos: Position, reader: IReader): number;
|
|
17
|
-
export declare function getPrefixTrim(diffRanges: Range[], originalLinesRange: LineRange, modifiedLines: string[], editor: ICodeEditor): {
|
|
17
|
+
export declare function getPrefixTrim(diffRanges: Range[], originalLinesRange: LineRange, modifiedLines: string[], editor: ICodeEditor, reader?: IReader | undefined): {
|
|
18
18
|
prefixTrim: number;
|
|
19
19
|
prefixLeftOffset: number;
|
|
20
20
|
};
|
|
@@ -69,7 +69,7 @@ export declare function observeElementPosition(element: HTMLElement, store: Disp
|
|
|
69
69
|
top: import("../../../../../../../base/common/observable.js").ISettableObservable<number, void>;
|
|
70
70
|
left: import("../../../../../../../base/common/observable.js").ISettableObservable<number, void>;
|
|
71
71
|
};
|
|
72
|
-
export declare function rectToProps(fn: (reader: IReader) => Rect): {
|
|
72
|
+
export declare function rectToProps(fn: (reader: IReader) => Rect, debugLocation?: DebugLocation): {
|
|
73
73
|
left: import("../../../../../../../base/common/observable.js").IObservableWithChange<number, void>;
|
|
74
74
|
top: import("../../../../../../../base/common/observable.js").IObservableWithChange<number, void>;
|
|
75
75
|
width: import("../../../../../../../base/common/observable.js").IObservableWithChange<number, void>;
|