@codingame/monaco-vscode-katex-common 26.2.1 → 27.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.d.ts +10 -4
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +35 -11
- package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +3 -0
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +15 -4
- package/vscode/src/vs/platform/mcp/common/modelContextProtocolApps.d.ts +548 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +168 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +67 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +12 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +42 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +12 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +63 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +7 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +77 -73
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +69 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +23 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +381 -83
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.js +28 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +38 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +109 -113
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +16 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +28 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +226 -123
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
- 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.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +9 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +7 -10
- 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 +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.js +22 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.js +11 -3
- 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.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.js +6 -3
- 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 +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +26 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +52 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +8 -7
- 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 +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +20 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.js +11 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +36 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +166 -45
- 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 +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +16 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +14 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +98 -26
- 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.js +1 -0
- 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 +10 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +244 -80
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.d.ts +29 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +252 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +39 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +36 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +5 -5
- 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.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.d.ts +5 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +42 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatCodeBlockPill.css +12 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +48 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatHookContentPart.css +9 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatInlineAnchorWidget.css +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +351 -422
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +14 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +102 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css +69 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/codeBlockPart.css +48 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +47 -23
- 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 +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +0 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatSimpleToolProgressPart.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatSimpleToolProgressPart.js +103 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +15 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +63 -69
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +7 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +41 -2
- 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 +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +13 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.js +2 -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 +17 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +310 -79
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +13 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatQuestionCarouselAutoReply.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatQuestionCarouselAutoReply.js +441 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +24 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +392 -86
- 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 +52 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +271 -187
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +668 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +12 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +57 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +2 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +78 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.js +86 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +9 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +393 -134
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatViewWelcome.css +36 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +20 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.d.ts +25 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +141 -79
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageWidget.css +18 -13
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +108 -27
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +20 -14
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +4 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +74 -32
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +11 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +68 -27
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.js +125 -13
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.d.ts +8 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +54 -45
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +11 -10
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +172 -112
- 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 +0 -42
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatEditorAffordance.css +27 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +83 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +58 -33
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.d.ts +1 -548
- 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/chat/browser/widget/input/modelPickerActionItem.js +0 -187
- /package/vscode/src/vs/{workbench/contrib → platform}/mcp/common/modelContextProtocolApps.js +0 -0
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
.chat-terminal-content-part .chat-terminal-content-title {
|
|
12
12
|
border: 1px solid var(--vscode-chat-requestBorder);
|
|
13
|
-
border-radius:
|
|
13
|
+
border-radius: var(--vscode-cornerRadius-medium);
|
|
14
14
|
padding: 0px 9px 0px 5px;
|
|
15
15
|
max-width: 100%;
|
|
16
16
|
box-sizing: border-box;
|
|
@@ -135,8 +135,8 @@
|
|
|
135
135
|
.chat-terminal-output-container.collapsed { display: none; }
|
|
136
136
|
.chat-terminal-output-container {
|
|
137
137
|
border: 1px solid var(--vscode-chat-requestBorder);
|
|
138
|
-
border-bottom-left-radius:
|
|
139
|
-
border-bottom-right-radius:
|
|
138
|
+
border-bottom-left-radius: var(--vscode-cornerRadius-medium);
|
|
139
|
+
border-bottom-right-radius: var(--vscode-cornerRadius-medium);
|
|
140
140
|
max-height: 300px;
|
|
141
141
|
box-sizing: border-box;
|
|
142
142
|
overflow: hidden;
|
|
@@ -187,12 +187,10 @@ div.chat-terminal-content-part.progress-step > div.chat-terminal-output-containe
|
|
|
187
187
|
.chat-terminal-output-terminal .xterm-viewport {
|
|
188
188
|
background: inherit !important;
|
|
189
189
|
}
|
|
190
|
+
|
|
190
191
|
.chat-terminal-output-terminal.chat-terminal-output-terminal-no-output {
|
|
191
192
|
display: none;
|
|
192
193
|
}
|
|
193
|
-
.chat-terminal-output-terminal.chat-terminal-output-terminal-clipped {
|
|
194
|
-
overflow: hidden;
|
|
195
|
-
}
|
|
196
194
|
.chat-terminal-output {
|
|
197
195
|
margin: 0;
|
|
198
196
|
white-space: pre;
|
|
@@ -210,10 +208,19 @@ div.chat-terminal-content-part.progress-step > div.chat-terminal-output-containe
|
|
|
210
208
|
display: block;
|
|
211
209
|
}
|
|
212
210
|
|
|
213
|
-
.chat-terminal-output-container .xterm-scrollable-element .scrollbar {
|
|
211
|
+
.chat-terminal-output-container .xterm-scrollable-element .xterm-scrollbar {
|
|
214
212
|
display: none;
|
|
215
213
|
}
|
|
216
214
|
|
|
215
|
+
/* Allow clicks to pass through scrollbar track to reach inline links, but keep slider draggable */
|
|
216
|
+
.chat-terminal-output-container > .monaco-scrollable-element > .scrollbar.horizontal {
|
|
217
|
+
pointer-events: none;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.chat-terminal-output-container > .monaco-scrollable-element > .scrollbar.horizontal .slider {
|
|
221
|
+
pointer-events: auto;
|
|
222
|
+
}
|
|
223
|
+
|
|
217
224
|
.chat-terminal-output div,
|
|
218
225
|
.chat-terminal-output span {
|
|
219
226
|
height: auto;
|
|
@@ -18,16 +18,58 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
> .chat-used-context-label .monaco-button.monaco-icon-button {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
21
23
|
line-height: 1.5em;
|
|
22
24
|
font-size: 13px;
|
|
23
25
|
|
|
24
|
-
.
|
|
26
|
+
.monaco-button-mdlabel {
|
|
25
27
|
font-size: var(--vscode-chat-font-size-body-s);
|
|
26
28
|
}
|
|
27
29
|
|
|
30
|
+
.codicon {
|
|
31
|
+
font-size: 12px;
|
|
32
|
+
}
|
|
33
|
+
|
|
28
34
|
.rendered-markdown.collapsible-title-content {
|
|
29
35
|
line-height: unset;
|
|
30
36
|
}
|
|
37
|
+
|
|
38
|
+
.rendered-markdown.chat-thinking-title-detail {
|
|
39
|
+
display: inline;
|
|
40
|
+
font-size: inherit;
|
|
41
|
+
line-height: inherit;
|
|
42
|
+
|
|
43
|
+
> p {
|
|
44
|
+
display: inline;
|
|
45
|
+
margin: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.chat-thinking-title-detail-text {
|
|
50
|
+
opacity: 0.7;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.chat-thinking-active > .chat-used-context-label .monaco-button.monaco-icon-button {
|
|
55
|
+
|
|
56
|
+
.codicon.codicon-circle-filled {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.chat-thinking-title-shimmer {
|
|
61
|
+
background: linear-gradient(90deg,
|
|
62
|
+
var(--vscode-descriptionForeground) 0%,
|
|
63
|
+
var(--vscode-descriptionForeground) 30%,
|
|
64
|
+
var(--vscode-chat-thinkingShimmer) 50%,
|
|
65
|
+
var(--vscode-descriptionForeground) 70%,
|
|
66
|
+
var(--vscode-descriptionForeground) 100%);
|
|
67
|
+
background-size: 400% 100%;
|
|
68
|
+
background-clip: text;
|
|
69
|
+
-webkit-background-clip: text;
|
|
70
|
+
-webkit-text-fill-color: transparent;
|
|
71
|
+
animation: chat-thinking-shimmer 2s linear infinite;
|
|
72
|
+
}
|
|
31
73
|
}
|
|
32
74
|
|
|
33
75
|
/* shimmer animation stuffs */
|
|
@@ -57,7 +99,7 @@
|
|
|
57
99
|
|
|
58
100
|
.chat-used-context-list.chat-thinking-collapsible {
|
|
59
101
|
border: 1px solid var(--vscode-chat-requestBorder);
|
|
60
|
-
border-radius:
|
|
102
|
+
border-radius: var(--vscode-cornerRadius-medium);
|
|
61
103
|
margin-bottom: 0;
|
|
62
104
|
position: relative;
|
|
63
105
|
overflow: hidden;
|
|
@@ -65,11 +107,33 @@
|
|
|
65
107
|
.chat-tool-invocation-part {
|
|
66
108
|
padding: 4px 12px 4px 18px;
|
|
67
109
|
position: relative;
|
|
110
|
+
}
|
|
68
111
|
|
|
112
|
+
.chat-thinking-tool-wrapper {
|
|
69
113
|
.chat-used-context {
|
|
70
114
|
margin-bottom: 0px;
|
|
71
|
-
margin-left:
|
|
115
|
+
margin-left: 4px;
|
|
72
116
|
padding-left: 2px;
|
|
117
|
+
|
|
118
|
+
.monaco-button.monaco-text-button {
|
|
119
|
+
color: var(--vscode-descriptionForeground);
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
|
|
123
|
+
:hover {
|
|
124
|
+
color: var(--vscode-foreground);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.monaco-button:hover .chat-collapsible-hover-chevron {
|
|
128
|
+
opacity: 1;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.chat-used-context:not(.chat-used-context-collapsed) {
|
|
134
|
+
.monaco-button.monaco-text-button {
|
|
135
|
+
color: var(--vscode-foreground);
|
|
136
|
+
}
|
|
73
137
|
}
|
|
74
138
|
|
|
75
139
|
.progress-container,
|
|
@@ -77,17 +141,35 @@
|
|
|
77
141
|
margin: 0 0 2px 6px;
|
|
78
142
|
}
|
|
79
143
|
|
|
80
|
-
|
|
81
|
-
|
|
144
|
+
/* todo: ideally not !important, but the competing css has 14 specificity */
|
|
145
|
+
.codicon.codicon-check,
|
|
146
|
+
.codicon.codicon-loading {
|
|
147
|
+
display: none !important;
|
|
82
148
|
}
|
|
83
149
|
|
|
150
|
+
.chat-collapsible-hover-chevron.codicon {
|
|
151
|
+
display: inline-flex;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.show-checkmarks .chat-confirmation-widget-title > .codicon:first-child:not(.chat-collapsible-hover-chevron) {
|
|
155
|
+
display: inline-block;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.show-checkmarks .progress-container > .codicon.codicon-check {
|
|
159
|
+
display: inline-flex;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.chat-used-context.chat-hook-outcome-blocked,
|
|
163
|
+
.chat-used-context.chat-hook-outcome-warning {
|
|
164
|
+
padding: 4px 12px 4px 20px;
|
|
165
|
+
margin-bottom: 0;
|
|
166
|
+
}
|
|
84
167
|
}
|
|
85
168
|
|
|
86
169
|
.chat-thinking-item.markdown-content {
|
|
87
170
|
padding: 6px 12px 6px 24px;
|
|
88
171
|
position: relative;
|
|
89
172
|
font-size: var(--vscode-chat-font-size-body-s);
|
|
90
|
-
|
|
91
173
|
.progress-container {
|
|
92
174
|
margin-bottom: 0px;
|
|
93
175
|
padding-top: 0px;
|
|
@@ -103,12 +185,16 @@
|
|
|
103
185
|
}
|
|
104
186
|
|
|
105
187
|
.chat-thinking-tool-wrapper .chat-markdown-part.rendered-markdown {
|
|
106
|
-
padding: 5px 12px 4px
|
|
188
|
+
padding: 5px 12px 4px 24px;
|
|
107
189
|
|
|
108
190
|
.status-icon.codicon-check {
|
|
109
191
|
display: none;
|
|
110
192
|
}
|
|
111
193
|
|
|
194
|
+
.show-checkmarks .status-icon.codicon-check {
|
|
195
|
+
display: inline-flex;
|
|
196
|
+
}
|
|
197
|
+
|
|
112
198
|
.code:has(.chat-codeblock-pill-container) {
|
|
113
199
|
margin-bottom: 0px;
|
|
114
200
|
|
|
@@ -200,6 +286,10 @@
|
|
|
200
286
|
|
|
201
287
|
.rendered-markdown > p {
|
|
202
288
|
margin: 0;
|
|
289
|
+
|
|
290
|
+
& + p {
|
|
291
|
+
margin-top: 5px;
|
|
292
|
+
}
|
|
203
293
|
}
|
|
204
294
|
}
|
|
205
295
|
|
|
@@ -208,6 +298,11 @@
|
|
|
208
298
|
flex-direction: column;
|
|
209
299
|
width: 100%;
|
|
210
300
|
|
|
301
|
+
.monaco-button.monaco-text-button {
|
|
302
|
+
display: flex;
|
|
303
|
+
align-items: center;
|
|
304
|
+
}
|
|
305
|
+
|
|
211
306
|
.chat-used-context-list.chat-terminal-thinking-content {
|
|
212
307
|
border: none;
|
|
213
308
|
padding: 0;
|
|
@@ -3,35 +3,85 @@
|
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
-
.
|
|
6
|
+
.chat-getting-started-tip-container .chat-tip-widget .chat-tip-toolbar {
|
|
7
|
+
opacity: 0;
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.chat-getting-started-tip-container .chat-tip-widget .chat-tip-toolbar > .monaco-toolbar {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: -20px;
|
|
14
|
+
right: 10px;
|
|
15
|
+
height: 26px;
|
|
16
|
+
line-height: 26px;
|
|
17
|
+
background-color: var(--vscode-editorWidget-background);
|
|
18
|
+
border: 1px solid var(--vscode-chat-requestBorder);
|
|
19
|
+
border-radius: var(--vscode-cornerRadius-medium);
|
|
20
|
+
z-index: 100;
|
|
21
|
+
transition: opacity 0.1s ease-in-out;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.chat-getting-started-tip-container .chat-tip-widget:hover .chat-tip-toolbar,
|
|
25
|
+
.chat-getting-started-tip-container .chat-tip-widget:focus-within .chat-tip-toolbar {
|
|
26
|
+
opacity: 1;
|
|
27
|
+
pointer-events: auto;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.chat-getting-started-tip-container .chat-tip-widget .chat-tip-toolbar .action-item {
|
|
31
|
+
height: 24px;
|
|
32
|
+
width: 24px;
|
|
33
|
+
margin: 1px 2px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.chat-getting-started-tip-container .chat-tip-widget .chat-tip-toolbar .action-item:first-of-type {
|
|
37
|
+
margin-left: 1px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.chat-getting-started-tip-container .chat-tip-widget .chat-tip-toolbar .action-item:last-of-type {
|
|
41
|
+
margin-right: 1px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.chat-getting-started-tip-container .chat-tip-widget .chat-tip-toolbar .action-item .action-label {
|
|
45
|
+
color: var(--vscode-descriptionForeground);
|
|
46
|
+
padding: 4px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.chat-getting-started-tip-container .chat-tip-widget .chat-tip-toolbar .action-item .action-label:hover {
|
|
50
|
+
background-color: var(--vscode-toolbar-hoverBackground);
|
|
51
|
+
color: var(--vscode-foreground);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.chat-getting-started-tip-container {
|
|
55
|
+
margin-bottom: -4px; /* Counter the flex gap */
|
|
56
|
+
width: 100%;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.chat-getting-started-tip-container .chat-tip-widget {
|
|
7
60
|
display: flex;
|
|
8
61
|
align-items: center;
|
|
9
62
|
gap: 4px;
|
|
10
|
-
|
|
63
|
+
width: 100%;
|
|
64
|
+
max-width: 100%;
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
padding: 6px;
|
|
67
|
+
background-color: var(--vscode-editorWidget-background);
|
|
68
|
+
border-radius: var(--vscode-cornerRadius-small) var(--vscode-cornerRadius-small) 0 0;
|
|
69
|
+
border: 1px solid var(--vscode-editorWidget-border, var(--vscode-input-border, transparent));
|
|
11
70
|
font-size: var(--vscode-chat-font-size-body-s);
|
|
12
71
|
font-family: var(--vscode-chat-font-family, inherit);
|
|
13
72
|
color: var(--vscode-descriptionForeground);
|
|
73
|
+
position: relative;
|
|
14
74
|
}
|
|
15
75
|
|
|
16
|
-
.
|
|
17
|
-
|
|
18
|
-
color: var(--vscode-descriptionForeground);
|
|
76
|
+
.chat-getting-started-tip-container .chat-tip-widget a {
|
|
77
|
+
color: var(--vscode-textLink-foreground);
|
|
19
78
|
}
|
|
20
79
|
|
|
21
|
-
.
|
|
22
|
-
|
|
80
|
+
.chat-getting-started-tip-container .chat-tip-widget a:hover,
|
|
81
|
+
.chat-getting-started-tip-container .chat-tip-widget a:active {
|
|
82
|
+
color: var(--vscode-textLink-activeForeground);
|
|
23
83
|
}
|
|
24
84
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
.interactive-item-container.interactive-request .value .chat-tip-widget .rendered-markdown {
|
|
28
|
-
background-color: transparent;
|
|
29
|
-
border-radius: 0;
|
|
30
|
-
padding: 0;
|
|
31
|
-
max-width: none;
|
|
32
|
-
margin-left: 0;
|
|
33
|
-
width: auto;
|
|
34
|
-
margin-bottom: 0;
|
|
35
|
-
position: static;
|
|
36
|
-
}
|
|
85
|
+
.chat-getting-started-tip-container .chat-tip-widget .rendered-markdown p {
|
|
86
|
+
margin: 0;
|
|
37
87
|
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/codeBlockPart.css
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
line-height: 26px;
|
|
22
22
|
background-color: var(--vscode-interactive-result-editor-background-color, var(--vscode-editor-background));
|
|
23
23
|
border: 1px solid var(--vscode-chat-requestBorder);
|
|
24
|
+
border-radius: var(--vscode-cornerRadius-medium);
|
|
24
25
|
z-index: 100;
|
|
25
26
|
max-width: 70%;
|
|
26
27
|
text-overflow: ellipsis;
|
|
@@ -32,7 +33,6 @@
|
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
.interactive-result-code-block .interactive-result-code-block-toolbar > .monaco-toolbar {
|
|
35
|
-
border-radius: 3px;
|
|
36
36
|
right: 10px;
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
.interactive-result-code-block .interactive-result-code-block-toolbar:focus-within,
|
|
51
51
|
.interactive-result-code-block.focused .interactive-result-code-block-toolbar {
|
|
52
52
|
opacity: 1;
|
|
53
|
-
border-radius: 2px;
|
|
54
53
|
pointer-events: auto;
|
|
55
54
|
}
|
|
56
55
|
|
|
@@ -79,7 +78,7 @@
|
|
|
79
78
|
.interactive-result-code-block,
|
|
80
79
|
.interactive-result-code-block .monaco-editor,
|
|
81
80
|
.interactive-result-code-block .monaco-editor .overflow-guard {
|
|
82
|
-
border-radius:
|
|
81
|
+
border-radius: var(--vscode-cornerRadius-medium);
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
.interactive-result-code-block .interactive-result-vulns {
|
|
@@ -156,16 +155,50 @@
|
|
|
156
155
|
color: var(--vscode-textLink-foreground);
|
|
157
156
|
}
|
|
158
157
|
|
|
159
|
-
.interactive-result-code-block.compare
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
.
|
|
169
|
-
|
|
170
|
-
|
|
158
|
+
.interactive-result-code-block.compare {
|
|
159
|
+
& .interactive-result-header {
|
|
160
|
+
display: flex;
|
|
161
|
+
justify-content: space-between;
|
|
162
|
+
align-items: center;
|
|
163
|
+
padding: 0 3px;
|
|
164
|
+
box-sizing: border-box;
|
|
165
|
+
border-bottom: solid 1px var(--vscode-chat-requestBorder);
|
|
166
|
+
|
|
167
|
+
& .monaco-icon-label {
|
|
168
|
+
flex: 1;
|
|
169
|
+
min-width: 0;
|
|
170
|
+
|
|
171
|
+
& > .monaco-icon-label-container {
|
|
172
|
+
display: flex;
|
|
173
|
+
align-items: baseline;
|
|
174
|
+
|
|
175
|
+
& > .monaco-icon-name-container {
|
|
176
|
+
flex-shrink: 0;
|
|
177
|
+
|
|
178
|
+
& > .label-name {
|
|
179
|
+
white-space: nowrap;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
& > .monaco-icon-description-container {
|
|
184
|
+
min-width: 0;
|
|
185
|
+
flex: 1;
|
|
186
|
+
|
|
187
|
+
& > .label-description {
|
|
188
|
+
white-space: nowrap;
|
|
189
|
+
overflow: hidden;
|
|
190
|
+
text-overflow: ellipsis;
|
|
191
|
+
display: block;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&.no-diff {
|
|
199
|
+
& .interactive-result-header,
|
|
200
|
+
& .interactive-result-editor {
|
|
201
|
+
display: none;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
171
204
|
}
|
|
@@ -16,7 +16,10 @@ export interface IToolConfirmationConfig {
|
|
|
16
16
|
partType: string;
|
|
17
17
|
subtitle?: string;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
export interface IAbstractToolPrimaryAction extends IChatConfirmationButton<(() => void)> {
|
|
20
|
+
scope?: "session" | "workspace" | "profile";
|
|
21
|
+
}
|
|
22
|
+
type AbstractToolPrimaryAction = IAbstractToolPrimaryAction | Separator;
|
|
20
23
|
/**
|
|
21
24
|
* Base class for a tool confirmation.
|
|
22
25
|
*
|
|
@@ -7,7 +7,7 @@ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
7
7
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
8
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
9
9
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
10
|
-
import {
|
|
10
|
+
import { IChatToolInvocation, ToolConfirmKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
11
11
|
import { ILanguageModelToolsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService.service';
|
|
12
12
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
13
13
|
import { ChatCustomConfirmationWidget } from '../chatConfirmationWidget.js';
|
|
@@ -41,28 +41,52 @@ let AbstractToolConfirmationSubPart = class AbstractToolConfirmationSubPart exte
|
|
|
41
41
|
languageModelToolsService,
|
|
42
42
|
toolInvocation
|
|
43
43
|
} = this;
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
44
|
+
const state = toolInvocation.state.get();
|
|
45
|
+
const customButtons = state.type === IChatToolInvocation.StateKind.WaitingForConfirmation ? state.confirmationMessages?.customButtons : undefined;
|
|
46
|
+
let buttons;
|
|
47
|
+
if (customButtons && customButtons.length > 0) {
|
|
48
|
+
buttons = ( customButtons.map((label, index) => ({
|
|
49
|
+
label,
|
|
50
|
+
data: () => {
|
|
51
|
+
this.confirmWith(toolInvocation, {
|
|
52
|
+
type: ToolConfirmKind.UserAction,
|
|
53
|
+
selectedButton: label
|
|
54
|
+
});
|
|
55
|
+
},
|
|
56
|
+
isSecondary: index > 0
|
|
57
|
+
})));
|
|
58
|
+
} else {
|
|
59
|
+
const allowTooltip = keybindingService.appendKeybinding(config.allowLabel, config.allowActionId);
|
|
60
|
+
const skipTooltip = keybindingService.appendKeybinding(config.skipLabel, config.skipActionId);
|
|
61
|
+
const additionalActions = this.additionalPrimaryActions();
|
|
62
|
+
const sessionAction = additionalActions.find(action => "scope" in action && action.scope === "session");
|
|
63
|
+
const allowAction = {
|
|
64
|
+
label: config.allowLabel,
|
|
65
|
+
tooltip: allowTooltip,
|
|
66
|
+
data: () => {
|
|
67
|
+
this.confirmWith(toolInvocation, {
|
|
68
|
+
type: ToolConfirmKind.UserAction
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const primaryAction = sessionAction ?? allowAction;
|
|
73
|
+
const moreActions = sessionAction ? [allowAction, ...additionalActions.filter(a => a !== sessionAction)] : additionalActions;
|
|
74
|
+
buttons = [{
|
|
75
|
+
label: primaryAction.label,
|
|
76
|
+
tooltip: primaryAction.tooltip,
|
|
77
|
+
data: primaryAction.data,
|
|
78
|
+
moreActions: moreActions.length > 0 ? moreActions : undefined
|
|
79
|
+
}, {
|
|
80
|
+
label: ( localize(6559, "Skip")),
|
|
81
|
+
tooltip: skipTooltip,
|
|
82
|
+
data: () => {
|
|
83
|
+
this.confirmWith(toolInvocation, {
|
|
84
|
+
type: ToolConfirmKind.Skipped
|
|
85
|
+
});
|
|
86
|
+
},
|
|
87
|
+
isSecondary: true
|
|
88
|
+
}];
|
|
89
|
+
}
|
|
66
90
|
const contentElement = this.createContentElement();
|
|
67
91
|
const tool = languageModelToolsService.getTool(toolInvocation.toolId);
|
|
68
92
|
const confirmWidget = this._register(
|
|
@@ -46,9 +46,9 @@ let ExtensionsInstallConfirmationWidgetSubPart = class ExtensionsInstallConfirma
|
|
|
46
46
|
append(this.domNode, chatExtensionsContentPart.domNode);
|
|
47
47
|
const state = toolInvocation.state.get();
|
|
48
48
|
if (state.type === IChatToolInvocation.StateKind.WaitingForConfirmation) {
|
|
49
|
-
const allowLabel = ( localize(
|
|
49
|
+
const allowLabel = ( localize(6560, "Allow"));
|
|
50
50
|
const allowTooltip = keybindingService.appendKeybinding(allowLabel, AcceptToolConfirmationActionId);
|
|
51
|
-
const cancelLabel = ( localize(
|
|
51
|
+
const cancelLabel = ( localize(6561, "Cancel"));
|
|
52
52
|
const cancelTooltip = keybindingService.appendKeybinding(cancelLabel, CancelChatActionId);
|
|
53
53
|
const enableAllowButtonEvent = this._register(( new Emitter()));
|
|
54
54
|
const buttons = [{
|
|
@@ -68,9 +68,9 @@ let ExtensionsInstallConfirmationWidgetSubPart = class ExtensionsInstallConfirma
|
|
|
68
68
|
tooltip: cancelTooltip
|
|
69
69
|
}];
|
|
70
70
|
const confirmWidget = this._register(instantiationService.createInstance(ChatConfirmationWidget, context, {
|
|
71
|
-
title: state.confirmationMessages?.title ?? ( localize(
|
|
71
|
+
title: state.confirmationMessages?.title ?? ( localize(6562, "Install Extensions")),
|
|
72
72
|
message: state.confirmationMessages?.message ?? ( localize(
|
|
73
|
-
|
|
73
|
+
6563,
|
|
74
74
|
"Click the Install button on the extension and then press Allow when finished."
|
|
75
75
|
)),
|
|
76
76
|
buttons
|
|
@@ -13,7 +13,6 @@ export declare class ChatInputOutputMarkdownProgressPart extends BaseChatToolInv
|
|
|
13
13
|
private static readonly _expandedByDefault;
|
|
14
14
|
readonly domNode: HTMLElement;
|
|
15
15
|
private readonly collapsibleListPart;
|
|
16
|
-
private readonly _onDidChangeHeight;
|
|
17
16
|
get codeblocks(): IChatCodeBlockInfo[];
|
|
18
17
|
constructor(toolInvocation: IChatToolInvocation | IChatToolInvocationSerialized, context: IChatContentPartRenderContext, codeBlockStartIndex: number, message: string | IMarkdownString, subtitle: string | IMarkdownString | undefined, input: string, output: IToolResultInputOutputDetails["output"] | undefined, isError: boolean, instantiationService: IInstantiationService, modelService: IModelService, languageService: ILanguageService, configurationService: IConfigurationService);
|
|
19
18
|
private getAutoApproveMessageContent;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { ProgressBar } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/progressbar/progressbar';
|
|
4
|
-
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
5
4
|
import { Lazy } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lazy';
|
|
6
5
|
import { toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
7
6
|
import { getExtensionForMimeType } from '@codingame/monaco-vscode-api/vscode/vs/base/common/mime';
|
|
@@ -45,7 +44,6 @@ let ChatInputOutputMarkdownProgressPart = class ChatInputOutputMarkdownProgressP
|
|
|
45
44
|
configurationService
|
|
46
45
|
) {
|
|
47
46
|
super(toolInvocation);
|
|
48
|
-
this._onDidChangeHeight = this._register(( new Emitter()));
|
|
49
47
|
let codeBlockIndex = codeBlockStartIndex;
|
|
50
48
|
const createCodePart = data => ({
|
|
51
49
|
kind: "code",
|
|
@@ -119,9 +117,6 @@ let ChatInputOutputMarkdownProgressPart = class ChatInputOutputMarkdownProgressP
|
|
|
119
117
|
isError,
|
|
120
118
|
(isError && configurationService.getValue(ChatConfiguration.AutoExpandToolFailures)) || (ChatInputOutputMarkdownProgressPart_1._expandedByDefault.get(toolInvocation) ?? false)
|
|
121
119
|
));
|
|
122
|
-
this._register(
|
|
123
|
-
collapsibleListPart.onDidChangeHeight(() => this._onDidChangeHeight.fire())
|
|
124
|
-
);
|
|
125
120
|
this._register(toDisposable(
|
|
126
121
|
() => ChatInputOutputMarkdownProgressPart_1._expandedByDefault.set(toolInvocation, collapsibleListPart.expanded)
|
|
127
122
|
));
|
|
@@ -21,7 +21,7 @@ import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
21
21
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
22
22
|
import { McpToolCallUI } from '../../../../../mcp/browser/mcpToolCallUI.js';
|
|
23
23
|
import { McpResourceURI } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpTypes';
|
|
24
|
-
import { McpApps } from '
|
|
24
|
+
import { McpApps } from '../../../../../../../platform/mcp/common/modelContextProtocolApps.js';
|
|
25
25
|
import { WebviewOriginStore, WebviewContentPurpose } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
26
26
|
import { IWebviewService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service';
|
|
27
27
|
import { IChatToolInvocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
@@ -78,7 +78,7 @@ let ChatMcpAppModel = class ChatMcpAppModel extends Disposable {
|
|
|
78
78
|
this._height = ChatMcpAppModel_1.heightCache.get(this.toolInvocation) ?? 300;
|
|
79
79
|
this._webview = this._register(this._webviewService.createWebviewElement({
|
|
80
80
|
origin: this._webviewOrigin,
|
|
81
|
-
title: ( localize(
|
|
81
|
+
title: ( localize(6564, "MCP App")),
|
|
82
82
|
options: {
|
|
83
83
|
purpose: WebviewContentPurpose.ChatOutputItem,
|
|
84
84
|
enableFindWidget: false,
|
|
@@ -84,7 +84,7 @@ let ChatMcpAppSubPart = class ChatMcpAppSubPart extends BaseChatToolInvocationSu
|
|
|
84
84
|
{
|
|
85
85
|
container.style.display = "none";
|
|
86
86
|
const progressMessage = $("span");
|
|
87
|
-
progressMessage.textContent = ( localize(
|
|
87
|
+
progressMessage.textContent = ( localize(6565, "Loading MCP App..."));
|
|
88
88
|
const progressPart = this._instantiationService.createInstance(
|
|
89
89
|
ChatProgressSubPart,
|
|
90
90
|
progressMessage,
|
|
@@ -114,15 +114,15 @@ let ChatMcpAppSubPart = class ChatMcpAppSubPart extends BaseChatToolInvocationSu
|
|
|
114
114
|
_showError(container, error) {
|
|
115
115
|
const errorNode = $(".mcp-app-error");
|
|
116
116
|
const errorMessage = ( new MarkdownString());
|
|
117
|
-
errorMessage.appendText(( localize(
|
|
118
|
-
const errorWidget = ( new ChatErrorWidget(ChatErrorLevel.Error, errorMessage, this._markdownRendererService));
|
|
117
|
+
errorMessage.appendText(( localize(6566, "Error loading MCP App: {0}", error.message || String(error))));
|
|
118
|
+
const errorWidget = this._register(( new ChatErrorWidget(ChatErrorLevel.Error, errorMessage, this._markdownRendererService)));
|
|
119
119
|
errorNode.appendChild(errorWidget.domNode);
|
|
120
120
|
const buttonContainer = append(errorNode, $(".chat-buttons-container"));
|
|
121
|
-
const retryButton = ( new Button(buttonContainer, defaultButtonStyles));
|
|
122
|
-
retryButton.label = ( localize(
|
|
123
|
-
retryButton.onDidClick(() => {
|
|
121
|
+
const retryButton = this._register(( new Button(buttonContainer, defaultButtonStyles)));
|
|
122
|
+
retryButton.label = ( localize(6567, "Retry"));
|
|
123
|
+
this._register(retryButton.onDidClick(() => {
|
|
124
124
|
this._model.retry();
|
|
125
|
-
});
|
|
125
|
+
}));
|
|
126
126
|
container.appendChild(errorNode);
|
|
127
127
|
this._errorNode = errorNode;
|
|
128
128
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
|
|
2
|
+
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service";
|
|
3
|
+
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service";
|
|
4
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
5
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
6
|
+
import { IChatSimpleToolInvocationData, IChatToolInvocation, IChatToolInvocationSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
7
|
+
import { IChatCodeBlockInfo } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
8
|
+
import { IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
9
|
+
import { BaseChatToolInvocationSubPart } from "./chatToolInvocationSubPart.js";
|
|
10
|
+
export declare class ChatSimpleToolProgressPart extends BaseChatToolInvocationSubPart {
|
|
11
|
+
/** Remembers expanded tool parts on re-render */
|
|
12
|
+
private static readonly _expandedByDefault;
|
|
13
|
+
readonly domNode: HTMLElement;
|
|
14
|
+
private readonly collapsibleListPart;
|
|
15
|
+
get codeblocks(): IChatCodeBlockInfo[];
|
|
16
|
+
constructor(toolInvocation: IChatToolInvocation | IChatToolInvocationSerialized, context: IChatContentPartRenderContext, codeBlockStartIndex: number, message: string | IMarkdownString, subtitle: string | IMarkdownString | undefined, data: IChatSimpleToolInvocationData, isError: boolean, instantiationService: IInstantiationService, modelService: IModelService, languageService: ILanguageService, configurationService: IConfigurationService);
|
|
17
|
+
private getAutoApprovalMessageContent;
|
|
18
|
+
}
|