@codingame/monaco-vscode-api 4.5.2 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.js +1 -1
- package/extensions.d.ts +2 -3
- package/lifecycle.js +6 -0
- package/localExtensionHost.d.ts +4 -1
- package/missing-services.js +41 -25
- package/package.json +8 -8
- package/service-override/tools/editor.js +31 -8
- package/service-override/tools/views.d.ts +1 -1
- package/service-override/tools/views.js +2 -3
- package/service-override/views.d.ts +0 -1
- package/services.d.ts +3 -3
- package/services.js +3 -3
- package/vscode/src/vs/base/browser/markdownRenderer.js +9 -3
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +2 -2
- package/vscode/src/vs/base/browser/ui/button/button.js +3 -3
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +2 -2
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +2 -2
- package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.js +2 -2
- package/vscode/src/vs/{platform/hover/browser → base/browser/ui/hover}/hover.d.ts +64 -4
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.js +13 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +30 -14
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +15 -2
- package/vscode/src/vs/base/browser/ui/iconLabel/simpleIconLabel.js +2 -2
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.css.js +4 -0
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +239 -0
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +2 -2
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +2 -2
- package/vscode/src/vs/base/browser/ui/list/listView.js +5 -3
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +33 -0
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +4 -1
- package/vscode/src/vs/base/browser/ui/menu/menu.js +1 -0
- package/vscode/src/vs/base/browser/ui/menu/menubar.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/progressbar/progressAccessibilitySignal.js +13 -0
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.js +7 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +2 -2
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +8 -2
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +11 -4
- package/vscode/src/vs/base/browser/ui/tree/media/tree.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/objectTree.js +6 -4
- package/vscode/src/vs/base/common/arraysFind.js +7 -7
- package/vscode/src/vs/base/common/async.js +8 -3
- package/vscode/src/vs/base/common/cache.js +29 -10
- package/vscode/src/vs/base/common/cancellation.js +6 -1
- package/vscode/src/vs/base/common/codicons.d.ts +3 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +3 -0
- package/vscode/src/vs/base/common/controlFlow.js +48 -0
- package/vscode/src/vs/base/common/equals.js +44 -0
- package/vscode/src/vs/base/common/event.d.ts +11 -1
- package/vscode/src/vs/base/common/event.js +26 -1
- package/vscode/src/vs/base/common/jsonEdit.js +1 -1
- package/vscode/src/vs/base/common/lifecycle.js +1 -1
- package/vscode/src/vs/base/common/map.js +53 -4
- package/vscode/src/vs/base/common/network.js +2 -0
- package/vscode/src/vs/base/common/objects.js +3 -0
- package/vscode/src/vs/base/common/observableInternal/autorun.js +1 -10
- package/vscode/src/vs/base/common/observableInternal/base.js +22 -10
- package/vscode/src/vs/base/common/observableInternal/derived.js +8 -8
- package/vscode/src/vs/base/common/observableInternal/promise.js +19 -1
- package/vscode/src/vs/base/common/observableInternal/utils.js +30 -52
- package/vscode/src/vs/base/common/product.d.ts +1 -0
- package/vscode/src/vs/base/common/strings.js +1 -1
- package/vscode/src/vs/base/common/types.d.ts +5 -1
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +3 -2
- package/vscode/src/vs/editor/browser/observableUtilities.js +58 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +121 -2
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +80 -0
- package/vscode/src/vs/editor/browser/stableEditorScroll.js +37 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +10 -3
- package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +7 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +3 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +3 -10
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +8 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +6 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +1 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +3 -2
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.js +17 -8
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget.js +1 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +27 -19
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/style.css.js +1 -1
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +4 -4
- package/vscode/src/vs/editor/common/core/lineRange.d.ts +12 -0
- package/vscode/src/vs/editor/common/core/lineRange.js +28 -0
- package/vscode/src/vs/editor/common/core/textEdit.d.ts +21 -0
- package/vscode/src/vs/editor/common/core/textEdit.js +13 -1
- package/vscode/src/vs/editor/common/core/textLength.d.ts +29 -0
- package/vscode/src/vs/editor/common/core/textLength.js +6 -0
- package/vscode/src/vs/editor/common/cursor/cursorCollection.js +3 -3
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +11 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +11 -0
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +34 -3
- package/vscode/src/vs/editor/common/languages.d.ts +50 -10
- package/vscode/src/vs/editor/common/languages.js +11 -1
- package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +1 -1
- package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +2 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +1 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +11 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +3 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +22 -6
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +5 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +1 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorContributions.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js +20 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +7 -0
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +11 -6
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +10 -10
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverComputer.js +74 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +332 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverStatusBar.js +34 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverTypes.js +39 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +355 -0
- package/vscode/src/vs/editor/contrib/hover/browser/getHover.js +11 -14
- package/vscode/src/vs/editor/contrib/hover/browser/hover.css.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +13 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +354 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverContribution.js +42 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverController.js +320 -0
- package/vscode/src/vs/editor/contrib/hover/browser/marginHoverComputer.js +48 -0
- package/vscode/src/vs/editor/contrib/hover/browser/{marginHover.js → marginHoverWidget.js} +14 -48
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +250 -41
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +1 -0
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +44 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +11 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +26 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +5 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +24 -22
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsSource.js +39 -70
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/suggestWidgetInlineCompletionProvider.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +4 -2
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +5 -3
- package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgressWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +18 -6
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +165 -40
- package/vscode/src/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js +5 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +3 -3
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +15 -8
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +13 -6
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +0 -2
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +9 -2
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +23 -18
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +33 -11
- package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +1 -9
- package/vscode/src/vs/platform/accessibility/common/accessibility.js +2 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +15 -9
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +133 -132
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.d.ts +12 -5
- package/vscode/src/vs/platform/accessibilitySignal/browser/progressAccessibilitySignalScheduler.js +25 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +4 -4
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +10 -7
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +1 -1
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +4 -1
- package/vscode/src/vs/platform/actions/browser/toolbar.js +53 -36
- package/vscode/src/vs/platform/actions/common/actions.d.ts +3 -1
- package/vscode/src/vs/platform/actions/common/actions.js +14 -4
- package/vscode/src/vs/platform/actions/common/menuService.js +30 -8
- package/vscode/src/vs/platform/configuration/common/configuration.js +4 -0
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +43 -32
- package/vscode/src/vs/platform/configuration/common/configurations.js +12 -10
- package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +4 -1
- package/vscode/src/vs/platform/contextview/browser/contextView.service.d.ts +2 -3
- package/vscode/src/vs/platform/contextview/browser/contextViewService.js +10 -8
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +1 -0
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +5 -0
- package/vscode/src/vs/platform/files/common/files.d.ts +14 -1
- package/vscode/src/vs/platform/hover/browser/hover.service.d.ts +2 -31
- package/vscode/src/vs/platform/instantiation/common/instantiation.d.ts +9 -0
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +42 -8
- package/vscode/src/vs/platform/log/common/log.js +3 -1
- package/vscode/src/vs/platform/markers/common/markerService.js +7 -3
- package/vscode/src/vs/platform/opener/browser/link.js +6 -4
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +15 -7
- package/vscode/src/vs/platform/telemetry/common/gdprTypings.d.ts +0 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +5 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.d.ts +30 -0
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +6 -0
- package/vscode/src/vs/platform/theme/browser/iconsStyleSheet.js +13 -11
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +28 -28
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostBulkEdits.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +104 -96
- package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +9 -3
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostDocumentSaveParticipant.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +19 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +87 -17
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +39 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocumentSaveParticipant.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +52 -36
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +10 -28
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +132 -136
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +72 -18
- package/vscode/src/vs/workbench/api/common/extHostWindow.js +3 -5
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +86 -76
- package/vscode/src/vs/workbench/browser/actions/media/actions.css.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.js +30 -6
- package/vscode/src/vs/workbench/browser/labels.js +4 -1
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +3 -1
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +19 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +16 -3
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorquickaccess.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +14 -33
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +33 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +7 -5
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +4 -3
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +2 -1
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +3 -1
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +182 -63
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +14 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +61 -34
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +16 -10
- package/vscode/src/vs/workbench/common/theme.js +144 -98
- package/vscode/src/vs/workbench/common/views.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +190 -138
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +876 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +59 -7
- package/vscode/src/vs/workbench/contrib/accessibility/browser/{accessibilityContributions.js → accessibleViewContributions.js} +160 -6
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +66 -150
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +75 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +21 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +101 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +30 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +201 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +42 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +13 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +366 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +35 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatAgentHover.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +4 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +95 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +11 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +94 -79
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +0 -13
- package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +7 -9
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +1 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +30 -26
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +30 -29
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +5 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +13 -13
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +26 -16
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +107 -26
- package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +23 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +2 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +39 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +53 -33
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +967 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +101 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +4 -1
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +82 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +10 -9
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +79 -45
- package/vscode/src/vs/workbench/contrib/files/browser/{fileCommands.save.js → fileCommands._save.js} +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/{files.configuration.contribution.js → files.contribution._configuration.js} +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/{files.editorPane.contribution.js → files.contribution._editorPane.js} +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +5 -3
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +19 -14
- package/vscode/src/vs/workbench/contrib/files/browser/views/media/openeditors.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +15 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +29 -112
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatContentWidget.js +10 -7
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +99 -91
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +9 -31
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +345 -104
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +62 -69
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +63 -46
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +18 -10
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatContentWidget.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +1 -31
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +7 -3
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +5 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +2 -48
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +28 -23
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +5 -9
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +112 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +18 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +7 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +4 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +8 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +36 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +9 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +17 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +6 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +5 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +22 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +34 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +15 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +6 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProviderFactory.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +17 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +52 -16
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +3 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +25 -12
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +6 -4
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +0 -2
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +6 -4
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +24 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +38 -8
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +0 -1
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +1 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +7 -14
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +24 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +8 -9
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +2 -20
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +1 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testItemCollection.js +10 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +15 -3
- package/vscode/src/vs/workbench/services/accessibility/common/accessibleViewInformationService.service.d.ts +9 -0
- package/vscode/src/vs/workbench/services/accessibility/common/accessibleViewInformationService.service.js +3 -0
- package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +30 -16
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +15 -4
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +20 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +0 -1
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +4 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +4 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocation.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +8 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +2 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +4 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +3 -3
- package/vscode/src/vs/workbench/services/language/common/languageService.js +23 -18
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +6 -4
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +50 -9
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +1 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/iconSelectBox.js +97 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopy.d.ts +7 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +2 -2
- package/vscode-dts/vscode.proposed.chatParticipant.d.ts +23 -45
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +65 -91
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +9 -0
- package/vscode-dts/vscode.proposed.chatTab.d.ts +1 -5
- package/vscode-dts/vscode.proposed.contribAccessibilityHelpContent.d.ts +15 -0
- package/vscode-dts/vscode.proposed.debugFocus.d.ts +4 -4
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +2 -2
- package/vscode-dts/vscode.proposed.documentPaste.d.ts +144 -43
- package/vscode-dts/vscode.proposed.editorHoverVerbosityLevel.d.ts +76 -0
- package/vscode-dts/vscode.proposed.interactive.d.ts +1 -17
- package/vscode-dts/vscode.proposed.languageModels.d.ts +56 -11
- package/vscode-dts/vscode.proposed.newSymbolNamesProvider.d.ts +12 -1
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +4 -4
- package/vscode-dts/vscode.proposed.speech.d.ts +2 -1
- package/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts +144 -38
- package/vscode-dts/vscode.proposed.testPreserveFocus.d.ts +28 -0
- package/vscode/src/vs/base/browser/ui/hover/updatableHoverWidget.d.ts +0 -21
- package/vscode/src/vs/base/browser/ui/hover/updatableHoverWidget.js +0 -214
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.d.ts +0 -32
- package/vscode/src/vs/editor/contrib/hover/browser/contentHover.js +0 -838
- package/vscode/src/vs/editor/contrib/hover/browser/hover.js +0 -621
- package/vscode/src/vs/platform/accessibility/common/accessibility.service.d.ts +0 -19
- package/vscode/src/vs/workbench/api/common/extHostChat.js +0 -54
- package/vscode/src/vs/workbench/api/common/extHostIssueReporter.js +0 -70
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignal.contribution.js +0 -237
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalDebuggerContribution.js +0 -49
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalLineFeatureContribution.js +0 -178
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +0 -141
- package/vscode/src/vs/workbench/contrib/chat/common/chatContributionService.service.js +0 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatFileCreationWidget.js +0 -212
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +0 -95
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +0 -110
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +0 -224
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +0 -48
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEvents.js +0 -47
- package/vscode-dts/vscode.proposed.dropMetadata.d.ts +0 -65
- package/vscode-dts/vscode.proposed.handleIssueUri.d.ts +0 -57
- package/vscode-dts/vscode.proposed.windowActivity.d.ts +0 -17
- /package/vscode/src/vs/workbench/browser/parts/editor/{editor.autosave.contribution.js → editor.contribution._autosave.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/files/browser/{files.fileEditorFactory.contribution.js → files.contribution._fileEditorFactory.js} +0 -0
|
@@ -10,7 +10,6 @@ import { DisposableStore, MutableDisposable, toDisposable } from '../../../../ba
|
|
|
10
10
|
import { MovingAverage } from '../../../../base/common/numbers.js';
|
|
11
11
|
import { StopWatch } from '../../../../base/common/stopwatch.js';
|
|
12
12
|
import { assertType } from '../../../../base/common/types.js';
|
|
13
|
-
import { IBulkEditService } from '../../../../editor/browser/services/bulkEditService.js';
|
|
14
13
|
import { Position } from '../../../../editor/common/core/position.js';
|
|
15
14
|
import { Range } from '../../../../editor/common/core/range.js';
|
|
16
15
|
import { Selection } from '../../../../editor/common/core/selection.js';
|
|
@@ -23,13 +22,14 @@ import { IContextKeyService } from '../../../../platform/contextkey/common/conte
|
|
|
23
22
|
import { IDialogService } from '../../../../platform/dialogs/common/dialogs.service.js';
|
|
24
23
|
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
25
24
|
import { ILogService } from '../../../../platform/log/common/log.service.js';
|
|
25
|
+
import { showChatView } from '../../chat/browser/chat.js';
|
|
26
26
|
import { IChatWidgetService } from '../../chat/browser/chat.service.js';
|
|
27
27
|
import { ChatAgentLocation } from '../../chat/common/chatAgents.js';
|
|
28
28
|
import { IChatAgentService } from '../../chat/common/chatAgents.service.js';
|
|
29
29
|
import { ChatRequestAgentSubcommandPart, ChatRequestSlashCommandPart, chatAgentLeader } from '../../chat/common/chatParserTypes.js';
|
|
30
30
|
import { IChatService } from '../../chat/common/chatService.service.js';
|
|
31
31
|
import { IInlineChatSavingService } from './inlineChatSavingService.service.js';
|
|
32
|
-
import {
|
|
32
|
+
import { ReplyResponse, SessionPrompt, EmptyResponse, ErrorResponse, Session } from './inlineChatSession.js';
|
|
33
33
|
import { IInlineChatSessionService } from './inlineChatSessionService.service.js';
|
|
34
34
|
import { LiveStrategy, PreviewStrategy } from './inlineChatStrategies.js';
|
|
35
35
|
import { InlineChatZoneWidget } from './inlineChatZoneWidget.js';
|
|
@@ -42,6 +42,8 @@ import { InlineChatError } from './inlineChatSessionServiceImpl.js';
|
|
|
42
42
|
import { ILanguageFeaturesService } from '../../../../editor/common/services/languageFeatures.js';
|
|
43
43
|
import { ChatInputPart } from '../../chat/browser/chatInputPart.js';
|
|
44
44
|
import { OffsetRange } from '../../../../editor/common/core/offsetRange.js';
|
|
45
|
+
import { isEqual } from '../../../../base/common/resources.js';
|
|
46
|
+
import { IViewsService } from '../../../services/views/common/viewsService.service.js';
|
|
45
47
|
const _moduleId = "vs/workbench/contrib/inlineChat/browser/inlineChatController";
|
|
46
48
|
class InlineChatRunOptions {
|
|
47
49
|
static isInteractiveEditorOptions(options) {
|
|
@@ -61,7 +63,7 @@ let InlineChatController = class InlineChatController {
|
|
|
61
63
|
static get(editor) {
|
|
62
64
|
return editor.getContribution(INLINE_CHAT_ID);
|
|
63
65
|
}
|
|
64
|
-
constructor(_editor, _instaService, _inlineChatSessionService, _inlineChatSavingService, _editorWorkerService, _logService, _configurationService, _dialogService, contextKeyService, _chatAgentService, _chatService,
|
|
66
|
+
constructor(_editor, _instaService, _inlineChatSessionService, _inlineChatSavingService, _editorWorkerService, _logService, _configurationService, _dialogService, contextKeyService, _chatAgentService, _chatService, _commandService, _languageFeatureService, _chatWidgetService) {
|
|
65
67
|
this._editor = _editor;
|
|
66
68
|
this._instaService = _instaService;
|
|
67
69
|
this._inlineChatSessionService = _inlineChatSessionService;
|
|
@@ -72,7 +74,6 @@ let InlineChatController = class InlineChatController {
|
|
|
72
74
|
this._dialogService = _dialogService;
|
|
73
75
|
this._chatAgentService = _chatAgentService;
|
|
74
76
|
this._chatService = _chatService;
|
|
75
|
-
this._bulkEditService = _bulkEditService;
|
|
76
77
|
this._commandService = _commandService;
|
|
77
78
|
this._languageFeatureService = _languageFeatureService;
|
|
78
79
|
this._chatWidgetService = _chatWidgetService;
|
|
@@ -85,8 +86,6 @@ let InlineChatController = class InlineChatController {
|
|
|
85
86
|
this.onDidCancelInput = Event.filter(this._messages.event, m => m === 16 || m === 2 , this._store);
|
|
86
87
|
this._sessionStore = this._store.add(( (new DisposableStore())));
|
|
87
88
|
this._stashedSession = this._store.add(( (new MutableDisposable())));
|
|
88
|
-
this._nextAttempt = 0;
|
|
89
|
-
this._nextWithIntentDetection = true;
|
|
90
89
|
this._forcedPlaceholder = undefined;
|
|
91
90
|
this._ctxVisible = CTX_INLINE_CHAT_VISIBLE.bindTo(contextKeyService);
|
|
92
91
|
this._ctxDidEdit = CTX_INLINE_CHAT_DID_EDIT.bindTo(contextKeyService);
|
|
@@ -130,7 +129,9 @@ let InlineChatController = class InlineChatController {
|
|
|
130
129
|
}
|
|
131
130
|
dispose() {
|
|
132
131
|
if (this._currentRun) {
|
|
133
|
-
this._messages.fire(
|
|
132
|
+
this._messages.fire(this._session?.chatModel.hasRequests
|
|
133
|
+
? 4
|
|
134
|
+
: 2 );
|
|
134
135
|
}
|
|
135
136
|
this._store.dispose();
|
|
136
137
|
this._isDisposed = true;
|
|
@@ -236,6 +237,7 @@ let InlineChatController = class InlineChatController {
|
|
|
236
237
|
this._log('Failed to start editor chat');
|
|
237
238
|
return "CANCEL" ;
|
|
238
239
|
}
|
|
240
|
+
await session.chatModel.waitForInitialization();
|
|
239
241
|
switch (session.editMode) {
|
|
240
242
|
case "preview" :
|
|
241
243
|
this._strategy = this._instaService.createInstance(PreviewStrategy, session, this._editor, this._zone.value);
|
|
@@ -245,9 +247,6 @@ let InlineChatController = class InlineChatController {
|
|
|
245
247
|
this._strategy = this._instaService.createInstance(LiveStrategy, session, this._editor, this._zone.value);
|
|
246
248
|
break;
|
|
247
249
|
}
|
|
248
|
-
if (session.session.input) {
|
|
249
|
-
options.message = session.session.input;
|
|
250
|
-
}
|
|
251
250
|
this._session = session;
|
|
252
251
|
return "INIT_UI" ;
|
|
253
252
|
}
|
|
@@ -269,9 +268,9 @@ let InlineChatController = class InlineChatController {
|
|
|
269
268
|
this._updatePlaceholder();
|
|
270
269
|
const message = this._session.session.message ?? ( localizeWithPath(_moduleId, 2, "AI-generated code may be incorrect"));
|
|
271
270
|
this._zone.value.widget.updateInfo(message);
|
|
272
|
-
this._showWidget(!this._session.
|
|
271
|
+
this._showWidget(!this._session.chatModel.hasRequests);
|
|
273
272
|
this._sessionStore.add(this._editor.onDidChangeModel((e) => {
|
|
274
|
-
const msg = this._session?.
|
|
273
|
+
const msg = this._session?.chatModel.hasRequests
|
|
275
274
|
? 4
|
|
276
275
|
: 2 ;
|
|
277
276
|
this._log('model changed, pause or cancel session', msg, e);
|
|
@@ -298,7 +297,7 @@ let InlineChatController = class InlineChatController {
|
|
|
298
297
|
this.finishExistingSession();
|
|
299
298
|
}
|
|
300
299
|
}));
|
|
301
|
-
this._sessionStore.add(this._session.chatModel.onDidChange(e => {
|
|
300
|
+
this._sessionStore.add(this._session.chatModel.onDidChange(async (e) => {
|
|
302
301
|
if (e.kind === 'addRequest' && e.request.response) {
|
|
303
302
|
this._zone.value.widget.updateProgress(true);
|
|
304
303
|
const listener = e.request.response.onDidChange(() => {
|
|
@@ -308,6 +307,17 @@ let InlineChatController = class InlineChatController {
|
|
|
308
307
|
}
|
|
309
308
|
});
|
|
310
309
|
}
|
|
310
|
+
else if (e.kind === 'removeRequest') {
|
|
311
|
+
if (this._session.lastExchange?.response instanceof ReplyResponse) {
|
|
312
|
+
try {
|
|
313
|
+
this._session.hunkData.ignoreTextModelNChanges = true;
|
|
314
|
+
await this._strategy.undoChanges(this._session.lastExchange.response.modelAltVersionId);
|
|
315
|
+
}
|
|
316
|
+
finally {
|
|
317
|
+
this._session.hunkData.ignoreTextModelNChanges = false;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
311
321
|
}));
|
|
312
322
|
this._ctxSupportIssueReporting.set(this._session.provider.supportIssueReporting ?? false);
|
|
313
323
|
this._sessionStore.add(this._languageFeatureService.completionProvider.register({ scheme: ChatInputPart.INPUT_SCHEME, hasAccessToAllModels: true }, {
|
|
@@ -381,12 +391,12 @@ let InlineChatController = class InlineChatController {
|
|
|
381
391
|
inputDecorations.clear();
|
|
382
392
|
zoneDecorations.clear();
|
|
383
393
|
}));
|
|
384
|
-
if (!this._session.
|
|
394
|
+
if (!this._session.chatModel.hasRequests) {
|
|
385
395
|
return "WAIT_FOR_INPUT" ;
|
|
386
396
|
}
|
|
387
397
|
else if (options.isUnstashed) {
|
|
388
398
|
delete options.isUnstashed;
|
|
389
|
-
return "
|
|
399
|
+
return "SHOW_RESPONSE" ;
|
|
390
400
|
}
|
|
391
401
|
else {
|
|
392
402
|
return "SHOW_RESPONSE" ;
|
|
@@ -477,14 +487,12 @@ let InlineChatController = class InlineChatController {
|
|
|
477
487
|
await this._instaService.invokeFunction(sendRequest, massagedInput);
|
|
478
488
|
return "DONE" ;
|
|
479
489
|
}
|
|
480
|
-
this._session.addInput(( (new SessionPrompt(input
|
|
481
|
-
this._nextAttempt = 0;
|
|
482
|
-
this._nextWithIntentDetection = true;
|
|
490
|
+
this._session.addInput(( (new SessionPrompt(input))));
|
|
483
491
|
return "SHOW_REQUEST" ;
|
|
484
492
|
}
|
|
485
|
-
async ["SHOW_REQUEST" ](
|
|
493
|
+
async ["SHOW_REQUEST" ]() {
|
|
486
494
|
assertType(this._session);
|
|
487
|
-
assertType(this._session.
|
|
495
|
+
assertType(this._session.chatModel.requestInProgress);
|
|
488
496
|
const request = tail(this._session.chatModel.getRequests());
|
|
489
497
|
assertType(request);
|
|
490
498
|
assertType(request.response);
|
|
@@ -519,7 +527,14 @@ let InlineChatController = class InlineChatController {
|
|
|
519
527
|
responsePromise.complete();
|
|
520
528
|
return;
|
|
521
529
|
}
|
|
522
|
-
const edits = response.
|
|
530
|
+
const edits = ( (response.response.value.map(part => {
|
|
531
|
+
if (part.kind === 'textEditGroup' && isEqual(part.uri, this._session?.textModelN.uri)) {
|
|
532
|
+
return part.edits;
|
|
533
|
+
}
|
|
534
|
+
else {
|
|
535
|
+
return [];
|
|
536
|
+
}
|
|
537
|
+
}))).flat();
|
|
523
538
|
const newEdits = edits.slice(lastLength);
|
|
524
539
|
if (newEdits.length === 0) {
|
|
525
540
|
return;
|
|
@@ -529,7 +544,9 @@ let InlineChatController = class InlineChatController {
|
|
|
529
544
|
progressiveEditsClock.reset();
|
|
530
545
|
progressiveEditsQueue.queue(async () => {
|
|
531
546
|
const startThen = this._session.wholeRange.value.getStartPosition();
|
|
532
|
-
|
|
547
|
+
for (const edits of newEdits) {
|
|
548
|
+
await this._makeChanges(edits, { duration: progressiveEditsAvgDuration.value, token: progressiveEditsCts.token });
|
|
549
|
+
}
|
|
533
550
|
const startNow = this._session.wholeRange.value.getStartPosition();
|
|
534
551
|
if (!startNow.equals(startThen) || !this._zone.value.position?.equals(startNow)) {
|
|
535
552
|
this._showWidget(false, startNow.delta(-1));
|
|
@@ -553,28 +570,19 @@ let InlineChatController = class InlineChatController {
|
|
|
553
570
|
return "DONE" ;
|
|
554
571
|
}
|
|
555
572
|
else {
|
|
556
|
-
return "
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
async ["APPLY_RESPONSE" ]() {
|
|
560
|
-
assertType(this._session);
|
|
561
|
-
assertType(this._strategy);
|
|
562
|
-
const { response } = this._session.lastExchange;
|
|
563
|
-
if (response instanceof ReplyResponse && response.workspaceEdit) {
|
|
564
|
-
this._bulkEditService.apply(response.workspaceEdit, { showPreview: true });
|
|
565
|
-
return "CANCEL" ;
|
|
573
|
+
return "SHOW_RESPONSE" ;
|
|
566
574
|
}
|
|
567
|
-
return "SHOW_RESPONSE" ;
|
|
568
575
|
}
|
|
569
576
|
async ["SHOW_RESPONSE" ]() {
|
|
570
577
|
assertType(this._session);
|
|
571
578
|
assertType(this._strategy);
|
|
572
579
|
const { response } = this._session.lastExchange;
|
|
573
580
|
let responseTypes;
|
|
574
|
-
for (const
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
581
|
+
for (const request of this._session.chatModel.getRequests()) {
|
|
582
|
+
if (!request.response) {
|
|
583
|
+
continue;
|
|
584
|
+
}
|
|
585
|
+
const thisType = asInlineChatResponseType(request.response.response);
|
|
578
586
|
if (responseTypes === undefined) {
|
|
579
587
|
responseTypes = thisType;
|
|
580
588
|
}
|
|
@@ -594,6 +602,7 @@ let InlineChatController = class InlineChatController {
|
|
|
594
602
|
else if (response instanceof ErrorResponse) {
|
|
595
603
|
if (!response.isCancellation) {
|
|
596
604
|
this._zone.value.widget.updateStatus(response.message, { classes: ['error'] });
|
|
605
|
+
this._strategy?.cancel();
|
|
597
606
|
}
|
|
598
607
|
}
|
|
599
608
|
else if (response instanceof ReplyResponse) {
|
|
@@ -710,7 +719,7 @@ let InlineChatController = class InlineChatController {
|
|
|
710
719
|
else {
|
|
711
720
|
this._input.value.hide();
|
|
712
721
|
this._zone.value.show(widgetPosition);
|
|
713
|
-
if (this._session
|
|
722
|
+
if (this._session) {
|
|
714
723
|
this._zone.value.widget.setChatModel(this._session.chatModel);
|
|
715
724
|
}
|
|
716
725
|
}
|
|
@@ -797,32 +806,6 @@ let InlineChatController = class InlineChatController {
|
|
|
797
806
|
? this._input.value.value
|
|
798
807
|
: this._zone.value.widget.value;
|
|
799
808
|
}
|
|
800
|
-
async rerun(opts) {
|
|
801
|
-
if (this._session?.lastExchange && this._strategy) {
|
|
802
|
-
const { lastExchange } = this._session;
|
|
803
|
-
const request = tail(this._session.chatModel.getRequests());
|
|
804
|
-
if (!request || !request.response?.isComplete) {
|
|
805
|
-
return;
|
|
806
|
-
}
|
|
807
|
-
this._session.chatModel.removeRequest(request.id);
|
|
808
|
-
if (lastExchange.response instanceof ReplyResponse) {
|
|
809
|
-
try {
|
|
810
|
-
this._session.hunkData.ignoreTextModelNChanges = true;
|
|
811
|
-
await this._strategy.undoChanges(lastExchange.response.modelAltVersionId);
|
|
812
|
-
}
|
|
813
|
-
finally {
|
|
814
|
-
this._session.hunkData.ignoreTextModelNChanges = false;
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
if (opts.retry) {
|
|
818
|
-
this._nextAttempt = lastExchange.prompt.attempt + 1;
|
|
819
|
-
}
|
|
820
|
-
if (opts.withoutIntentDetection) {
|
|
821
|
-
this._nextWithIntentDetection = false;
|
|
822
|
-
}
|
|
823
|
-
this._zone.value.widget.chatWidget.acceptInput(request.message.text);
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
809
|
cancelCurrentRequest() {
|
|
827
810
|
this._messages.fire(16 | 8 );
|
|
828
811
|
}
|
|
@@ -853,28 +836,24 @@ let InlineChatController = class InlineChatController {
|
|
|
853
836
|
toggleDiff() {
|
|
854
837
|
this._strategy?.toggleDiff?.();
|
|
855
838
|
}
|
|
856
|
-
feedbackLast(kind) {
|
|
857
|
-
if (this._session?.lastExchange && this._session.lastExchange.response instanceof ReplyResponse) {
|
|
858
|
-
this._session.provider.handleInlineChatResponseFeedback?.(this._session.session, this._session.lastExchange.response.raw, kind);
|
|
859
|
-
switch (kind) {
|
|
860
|
-
case 1 :
|
|
861
|
-
this._ctxLastFeedbackKind.set('helpful');
|
|
862
|
-
break;
|
|
863
|
-
case 0 :
|
|
864
|
-
this._ctxLastFeedbackKind.set('unhelpful');
|
|
865
|
-
break;
|
|
866
|
-
}
|
|
867
|
-
this._zone.value.widget.updateStatus('Thank you for your feedback!', { resetAfter: 1250 });
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
839
|
createSnapshot() {
|
|
871
840
|
if (this._session && !this._session.textModel0.equalsTextBuffer(this._session.textModelN.getTextBuffer())) {
|
|
872
841
|
this._session.createSnapshot();
|
|
873
842
|
}
|
|
874
843
|
}
|
|
875
844
|
acceptSession() {
|
|
876
|
-
if (this._session?.lastExchange && this._session
|
|
877
|
-
this._session
|
|
845
|
+
if (this._session?.lastExchange?.response instanceof ReplyResponse && this._session?.lastExchange?.response.chatResponse) {
|
|
846
|
+
const response = this._session?.lastExchange?.response.chatResponse;
|
|
847
|
+
this._chatService.notifyUserAction({
|
|
848
|
+
sessionId: response.session.sessionId,
|
|
849
|
+
requestId: response.requestId,
|
|
850
|
+
agentId: response.agent?.id,
|
|
851
|
+
result: response.result,
|
|
852
|
+
action: {
|
|
853
|
+
kind: 'inlineChat',
|
|
854
|
+
action: 'accepted'
|
|
855
|
+
}
|
|
856
|
+
});
|
|
878
857
|
}
|
|
879
858
|
this._messages.fire(1 );
|
|
880
859
|
}
|
|
@@ -889,8 +868,18 @@ let InlineChatController = class InlineChatController {
|
|
|
889
868
|
if (this._session) {
|
|
890
869
|
const diff = await this._editorWorkerService.computeDiff(this._session.textModel0.uri, this._session.textModelN.uri, { ignoreTrimWhitespace: false, maxComputationTimeMs: 5000, computeMoves: false }, 'advanced');
|
|
891
870
|
result = this._session.asChangedText(diff?.changes ?? []);
|
|
892
|
-
if (this._session.lastExchange && this._session
|
|
893
|
-
this._session
|
|
871
|
+
if (this._session.lastExchange?.response instanceof ReplyResponse && this._session?.lastExchange?.response.chatResponse) {
|
|
872
|
+
const response = this._session?.lastExchange?.response.chatResponse;
|
|
873
|
+
this._chatService.notifyUserAction({
|
|
874
|
+
sessionId: response.session.sessionId,
|
|
875
|
+
requestId: response.requestId,
|
|
876
|
+
agentId: response.agent?.id,
|
|
877
|
+
result: response.result,
|
|
878
|
+
action: {
|
|
879
|
+
kind: 'inlineChat',
|
|
880
|
+
action: 'discarded'
|
|
881
|
+
}
|
|
882
|
+
});
|
|
894
883
|
}
|
|
895
884
|
}
|
|
896
885
|
this._messages.fire(2 );
|
|
@@ -930,10 +919,9 @@ InlineChatController = ( (__decorate([
|
|
|
930
919
|
( (__param(8, IContextKeyService))),
|
|
931
920
|
( (__param(9, IChatAgentService))),
|
|
932
921
|
( (__param(10, IChatService))),
|
|
933
|
-
( (__param(11,
|
|
934
|
-
( (__param(12,
|
|
935
|
-
( (__param(13,
|
|
936
|
-
( (__param(14, IChatWidgetService)))
|
|
922
|
+
( (__param(11, ICommandService))),
|
|
923
|
+
( (__param(12, ILanguageFeaturesService))),
|
|
924
|
+
( (__param(13, IChatWidgetService)))
|
|
937
925
|
], InlineChatController)));
|
|
938
926
|
async function showMessageResponse(accessor, query, response) {
|
|
939
927
|
const chatService = accessor.get(IChatService);
|
|
@@ -942,25 +930,45 @@ async function showMessageResponse(accessor, query, response) {
|
|
|
942
930
|
if (!agent) {
|
|
943
931
|
return;
|
|
944
932
|
}
|
|
945
|
-
const
|
|
946
|
-
const widget = await chatWidgetService.revealViewForProvider(agent.name);
|
|
933
|
+
const widget = await showChatView(accessor.get(IViewsService));
|
|
947
934
|
if (widget && widget.viewModel) {
|
|
948
|
-
chatService.addCompleteRequest(widget.viewModel.sessionId, query, undefined, { message: response });
|
|
935
|
+
chatService.addCompleteRequest(widget.viewModel.sessionId, query, undefined, 0, { message: response });
|
|
949
936
|
widget.focusLastMessage();
|
|
950
937
|
}
|
|
951
938
|
}
|
|
952
939
|
async function sendRequest(accessor, query) {
|
|
953
|
-
const widgetService = accessor.get(IChatWidgetService);
|
|
954
940
|
const chatAgentService = accessor.get(IChatAgentService);
|
|
955
941
|
const agent = chatAgentService.getActivatedAgents().find(agent => agent.locations.includes(ChatAgentLocation.Panel) && agent.isDefault);
|
|
956
942
|
if (!agent) {
|
|
957
943
|
return;
|
|
958
944
|
}
|
|
959
|
-
const widget = await
|
|
945
|
+
const widget = await showChatView(accessor.get(IViewsService));
|
|
960
946
|
if (!widget) {
|
|
961
947
|
return;
|
|
962
948
|
}
|
|
963
949
|
widget.focusInput();
|
|
964
950
|
widget.acceptInput(query);
|
|
965
951
|
}
|
|
952
|
+
function asInlineChatResponseType(response) {
|
|
953
|
+
let result;
|
|
954
|
+
for (const item of response.value) {
|
|
955
|
+
let thisType;
|
|
956
|
+
switch (item.kind) {
|
|
957
|
+
case 'textEditGroup':
|
|
958
|
+
thisType = "onlyEdits" ;
|
|
959
|
+
break;
|
|
960
|
+
case 'markdownContent':
|
|
961
|
+
default:
|
|
962
|
+
thisType = "onlyMessages" ;
|
|
963
|
+
break;
|
|
964
|
+
}
|
|
965
|
+
if (result === undefined) {
|
|
966
|
+
result = thisType;
|
|
967
|
+
}
|
|
968
|
+
else if (result !== thisType) {
|
|
969
|
+
return "mixed" ;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
return result ?? "empty" ;
|
|
973
|
+
}
|
|
966
974
|
export { InlineChatController, InlineChatRunOptions };
|
|
@@ -14,8 +14,8 @@ import { ResourceMap } from '../../../../base/common/map.js';
|
|
|
14
14
|
import { Schemas } from '../../../../base/common/network.js';
|
|
15
15
|
import { isEqual } from '../../../../base/common/resources.js';
|
|
16
16
|
import { IInlineChatSessionService } from './inlineChatSessionService.service.js';
|
|
17
|
+
import { LineRange } from '../../../../editor/common/core/lineRange.js';
|
|
17
18
|
import { IEditorWorkerService } from '../../../../editor/common/services/editorWorker.js';
|
|
18
|
-
import { asRange } from './utils.js';
|
|
19
19
|
import { coalesceInPlace } from '../../../../base/common/arrays.js';
|
|
20
20
|
import { Iterable } from '../../../../base/common/iterator.js';
|
|
21
21
|
import { DisposableStore } from '../../../../base/common/lifecycle.js';
|
|
@@ -145,10 +145,6 @@ class Session {
|
|
|
145
145
|
this._isUnstashed = false;
|
|
146
146
|
const newLen = this._exchange.push(exchange);
|
|
147
147
|
this._teldata.rounds += `${newLen}|`;
|
|
148
|
-
this._teldata.responseTypes += `${exchange.response instanceof ReplyResponse ? exchange.response.responseType : "empty" }|`;
|
|
149
|
-
}
|
|
150
|
-
get exchanges() {
|
|
151
|
-
return this._exchange;
|
|
152
148
|
}
|
|
153
149
|
get lastExchange() {
|
|
154
150
|
return this._exchange[this._exchange.length - 1];
|
|
@@ -202,10 +198,8 @@ class Session {
|
|
|
202
198
|
}
|
|
203
199
|
}
|
|
204
200
|
class SessionPrompt {
|
|
205
|
-
constructor(value
|
|
201
|
+
constructor(value) {
|
|
206
202
|
this.value = value;
|
|
207
|
-
this.attempt = attempt;
|
|
208
|
-
this.withIntentDetection = withIntentDetection;
|
|
209
203
|
}
|
|
210
204
|
}
|
|
211
205
|
class SessionExchange {
|
|
@@ -224,11 +218,12 @@ class ErrorResponse {
|
|
|
224
218
|
}
|
|
225
219
|
}
|
|
226
220
|
let ReplyResponse = class ReplyResponse {
|
|
227
|
-
constructor(raw, mdContent, localUri, modelAltVersionId, progressEdits, requestId, _textFileService, _languageService) {
|
|
221
|
+
constructor(raw, mdContent, localUri, modelAltVersionId, progressEdits, requestId, chatResponse, _textFileService, _languageService) {
|
|
228
222
|
this.raw = raw;
|
|
229
223
|
this.mdContent = mdContent;
|
|
230
224
|
this.modelAltVersionId = modelAltVersionId;
|
|
231
225
|
this.requestId = requestId;
|
|
226
|
+
this.chatResponse = chatResponse;
|
|
232
227
|
this._textFileService = _textFileService;
|
|
233
228
|
this._languageService = _languageService;
|
|
234
229
|
this.allLocalEdits = [];
|
|
@@ -275,10 +270,7 @@ let ReplyResponse = class ReplyResponse {
|
|
|
275
270
|
languageId: langSelection.languageId
|
|
276
271
|
});
|
|
277
272
|
this.untitledTextModel = untitledTextModel;
|
|
278
|
-
untitledTextModel.resolve()
|
|
279
|
-
const model = untitledTextModel.textEditorModel;
|
|
280
|
-
model.applyEdits(( flatEdits.map(edit => EditOperation.replace(Range.lift(edit.range), edit.text))));
|
|
281
|
-
});
|
|
273
|
+
untitledTextModel.resolve();
|
|
282
274
|
}
|
|
283
275
|
}
|
|
284
276
|
this.allLocalEdits = editsMap.get(localUri) ?? [];
|
|
@@ -291,25 +283,11 @@ let ReplyResponse = class ReplyResponse {
|
|
|
291
283
|
}
|
|
292
284
|
this.workspaceEdit = { edits: workspaceEdits };
|
|
293
285
|
}
|
|
294
|
-
const hasEdits = editsMap.size > 0;
|
|
295
|
-
const hasMessage = mdContent.value.length > 0;
|
|
296
|
-
if (hasEdits && hasMessage) {
|
|
297
|
-
this.responseType = "mixed" ;
|
|
298
|
-
}
|
|
299
|
-
else if (hasEdits) {
|
|
300
|
-
this.responseType = "onlyEdits" ;
|
|
301
|
-
}
|
|
302
|
-
else if (hasMessage) {
|
|
303
|
-
this.responseType = "onlyMessages" ;
|
|
304
|
-
}
|
|
305
|
-
else {
|
|
306
|
-
this.responseType = "empty" ;
|
|
307
|
-
}
|
|
308
286
|
}
|
|
309
287
|
};
|
|
310
288
|
ReplyResponse = ( __decorate([
|
|
311
|
-
( __param(
|
|
312
|
-
( __param(
|
|
289
|
+
( __param(7, ITextFileService)),
|
|
290
|
+
( __param(8, ILanguageService))
|
|
313
291
|
], ReplyResponse));
|
|
314
292
|
let StashedSession = class StashedSession {
|
|
315
293
|
constructor(editor, session, _undoCancelEdits, contextKeyService, _sessionService, _logService) {
|
|
@@ -485,8 +463,8 @@ let HunkData = class HunkData {
|
|
|
485
463
|
for (const hunk of hunks) {
|
|
486
464
|
const textModelNDecorations = [];
|
|
487
465
|
const textModel0Decorations = [];
|
|
488
|
-
textModelNDecorations.push(accessorN.addDecoration(asRange(hunk.modified, this._textModelN), HunkData_1._HUNK_TRACKED_RANGE));
|
|
489
|
-
textModel0Decorations.push(accessor0.addDecoration(asRange(hunk.original, this._textModel0), HunkData_1._HUNK_TRACKED_RANGE));
|
|
466
|
+
textModelNDecorations.push(accessorN.addDecoration(LineRange.asRange(hunk.modified, this._textModelN), HunkData_1._HUNK_TRACKED_RANGE));
|
|
467
|
+
textModel0Decorations.push(accessor0.addDecoration(LineRange.asRange(hunk.original, this._textModel0), HunkData_1._HUNK_TRACKED_RANGE));
|
|
490
468
|
for (const change of hunk.changes) {
|
|
491
469
|
textModelNDecorations.push(accessorN.addDecoration(change.modifiedRange, HunkData_1._HUNK_TRACKED_RANGE));
|
|
492
470
|
textModel0Decorations.push(accessor0.addDecoration(change.originalRange, HunkData_1._HUNK_TRACKED_RANGE));
|