@codingame/monaco-vscode-api 7.0.11 → 7.1.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/api.js +60 -10
- package/extensions.d.ts +9 -0
- package/l10n.d.ts +13 -1
- package/l10n.js +3 -2
- package/missing-services.js +35 -21
- package/package.json +9 -9
- package/service-override/workingCopy.d.ts +4 -1
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/browser.js +4 -1
- package/vscode/src/vs/base/browser/defaultWorkerFactory.js +7 -1
- package/vscode/src/vs/base/browser/dom.js +8 -1
- package/vscode/src/vs/base/browser/markdownRenderer.js +1 -1
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +13 -6
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +1 -1
- package/vscode/src/vs/base/browser/ui/button/button.js +2 -3
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +7 -8
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +2 -3
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +2 -3
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +4 -5
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +3 -4
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +3 -5
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +3 -4
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +7 -8
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +2 -3
- package/vscode/src/vs/base/browser/ui/list/listView.js +2 -2
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +2 -3
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +4 -5
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +2 -3
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +1 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +2 -3
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +11 -12
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +2 -3
- package/vscode/src/vs/base/common/actions.js +2 -3
- package/vscode/src/vs/base/common/arrays.js +7 -1
- package/vscode/src/vs/base/common/date.js +61 -63
- package/vscode/src/vs/base/common/errorMessage.js +8 -22
- package/vscode/src/vs/base/common/event.d.ts +16 -0
- package/vscode/src/vs/base/common/event.js +4 -0
- package/vscode/src/vs/base/common/hotReload.js +13 -1
- package/vscode/src/vs/base/common/hotReloadHelpers.js +25 -0
- package/vscode/src/vs/base/common/jsonErrorMessages.js +10 -11
- package/vscode/src/vs/base/common/jsonSchema.js +122 -0
- package/vscode/src/vs/base/common/keybindingLabels.js +21 -22
- package/vscode/src/vs/base/common/labels.js +2 -2
- package/vscode/src/vs/base/common/network.js +1 -1
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +1 -0
- package/vscode/src/vs/base/common/observableInternal/base.js +6 -0
- package/vscode/src/vs/base/common/observableInternal/utils.js +4 -1
- package/vscode/src/vs/base/common/path.d.ts +1 -1
- package/vscode/src/vs/base/common/path.js +20 -17
- package/vscode/src/vs/base/common/performance.js +78 -15
- package/vscode/src/vs/base/common/platform.js +14 -17
- package/vscode/src/vs/base/common/prefixTree.d.ts +2 -0
- package/vscode/src/vs/base/common/prefixTree.js +3 -0
- package/vscode/src/vs/base/common/product.d.ts +3 -7
- package/vscode/src/vs/base/common/uri.js +3 -0
- package/vscode/src/vs/base/parts/ipc/common/ipc.net.js +6 -3
- package/vscode/src/vs/editor/browser/controller/mouseHandler.js +66 -18
- package/vscode/src/vs/editor/browser/controller/mouseTarget.js +18 -5
- package/vscode/src/vs/editor/browser/controller/pointerHandler.js +3 -3
- package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +9 -13
- package/vscode/src/vs/editor/browser/coreCommands.js +4 -5
- package/vscode/src/vs/editor/browser/editorExtensions.js +7 -8
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +2 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +2 -3
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +2 -3
- package/vscode/src/vs/editor/browser/view.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +1 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +4 -6
- package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +13 -14
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +17 -38
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +20 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +6 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +11 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +10 -13
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +6 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +37 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +4 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +33 -23
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +91 -41
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +9 -14
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +3 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +7 -13
- package/vscode/src/vs/editor/browser/widget/diffEditor/style.css.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +80 -21
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +4 -5
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +24 -18
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.js +26 -13
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget.js +4 -1
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +8 -4
- package/vscode/src/vs/editor/common/config/diffEditor.js +2 -0
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +86 -115
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +11 -1
- package/vscode/src/vs/editor/common/config/editorOptions.js +547 -932
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +102 -144
- package/vscode/src/vs/editor/common/core/lineRange.js +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +11 -0
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js +2 -2
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +8 -3
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js +34 -34
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +7 -0
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +40 -0
- package/vscode/src/vs/editor/common/editorContextKeys.js +52 -69
- package/vscode/src/vs/editor/common/languageFeatureRegistry.d.ts +1 -1
- package/vscode/src/vs/editor/common/languageFeatureRegistry.js +27 -14
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +2 -3
- package/vscode/src/vs/editor/common/languages.d.ts +4 -0
- package/vscode/src/vs/editor/common/languages.js +28 -29
- package/vscode/src/vs/editor/common/model/editStack.js +2 -3
- package/vscode/src/vs/editor/common/model/guidesTextModelPart.js +1 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +57 -54
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +3 -9
- package/vscode/src/vs/editor/common/viewModel/modelLineProjection.js +1 -1
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +7 -14
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +7 -12
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +3 -4
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +2 -3
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +18 -19
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +2 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -53
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +22 -10
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +8 -9
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +9 -10
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +183 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +4 -5
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +3 -4
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +2 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +3 -4
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js +10 -13
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +7 -8
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +12 -15
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +3 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +5 -7
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -11
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +9 -10
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +3 -5
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +4 -5
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +3 -16
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +3 -5
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +20 -24
- package/vscode/src/vs/editor/contrib/find/browser/findModel.js +6 -1
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +31 -35
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -21
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +11 -25
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +4 -5
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +3 -4
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +9 -10
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +18 -25
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +46 -47
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToSymbol.js +42 -17
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +3 -4
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +5 -13
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +4 -5
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +4 -5
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +15 -22
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +7 -11
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +5 -7
- package/vscode/src/vs/editor/contrib/hover/browser/getHover.js +8 -4
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +24 -38
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +3 -4
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +25 -27
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +12 -15
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +6 -7
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +3 -4
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +21 -22
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +9 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +12 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js +7 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.js +51 -42
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +3 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +6 -7
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +12 -16
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEdit.contribution.js +0 -3
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEdit.css.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +58 -39
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditSideBySideWidget.css.js +4 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditSideBySideWidget.js +301 -0
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/commands.js +7 -8
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/consts.js +3 -4
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +2 -3
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -32
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +3 -4
- package/vscode/src/vs/editor/contrib/links/browser/links.js +12 -14
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +2 -3
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +23 -24
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.css.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +2 -3
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +11 -12
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +20 -35
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +5 -56
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.css.js +1 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.js +71 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +8 -11
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +35 -41
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +3 -4
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +13 -25
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +9 -11
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +5 -6
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +5 -6
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +5 -6
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +13 -15
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +10 -20
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +12 -14
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +19 -32
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +3 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +3 -4
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +67 -101
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +6 -12
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +2 -3
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +30 -49
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +7 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +18 -27
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +5 -6
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +2 -3
- package/vscode/src/vs/nls.js +27 -21
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.js +15 -9
- package/vscode/src/vs/platform/accessibility/browser/accessibleViewRegistry.js +1 -16
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +0 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +53 -56
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +7 -8
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +5 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +8 -9
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +4 -5
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +43 -13
- package/vscode/src/vs/platform/actions/browser/toolbar.js +5 -6
- package/vscode/src/vs/platform/actions/common/actions.d.ts +4 -0
- package/vscode/src/vs/platform/actions/common/actions.js +4 -0
- package/vscode/src/vs/platform/actions/common/actions.service.d.ts +14 -1
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +2 -3
- package/vscode/src/vs/platform/actions/common/menuService.js +52 -21
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +11 -3
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +14 -8
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +180 -146
- package/vscode/src/vs/platform/configuration/common/configurations.js +2 -2
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +2 -3
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +13 -21
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +10 -15
- package/vscode/src/vs/platform/contextkey/common/scanner.js +7 -16
- package/vscode/src/vs/platform/contextview/browser/contextMenuService.js +2 -3
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +11 -13
- package/vscode/src/vs/platform/dnd/browser/dnd.js +3 -5
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +7 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +3 -5
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +3 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +2 -3
- package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +25 -33
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +33 -67
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +3 -18
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +31 -0
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +3 -8
- package/vscode/src/vs/platform/files/common/files.js +7 -8
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +2 -3
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +5 -0
- package/vscode/src/vs/platform/jsonschemas/common/jsonContributionRegistry.d.ts +10 -0
- package/vscode/src/vs/platform/jsonschemas/common/jsonContributionRegistry.js +8 -0
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +9 -14
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +2 -3
- package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +4 -5
- package/vscode/src/vs/platform/list/browser/listService.js +43 -71
- package/vscode/src/vs/platform/log/common/log.js +7 -8
- package/vscode/src/vs/platform/markers/common/markers.js +4 -5
- package/vscode/src/vs/platform/observable/common/wrapInReloadableClass.js +51 -0
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +39 -32
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +7 -11
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +14 -11
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +99 -142
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +3 -5
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +3 -4
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +16 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.js +6 -1
- package/vscode/src/vs/platform/request/common/request.js +23 -36
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +11 -2
- package/vscode/src/vs/platform/theme/common/colorUtils.js +3 -4
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +27 -37
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +10 -11
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +120 -207
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +53 -61
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +51 -98
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +8 -9
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +13 -15
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +12 -16
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +13 -17
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +4 -9
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +7 -9
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +49 -56
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +35 -55
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +2 -3
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +5 -8
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +38 -19
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +3 -5
- package/vscode/src/vs/platform/workspace/common/workspace.js +2 -3
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +88 -8
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +60 -0
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +48 -18
- package/vscode/src/vs/workbench/api/common/extHostComments.js +26 -4
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +4 -6
- package/vscode/src/vs/workbench/api/common/extHostDocumentData.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostEmbedding.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.js +6 -5
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +19 -17
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +45 -48
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +2 -3
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +2 -3
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +3 -9
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditor.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostQuickOpen.js +12 -8
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +5 -5
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +4 -6
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +3 -5
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +2 -8
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +69 -6
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +4 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +2 -3
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +3 -4
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +41 -11
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +78 -23
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +10 -5
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +19 -30
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +41 -59
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +161 -132
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +7 -8
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +30 -43
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +22 -23
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +5 -6
- package/vscode/src/vs/workbench/browser/actions.js +2 -3
- package/vscode/src/vs/workbench/browser/editor.js +3 -4
- package/vscode/src/vs/workbench/browser/labels.js +3 -4
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +12 -17
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +16 -25
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +2 -3
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +5 -7
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +45 -53
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +12 -13
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +2 -3
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +7 -8
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +153 -156
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +206 -329
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommandsContext.js +134 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +17 -17
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +14 -15
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +3 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +15 -23
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +8 -11
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +63 -75
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +3 -4
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +16 -17
- package/vscode/src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.js +1 -3
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +2 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +2 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +6 -9
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +2 -3
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +17 -19
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +18 -19
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +7 -11
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +7 -8
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +10 -11
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +9 -24
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +16 -28
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +4 -11
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +6 -13
- package/vscode/src/vs/workbench/browser/parts/panel/media/panelpart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +48 -49
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +20 -22
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +3 -4
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +2 -3
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +55 -49
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +2 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +12 -11
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +11 -11
- package/vscode/src/vs/workbench/browser/quickaccess.js +2 -3
- package/vscode/src/vs/workbench/browser/window.js +20 -28
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +376 -584
- package/vscode/src/vs/workbench/common/configuration.js +15 -19
- package/vscode/src/vs/workbench/common/contextkeys.js +87 -100
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +2 -3
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +2 -9
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +3 -5
- package/vscode/src/vs/workbench/common/editor.d.ts +5 -2
- package/vscode/src/vs/workbench/common/editor.js +5 -6
- package/vscode/src/vs/workbench/common/theme.js +281 -450
- package/vscode/src/vs/workbench/common/views.js +7 -11
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +207 -284
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +50 -16
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +5 -2
- package/vscode/src/vs/workbench/contrib/accessibility/common/accessibilityCommands.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +29 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +5 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +10 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +26 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +3 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +119 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.js +48 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.js +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.js +11 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.js +62 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTaskContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTreeContentPart.js +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +3 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +47 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +64 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownRenderer.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +36 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +32 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +0 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +7 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +17 -28
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +59 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +10 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +9 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +16 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +8 -14
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActions.contribution.js +3 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +80 -23
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +11 -12
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +7 -8
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +5 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +25 -30
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +5 -7
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +11 -12
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +5 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +7 -8
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +45 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +3 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +5 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +3 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +3 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +6 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +9 -11
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +10 -15
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +5 -6
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +14 -49
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +21 -18
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +4 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +8 -13
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +43 -25
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +27 -39
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +10 -14
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +2 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +15 -18
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +25 -29
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +10 -11
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +11 -15
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +1 -0
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -17
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +6 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +2 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +33 -36
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +18 -22
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +77 -97
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +15 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +13 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +35 -40
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +58 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +4 -5
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +2 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +90 -205
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +28 -11
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +2 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +3 -4
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +2 -3
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +5 -6
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +342 -359
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +35 -74
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +8 -19
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +3 -4
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +5 -7
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +7 -14
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +6 -8
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +2 -3
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +12 -20
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +28 -38
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +18 -22
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +108 -168
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +55 -30
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +9 -9
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +45 -59
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +102 -151
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +3 -4
- package/vscode/src/vs/workbench/contrib/files/browser/files.js +21 -12
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +2 -3
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +6 -8
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +9 -10
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +20 -29
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +54 -35
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +7 -10
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +2 -3
- package/vscode/src/vs/workbench/contrib/files/common/files.js +19 -40
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +5 -7
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +28 -36
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +5 -6
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +2 -3
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +5 -10
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +23 -25
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatContentWidget.js +20 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +26 -88
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +2 -34
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +7 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +13 -33
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +2 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +51 -91
- package/vscode/src/vs/workbench/contrib/issue/common/issue.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +2 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +40 -56
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +3 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +9 -10
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +2 -3
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +43 -46
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +6 -5
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +3 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +8 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +18 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +4 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +3 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +30 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +7 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +16 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +9 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +4 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +5 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +13 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +29 -54
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +29 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +11 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +5 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +54 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +3 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +5 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +4 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +3 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +3 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +5 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +22 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +8 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.js +17 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +13 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +51 -43
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +18 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +3 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +3 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +4 -10
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +14 -24
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +12 -12
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +50 -51
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +3 -2
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +24 -31
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +27 -39
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +18 -23
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +68 -80
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +3 -4
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +26 -57
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +11 -12
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +2 -3
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +14 -16
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +3 -4
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +2 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +3 -4
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +5 -19
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +4 -5
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +17 -29
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +30 -31
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +9 -13
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +9 -13
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +5 -7
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +5 -14
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +33 -34
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +9 -15
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +37 -51
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +21 -37
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +29 -34
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminal.suggest.js +4 -0
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +16 -13
- package/vscode/src/vs/workbench/contrib/testing/common/testId.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +6 -7
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.d.ts +23 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +23 -1
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +7 -8
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +4 -5
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +21 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +2 -3
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +3 -8
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +17 -11
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +23 -25
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +21 -34
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +3 -5
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +35 -53
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +3 -5
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +2 -3
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +7 -8
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +145 -236
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +14 -19
- package/vscode/src/vs/workbench/services/language/common/languageService.js +40 -57
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +2 -1
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +8 -2
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.d.ts +34 -4
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.js +6 -1
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.js +3 -3
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +3 -4
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +8 -9
- package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +1 -3
- package/vscode/src/vs/workbench/services/preferences/common/preferences.js +2 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +5 -2
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +3 -4
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.d.ts +5 -3
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.d.ts +1 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.service.d.ts +4 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +14 -20
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +9 -9
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +2 -8
- package/vscode/src/vs/workbench/services/search/common/search.js +1 -1
- package/vscode/src/vs/workbench/services/search/common/searchExtTypes.js +41 -1
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +12 -27
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +4 -5
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +34 -50
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +22 -31
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.js +1 -1
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +4 -5
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +2 -3
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +12 -13
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +8 -9
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +25 -33
- package/vscode-dts/vscode.proposed.aiTextSearchProviderNew.d.ts +119 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +61 -3
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +26 -0
- package/vscode-dts/vscode.proposed.commentReveal.d.ts +21 -8
- package/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts +0 -2
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemChangesMenu.d.ts +7 -0
- package/vscode-dts/vscode.proposed.fileComments.d.ts +1 -1
- package/vscode-dts/vscode.proposed.fileSearchProviderNew.d.ts +100 -0
- package/vscode-dts/vscode.proposed.findFiles2New.d.ts +80 -0
- package/vscode-dts/vscode.proposed.findTextInFilesNew.d.ts +143 -0
- package/vscode-dts/vscode.proposed.lmTools.d.ts +5 -0
- package/vscode-dts/vscode.proposed.quickInputButtonLocation.d.ts +29 -0
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +2 -0
- package/vscode-dts/vscode.proposed.testMessageStackTrace.d.ts +38 -0
- package/vscode-dts/vscode.proposed.testRelatedCode.d.ts +36 -0
- package/vscode-dts/vscode.proposed.textSearchCompleteNew.d.ts +46 -0
- package/vscode-dts/vscode.proposed.textSearchProviderNew.d.ts +234 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/model.js +0 -14
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +0 -115
- package/vscode/src/vs/platform/issue/common/issue.service.js +0 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +0 -570
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +0 -207
- package/vscode/src/vs/workbench/contrib/testing/common/observableValue.js +0 -30
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +0 -1016
- package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +0 -390
|
@@ -3,7 +3,7 @@ import { Emitter } from '../../../base/common/event.js';
|
|
|
3
3
|
import { Disposable } from '../../../base/common/lifecycle.js';
|
|
4
4
|
import { isSafari, isChrome, isEdge, isFirefox, isAndroid, PlatformToString, isWeb, Platform, platform } from '../../../base/common/platform.js';
|
|
5
5
|
import { escapeRegExpCharacters } from '../../../base/common/strings.js';
|
|
6
|
-
import {
|
|
6
|
+
import { localize } from '../../../nls.js';
|
|
7
7
|
import { IEnvironmentService } from '../../environment/common/environment.service.js';
|
|
8
8
|
import { IFileService } from '../../files/common/files.service.js';
|
|
9
9
|
import { IProductService } from '../../product/common/productService.service.js';
|
|
@@ -12,7 +12,6 @@ import { StorageScope, StorageTarget } from '../../storage/common/storage.js';
|
|
|
12
12
|
import { IStorageService } from '../../storage/common/storage.service.js';
|
|
13
13
|
import { IUserDataSyncStoreService, IUserDataSyncLogService } from './userDataSync.service.js';
|
|
14
14
|
var UserDataSyncMachinesService_1;
|
|
15
|
-
const _moduleId = "vs/platform/userDataSync/common/userDataSyncMachines";
|
|
16
15
|
const currentMachineNameKey = 'sync.currentMachineName';
|
|
17
16
|
const Safari = 'Safari';
|
|
18
17
|
const Chrome = 'Chrome';
|
|
@@ -129,9 +128,8 @@ let UserDataSyncMachinesService = class UserDataSyncMachinesService extends Disp
|
|
|
129
128
|
this.userData = await this.readUserData(manifest);
|
|
130
129
|
const machinesData = this.parse(this.userData);
|
|
131
130
|
if (machinesData.version !== UserDataSyncMachinesService_1.VERSION) {
|
|
132
|
-
throw ( new Error(
|
|
133
|
-
|
|
134
|
-
0,
|
|
131
|
+
throw ( new Error(localize(
|
|
132
|
+
3462,
|
|
135
133
|
"Cannot read machines data as the current version is incompatible. Please update {0} and try again.",
|
|
136
134
|
this.productService.nameLong
|
|
137
135
|
)));
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { localize } from '../../../nls.js';
|
|
2
2
|
import { basename, extname } from '../../../base/common/path.js';
|
|
3
3
|
import { TernarySearchTree } from '../../../base/common/ternarySearchTree.js';
|
|
4
4
|
import { joinPath, extname as extname$1, basenameOrAuthority, extUriBiasedIgnorePathCase } from '../../../base/common/resources.js';
|
|
5
5
|
import { URI } from '../../../base/common/uri.js';
|
|
6
6
|
import { Schemas } from '../../../base/common/network.js';
|
|
7
|
-
const _moduleId = "vs/platform/workspace/common/workspace";
|
|
8
7
|
function isSingleFolderWorkspaceIdentifier(obj) {
|
|
9
8
|
const singleFolderIdentifier = obj;
|
|
10
9
|
return typeof singleFolderIdentifier?.id === 'string' && URI.isUri(singleFolderIdentifier.uri);
|
|
@@ -141,7 +140,7 @@ function toWorkspaceFolder(resource) {
|
|
|
141
140
|
}
|
|
142
141
|
const WORKSPACE_EXTENSION = 'code-workspace';
|
|
143
142
|
const WORKSPACE_SUFFIX = `.${WORKSPACE_EXTENSION}`;
|
|
144
|
-
const WORKSPACE_FILTER = [{ name: (
|
|
143
|
+
const WORKSPACE_FILTER = [{ name: ( localize(775, "Code Workspace")), extensions: [WORKSPACE_EXTENSION] }];
|
|
145
144
|
const UNTITLED_WORKSPACE_NAME = 'workspace.json';
|
|
146
145
|
function isUntitledWorkspace(path, environmentService) {
|
|
147
146
|
return extUriBiasedIgnorePathCase.isEqualOrParent(path, environmentService.untitledWorkspacesHome);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AsyncIterableObject } from '../../../base/common/async.js';
|
|
1
2
|
import { CancellationTokenSource } from '../../../base/common/cancellation.js';
|
|
2
3
|
import { CancellationError, ReadonlyError, onUnexpectedExternalError } from '../../../base/common/errors.js';
|
|
3
4
|
import { Emitter, Event } from '../../../base/common/event.js';
|
|
@@ -6,7 +7,7 @@ import { matchesScheme, Schemas } from '../../../base/common/network.js';
|
|
|
6
7
|
import Severity$1 from '../../../base/common/severity.js';
|
|
7
8
|
import { URI } from '../../../base/common/uri.js';
|
|
8
9
|
import { TextEditorCursorStyle } from '../../../editor/common/config/editorOptions.js';
|
|
9
|
-
import {
|
|
10
|
+
import { score, targetsNotebooks } from '../../../editor/common/languageSelector.js';
|
|
10
11
|
import { IndentAction } from '../../../editor/common/languages/languageConfiguration.js';
|
|
11
12
|
import { OverviewRulerLane } from '../../../editor/common/model.js';
|
|
12
13
|
import { ExtensionIdentifierSet } from '../../../platform/extensions/common/extensions.js';
|
|
@@ -87,7 +88,7 @@ import { ExtHostTimeline } from './extHostTimeline.js';
|
|
|
87
88
|
import { ExtHostTreeViews } from './extHostTreeViews.js';
|
|
88
89
|
import { IExtHostTunnelService } from './extHostTunnelService.js';
|
|
89
90
|
import { LanguageSelector } from './extHostTypeConverters.js';
|
|
90
|
-
import { Breakpoint, TerminalOutputAnchor, ChatResultFeedbackKind, ChatVariableLevel, ChatCompletionItem, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentState, CommentThreadCollapsibleState, CommentThreadState, CommentThreadApplicability, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomExecution, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConsoleMode, DebugVisualization, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentHighlight, DocumentHighlightKind, MultiDocumentHighlight, DocumentLink, DocumentSymbol, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, InlineCompletionTriggerKind, ExtensionKind, ExtensionMode, ExternalUriOpenerPriority, FileChangeType, FileDecoration, FileSystemError, FoldingRange, FoldingRangeKind, FunctionBreakpoint, InlineSuggestion, InlineSuggestionList, Hover, VerboseHover, HoverVerbosityAction, Location, MarkdownString, ParameterInformation, PortAutoForwardAction, Position, ProcessExecution, ProgressLocation, QuickInputButtons, Range, RelativePattern, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SourceBreakpoint, StandardTokenType, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TerminalLink, TerminalQuickFixCommand, TerminalQuickFixOpener, TerminalLocation, TerminalProfile, TerminalExitReason, TerminalShellExecutionCommandLineConfidence, TextDocumentSaveReason, TextEdit, SnippetTextEdit, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, SyntaxTokenType, TextDocumentChangeReason, ThemeColor, ThemeIcon, TreeItem, TreeItemCheckboxState, TreeItemCollapsibleState, TypeHierarchyItem, ViewColumn, WorkspaceEdit, DocumentPasteTriggerKind, DocumentDropEdit, DocumentDropOrPasteEditKind, DocumentPasteEdit, InlayHint, InlayHintLabelPart, InlayHintKind, RemoteAuthorityResolverError, ResolvedAuthority, ManagedResolvedAuthority, SourceControlInputBoxValidationType, ExtensionRuntime, TimelineItem, NotebookRange, NotebookCellKind, NotebookCellExecutionState, NotebookCellData, NotebookData, NotebookRendererScript, NotebookCellStatusBarAlignment, NotebookEditorRevealType, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarItem, NotebookControllerAffinity, NotebookControllerAffinity2, NotebookEdit, NotebookKernelSourceAction, NotebookVariablesRequestKind, PortAttributes, LinkedEditingRanges, TestResultState, TestRunRequest, TestMessage, TestTag, TestRunProfileKind, DataTransfer, DataTransferItem, TestCoverageCount, FileCoverage, StatementCoverage, BranchCoverage, DeclarationCoverage, WorkspaceTrustState, LanguageStatusSeverity, QuickPickItemKind, InputBoxValidationSeverity, TextTabInput, TextDiffTabInput, TextMergeTabInput, CustomEditorTabInput, NotebookEditorTabInput, NotebookDiffEditorTabInput, WebviewEditorTabInput, TerminalEditorTabInput, InteractiveWindowInput, ChatEditorTabInput, TextMultiDiffTabInput, InteractiveSessionVoteDirection, ChatCopyKind, InteractiveEditorResponseFeedbackKind, DebugStackFrame, DebugThread, RelatedInformationType, SpeechToTextStatus, TextToSpeechStatus, PartialAcceptTriggerKind, KeywordRecognitionStatus, ChatResponseMarkdownPart, ChatResponseFileTreePart, ChatResponseAnchorPart, ChatResponseProgressPart, ChatResponseProgressPart2, ChatResponseReferencePart, ChatResponseWarningPart, ChatResponseTextEditPart, ChatResponseMarkdownWithVulnerabilitiesPart, ChatResponseCommandButtonPart, ChatResponseDetectedParticipantPart, ChatResponseConfirmationPart, ChatRequestTurn, ChatResponseTurn, ChatLocation, LanguageModelChatMessageRole, LanguageModelChatMessage, LanguageModelFunctionResultPart, LanguageModelTextPart, LanguageModelFunctionUsePart,
|
|
91
|
+
import { Breakpoint, TerminalOutputAnchor, ChatResultFeedbackKind, ChatVariableLevel, ChatCompletionItem, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentState, CommentThreadCollapsibleState, CommentThreadState, CommentThreadApplicability, CommentThreadFocus, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomExecution, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConsoleMode, DebugVisualization, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentHighlight, DocumentHighlightKind, MultiDocumentHighlight, DocumentLink, DocumentSymbol, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, InlineCompletionTriggerKind, ExtensionKind, ExtensionMode, ExternalUriOpenerPriority, FileChangeType, FileDecoration, FileSystemError, FoldingRange, FoldingRangeKind, FunctionBreakpoint, InlineSuggestion, InlineSuggestionList, Hover, VerboseHover, HoverVerbosityAction, Location, MarkdownString, ParameterInformation, PortAutoForwardAction, Position, ProcessExecution, ProgressLocation, QuickInputButtonLocation, QuickInputButtons, Range, RelativePattern, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SourceBreakpoint, StandardTokenType, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TerminalLink, TerminalQuickFixCommand, TerminalQuickFixOpener, TerminalLocation, TerminalProfile, TerminalExitReason, TerminalShellExecutionCommandLineConfidence, TextDocumentSaveReason, TextEdit, SnippetTextEdit, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, SyntaxTokenType, TextDocumentChangeReason, ThemeColor, ThemeIcon, TreeItem, TreeItemCheckboxState, TreeItemCollapsibleState, TypeHierarchyItem, ViewColumn, WorkspaceEdit, DocumentPasteTriggerKind, DocumentDropEdit, DocumentDropOrPasteEditKind, DocumentPasteEdit, InlayHint, InlayHintLabelPart, InlayHintKind, RemoteAuthorityResolverError, ResolvedAuthority, ManagedResolvedAuthority, SourceControlInputBoxValidationType, ExtensionRuntime, TimelineItem, NotebookRange, NotebookCellKind, NotebookCellExecutionState, NotebookCellData, NotebookData, NotebookRendererScript, NotebookCellStatusBarAlignment, NotebookEditorRevealType, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarItem, NotebookControllerAffinity, NotebookControllerAffinity2, NotebookEdit, NotebookKernelSourceAction, NotebookVariablesRequestKind, PortAttributes, LinkedEditingRanges, TestResultState, TestRunRequest, TestMessage, TestMessageStackFrame, TestTag, TestRunProfileKind, DataTransfer, DataTransferItem, TestCoverageCount, FileCoverage, StatementCoverage, BranchCoverage, DeclarationCoverage, WorkspaceTrustState, LanguageStatusSeverity, QuickPickItemKind, InputBoxValidationSeverity, TextTabInput, TextDiffTabInput, TextMergeTabInput, CustomEditorTabInput, NotebookEditorTabInput, NotebookDiffEditorTabInput, WebviewEditorTabInput, TerminalEditorTabInput, InteractiveWindowInput, ChatEditorTabInput, TextMultiDiffTabInput, InteractiveSessionVoteDirection, ChatCopyKind, InteractiveEditorResponseFeedbackKind, DebugStackFrame, DebugThread, RelatedInformationType, SpeechToTextStatus, TextToSpeechStatus, PartialAcceptTriggerKind, KeywordRecognitionStatus, ChatResponseMarkdownPart, ChatResponseFileTreePart, ChatResponseAnchorPart, ChatResponseProgressPart, ChatResponseProgressPart2, ChatResponseReferencePart, ChatResponseCodeCitationPart, ChatResponseWarningPart, ChatResponseTextEditPart, ChatResponseMarkdownWithVulnerabilitiesPart, ChatResponseCommandButtonPart, ChatResponseDetectedParticipantPart, ChatResponseConfirmationPart, ChatResponseReferencePartStatusKind, ChatRequestTurn, ChatResponseTurn, ChatLocation, ChatRequestEditorData, ChatRequestNotebookData, LanguageModelChatMessageRole, LanguageModelChatMessage, LanguageModelFunctionResultPart, LanguageModelTextPart, LanguageModelFunctionUsePart, LanguageModelError, NewSymbolName, NewSymbolNameTag, NewSymbolNameTriggerKind, InlineEdit, InlineEditTriggerKind } from './extHostTypes.js';
|
|
91
92
|
import { ExtHostUriOpeners } from './extHostUriOpener.js';
|
|
92
93
|
import { IURITransformerService } from './extHostUriTransformerService.js';
|
|
93
94
|
import { ExtHostUrls } from './extHostUrls.js';
|
|
@@ -99,7 +100,7 @@ import { IExtHostWorkspace } from './extHostWorkspace.js';
|
|
|
99
100
|
import { DebugConfigurationProviderTriggerKind } from '../../contrib/debug/common/debug.js';
|
|
100
101
|
import { UIKind } from '../../services/extensions/common/extensionHostProtocol.js';
|
|
101
102
|
import { checkProposedApiEnabled, isProposedApiEnabled } from '../../services/extensions/common/extensions.js';
|
|
102
|
-
import { TextSearchCompleteMessageType } from '../../services/search/common/searchExtTypes.js';
|
|
103
|
+
import { TextSearchCompleteMessageType, ExcludeSettingOptions, TextSearchContextNew, TextSearchMatchNew, TextSearchCompleteMessageTypeNew, oldToNewTextSearchResult } from '../../services/search/common/searchExtTypes.js';
|
|
103
104
|
function createApiFactoryAndRegisterActors(accessor) {
|
|
104
105
|
const initData = accessor.get(IExtHostInitDataService);
|
|
105
106
|
const extHostFileSystemInfo = accessor.get(IExtHostFileSystemInfo);
|
|
@@ -221,7 +222,7 @@ function createApiFactoryAndRegisterActors(accessor) {
|
|
|
221
222
|
extHostCommands,
|
|
222
223
|
extHostLogService
|
|
223
224
|
)));
|
|
224
|
-
const extHostChatAgents2 = rpcProtocol.set(ExtHostContext.ExtHostChatAgents2, ( new ExtHostChatAgents2(rpcProtocol, extHostLogService, extHostCommands)));
|
|
225
|
+
const extHostChatAgents2 = rpcProtocol.set(ExtHostContext.ExtHostChatAgents2, ( new ExtHostChatAgents2(rpcProtocol, extHostLogService, extHostCommands, extHostDocuments)));
|
|
225
226
|
const extHostChatVariables = rpcProtocol.set(ExtHostContext.ExtHostChatVariables, ( new ExtHostChatVariables(rpcProtocol)));
|
|
226
227
|
const extHostLanguageModelTools = rpcProtocol.set(ExtHostContext.ExtHostLanguageModelTools, ( new ExtHostLanguageModelTools(rpcProtocol)));
|
|
227
228
|
const extHostAiRelatedInformation = rpcProtocol.set(ExtHostContext.ExtHostAiRelatedInformation, ( new ExtHostRelatedInformation(rpcProtocol)));
|
|
@@ -944,6 +945,20 @@ function createApiFactoryAndRegisterActors(accessor) {
|
|
|
944
945
|
checkProposedApiEnabled(extension, 'findFiles2');
|
|
945
946
|
return extHostWorkspace.findFiles2(filePattern, options, extension.identifier, token);
|
|
946
947
|
},
|
|
948
|
+
findFiles2New: (filePattern, options, token) => {
|
|
949
|
+
checkProposedApiEnabled(extension, 'findFiles2New');
|
|
950
|
+
const oldOptions = {
|
|
951
|
+
exclude: options?.exclude && options.exclude.length > 0 ? options.exclude[0] : undefined,
|
|
952
|
+
useDefaultExcludes: !options?.useExcludeSettings || (options?.useExcludeSettings === ExcludeSettingOptions.filesExclude || options?.useExcludeSettings === ExcludeSettingOptions.searchAndFilesExclude),
|
|
953
|
+
useDefaultSearchExcludes: !options?.useExcludeSettings || (options?.useExcludeSettings === ExcludeSettingOptions.searchAndFilesExclude),
|
|
954
|
+
maxResults: options?.maxResults,
|
|
955
|
+
useIgnoreFiles: options?.useIgnoreFiles?.local,
|
|
956
|
+
useGlobalIgnoreFiles: options?.useIgnoreFiles?.global,
|
|
957
|
+
useParentIgnoreFiles: options?.useIgnoreFiles?.parent,
|
|
958
|
+
followSymlinks: options?.followSymlinks,
|
|
959
|
+
};
|
|
960
|
+
return extHostWorkspace.findFiles2(filePattern && filePattern.length > 0 ? filePattern[0] : undefined, oldOptions, extension.identifier, token);
|
|
961
|
+
},
|
|
947
962
|
findTextInFiles: (query, optionsOrCallback, callbackOrToken, token) => {
|
|
948
963
|
checkProposedApiEnabled(extension, 'findTextInFiles');
|
|
949
964
|
let options;
|
|
@@ -959,6 +974,49 @@ function createApiFactoryAndRegisterActors(accessor) {
|
|
|
959
974
|
}
|
|
960
975
|
return extHostWorkspace.findTextInFiles(query, options || {}, callback, extension.identifier, token);
|
|
961
976
|
},
|
|
977
|
+
findTextInFilesNew: (query, options, token) => {
|
|
978
|
+
checkProposedApiEnabled(extension, 'findTextInFilesNew');
|
|
979
|
+
checkProposedApiEnabled(extension, 'textSearchProviderNew');
|
|
980
|
+
let oldOptions = {};
|
|
981
|
+
if (options) {
|
|
982
|
+
oldOptions = {
|
|
983
|
+
include: options.include && options.include.length > 0 ? options.include[0] : undefined,
|
|
984
|
+
exclude: options.exclude && options.exclude.length > 0 ? options.exclude[0] : undefined,
|
|
985
|
+
useDefaultExcludes: options.useExcludeSettings === undefined || (options.useExcludeSettings === ExcludeSettingOptions.filesExclude || options.useExcludeSettings === ExcludeSettingOptions.searchAndFilesExclude),
|
|
986
|
+
useSearchExclude: options.useExcludeSettings === undefined || (options.useExcludeSettings === ExcludeSettingOptions.searchAndFilesExclude),
|
|
987
|
+
maxResults: options.maxResults,
|
|
988
|
+
useIgnoreFiles: options.useIgnoreFiles?.local,
|
|
989
|
+
useGlobalIgnoreFiles: options.useIgnoreFiles?.global,
|
|
990
|
+
useParentIgnoreFiles: options.useIgnoreFiles?.parent,
|
|
991
|
+
followSymlinks: options.followSymlinks,
|
|
992
|
+
encoding: options.encoding,
|
|
993
|
+
previewOptions: options.previewOptions ? {
|
|
994
|
+
matchLines: options.previewOptions?.matchLines ?? 100,
|
|
995
|
+
charsPerLine: options.previewOptions?.charsPerLine ?? 10000,
|
|
996
|
+
} : undefined,
|
|
997
|
+
beforeContext: options.surroundingContext,
|
|
998
|
+
afterContext: options.surroundingContext,
|
|
999
|
+
};
|
|
1000
|
+
}
|
|
1001
|
+
const complete = Promise.resolve(undefined);
|
|
1002
|
+
const asyncIterable = ( new AsyncIterableObject(async (emitter) => {
|
|
1003
|
+
const callback = async (result) => {
|
|
1004
|
+
emitter.emitOne(oldToNewTextSearchResult(result));
|
|
1005
|
+
return result;
|
|
1006
|
+
};
|
|
1007
|
+
await complete.then(e => {
|
|
1008
|
+
return extHostWorkspace.findTextInFiles(query, oldOptions, callback, extension.identifier, token);
|
|
1009
|
+
});
|
|
1010
|
+
}));
|
|
1011
|
+
return {
|
|
1012
|
+
results: asyncIterable,
|
|
1013
|
+
complete: complete.then((e) => {
|
|
1014
|
+
return {
|
|
1015
|
+
limitHit: e?.limitHit ?? false
|
|
1016
|
+
};
|
|
1017
|
+
}),
|
|
1018
|
+
};
|
|
1019
|
+
},
|
|
962
1020
|
save: (uri) => {
|
|
963
1021
|
return extHostWorkspace.save(uri);
|
|
964
1022
|
},
|
|
@@ -1103,6 +1161,19 @@ function createApiFactoryAndRegisterActors(accessor) {
|
|
|
1103
1161
|
checkProposedApiEnabled(extension, 'textSearchProvider');
|
|
1104
1162
|
return extHostSearch.registerAITextSearchProvider(scheme, provider);
|
|
1105
1163
|
},
|
|
1164
|
+
registerFileSearchProviderNew: (scheme, provider) => {
|
|
1165
|
+
checkProposedApiEnabled(extension, 'fileSearchProviderNew');
|
|
1166
|
+
return { dispose: () => { } };
|
|
1167
|
+
},
|
|
1168
|
+
registerTextSearchProviderNew: (scheme, provider) => {
|
|
1169
|
+
checkProposedApiEnabled(extension, 'textSearchProviderNew');
|
|
1170
|
+
return { dispose: () => { } };
|
|
1171
|
+
},
|
|
1172
|
+
registerAITextSearchProviderNew: (scheme, provider) => {
|
|
1173
|
+
checkProposedApiEnabled(extension, 'aiTextSearchProviderNew');
|
|
1174
|
+
checkProposedApiEnabled(extension, 'textSearchProviderNew');
|
|
1175
|
+
return { dispose: () => { } };
|
|
1176
|
+
},
|
|
1106
1177
|
registerRemoteAuthorityResolver: (authorityPrefix, resolver) => {
|
|
1107
1178
|
checkProposedApiEnabled(extension, 'resolvers');
|
|
1108
1179
|
return extensionService.registerRemoteAuthorityResolver(authorityPrefix, resolver);
|
|
@@ -1474,6 +1545,7 @@ function createApiFactoryAndRegisterActors(accessor) {
|
|
|
1474
1545
|
CommentThreadCollapsibleState: CommentThreadCollapsibleState,
|
|
1475
1546
|
CommentThreadState: CommentThreadState,
|
|
1476
1547
|
CommentThreadApplicability: CommentThreadApplicability,
|
|
1548
|
+
CommentThreadFocus: CommentThreadFocus,
|
|
1477
1549
|
CompletionItem: CompletionItem,
|
|
1478
1550
|
CompletionItemKind: CompletionItemKind,
|
|
1479
1551
|
CompletionItemTag: CompletionItemTag,
|
|
@@ -1533,6 +1605,7 @@ function createApiFactoryAndRegisterActors(accessor) {
|
|
|
1533
1605
|
Position: Position,
|
|
1534
1606
|
ProcessExecution: ProcessExecution,
|
|
1535
1607
|
ProgressLocation: ProgressLocation,
|
|
1608
|
+
QuickInputButtonLocation: QuickInputButtonLocation,
|
|
1536
1609
|
QuickInputButtons: QuickInputButtons,
|
|
1537
1610
|
Range: Range,
|
|
1538
1611
|
RelativePattern: RelativePattern,
|
|
@@ -1620,6 +1693,8 @@ function createApiFactoryAndRegisterActors(accessor) {
|
|
|
1620
1693
|
TestResultState: TestResultState,
|
|
1621
1694
|
TestRunRequest: TestRunRequest,
|
|
1622
1695
|
TestMessage: TestMessage,
|
|
1696
|
+
TestMessage2: TestMessage,
|
|
1697
|
+
TestMessageStackFrame: TestMessageStackFrame,
|
|
1623
1698
|
TestTag: TestTag,
|
|
1624
1699
|
TestRunProfileKind: TestRunProfileKind,
|
|
1625
1700
|
TextSearchCompleteMessageType: TextSearchCompleteMessageType,
|
|
@@ -1665,30 +1740,35 @@ function createApiFactoryAndRegisterActors(accessor) {
|
|
|
1665
1740
|
ChatResponseProgressPart: ChatResponseProgressPart,
|
|
1666
1741
|
ChatResponseProgressPart2: ChatResponseProgressPart2,
|
|
1667
1742
|
ChatResponseReferencePart: ChatResponseReferencePart,
|
|
1743
|
+
ChatResponseReferencePart2: ChatResponseReferencePart,
|
|
1744
|
+
ChatResponseCodeCitationPart: ChatResponseCodeCitationPart,
|
|
1668
1745
|
ChatResponseWarningPart: ChatResponseWarningPart,
|
|
1669
1746
|
ChatResponseTextEditPart: ChatResponseTextEditPart,
|
|
1670
1747
|
ChatResponseMarkdownWithVulnerabilitiesPart: ChatResponseMarkdownWithVulnerabilitiesPart,
|
|
1671
1748
|
ChatResponseCommandButtonPart: ChatResponseCommandButtonPart,
|
|
1672
1749
|
ChatResponseDetectedParticipantPart: ChatResponseDetectedParticipantPart,
|
|
1673
1750
|
ChatResponseConfirmationPart: ChatResponseConfirmationPart,
|
|
1751
|
+
ChatResponseReferencePartStatusKind: ChatResponseReferencePartStatusKind,
|
|
1674
1752
|
ChatRequestTurn: ChatRequestTurn,
|
|
1675
1753
|
ChatResponseTurn: ChatResponseTurn,
|
|
1676
1754
|
ChatLocation: ChatLocation,
|
|
1755
|
+
ChatRequestEditorData: ChatRequestEditorData,
|
|
1756
|
+
ChatRequestNotebookData: ChatRequestNotebookData,
|
|
1677
1757
|
LanguageModelChatMessageRole: LanguageModelChatMessageRole,
|
|
1678
1758
|
LanguageModelChatMessage: LanguageModelChatMessage,
|
|
1679
1759
|
LanguageModelChatMessageFunctionResultPart: LanguageModelFunctionResultPart,
|
|
1680
1760
|
LanguageModelChatResponseTextPart: LanguageModelTextPart,
|
|
1681
1761
|
LanguageModelChatResponseFunctionUsePart: LanguageModelFunctionUsePart,
|
|
1682
|
-
LanguageModelChatMessage2: LanguageModelChatMessage,
|
|
1683
|
-
LanguageModelChatSystemMessage: LanguageModelChatSystemMessage,
|
|
1684
|
-
LanguageModelChatUserMessage: LanguageModelChatUserMessage,
|
|
1685
|
-
LanguageModelChatAssistantMessage: LanguageModelChatAssistantMessage,
|
|
1686
1762
|
LanguageModelError: LanguageModelError,
|
|
1687
1763
|
NewSymbolName: NewSymbolName,
|
|
1688
1764
|
NewSymbolNameTag: NewSymbolNameTag,
|
|
1689
1765
|
NewSymbolNameTriggerKind: NewSymbolNameTriggerKind,
|
|
1690
1766
|
InlineEdit: InlineEdit,
|
|
1691
1767
|
InlineEditTriggerKind: InlineEditTriggerKind,
|
|
1768
|
+
ExcludeSettingOptions: ExcludeSettingOptions,
|
|
1769
|
+
TextSearchContextNew: TextSearchContextNew,
|
|
1770
|
+
TextSearchMatchNew: TextSearchMatchNew,
|
|
1771
|
+
TextSearchCompleteMessageTypeNew: TextSearchCompleteMessageTypeNew,
|
|
1692
1772
|
};
|
|
1693
1773
|
};
|
|
1694
1774
|
}
|
|
@@ -92,6 +92,16 @@ const newCommands = [
|
|
|
92
92
|
mapLocationOrLocationLink
|
|
93
93
|
))
|
|
94
94
|
)),
|
|
95
|
+
( new ApiCommand(
|
|
96
|
+
'vscode.experimental.executeDefinitionProvider_recursive',
|
|
97
|
+
'_executeDefinitionProvider_recursive',
|
|
98
|
+
'Execute all definition providers.',
|
|
99
|
+
[ApiCommandArgument.Uri, ApiCommandArgument.Position],
|
|
100
|
+
( new ApiCommandResult(
|
|
101
|
+
'A promise that resolves to an array of Location or LocationLink instances.',
|
|
102
|
+
mapLocationOrLocationLink
|
|
103
|
+
))
|
|
104
|
+
)),
|
|
95
105
|
( new ApiCommand(
|
|
96
106
|
'vscode.executeTypeDefinitionProvider',
|
|
97
107
|
'_executeTypeDefinitionProvider',
|
|
@@ -102,6 +112,16 @@ const newCommands = [
|
|
|
102
112
|
mapLocationOrLocationLink
|
|
103
113
|
))
|
|
104
114
|
)),
|
|
115
|
+
( new ApiCommand(
|
|
116
|
+
'vscode.experimental.executeTypeDefinitionProvider_recursive',
|
|
117
|
+
'_executeTypeDefinitionProvider_recursive',
|
|
118
|
+
'Execute all type definition providers.',
|
|
119
|
+
[ApiCommandArgument.Uri, ApiCommandArgument.Position],
|
|
120
|
+
( new ApiCommandResult(
|
|
121
|
+
'A promise that resolves to an array of Location or LocationLink instances.',
|
|
122
|
+
mapLocationOrLocationLink
|
|
123
|
+
))
|
|
124
|
+
)),
|
|
105
125
|
( new ApiCommand(
|
|
106
126
|
'vscode.executeDeclarationProvider',
|
|
107
127
|
'_executeDeclarationProvider',
|
|
@@ -112,6 +132,16 @@ const newCommands = [
|
|
|
112
132
|
mapLocationOrLocationLink
|
|
113
133
|
))
|
|
114
134
|
)),
|
|
135
|
+
( new ApiCommand(
|
|
136
|
+
'vscode.experimental.executeDeclarationProvider_recursive',
|
|
137
|
+
'_executeDeclarationProvider_recursive',
|
|
138
|
+
'Execute all declaration providers.',
|
|
139
|
+
[ApiCommandArgument.Uri, ApiCommandArgument.Position],
|
|
140
|
+
( new ApiCommandResult(
|
|
141
|
+
'A promise that resolves to an array of Location or LocationLink instances.',
|
|
142
|
+
mapLocationOrLocationLink
|
|
143
|
+
))
|
|
144
|
+
)),
|
|
115
145
|
( new ApiCommand(
|
|
116
146
|
'vscode.executeImplementationProvider',
|
|
117
147
|
'_executeImplementationProvider',
|
|
@@ -122,6 +152,16 @@ const newCommands = [
|
|
|
122
152
|
mapLocationOrLocationLink
|
|
123
153
|
))
|
|
124
154
|
)),
|
|
155
|
+
( new ApiCommand(
|
|
156
|
+
'vscode.experimental.executeImplementationProvider_recursive',
|
|
157
|
+
'_executeImplementationProvider_recursive',
|
|
158
|
+
'Execute all implementation providers.',
|
|
159
|
+
[ApiCommandArgument.Uri, ApiCommandArgument.Position],
|
|
160
|
+
( new ApiCommandResult(
|
|
161
|
+
'A promise that resolves to an array of Location or LocationLink instances.',
|
|
162
|
+
mapLocationOrLocationLink
|
|
163
|
+
))
|
|
164
|
+
)),
|
|
125
165
|
( new ApiCommand(
|
|
126
166
|
'vscode.executeReferenceProvider',
|
|
127
167
|
'_executeReferenceProvider',
|
|
@@ -132,6 +172,16 @@ const newCommands = [
|
|
|
132
172
|
tryMapWith(location.to)
|
|
133
173
|
))
|
|
134
174
|
)),
|
|
175
|
+
( new ApiCommand(
|
|
176
|
+
'vscode.experimental.executeReferenceProvider',
|
|
177
|
+
'_executeReferenceProvider_recursive',
|
|
178
|
+
'Execute all reference providers.',
|
|
179
|
+
[ApiCommandArgument.Uri, ApiCommandArgument.Position],
|
|
180
|
+
( new ApiCommandResult(
|
|
181
|
+
'A promise that resolves to an array of Location-instances.',
|
|
182
|
+
tryMapWith(location.to)
|
|
183
|
+
))
|
|
184
|
+
)),
|
|
135
185
|
(
|
|
136
186
|
new ApiCommand(
|
|
137
187
|
'vscode.executeHoverProvider',
|
|
@@ -143,6 +193,16 @@ const newCommands = [
|
|
|
143
193
|
tryMapWith(Hover.to)
|
|
144
194
|
))
|
|
145
195
|
)),
|
|
196
|
+
( new ApiCommand(
|
|
197
|
+
'vscode.experimental.executeHoverProvider_recursive',
|
|
198
|
+
'_executeHoverProvider_recursive',
|
|
199
|
+
'Execute all hover providers.',
|
|
200
|
+
[ApiCommandArgument.Uri, ApiCommandArgument.Position],
|
|
201
|
+
( new ApiCommandResult(
|
|
202
|
+
'A promise that resolves to an array of Hover-instances.',
|
|
203
|
+
tryMapWith(Hover.to)
|
|
204
|
+
))
|
|
205
|
+
)),
|
|
146
206
|
(
|
|
147
207
|
new ApiCommand(
|
|
148
208
|
'vscode.executeSelectionRangeProvider',
|
|
@@ -4,13 +4,15 @@ import { toErrorMessage } from '../../../base/common/errorMessage.js';
|
|
|
4
4
|
import { Emitter } from '../../../base/common/event.js';
|
|
5
5
|
import { Iterable } from '../../../base/common/iterator.js';
|
|
6
6
|
import { Disposable, DisposableMap, DisposableStore } from '../../../base/common/lifecycle.js';
|
|
7
|
+
import { revive } from '../../../base/common/marshalling.js';
|
|
7
8
|
import { StopWatch } from '../../../base/common/stopwatch.js';
|
|
8
9
|
import { assertType } from '../../../base/common/types.js';
|
|
9
10
|
import { URI } from '../../../base/common/uri.js';
|
|
10
11
|
import { ExtensionIdentifier } from '../../../platform/extensions/common/extensions.js';
|
|
11
12
|
import { MainContext } from './extHost.protocol.js';
|
|
12
|
-
import { ChatAgentRequest, ChatAgentResult,
|
|
13
|
-
import { LanguageModelError, ChatRequestTurn, ChatResponseTurn, ChatResultFeedbackKind, ChatResponseMarkdownPart, ChatResponseMarkdownWithVulnerabilitiesPart, ChatResponseWarningPart, ChatResponseTextEditPart as ChatResponseTextEditPart$1, ChatResponseDetectedParticipantPart as ChatResponseDetectedParticipantPart$1, ChatResponseConfirmationPart as ChatResponseConfirmationPart$1, ChatResponseReferencePart as ChatResponseReferencePart$1, ThemeIcon, ChatResponseFileTreePart, ChatResponseAnchorPart as ChatResponseAnchorPart$1, ChatResponseCommandButtonPart as ChatResponseCommandButtonPart$1, ChatResponseProgressPart2, MarkdownString as MarkdownString$1 } from './extHostTypes.js';
|
|
13
|
+
import { Selection, Range, ChatAgentRequest, ChatAgentResult, ChatFollowup, ChatAgentUserActionEvent, ChatAgentCompletionItem, ChatLocation, ChatAgentValueReference, ChatResponsePart, MarkdownString, ChatResponseMarkdownPart as ChatResponseMarkdownPart$1, ChatResponseMarkdownWithVulnerabilitiesPart as ChatResponseMarkdownWithVulnerabilitiesPart$1, ChatResponseFilesPart, ChatResponseAnchorPart, ChatResponseCommandButtonPart, ChatTask, ChatResponseProgressPart, ChatResponseWarningPart as ChatResponseWarningPart$1, ChatResponseReferencePart, ChatResponseCodeCitationPart, ChatResponseTextEditPart, ChatResponseDetectedParticipantPart, ChatResponseConfirmationPart, ChatTaskResult } from './extHostTypeConverters.js';
|
|
14
|
+
import { ChatRequestEditorData, ChatRequestNotebookData, LanguageModelError, ChatRequestTurn, ChatResponseTurn, ChatResultFeedbackKind, ChatResponseMarkdownPart, ChatResponseMarkdownWithVulnerabilitiesPart, ChatResponseWarningPart, ChatResponseTextEditPart as ChatResponseTextEditPart$1, ChatResponseDetectedParticipantPart as ChatResponseDetectedParticipantPart$1, ChatResponseConfirmationPart as ChatResponseConfirmationPart$1, ChatResponseCodeCitationPart as ChatResponseCodeCitationPart$1, ChatResponseReferencePart as ChatResponseReferencePart$1, ThemeIcon, ChatResponseFileTreePart, ChatResponseAnchorPart as ChatResponseAnchorPart$1, ChatResponseCommandButtonPart as ChatResponseCommandButtonPart$1, ChatResponseProgressPart2, MarkdownString as MarkdownString$1 } from './extHostTypes.js';
|
|
15
|
+
import { ChatAgentLocation } from '../../contrib/chat/common/chatAgents.js';
|
|
14
16
|
import { ChatAgentVoteDirection } from '../../contrib/chat/common/chatService.js';
|
|
15
17
|
import { checkProposedApiEnabled, isProposedApiEnabled } from '../../services/extensions/common/extensions.js';
|
|
16
18
|
class ChatAgentResponseStream {
|
|
@@ -128,6 +130,9 @@ class ChatAgentResponseStream {
|
|
|
128
130
|
return this;
|
|
129
131
|
},
|
|
130
132
|
reference(value, iconPath) {
|
|
133
|
+
return this.reference2(value, iconPath);
|
|
134
|
+
},
|
|
135
|
+
reference2(value, iconPath, options) {
|
|
131
136
|
throwIfDone(this.reference);
|
|
132
137
|
if ('variableName' in value) {
|
|
133
138
|
checkProposedApiEnabled(that._extension, 'chatParticipantAdditions');
|
|
@@ -143,7 +148,7 @@ class ChatAgentResponseStream {
|
|
|
143
148
|
})));
|
|
144
149
|
}
|
|
145
150
|
else {
|
|
146
|
-
const part = new ChatResponseReferencePart$1(value, iconPath);
|
|
151
|
+
const part = new ChatResponseReferencePart$1(value, iconPath, options);
|
|
147
152
|
const dto = ChatResponseReferencePart.from(part);
|
|
148
153
|
references = [dto];
|
|
149
154
|
}
|
|
@@ -152,12 +157,19 @@ class ChatAgentResponseStream {
|
|
|
152
157
|
}
|
|
153
158
|
}
|
|
154
159
|
else {
|
|
155
|
-
const part = new ChatResponseReferencePart$1(value, iconPath);
|
|
160
|
+
const part = new ChatResponseReferencePart$1(value, iconPath, options);
|
|
156
161
|
const dto = ChatResponseReferencePart.from(part);
|
|
157
162
|
_report(dto);
|
|
158
163
|
}
|
|
159
164
|
return this;
|
|
160
165
|
},
|
|
166
|
+
codeCitation(value, license, snippet) {
|
|
167
|
+
throwIfDone(this.codeCitation);
|
|
168
|
+
checkProposedApiEnabled(that._extension, 'chatParticipantAdditions');
|
|
169
|
+
const part = new ChatResponseCodeCitationPart$1(value, license, snippet);
|
|
170
|
+
const dto = ChatResponseCodeCitationPart.from(part);
|
|
171
|
+
_report(dto);
|
|
172
|
+
},
|
|
161
173
|
textEdit(target, edits) {
|
|
162
174
|
throwIfDone(this.textEdit);
|
|
163
175
|
checkProposedApiEnabled(that._extension, 'chatParticipantAdditions');
|
|
@@ -174,10 +186,10 @@ class ChatAgentResponseStream {
|
|
|
174
186
|
_report(dto);
|
|
175
187
|
return this;
|
|
176
188
|
},
|
|
177
|
-
confirmation(title, message, data) {
|
|
189
|
+
confirmation(title, message, data, buttons) {
|
|
178
190
|
throwIfDone(this.confirmation);
|
|
179
191
|
checkProposedApiEnabled(that._extension, 'chatParticipantAdditions');
|
|
180
|
-
const part = new ChatResponseConfirmationPart$1(title, message, data);
|
|
192
|
+
const part = new ChatResponseConfirmationPart$1(title, message, data, buttons);
|
|
181
193
|
const dto = ChatResponseConfirmationPart.from(part);
|
|
182
194
|
_report(dto);
|
|
183
195
|
return this;
|
|
@@ -188,11 +200,12 @@ class ChatAgentResponseStream {
|
|
|
188
200
|
part instanceof ChatResponseMarkdownWithVulnerabilitiesPart ||
|
|
189
201
|
part instanceof ChatResponseDetectedParticipantPart$1 ||
|
|
190
202
|
part instanceof ChatResponseWarningPart ||
|
|
191
|
-
part instanceof ChatResponseConfirmationPart$1
|
|
203
|
+
part instanceof ChatResponseConfirmationPart$1 ||
|
|
204
|
+
part instanceof ChatResponseCodeCitationPart$1) {
|
|
192
205
|
checkProposedApiEnabled(that._extension, 'chatParticipantAdditions');
|
|
193
206
|
}
|
|
194
207
|
if (part instanceof ChatResponseReferencePart$1) {
|
|
195
|
-
this.
|
|
208
|
+
this.reference2(part.value, part.iconPath, part.options);
|
|
196
209
|
}
|
|
197
210
|
else {
|
|
198
211
|
const dto = ChatResponsePart.from(part, that._commandsConverter, that._sessionDisposables);
|
|
@@ -207,10 +220,11 @@ class ChatAgentResponseStream {
|
|
|
207
220
|
}
|
|
208
221
|
class ExtHostChatAgents2 extends Disposable {
|
|
209
222
|
static { this._idPool = 0; }
|
|
210
|
-
constructor(mainContext, _logService,
|
|
223
|
+
constructor(mainContext, _logService, _commands, _documents) {
|
|
211
224
|
super();
|
|
212
225
|
this._logService = _logService;
|
|
213
|
-
this.
|
|
226
|
+
this._commands = _commands;
|
|
227
|
+
this._documents = _documents;
|
|
214
228
|
this._agents = ( new Map());
|
|
215
229
|
this._sessionDisposables = this._register(( new DisposableMap()));
|
|
216
230
|
this._completionDisposables = this._register(( new DisposableMap()));
|
|
@@ -233,13 +247,14 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
233
247
|
this._proxy.$registerAgent(handle, extension.identifier, id, { isSticky: true }, dynamicProps);
|
|
234
248
|
return agent.apiAgent;
|
|
235
249
|
}
|
|
236
|
-
async $invokeAgent(handle,
|
|
250
|
+
async $invokeAgent(handle, requestDto, context, token) {
|
|
237
251
|
const agent = this._agents.get(handle);
|
|
238
252
|
if (!agent) {
|
|
239
253
|
throw ( new Error(
|
|
240
254
|
`[CHAT](${handle}) CANNOT invoke agent because the agent is not registered`
|
|
241
255
|
));
|
|
242
256
|
}
|
|
257
|
+
const request = revive(requestDto);
|
|
243
258
|
let sessionDisposables = this._sessionDisposables.get(request.sessionId);
|
|
244
259
|
if (!sessionDisposables) {
|
|
245
260
|
sessionDisposables = ( new DisposableStore());
|
|
@@ -249,12 +264,23 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
249
264
|
agent.extension,
|
|
250
265
|
request,
|
|
251
266
|
this._proxy,
|
|
252
|
-
this.
|
|
267
|
+
this._commands.converter,
|
|
253
268
|
sessionDisposables
|
|
254
269
|
));
|
|
255
270
|
try {
|
|
256
271
|
const convertedHistory = await this.prepareHistoryTurns(request.agentId, context);
|
|
257
|
-
|
|
272
|
+
let location2;
|
|
273
|
+
if (request.locationData?.type === ChatAgentLocation.Editor) {
|
|
274
|
+
const document = this._documents.getDocument(request.locationData.document);
|
|
275
|
+
location2 = new ChatRequestEditorData(document, Selection.to(request.locationData.selection), Range.to(request.locationData.wholeRange));
|
|
276
|
+
}
|
|
277
|
+
else if (request.locationData?.type === ChatAgentLocation.Notebook) {
|
|
278
|
+
const cell = this._documents.getDocument(request.locationData.sessionInputUri);
|
|
279
|
+
location2 = new ChatRequestNotebookData(cell);
|
|
280
|
+
}
|
|
281
|
+
else if (request.locationData?.type === ChatAgentLocation.Terminal) {
|
|
282
|
+
}
|
|
283
|
+
const task = agent.invoke(ChatAgentRequest.to(request, location2), { history: convertedHistory }, stream.apiObject, token);
|
|
258
284
|
return await raceCancellation(Promise.resolve(task).then((result) => {
|
|
259
285
|
if (result?.metadata) {
|
|
260
286
|
try {
|
|
@@ -297,8 +323,11 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
297
323
|
const result = agentId === h.request.agentId ?
|
|
298
324
|
ehResult :
|
|
299
325
|
{ ...ehResult, metadata: undefined };
|
|
300
|
-
|
|
301
|
-
|
|
326
|
+
const varsWithoutTools = ( h.request.variables.variables
|
|
327
|
+
.filter(v => !v.isTool)
|
|
328
|
+
.map(ChatAgentValueReference.to));
|
|
329
|
+
res.push(new ChatRequestTurn(h.request.message, h.request.command, varsWithoutTools, h.request.agentId));
|
|
330
|
+
const parts = coalesce(( h.response.map(r => ChatResponsePart.toContent(r, this._commands.converter))));
|
|
302
331
|
res.push(new ChatResponseTurn(parts, result, h.request.agentId, h.request.command));
|
|
303
332
|
}
|
|
304
333
|
return res;
|
|
@@ -306,11 +335,12 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
306
335
|
$releaseSession(sessionId) {
|
|
307
336
|
this._sessionDisposables.deleteAndDispose(sessionId);
|
|
308
337
|
}
|
|
309
|
-
async $provideFollowups(
|
|
338
|
+
async $provideFollowups(requestDto, handle, result, context, token) {
|
|
310
339
|
const agent = this._agents.get(handle);
|
|
311
340
|
if (!agent) {
|
|
312
341
|
return Promise.resolve([]);
|
|
313
342
|
}
|
|
343
|
+
const request = revive(requestDto);
|
|
314
344
|
const convertedHistory = await this.prepareHistoryTurns(agent.id, context);
|
|
315
345
|
const ehResult = ChatAgentResult.to(result);
|
|
316
346
|
return ( (await agent.provideFollowups(ehResult, { history: convertedHistory }, token))
|
|
@@ -350,7 +380,7 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
350
380
|
if (event.action.kind === 'vote') {
|
|
351
381
|
return;
|
|
352
382
|
}
|
|
353
|
-
const ehAction = ChatAgentUserActionEvent.to(result, event, this.
|
|
383
|
+
const ehAction = ChatAgentUserActionEvent.to(result, event, this._commands.converter);
|
|
354
384
|
if (ehAction) {
|
|
355
385
|
agent.acceptAction(( Object.freeze(ehAction)));
|
|
356
386
|
}
|
|
@@ -370,7 +400,7 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
370
400
|
}
|
|
371
401
|
const items = await agent.invokeCompletionProvider(query, token);
|
|
372
402
|
return ( items.map(
|
|
373
|
-
(i) => ChatAgentCompletionItem.from(i, this.
|
|
403
|
+
(i) => ChatAgentCompletionItem.from(i, this._commands.converter, disposables)
|
|
374
404
|
));
|
|
375
405
|
}
|
|
376
406
|
async $provideWelcomeMessage(handle, location, token) {
|
|
@@ -6,7 +6,7 @@ import { URI } from '../../../base/common/uri.js';
|
|
|
6
6
|
import { CommentThreadCollapsibleState, CommentThreadState as CommentThreadState$1, CommentThreadApplicability as CommentThreadApplicability$1 } from '../../../editor/common/languages.js';
|
|
7
7
|
import { ExtensionIdentifierMap } from '../../../platform/extensions/common/extensions.js';
|
|
8
8
|
import { Range, MarkdownString as MarkdownString$1, pathOrURIToURI } from './extHostTypeConverters.js';
|
|
9
|
-
import { MarkdownString, CommentThreadCollapsibleState as CommentThreadCollapsibleState$1, CommentThreadState, CommentThreadApplicability } from './extHostTypes.js';
|
|
9
|
+
import { MarkdownString, CommentThreadFocus, CommentThreadCollapsibleState as CommentThreadCollapsibleState$1, CommentThreadState, CommentThreadApplicability } from './extHostTypes.js';
|
|
10
10
|
import { MainContext } from './extHost.protocol.js';
|
|
11
11
|
import { checkProposedApiEnabled } from '../../services/extensions/common/extensions.js';
|
|
12
12
|
function createExtHostComments(mainContext, commands, documents) {
|
|
@@ -323,7 +323,8 @@ function createExtHostComments(mainContext, commands, documents) {
|
|
|
323
323
|
set label(value) { that.label = value; },
|
|
324
324
|
get state() { return that.state; },
|
|
325
325
|
set state(value) { that.state = value; },
|
|
326
|
-
reveal: (options) => that.reveal(options),
|
|
326
|
+
reveal: (comment, options) => that.reveal(comment, options),
|
|
327
|
+
hide: () => that.hide(),
|
|
327
328
|
dispose: () => {
|
|
328
329
|
that.dispose();
|
|
329
330
|
}
|
|
@@ -388,9 +389,30 @@ function createExtHostComments(mainContext, commands, documents) {
|
|
|
388
389
|
}
|
|
389
390
|
return;
|
|
390
391
|
}
|
|
391
|
-
async reveal(options) {
|
|
392
|
+
async reveal(commentOrOptions, options) {
|
|
392
393
|
checkProposedApiEnabled(this.extensionDescription, 'commentReveal');
|
|
393
|
-
|
|
394
|
+
let comment;
|
|
395
|
+
if (commentOrOptions && commentOrOptions.body !== undefined) {
|
|
396
|
+
comment = commentOrOptions;
|
|
397
|
+
}
|
|
398
|
+
else {
|
|
399
|
+
options = options ?? commentOrOptions;
|
|
400
|
+
}
|
|
401
|
+
let commentToReveal = comment ? this._commentsMap.get(comment) : undefined;
|
|
402
|
+
commentToReveal ??= this._commentsMap.get(this._comments[0]);
|
|
403
|
+
let preserveFocus = true;
|
|
404
|
+
let focusReply = false;
|
|
405
|
+
if (options?.focus === CommentThreadFocus.Reply) {
|
|
406
|
+
focusReply = true;
|
|
407
|
+
preserveFocus = false;
|
|
408
|
+
}
|
|
409
|
+
else if (options?.focus === CommentThreadFocus.Comment) {
|
|
410
|
+
preserveFocus = false;
|
|
411
|
+
}
|
|
412
|
+
return proxy.$revealCommentThread(this._commentControllerHandle, this.handle, commentToReveal, { preserveFocus, focusReply });
|
|
413
|
+
}
|
|
414
|
+
async hide() {
|
|
415
|
+
return proxy.$hideCommentThread(this._commentControllerHandle, this.handle);
|
|
394
416
|
}
|
|
395
417
|
dispose() {
|
|
396
418
|
this._isDiposed = true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localize } from '../../../nls.js';
|
|
3
3
|
import { MarkerSeverity } from '../../../platform/markers/common/markers.js';
|
|
4
4
|
import { URI } from '../../../base/common/uri.js';
|
|
5
5
|
import { MainContext } from './extHost.protocol.js';
|
|
@@ -10,7 +10,6 @@ import { ILogService } from '../../../platform/log/common/log.service.js';
|
|
|
10
10
|
import { ResourceMap } from '../../../base/common/map.js';
|
|
11
11
|
import { IExtHostFileSystemInfo } from './extHostFileSystemInfo.js';
|
|
12
12
|
var ExtHostDiagnostics_1;
|
|
13
|
-
const _moduleId = "vs/workbench/api/common/extHostDiagnostics";
|
|
14
13
|
class DiagnosticCollection {
|
|
15
14
|
#proxy;
|
|
16
15
|
#onDidChangeDiagnostics;
|
|
@@ -105,9 +104,8 @@ class DiagnosticCollection {
|
|
|
105
104
|
}
|
|
106
105
|
marker.push({
|
|
107
106
|
severity: MarkerSeverity.Info,
|
|
108
|
-
message: (
|
|
109
|
-
|
|
110
|
-
0,
|
|
107
|
+
message: ( localize(
|
|
108
|
+
4075,
|
|
111
109
|
"Not showing {0} further errors and warnings.",
|
|
112
110
|
diagnostics.length - this._maxDiagnosticsPerFile
|
|
113
111
|
)),
|
|
@@ -190,7 +188,7 @@ let ExtHostDiagnostics = class ExtHostDiagnostics {
|
|
|
190
188
|
static { ExtHostDiagnostics_1 = this; }
|
|
191
189
|
static { this._idPool = 0; }
|
|
192
190
|
static { this._maxDiagnosticsPerFile = 1000; }
|
|
193
|
-
static { this._maxDiagnosticsTotal = 1.1 *
|
|
191
|
+
static { this._maxDiagnosticsTotal = 1.1 * this._maxDiagnosticsPerFile; }
|
|
194
192
|
static _mapper(last) {
|
|
195
193
|
const map = ( (new ResourceMap()));
|
|
196
194
|
for (const uri of last) {
|