@codingame/monaco-vscode-katex-common 27.0.0 → 28.0.0
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/package.json +2 -2
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +2 -0
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +2 -2
- package/vscode/src/vs/platform/mcp/common/modelContextProtocolApps.d.ts +30 -2
- package/vscode/src/vs/platform/mcp/common/modelContextProtocolApps.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +17 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +90 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.js +106 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +63 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +13 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +28 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +133 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +69 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +55 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +38 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +72 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts +1 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +4 -110
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.d.ts +59 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.js +29 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +8 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownTableScrolling.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownTableScrolling.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +6 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +26 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +290 -126
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +263 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +22 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +12 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +3 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +6 -260
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +129 -117
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +56 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +20 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatResultListSubPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatSimpleToolProgressPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +43 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +42 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +61 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatQuestionCarouselAutoReply.js +7 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +1 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +81 -191
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +31 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +334 -181
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.js +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +51 -55
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.d.ts +104 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.js +127 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +16 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +213 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +10 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +6 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +174 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatViewWelcome.css +2 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +12 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css +36 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageWidget.css +19 -4
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +22 -6
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +15 -15
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +24 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatEditorAffordance.css +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +38 -46
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +6 -10
package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js
CHANGED
|
@@ -39,13 +39,13 @@ import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/in
|
|
|
39
39
|
import { renderAsPlaintext } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer';
|
|
40
40
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
41
41
|
import { ChatViewId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
42
|
-
import { AgentSessionProviders,
|
|
42
|
+
import { AgentSessionProviders, getAgentSessionProviderName } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
|
|
43
43
|
import { isCancellationError, BugIndicatingError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
44
44
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
45
45
|
import { LocalChatSessionUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatUri';
|
|
46
46
|
import { assertNever } from '@codingame/monaco-vscode-api/vscode/vs/base/common/assert';
|
|
47
47
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
48
|
-
import { Target } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/
|
|
48
|
+
import { Target } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/promptTypes';
|
|
49
49
|
import { autorun, autorunIterableDelta } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
50
50
|
import { observableFromEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableFromEvent';
|
|
51
51
|
import { observableSignalFromEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableSignalFromEvent';
|
|
@@ -53,39 +53,39 @@ import { observableSignalFromEvent } from '@codingame/monaco-vscode-api/vscode/v
|
|
|
53
53
|
const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
54
54
|
extensionPoint: "chatSessions",
|
|
55
55
|
jsonSchema: {
|
|
56
|
-
description: ( localize(
|
|
56
|
+
description: ( localize(6010, "Contributes chat session integrations to the chat widget.")),
|
|
57
57
|
type: "array",
|
|
58
58
|
items: {
|
|
59
59
|
type: "object",
|
|
60
60
|
additionalProperties: false,
|
|
61
61
|
properties: {
|
|
62
62
|
type: {
|
|
63
|
-
description: ( localize(
|
|
63
|
+
description: ( localize(6011, "Unique identifier for the type of chat session.")),
|
|
64
64
|
type: "string"
|
|
65
65
|
},
|
|
66
66
|
name: {
|
|
67
67
|
description: ( localize(
|
|
68
|
-
|
|
68
|
+
6012,
|
|
69
69
|
"Name of the dynamically registered chat participant (eg: @agent). Must not contain whitespace."
|
|
70
70
|
)),
|
|
71
71
|
type: "string",
|
|
72
72
|
pattern: "^[\\w-]+$"
|
|
73
73
|
},
|
|
74
74
|
displayName: {
|
|
75
|
-
description: ( localize(
|
|
75
|
+
description: ( localize(6013, "A longer name for this item which is used for display in menus.")),
|
|
76
76
|
type: "string"
|
|
77
77
|
},
|
|
78
78
|
description: {
|
|
79
|
-
description: ( localize(
|
|
79
|
+
description: ( localize(6014, "Description of the chat session for use in menus and tooltips.")),
|
|
80
80
|
type: "string"
|
|
81
81
|
},
|
|
82
82
|
when: {
|
|
83
|
-
description: ( localize(
|
|
83
|
+
description: ( localize(6015, "Condition which must be true to show this item.")),
|
|
84
84
|
type: "string"
|
|
85
85
|
},
|
|
86
86
|
icon: {
|
|
87
87
|
description: ( localize(
|
|
88
|
-
|
|
88
|
+
6016,
|
|
89
89
|
"Icon identifier (codicon ID) for the chat session editor tab. For example, \"$(github)\" or \"$(cloud)\"."
|
|
90
90
|
)),
|
|
91
91
|
anyOf: [{
|
|
@@ -94,22 +94,22 @@ const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
94
94
|
type: "object",
|
|
95
95
|
properties: {
|
|
96
96
|
light: {
|
|
97
|
-
description: ( localize(
|
|
97
|
+
description: ( localize(6017, "Icon path when a light theme is used")),
|
|
98
98
|
type: "string"
|
|
99
99
|
},
|
|
100
100
|
dark: {
|
|
101
|
-
description: ( localize(
|
|
101
|
+
description: ( localize(6018, "Icon path when a dark theme is used")),
|
|
102
102
|
type: "string"
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
}]
|
|
106
106
|
},
|
|
107
107
|
order: {
|
|
108
|
-
description: ( localize(
|
|
108
|
+
description: ( localize(6019, "Order in which this item should be displayed.")),
|
|
109
109
|
type: "integer"
|
|
110
110
|
},
|
|
111
111
|
alternativeIds: {
|
|
112
|
-
description: ( localize(
|
|
112
|
+
description: ( localize(6020, "Alternative identifiers for backward compatibility.")),
|
|
113
113
|
type: "array",
|
|
114
114
|
items: {
|
|
115
115
|
type: "string"
|
|
@@ -117,91 +117,95 @@ const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
117
117
|
},
|
|
118
118
|
welcomeTitle: {
|
|
119
119
|
description: ( localize(
|
|
120
|
-
|
|
120
|
+
6021,
|
|
121
121
|
"Title text to display in the chat welcome view for this session type."
|
|
122
122
|
)),
|
|
123
123
|
type: "string"
|
|
124
124
|
},
|
|
125
125
|
welcomeMessage: {
|
|
126
126
|
description: ( localize(
|
|
127
|
-
|
|
127
|
+
6022,
|
|
128
128
|
"Message text (supports markdown) to display in the chat welcome view for this session type."
|
|
129
129
|
)),
|
|
130
130
|
type: "string"
|
|
131
131
|
},
|
|
132
132
|
welcomeTips: {
|
|
133
133
|
description: ( localize(
|
|
134
|
-
|
|
134
|
+
6023,
|
|
135
135
|
"Tips text (supports markdown and theme icons) to display in the chat welcome view for this session type."
|
|
136
136
|
)),
|
|
137
137
|
type: "string"
|
|
138
138
|
},
|
|
139
139
|
inputPlaceholder: {
|
|
140
140
|
description: ( localize(
|
|
141
|
-
|
|
141
|
+
6024,
|
|
142
142
|
"Placeholder text to display in the chat input box for this session type."
|
|
143
143
|
)),
|
|
144
144
|
type: "string"
|
|
145
145
|
},
|
|
146
146
|
capabilities: {
|
|
147
|
-
description: ( localize(
|
|
147
|
+
description: ( localize(6025, "Optional capabilities for this chat session.")),
|
|
148
148
|
type: "object",
|
|
149
149
|
additionalProperties: false,
|
|
150
150
|
properties: {
|
|
151
151
|
supportsFileAttachments: {
|
|
152
152
|
description: ( localize(
|
|
153
|
-
|
|
153
|
+
6026,
|
|
154
154
|
"Whether this chat session supports attaching files or file references."
|
|
155
155
|
)),
|
|
156
156
|
type: "boolean"
|
|
157
157
|
},
|
|
158
158
|
supportsToolAttachments: {
|
|
159
159
|
description: ( localize(
|
|
160
|
-
|
|
160
|
+
6027,
|
|
161
161
|
"Whether this chat session supports attaching tools or tool references."
|
|
162
162
|
)),
|
|
163
163
|
type: "boolean"
|
|
164
164
|
},
|
|
165
165
|
supportsMCPAttachments: {
|
|
166
|
-
description: ( localize(
|
|
166
|
+
description: ( localize(6028, "Whether this chat session supports attaching MCP resources.")),
|
|
167
167
|
type: "boolean"
|
|
168
168
|
},
|
|
169
169
|
supportsImageAttachments: {
|
|
170
|
-
description: ( localize(
|
|
170
|
+
description: ( localize(6029, "Whether this chat session supports attaching images.")),
|
|
171
171
|
type: "boolean"
|
|
172
172
|
},
|
|
173
173
|
supportsSearchResultAttachments: {
|
|
174
|
-
description: ( localize(
|
|
174
|
+
description: ( localize(6030, "Whether this chat session supports attaching search results.")),
|
|
175
175
|
type: "boolean"
|
|
176
176
|
},
|
|
177
177
|
supportsInstructionAttachments: {
|
|
178
|
-
description: ( localize(
|
|
178
|
+
description: ( localize(6031, "Whether this chat session supports attaching instructions.")),
|
|
179
179
|
type: "boolean"
|
|
180
180
|
},
|
|
181
181
|
supportsSourceControlAttachments: {
|
|
182
182
|
description: ( localize(
|
|
183
|
-
|
|
183
|
+
6032,
|
|
184
184
|
"Whether this chat session supports attaching source control changes."
|
|
185
185
|
)),
|
|
186
186
|
type: "boolean"
|
|
187
187
|
},
|
|
188
188
|
supportsProblemAttachments: {
|
|
189
|
-
description: ( localize(
|
|
189
|
+
description: ( localize(6033, "Whether this chat session supports attaching problems.")),
|
|
190
190
|
type: "boolean"
|
|
191
191
|
},
|
|
192
192
|
supportsSymbolAttachments: {
|
|
193
|
-
description: ( localize(
|
|
193
|
+
description: ( localize(6034, "Whether this chat session supports attaching symbols.")),
|
|
194
194
|
type: "boolean"
|
|
195
195
|
},
|
|
196
196
|
supportsPromptAttachments: {
|
|
197
|
-
description: ( localize(
|
|
197
|
+
description: ( localize(6035, "Whether this chat session supports attaching prompts.")),
|
|
198
|
+
type: "boolean"
|
|
199
|
+
},
|
|
200
|
+
supportsHandOffs: {
|
|
201
|
+
description: ( localize(6036, "Whether this chat session supports hand-off prompts.")),
|
|
198
202
|
type: "boolean"
|
|
199
203
|
}
|
|
200
204
|
}
|
|
201
205
|
},
|
|
202
206
|
commands: {
|
|
203
207
|
markdownDescription: ( localize(
|
|
204
|
-
|
|
208
|
+
6037,
|
|
205
209
|
"Commands available for this chat session, which the user can invoke with a `/`."
|
|
206
210
|
)),
|
|
207
211
|
type: "array",
|
|
@@ -218,17 +222,17 @@ const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
218
222
|
properties: {
|
|
219
223
|
name: {
|
|
220
224
|
description: ( localize(
|
|
221
|
-
|
|
225
|
+
6038,
|
|
222
226
|
"A short name by which this command is referred to in the UI, e.g. `fix` or `explain` for commands that fix an issue or explain code. The name should be unique among the commands provided by this participant."
|
|
223
227
|
)),
|
|
224
228
|
type: "string"
|
|
225
229
|
},
|
|
226
230
|
description: {
|
|
227
|
-
description: ( localize(
|
|
231
|
+
description: ( localize(6039, "A description of this command.")),
|
|
228
232
|
type: "string"
|
|
229
233
|
},
|
|
230
234
|
when: {
|
|
231
|
-
description: ( localize(
|
|
235
|
+
description: ( localize(6040, "A condition which must be true to enable this command.")),
|
|
232
236
|
type: "string"
|
|
233
237
|
}
|
|
234
238
|
}
|
|
@@ -236,7 +240,7 @@ const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
236
240
|
},
|
|
237
241
|
canDelegate: {
|
|
238
242
|
description: ( localize(
|
|
239
|
-
|
|
243
|
+
6041,
|
|
240
244
|
"Whether delegation is supported. Default is false. Note that enabling this is experimental and may not be respected at all times."
|
|
241
245
|
)),
|
|
242
246
|
type: "boolean",
|
|
@@ -244,14 +248,14 @@ const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
244
248
|
},
|
|
245
249
|
customAgentTarget: {
|
|
246
250
|
description: ( localize(
|
|
247
|
-
|
|
251
|
+
6042,
|
|
248
252
|
"When set, the chat session will show a filtered mode picker that prefers custom agents whose target property matches this value. Custom agents without a target property are still shown in all session types. This enables the use of standard agent/mode with contributed sessions."
|
|
249
253
|
)),
|
|
250
254
|
type: "string"
|
|
251
255
|
},
|
|
252
256
|
requiresCustomModels: {
|
|
253
257
|
description: ( localize(
|
|
254
|
-
|
|
258
|
+
6043,
|
|
255
259
|
"When set, the chat session will show a filtered model picker that prefers custom models. This enables the use of standard model picker with contributed sessions."
|
|
256
260
|
)),
|
|
257
261
|
type: "boolean",
|
|
@@ -375,7 +379,6 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
375
379
|
const builtinSessionProviders = [AgentSessionProviders.Local];
|
|
376
380
|
const contributedSessionProviders = observableFromEvent(this.onDidChangeAvailability, () => Array.from(( this._contributions.keys())).filter(key => ( this._contributionDisposables.has(key)) && isAgentSessionProviderType(key))).recomputeInitiallyAndOnChange(this._store);
|
|
377
381
|
this._register(autorun(reader => {
|
|
378
|
-
backgroundAgentDisplayName.read(reader);
|
|
379
382
|
const activatedProviders = [...builtinSessionProviders, ...contributedSessionProviders.read(reader)];
|
|
380
383
|
for (const provider of ( Object.values(AgentSessionProviders))) {
|
|
381
384
|
if (activatedProviders.includes(provider)) {
|
|
@@ -406,11 +409,11 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
406
409
|
reportInProgress(chatSessionType, count) {
|
|
407
410
|
let displayName;
|
|
408
411
|
if (chatSessionType === AgentSessionProviders.Local) {
|
|
409
|
-
displayName = ( localize(
|
|
412
|
+
displayName = ( localize(6044, "Local Agent"));
|
|
410
413
|
} else if (chatSessionType === AgentSessionProviders.Background) {
|
|
411
|
-
displayName = ( localize(
|
|
414
|
+
displayName = ( localize(6045, "Background Agent"));
|
|
412
415
|
} else if (chatSessionType === AgentSessionProviders.Cloud) {
|
|
413
|
-
displayName = ( localize(
|
|
416
|
+
displayName = ( localize(6046, "Cloud Agent"));
|
|
414
417
|
} else {
|
|
415
418
|
displayName = this._contributions.get(chatSessionType)?.contribution.displayName;
|
|
416
419
|
}
|
|
@@ -439,7 +442,13 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
439
442
|
}
|
|
440
443
|
}
|
|
441
444
|
registerContribution(contribution, ext) {
|
|
445
|
+
this._logService.info(
|
|
446
|
+
`[ChatSessionsService] registerContribution called for type='${contribution.type}', canDelegate=${contribution.canDelegate}, when='${contribution.when}', extension='${ext.identifier.value}'`
|
|
447
|
+
);
|
|
442
448
|
if (( this._contributions.has(contribution.type))) {
|
|
449
|
+
this._logService.info(
|
|
450
|
+
`[ChatSessionsService] registerContribution: type='${contribution.type}' already registered, skipping`
|
|
451
|
+
);
|
|
443
452
|
return {
|
|
444
453
|
dispose: () => {}
|
|
445
454
|
};
|
|
@@ -566,7 +575,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
566
575
|
constructor() {
|
|
567
576
|
super({
|
|
568
577
|
id: `workbench.action.chat.openSessionWithPrompt.${contribution.type}`,
|
|
569
|
-
title: ( localize2(
|
|
578
|
+
title: ( localize2(6047, "New {0} with Prompt", contribution.displayName)),
|
|
570
579
|
category: CHAT_CATEGORY,
|
|
571
580
|
icon: Codicon.plus,
|
|
572
581
|
f1: false,
|
|
@@ -601,7 +610,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
601
610
|
constructor() {
|
|
602
611
|
super({
|
|
603
612
|
id: `workbench.action.chat.openNewSessionEditor.${contribution.type}`,
|
|
604
|
-
title: ( localize2(
|
|
613
|
+
title: ( localize2(6048, "New {0}", contribution.displayName)),
|
|
605
614
|
category: CHAT_CATEGORY,
|
|
606
615
|
icon: Codicon.plus,
|
|
607
616
|
f1: true,
|
|
@@ -624,7 +633,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
624
633
|
constructor() {
|
|
625
634
|
super({
|
|
626
635
|
id: `workbench.action.chat.openNewSessionSidebar.${contribution.type}`,
|
|
627
|
-
title: ( localize2(
|
|
636
|
+
title: ( localize2(6049, "New {0}", contribution.displayName)),
|
|
628
637
|
category: CHAT_CATEGORY,
|
|
629
638
|
icon: Codicon.plus,
|
|
630
639
|
f1: false,
|
|
@@ -656,6 +665,9 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
656
665
|
} of ( this._contributions.values())) {
|
|
657
666
|
const isCurrentlyRegistered = ( this._contributionDisposables.has(contribution.type));
|
|
658
667
|
const shouldBeRegistered = this._isContributionAvailable(contribution);
|
|
668
|
+
this._logService.trace(
|
|
669
|
+
`[ChatSessionsService] _evaluateAvailability: type='${contribution.type}', isCurrentlyRegistered=${isCurrentlyRegistered}, shouldBeRegistered=${shouldBeRegistered}, when='${contribution.when}'`
|
|
670
|
+
);
|
|
659
671
|
if (isCurrentlyRegistered && !shouldBeRegistered) {
|
|
660
672
|
this._contributionDisposables.deleteAndDispose(contribution.type);
|
|
661
673
|
this._disposeSessionsForContribution(contribution.type);
|
|
@@ -683,6 +695,9 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
683
695
|
this._updateHasCanDelegateProvidersContextKey();
|
|
684
696
|
}
|
|
685
697
|
_enableContribution(contribution, ext) {
|
|
698
|
+
this._logService.info(
|
|
699
|
+
`[ChatSessionsService] _enableContribution: type='${contribution.type}', canDelegate=${contribution.canDelegate}`
|
|
700
|
+
);
|
|
686
701
|
const disposableStore = ( new DisposableStore());
|
|
687
702
|
this._contributionDisposables.set(contribution.type, disposableStore);
|
|
688
703
|
if (contribution.canDelegate) {
|
|
@@ -790,18 +805,18 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
790
805
|
const controller = this._itemControllers.get(chatViewType);
|
|
791
806
|
return !!controller;
|
|
792
807
|
}
|
|
793
|
-
async canResolveChatSession(
|
|
808
|
+
async canResolveChatSession(sessionType) {
|
|
794
809
|
await this._extensionService.whenInstalledExtensionsRegistered();
|
|
795
|
-
const resolvedType = this._resolveToPrimaryType(
|
|
810
|
+
const resolvedType = this._resolveToPrimaryType(sessionType) || sessionType;
|
|
796
811
|
const contribution = this._contributions.get(resolvedType)?.contribution;
|
|
797
812
|
if (contribution && !this._isContributionAvailable(contribution)) {
|
|
798
813
|
return false;
|
|
799
814
|
}
|
|
800
|
-
if (( this._contentProviders.has(
|
|
815
|
+
if (( this._contentProviders.has(sessionType))) {
|
|
801
816
|
return true;
|
|
802
817
|
}
|
|
803
|
-
await this._extensionService.activateByEvent(`onChatSession:${
|
|
804
|
-
return ( this._contentProviders.has(
|
|
818
|
+
await this._extensionService.activateByEvent(`onChatSession:${sessionType}`);
|
|
819
|
+
return ( this._contentProviders.has(sessionType));
|
|
805
820
|
}
|
|
806
821
|
async tryActivateControllers(providersToResolve) {
|
|
807
822
|
await Promise.all(( this.getAllChatSessionContributions().map(async contrib => {
|
|
@@ -990,14 +1005,14 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
990
1005
|
const confirmationTitle = state.confirmationMessages?.title;
|
|
991
1006
|
const titleMessage = confirmationTitle && (typeof confirmationTitle === "string" ? confirmationTitle : confirmationTitle.value);
|
|
992
1007
|
const descriptionValue = typeof description === "string" ? description : description.value;
|
|
993
|
-
description = titleMessage ?? ( localize(
|
|
1008
|
+
description = titleMessage ?? ( localize(6050, "Waiting for confirmation: {0}", descriptionValue));
|
|
994
1009
|
}
|
|
995
1010
|
} else if (part.kind === "toolInvocationSerialized") {
|
|
996
1011
|
description = part.invocationMessage;
|
|
997
1012
|
} else if (part.kind === "progressMessage") {
|
|
998
1013
|
description = part.content;
|
|
999
1014
|
} else if (part.kind === "thinking") {
|
|
1000
|
-
description = ( localize(
|
|
1015
|
+
description = ( localize(6051, "Thinking..."));
|
|
1001
1016
|
}
|
|
1002
1017
|
}
|
|
1003
1018
|
return description ? renderAsPlaintext(description, {
|
|
@@ -1019,7 +1034,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
1019
1034
|
return existingSessionData.session;
|
|
1020
1035
|
}
|
|
1021
1036
|
}
|
|
1022
|
-
if (!(await raceCancellationError(this.canResolveChatSession(sessionResource), token))) {
|
|
1037
|
+
if (!(await raceCancellationError(this.canResolveChatSession(sessionResource.scheme), token))) {
|
|
1023
1038
|
throw Error(`Can not find provider for ${sessionResource}`);
|
|
1024
1039
|
}
|
|
1025
1040
|
{
|
|
@@ -1043,12 +1058,12 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
1043
1058
|
options: newSessionOptions ?? {},
|
|
1044
1059
|
dispose: () => {}
|
|
1045
1060
|
};
|
|
1046
|
-
for (const [optionId, value] of Object.entries(newSessionOptions ?? {})) {
|
|
1047
|
-
this.setSessionOption(sessionResource, optionId, value);
|
|
1048
|
-
}
|
|
1049
1061
|
} else {
|
|
1050
1062
|
session = await raceCancellationError(provider.provideChatSessionContent(sessionResource, token), token);
|
|
1051
1063
|
}
|
|
1064
|
+
for (const [optionId, value] of Object.entries(session.options ?? {})) {
|
|
1065
|
+
this.setSessionOption(sessionResource, optionId, value);
|
|
1066
|
+
}
|
|
1052
1067
|
{
|
|
1053
1068
|
const existingSessionData = this._sessions.get(sessionResource);
|
|
1054
1069
|
if (existingSessionData) {
|
|
@@ -1169,7 +1184,7 @@ function registerNewSessionInPlaceAction(type, displayName) {
|
|
|
1169
1184
|
constructor() {
|
|
1170
1185
|
super({
|
|
1171
1186
|
id: `workbench.action.chat.openNewChatSessionInPlace.${type}`,
|
|
1172
|
-
title: ( localize2(
|
|
1187
|
+
title: ( localize2(6052, "New {0}", displayName)),
|
|
1173
1188
|
category: CHAT_CATEGORY,
|
|
1174
1189
|
f1: false,
|
|
1175
1190
|
precondition: ChatContextKeys.enabled
|
|
@@ -1185,7 +1200,7 @@ function registerNewSessionInPlaceAction(type, displayName) {
|
|
|
1185
1200
|
}
|
|
1186
1201
|
await openChatSession(accessor, {
|
|
1187
1202
|
type: type,
|
|
1188
|
-
displayName: ( localize(
|
|
1203
|
+
displayName: ( localize(6053, "Chat")),
|
|
1189
1204
|
position: chatSessionPosition,
|
|
1190
1205
|
replaceEditor: true
|
|
1191
1206
|
});
|
|
@@ -1197,7 +1212,7 @@ function registerNewSessionExternalAction(type, displayName, commandId) {
|
|
|
1197
1212
|
constructor() {
|
|
1198
1213
|
super({
|
|
1199
1214
|
id: `workbench.action.chat.openNewChatSessionExternal.${type}`,
|
|
1200
|
-
title: ( localize2(
|
|
1215
|
+
title: ( localize2(6054, "New {0}", displayName)),
|
|
1201
1216
|
category: CHAT_CATEGORY,
|
|
1202
1217
|
f1: false,
|
|
1203
1218
|
precondition: ChatContextKeys.enabled
|
|
@@ -1240,7 +1255,7 @@ async function openChatSession(accessor, openOptions, chatSendOptions) {
|
|
|
1240
1255
|
override: ChatEditorInput.EditorID,
|
|
1241
1256
|
pinned: true,
|
|
1242
1257
|
title: {
|
|
1243
|
-
fallback: ( localize(
|
|
1258
|
+
fallback: ( localize(6055, "{0}", openOptions.displayName))
|
|
1244
1259
|
}
|
|
1245
1260
|
};
|
|
1246
1261
|
if (openOptions.replaceEditor) {
|
|
@@ -87,8 +87,8 @@ let SearchableOptionPickerActionItem = class SearchableOptionPickerActionItem ex
|
|
|
87
87
|
checked: false,
|
|
88
88
|
class: "searchable-picker-see-more",
|
|
89
89
|
description: undefined,
|
|
90
|
-
tooltip: ( localize(
|
|
91
|
-
label: ( localize(
|
|
90
|
+
tooltip: ( localize(6056, "Search for more options")),
|
|
91
|
+
label: ( localize(6057, "See more...")),
|
|
92
92
|
run: () => {
|
|
93
93
|
this.showSearchableQuickPick(optionGroup);
|
|
94
94
|
}
|
|
@@ -103,7 +103,7 @@ let SearchableOptionPickerActionItem = class SearchableOptionPickerActionItem ex
|
|
|
103
103
|
if (optionGroup?.icon) {
|
|
104
104
|
domChildren.push(renderIcon(optionGroup.icon));
|
|
105
105
|
}
|
|
106
|
-
const label = this.currentOption?.name ?? optionGroup?.name ?? ( localize(
|
|
106
|
+
const label = this.currentOption?.name ?? optionGroup?.name ?? ( localize(6058, "Select..."));
|
|
107
107
|
domChildren.push($("span.chat-session-option-label", undefined, label));
|
|
108
108
|
domChildren.push(...renderLabelWithIcons(`$(chevron-down)`));
|
|
109
109
|
reset(element, ...domChildren);
|
|
@@ -118,7 +118,7 @@ let SearchableOptionPickerActionItem = class SearchableOptionPickerActionItem ex
|
|
|
118
118
|
const disposables = ( new DisposableStore());
|
|
119
119
|
const quickPick = this.quickInputService.createQuickPick();
|
|
120
120
|
disposables.add(quickPick);
|
|
121
|
-
quickPick.placeholder = optionGroup.description ?? ( localize(
|
|
121
|
+
quickPick.placeholder = optionGroup.description ?? ( localize(6059, "Select {0}", optionGroup.name));
|
|
122
122
|
quickPick.matchOnDescription = true;
|
|
123
123
|
quickPick.matchOnDetail = true;
|
|
124
124
|
quickPick.ignoreFocusOut = true;
|
package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts
CHANGED
|
@@ -5,14 +5,11 @@ import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/
|
|
|
5
5
|
import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
|
|
6
6
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
7
7
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
8
|
-
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
9
8
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
10
9
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
11
10
|
import { IMarkdownRendererService } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service";
|
|
12
11
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
13
|
-
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
14
12
|
import { ChatAgentLocation } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants";
|
|
15
|
-
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
16
13
|
import { IChatViewsWelcomeDescriptor } from "./chatViewsWelcome.js";
|
|
17
14
|
export interface IViewWelcomeDelegate {
|
|
18
15
|
readonly onDidChangeViewWelcomeState: Event<void>;
|
|
@@ -42,16 +39,8 @@ export interface IChatViewWelcomeContent {
|
|
|
42
39
|
readonly additionalMessage?: string | IMarkdownString;
|
|
43
40
|
tips?: IMarkdownString;
|
|
44
41
|
readonly inputPart?: HTMLElement;
|
|
45
|
-
readonly suggestedPrompts?: readonly IChatSuggestedPrompts[];
|
|
46
42
|
readonly useLargeIcon?: boolean;
|
|
47
43
|
}
|
|
48
|
-
export interface IChatSuggestedPrompts {
|
|
49
|
-
readonly icon?: ThemeIcon;
|
|
50
|
-
readonly label: string;
|
|
51
|
-
readonly description?: string;
|
|
52
|
-
readonly prompt: string;
|
|
53
|
-
readonly uri?: URI;
|
|
54
|
-
}
|
|
55
44
|
export interface IChatViewWelcomeRenderOptions {
|
|
56
45
|
readonly firstLinkToButton?: boolean;
|
|
57
46
|
readonly location: ChatAgentLocation;
|
|
@@ -61,13 +50,9 @@ export declare class ChatViewWelcomePart extends Disposable {
|
|
|
61
50
|
readonly content: IChatViewWelcomeContent;
|
|
62
51
|
private openerService;
|
|
63
52
|
private logService;
|
|
64
|
-
private chatWidgetService;
|
|
65
|
-
private telemetryService;
|
|
66
53
|
private readonly markdownRendererService;
|
|
67
|
-
private readonly contextMenuService;
|
|
68
54
|
readonly element: HTMLElement;
|
|
69
|
-
constructor(content: IChatViewWelcomeContent, options: IChatViewWelcomeRenderOptions | undefined, openerService: IOpenerService, logService: ILogService,
|
|
70
|
-
private getPromptContextMenuActions;
|
|
55
|
+
constructor(content: IChatViewWelcomeContent, options: IChatViewWelcomeRenderOptions | undefined, openerService: IOpenerService, logService: ILogService, markdownRendererService: IMarkdownRendererService);
|
|
71
56
|
needsRerender(content: IChatViewWelcomeContent): boolean;
|
|
72
57
|
private renderMarkdownMessageContent;
|
|
73
58
|
}
|