@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.
Files changed (183) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +10 -4
  3. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +35 -11
  4. package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +3 -0
  5. package/vscode/src/vs/platform/actions/browser/buttonbar.js +15 -4
  6. package/vscode/src/vs/platform/mcp/common/modelContextProtocolApps.d.ts +548 -0
  7. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +15 -15
  8. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +5 -0
  9. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +168 -15
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +67 -51
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.d.ts +1 -0
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +12 -11
  14. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +9 -9
  15. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +8 -0
  16. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +42 -19
  17. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +12 -1
  18. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +63 -40
  19. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +1 -1
  20. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +7 -5
  21. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +77 -73
  22. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +69 -32
  23. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +23 -6
  24. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +381 -83
  25. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.d.ts +1 -0
  26. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.js +28 -13
  27. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +38 -19
  28. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +109 -113
  29. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +16 -15
  30. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +2 -2
  31. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +8 -8
  32. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +14 -14
  33. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +2 -1
  34. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +28 -9
  35. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +226 -123
  36. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +4 -4
  37. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +4 -4
  38. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
  39. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +1 -1
  40. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +2 -2
  41. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +3 -1
  42. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +9 -4
  43. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.d.ts +1 -3
  44. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +7 -10
  45. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +1 -1
  46. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.d.ts +3 -1
  47. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.js +22 -4
  48. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.d.ts +2 -1
  49. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.js +11 -3
  50. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +1 -1
  51. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +2 -2
  52. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +1 -1
  53. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.d.ts +0 -2
  54. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.js +0 -6
  55. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +2 -2
  56. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.d.ts +3 -1
  57. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.js +6 -3
  58. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
  59. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.d.ts +2 -1
  60. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +5 -4
  61. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +0 -1
  62. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +26 -27
  63. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +3 -0
  64. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +52 -22
  65. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +8 -7
  66. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +4 -4
  67. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +2 -1
  68. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +20 -8
  69. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.d.ts +3 -3
  70. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.js +11 -6
  71. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +36 -1
  72. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +166 -45
  73. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +4 -4
  74. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.d.ts +3 -2
  75. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +16 -11
  76. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +14 -5
  77. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +98 -26
  78. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +5 -5
  79. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.js +1 -0
  80. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +1 -1
  81. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +10 -1
  82. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +244 -80
  83. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.d.ts +29 -1
  84. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +252 -8
  85. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.d.ts +4 -0
  86. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +39 -18
  87. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +5 -3
  88. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +36 -23
  89. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +5 -5
  90. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +1 -1
  91. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +3 -3
  92. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.d.ts +5 -7
  93. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +42 -37
  94. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatCodeBlockPill.css +12 -3
  95. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +48 -18
  96. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatHookContentPart.css +9 -6
  97. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatInlineAnchorWidget.css +2 -2
  98. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +351 -422
  99. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +14 -7
  100. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +102 -7
  101. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css +69 -19
  102. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/codeBlockPart.css +48 -15
  103. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.d.ts +4 -1
  104. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +47 -23
  105. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +4 -4
  106. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +0 -1
  107. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +0 -5
  108. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +2 -2
  109. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +7 -7
  110. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatSimpleToolProgressPart.d.ts +18 -0
  111. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatSimpleToolProgressPart.js +103 -0
  112. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +15 -18
  113. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +1 -0
  114. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +63 -69
  115. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.d.ts +1 -1
  116. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +7 -9
  117. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +3 -1
  118. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +41 -2
  119. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +2 -2
  120. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +3 -3
  121. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +1 -1
  122. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +6 -5
  123. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +13 -1
  124. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.js +2 -1
  125. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +11 -11
  126. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +17 -3
  127. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +310 -79
  128. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +6 -0
  129. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +13 -4
  130. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatQuestionCarouselAutoReply.d.ts +35 -0
  131. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatQuestionCarouselAutoReply.js +441 -0
  132. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +24 -1
  133. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +392 -86
  134. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
  135. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +52 -6
  136. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +271 -187
  137. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +68 -0
  138. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +668 -0
  139. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +12 -1
  140. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +57 -16
  141. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +2 -6
  142. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +78 -45
  143. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.d.ts +1 -0
  144. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.d.ts +28 -0
  145. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.js +86 -0
  146. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +9 -5
  147. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +4 -3
  148. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +393 -134
  149. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatViewWelcome.css +36 -17
  150. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.d.ts +2 -2
  151. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +20 -13
  152. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.d.ts +25 -6
  153. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +141 -79
  154. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageWidget.css +18 -13
  155. package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.d.ts +7 -0
  156. package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +108 -27
  157. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.d.ts +1 -0
  158. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +20 -14
  159. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +4 -6
  160. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +74 -32
  161. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +11 -2
  162. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +68 -27
  163. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.d.ts +5 -0
  164. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.js +125 -13
  165. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.d.ts +8 -11
  166. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +54 -45
  167. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +11 -10
  168. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +172 -112
  169. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +5 -5
  170. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
  171. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +0 -42
  172. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatEditorAffordance.css +27 -3
  173. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +83 -2
  174. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +8 -1
  175. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +58 -33
  176. package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +3 -3
  177. package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.d.ts +1 -548
  178. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
  179. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +2 -2
  180. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +1 -1
  181. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +1 -1
  182. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +0 -187
  183. /package/vscode/src/vs/{workbench/contrib → platform}/mcp/common/modelContextProtocolApps.js +0 -0
@@ -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(5551, "Search for more options")),
91
- label: ( localize(5552, "See more...")),
90
+ tooltip: ( localize(5986, "Search for more options")),
91
+ label: ( localize(5987, "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(5553, "Select..."));
106
+ const label = this.currentOption?.name ?? optionGroup?.name ?? ( localize(5988, "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(5554, "Select {0}", optionGroup.name));
121
+ quickPick.placeholder = optionGroup.description ?? ( localize(5989, "Select {0}", optionGroup.name));
122
122
  quickPick.matchOnDescription = true;
123
123
  quickPick.matchOnDetail = true;
124
124
  quickPick.ignoreFocusOut = true;
@@ -165,16 +165,16 @@ let ChatViewWelcomePart = class ChatViewWelcomePart extends Disposable {
165
165
  if (content.suggestedPrompts && content.suggestedPrompts.length) {
166
166
  const suggestedPromptsContainer = append(this.element, $(".chat-welcome-view-suggested-prompts"));
167
167
  const titleElement = append(suggestedPromptsContainer, $(".chat-welcome-view-suggested-prompts-title"));
168
- titleElement.textContent = ( localize(5885, "Suggested Actions"));
168
+ titleElement.textContent = ( localize(6389, "Suggested Actions"));
169
169
  for (const prompt of content.suggestedPrompts) {
170
170
  const promptElement = append(suggestedPromptsContainer, $(".chat-welcome-view-suggested-prompt"));
171
171
  promptElement.setAttribute("role", "button");
172
172
  promptElement.setAttribute("tabindex", "0");
173
- const promptAriaLabel = prompt.description ? ( localize(5886, "Suggested prompt: {0}, {1}", prompt.label, prompt.description)) : ( localize(5887, "Suggested prompt: {0}", prompt.label));
173
+ const promptAriaLabel = prompt.description ? ( localize(6390, "Suggested prompt: {0}, {1}", prompt.label, prompt.description)) : ( localize(6391, "Suggested prompt: {0}", prompt.label));
174
174
  promptElement.setAttribute("aria-label", promptAriaLabel);
175
175
  const titleElement = append(promptElement, $(".chat-welcome-view-suggested-prompt-title"));
176
176
  titleElement.textContent = prompt.label;
177
- const tooltip = ( localize(5888, "Suggested prompt: {0}", prompt.prompt));
177
+ const tooltip = ( localize(6392, "Suggested prompt: {0}", prompt.prompt));
178
178
  promptElement.title = tooltip;
179
179
  titleElement.title = tooltip;
180
180
  if (prompt.description) {
@@ -243,7 +243,7 @@ let ChatViewWelcomePart = class ChatViewWelcomePart extends Disposable {
243
243
  const actions = [];
244
244
  if (prompt.uri) {
245
245
  const uri = prompt.uri;
246
- actions.push(( new Action("chat.editPromptFile", ( localize(5889, "Edit Prompt File")), ThemeIcon.asClassName(Codicon.goToFile), true, async () => {
246
+ actions.push(( new Action("chat.editPromptFile", ( localize(6393, "Edit Prompt File")), ThemeIcon.asClassName(Codicon.goToFile), true, async () => {
247
247
  try {
248
248
  await this.openerService.open(uri);
249
249
  } catch (error) {
@@ -49,7 +49,7 @@ let ChatAgentHover = class ChatAgentHover extends Disposable {
49
49
  this.publisherName = $("span.chat-agent-hover-publisher-name");
50
50
  append(hoverElement.publisher, verifiedBadge, this.publisherName);
51
51
  hoverElement.warning.appendChild(renderIcon(Codicon.warning));
52
- hoverElement.warning.appendChild($("span", undefined, ( localize(5895, "This chat extension is using a reserved name."))));
52
+ hoverElement.warning.appendChild($("span", undefined, ( localize(6399, "This chat extension is using a reserved name."))));
53
53
  }
54
54
  setAgent(id) {
55
55
  const agent = this.chatAgentService.getAgent(id);
@@ -95,7 +95,7 @@ function getChatAgentHoverOptions(getAgent, commandService) {
95
95
  return {
96
96
  actions: [{
97
97
  commandId: showExtensionsWithIdsCommandId,
98
- label: ( localize(5896, "View Extension")),
98
+ label: ( localize(6400, "View Extension")),
99
99
  run: () => {
100
100
  const agent = getAgent();
101
101
  if (agent) {
@@ -28,7 +28,7 @@ let ChatAgentCommandContentPart = class ChatAgentCommandContentPart extends Disp
28
28
  }, {
29
29
  groupId
30
30
  }));
31
- const rerun = ( localize(5897, "Rerun without {0}{1}", chatSubcommandLeader, cmd.name));
31
+ const rerun = ( localize(6401, "Rerun without {0}{1}", chatSubcommandLeader, cmd.name));
32
32
  const btn = ( new Button(this.domNode, {
33
33
  ariaLabel: rerun
34
34
  }));
@@ -21,14 +21,14 @@ let ChatAnonymousRateLimitedPart = class ChatAnonymousRateLimitedPart extends Di
21
21
  const messageContainer = append(this.domNode, $(".chat-rate-limited-message"));
22
22
  const message = append(messageContainer, $("div"));
23
23
  message.textContent = ( localize(
24
- 5898,
24
+ 6402,
25
25
  "Continue the conversation by signing in. Your free account gets 50 premium requests a month plus access to more models and AI features."
26
26
  ));
27
27
  const signInButton = this._register(( new Button(messageContainer, {
28
28
  ...defaultButtonStyles,
29
29
  supportIcons: true
30
30
  })));
31
- signInButton.label = ( localize(5899, "Enable more AI features"));
31
+ signInButton.label = ( localize(6403, "Enable more AI features"));
32
32
  signInButton.element.classList.add("chat-rate-limited-button");
33
33
  this._register(signInButton.onDidClick(async () => {
34
34
  const commandId = "workbench.action.chat.triggerSetup";
@@ -2,6 +2,7 @@ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/l
2
2
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
3
3
  import { IChatRequestVariableEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries";
4
4
  import { IChatContentReference } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
5
+ import { IChatAttachmentWidgetRegistry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.service";
5
6
  export interface IChatAttachmentsContentPartOptions {
6
7
  readonly variables: readonly IChatRequestVariableEntry[];
7
8
  readonly contentReferences?: ReadonlyArray<IChatContentReference>;
@@ -10,6 +11,7 @@ export interface IChatAttachmentsContentPartOptions {
10
11
  }
11
12
  export declare class ChatAttachmentsContentPart extends Disposable {
12
13
  private readonly instantiationService;
14
+ private readonly chatAttachmentWidgetRegistry;
13
15
  private readonly attachedContextDisposables;
14
16
  private readonly _onDidChangeVisibility;
15
17
  private readonly _contextResourceLabels;
@@ -19,7 +21,7 @@ export declare class ChatAttachmentsContentPart extends Disposable {
19
21
  private readonly limit?;
20
22
  readonly domNode: HTMLElement | undefined;
21
23
  contextMenuHandler?: (attachment: IChatRequestVariableEntry, event: MouseEvent) => void;
22
- constructor(options: IChatAttachmentsContentPartOptions, instantiationService: IInstantiationService);
24
+ constructor(options: IChatAttachmentsContentPartOptions, instantiationService: IInstantiationService, chatAttachmentWidgetRegistry: IChatAttachmentWidgetRegistry);
23
25
  /**
24
26
  * Update the variables and re-render the attachments in place.
25
27
  */
@@ -11,11 +11,13 @@ import { ResourceLabels } from '@codingame/monaco-vscode-api/vscode/vs/workbench
11
11
  import { isElementVariableEntry, isImageVariableEntry, OmittedState, isPromptFileVariableEntry, isPromptTextVariableEntry, isTerminalVariableEntry, isPasteVariableEntry, isNotebookOutputVariableEntry, isSCMHistoryItemVariableEntry, isSCMHistoryItemChangeVariableEntry, isSCMHistoryItemChangeRangeVariableEntry, isWorkspaceVariableEntry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries';
12
12
  import { ChatResponseReferencePartStatusKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
13
13
  import { ToolSetOrToolItemAttachmentWidget, ElementChatAttachmentWidget, ImageAttachmentWidget, PromptFileAttachmentWidget, PromptTextAttachmentWidget, FileAttachmentWidget, TerminalCommandAttachmentWidget, PasteAttachmentWidget, NotebookCellOutputChatAttachmentWidget, SCMHistoryItemAttachmentWidget, SCMHistoryItemChangeAttachmentWidget, SCMHistoryItemChangeRangeAttachmentWidget, DefaultChatAttachmentWidget } from '../../attachments/chatAttachmentWidgets.js';
14
+ import { IChatAttachmentWidgetRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.service';
14
15
 
15
16
  let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Disposable {
16
- constructor(options, instantiationService) {
17
+ constructor(options, instantiationService, chatAttachmentWidgetRegistry) {
17
18
  super();
18
19
  this.instantiationService = instantiationService;
20
+ this.chatAttachmentWidgetRegistry = chatAttachmentWidgetRegistry;
19
21
  this.attachedContextDisposables = this._register(( new DisposableStore()));
20
22
  this._onDidChangeVisibility = this._register(( new Emitter()));
21
23
  this._showingAll = false;
@@ -175,7 +177,10 @@ let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Dispos
175
177
  } else if (isWorkspaceVariableEntry(attachment)) {
176
178
  return;
177
179
  } else {
178
- widget = this.instantiationService.createInstance(
180
+ widget = this.chatAttachmentWidgetRegistry.createWidget(attachment, {
181
+ shouldFocusClearButton: false,
182
+ supportsDeletion: false
183
+ }, container) ?? this.instantiationService.createInstance(
179
184
  DefaultChatAttachmentWidget,
180
185
  resource,
181
186
  range,
@@ -198,7 +203,7 @@ let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Dispos
198
203
  if (isAttachmentPartialOrOmitted) {
199
204
  ariaLabel = `${ariaLabel}${description ? ` ${description}` : ""}`;
200
205
  for (const selector of [".monaco-icon-suffix-container", ".monaco-icon-name-container"]) {
201
- const element = widget.label.element.querySelector(selector);
206
+ const element = widget.label?.element.querySelector(selector);
202
207
  if (element) {
203
208
  element.classList.add("warning");
204
209
  }
@@ -219,6 +224,6 @@ let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Dispos
219
224
  this.attachedContextDisposables.add(widget);
220
225
  }
221
226
  };
222
- ChatAttachmentsContentPart = ( __decorate([( __param(1, IInstantiationService))], ChatAttachmentsContentPart));
227
+ ChatAttachmentsContentPart = ( __decorate([( __param(1, IInstantiationService)), ( __param(2, IChatAttachmentWidgetRegistry))], ChatAttachmentsContentPart));
223
228
 
224
229
  export { ChatAttachmentsContentPart };
@@ -3,7 +3,6 @@ import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/
3
3
  import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
4
4
  import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
5
5
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
6
- import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
7
6
  import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
8
7
  import { IChatEditingSession, IEditSessionEntryDiff } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService";
9
8
  import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
@@ -15,7 +14,6 @@ export declare class ChatCheckpointFileChangesSummaryContentPart extends Disposa
15
14
  private readonly hoverService;
16
15
  private readonly chatService;
17
16
  private readonly editorService;
18
- private readonly editorGroupsService;
19
17
  private readonly instantiationService;
20
18
  readonly domNode: HTMLElement;
21
19
  readonly ELEMENT_HEIGHT = 22;
@@ -24,7 +22,7 @@ export declare class ChatCheckpointFileChangesSummaryContentPart extends Disposa
24
22
  private fileChangesDiffsObservable;
25
23
  private list;
26
24
  private isCollapsed;
27
- constructor(content: IChatFileChangesSummaryPart, context: IChatContentPartRenderContext, hoverService: IHoverService, chatService: IChatService, editorService: IEditorService, editorGroupsService: IEditorGroupsService, instantiationService: IInstantiationService);
25
+ constructor(content: IChatFileChangesSummaryPart, context: IChatContentPartRenderContext, hoverService: IHoverService, chatService: IChatService, editorService: IEditorService, instantiationService: IInstantiationService);
28
26
  private computeFileChangesDiffs;
29
27
  getCachedEntryDiffBetweenRequests(editSession: IChatEditingSession, uri: URI, startRequestId: string, stopRequestId: string): IObservable<IEditSessionEntryDiff | undefined> | undefined;
30
28
  private renderHeader;
@@ -4,7 +4,7 @@ import { $, addDisposableListener, EventHelper } from '@codingame/monaco-vscode-
4
4
  import { ButtonWithIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
5
5
  import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
6
6
  import { Iterable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iterator';
7
- import { Disposable, DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
7
+ import { Disposable, DisposableStore, toDisposable, combinedDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
8
8
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
9
9
  import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
10
10
  import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
@@ -16,7 +16,6 @@ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
16
16
  import { WorkbenchList } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
17
17
  import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
18
18
  import { ResourceLabels } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/labels';
19
- import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
20
19
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
21
20
  import { createFileIconThemableTreeContainerScope } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/files/browser/views/explorerView';
22
21
  import { MultiDiffEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput';
@@ -32,7 +31,6 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
32
31
  hoverService,
33
32
  chatService,
34
33
  editorService,
35
- editorGroupsService,
36
34
  instantiationService
37
35
  ) {
38
36
  super();
@@ -40,7 +38,6 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
40
38
  this.hoverService = hoverService;
41
39
  this.chatService = chatService;
42
40
  this.editorService = editorService;
43
- this.editorGroupsService = editorGroupsService;
44
41
  this.instantiationService = instantiationService;
45
42
  this.ELEMENT_HEIGHT = 22;
46
43
  this.MAX_ITEMS_SHOWN = 6;
@@ -95,13 +92,13 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
95
92
  }
96
93
  renderViewAllFileChangesButton(container) {
97
94
  const button = container.appendChild($(".chat-view-changes-icon"));
98
- this.hoverService.setupDelayedHover(button, () => ({
99
- content: ( localize2(5900, "View All File Changes"))
95
+ const hoverDisposable = this.hoverService.setupDelayedHover(button, () => ({
96
+ content: ( localize2(6404, "View All File Changes"))
100
97
  }));
101
98
  button.classList.add(...ThemeIcon.asClassNameArray(Codicon.diffMultiple));
102
99
  button.setAttribute("role", "button");
103
100
  button.tabIndex = 0;
104
- return addDisposableListener(button, "click", e => {
101
+ return combinedDisposable(hoverDisposable, addDisposableListener(button, "click", e => {
105
102
  const resources = ( this.fileChangesDiffsObservable.get().map(diff => ({
106
103
  originalUri: diff.originalURI,
107
104
  modifiedUri: diff.modifiedURI
@@ -110,9 +107,9 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
110
107
  const input = this.instantiationService.createInstance(MultiDiffEditorInput, source, "Checkpoint File Changes", ( resources.map(resource => {
111
108
  return ( new MultiDiffEditorItem(resource.originalUri, resource.modifiedUri, undefined));
112
109
  })), false);
113
- this.editorGroupsService.activeGroup.openEditor(input);
110
+ this.editorService.openEditor(input);
114
111
  EventHelper.stop(e, true);
115
- });
112
+ }));
116
113
  }
117
114
  renderFilesList(container) {
118
115
  const store = ( new DisposableStore());
@@ -159,7 +156,7 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
159
156
  this._register(disposable);
160
157
  }
161
158
  };
162
- ChatCheckpointFileChangesSummaryContentPart = ( __decorate([( __param(2, IHoverService)), ( __param(3, IChatService)), ( __param(4, IEditorService)), ( __param(5, IEditorGroupsService)), ( __param(6, IInstantiationService))], ChatCheckpointFileChangesSummaryContentPart));
159
+ ChatCheckpointFileChangesSummaryContentPart = ( __decorate([( __param(2, IHoverService)), ( __param(3, IChatService)), ( __param(4, IEditorService)), ( __param(5, IInstantiationService))], ChatCheckpointFileChangesSummaryContentPart));
163
160
  let CollapsibleChangesSummaryListPool = class CollapsibleChangesSummaryListPool extends Disposable {
164
161
  constructor(instantiationService, themeService) {
165
162
  super();
@@ -29,7 +29,7 @@ let ChatCodeCitationContentPart = class ChatCodeCitationContentPart extends Disp
29
29
  buttonSecondaryHoverBackground: undefined,
30
30
  buttonSeparator: undefined
31
31
  })));
32
- button.label = ( localize(5901, "View matches"));
32
+ button.label = ( localize(6405, "View matches"));
33
33
  this._register(button.onDidClick(() => {
34
34
  const citationText = `# Code Citations\n\n` + ( citations.citations.map(c => `## License: ${c.license}\n${( c.value.toString())}\n\n\`\`\`\n${c.snippet}\n\`\`\`\n\n`)).join("\n");
35
35
  this.editorService.openEditor({
@@ -2,6 +2,7 @@ import { ButtonWithIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/brow
2
2
  import { IMarkdownString, MarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
3
3
  import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
4
4
  import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
5
+ import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
5
6
  import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
6
7
  import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
7
8
  import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
@@ -20,12 +21,13 @@ export declare abstract class ChatCollapsibleContentPart extends Disposable impl
20
21
  protected _isExpanded: import("@codingame/monaco-vscode-api/vscode/vs/base/common/observable").ISettableObservable<boolean, void>;
21
22
  protected _collapseButton: ButtonWithIcon | undefined;
22
23
  private readonly _overrideIcon;
24
+ protected readonly _showCheckmarks: IObservable<boolean>;
23
25
  private _contentElement?;
24
26
  private _contentInitialized;
25
27
  get icon(): ThemeIcon | undefined;
26
28
  set icon(value: ThemeIcon | undefined);
27
29
  protected readonly element: ChatTreeItem;
28
- constructor(title: IMarkdownString | string, context: IChatContentPartRenderContext, hoverMessage: IMarkdownString | undefined, hoverService: IHoverService);
30
+ constructor(title: IMarkdownString | string, context: IChatContentPartRenderContext, hoverMessage: IMarkdownString | undefined, hoverService: IHoverService, configurationService: IConfigurationService);
29
31
  get domNode(): HTMLElement;
30
32
  protected init(): HTMLElement;
31
33
  protected abstract initContent(): HTMLElement;
@@ -3,10 +3,12 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
3
3
  import { $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
4
  import { ButtonWithIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
5
5
  import { HoverStyle } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hover';
6
- import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
7
6
  import { Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
8
7
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
8
+ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
9
9
  import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
10
+ import { observableConfigValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/observable/common/platformObservableUtils';
11
+ import { AccessibilityWorkbenchSettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
10
12
  import { renderFileWidgets } from './chatInlineAnchorWidget.js';
11
13
  import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
12
14
  import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
@@ -18,7 +20,7 @@ let ChatCollapsibleContentPart = class ChatCollapsibleContentPart extends Dispos
18
20
  set icon(value) {
19
21
  this._overrideIcon.set(value, undefined);
20
22
  }
21
- constructor(title, context, hoverMessage, hoverService) {
23
+ constructor(title, context, hoverMessage, hoverService, configurationService) {
22
24
  super();
23
25
  this.title = title;
24
26
  this.hoverMessage = hoverMessage;
@@ -29,6 +31,11 @@ let ChatCollapsibleContentPart = class ChatCollapsibleContentPart extends Dispos
29
31
  this._contentInitialized = false;
30
32
  this.element = context.element;
31
33
  this.hasFollowingContent = context.contentIndex + 1 < context.content.length;
34
+ this._showCheckmarks = observableConfigValue(
35
+ AccessibilityWorkbenchSettingId.ShowChatCheckmarks,
36
+ false,
37
+ configurationService
38
+ );
32
39
  }
33
40
  get domNode() {
34
41
  this._domNode ??= this.init();
@@ -50,6 +57,10 @@ let ChatCollapsibleContentPart = class ChatCollapsibleContentPart extends Dispos
50
57
  this._collapseButton = collapseButton;
51
58
  this._domNode = $(".chat-used-context", undefined, buttonElement);
52
59
  collapseButton.label = referencesLabel;
60
+ const hoverChevron = $("span.chat-collapsible-hover-chevron.codicon.codicon-chevron-right", {
61
+ "aria-hidden": "true"
62
+ });
63
+ collapseButton.element.appendChild(hoverChevron);
53
64
  if (this.hoverMessage) {
54
65
  this._register(this.hoverService.setupDelayedHover(collapseButton.iconElement, {
55
66
  content: this.hoverMessage,
@@ -63,7 +74,14 @@ let ChatCollapsibleContentPart = class ChatCollapsibleContentPart extends Dispos
63
74
  this._isExpanded.set(this.isExpanded(), undefined);
64
75
  this._register(autorun(r => {
65
76
  const expanded = this._isExpanded.read(r);
66
- collapseButton.icon = this._overrideIcon.read(r) ?? (expanded ? Codicon.chevronDown : Codicon.chevronRight);
77
+ const overrideIcon = this._overrideIcon.read(r);
78
+ const showCheckmarks = this._showCheckmarks.read(r);
79
+ if (overrideIcon) {
80
+ collapseButton.icon = overrideIcon;
81
+ }
82
+ this._domNode?.classList.toggle("show-checkmarks", showCheckmarks);
83
+ hoverChevron.classList.toggle("codicon-chevron-right", !expanded);
84
+ hoverChevron.classList.toggle("codicon-chevron-down", expanded);
67
85
  this._domNode?.classList.toggle("chat-used-context-collapsed", !expanded);
68
86
  this.updateAriaLabel(
69
87
  collapseButton.element,
@@ -129,6 +147,6 @@ let ChatCollapsibleContentPart = class ChatCollapsibleContentPart extends Dispos
129
147
  this._renderedTitleWithWidgets.value = result;
130
148
  }
131
149
  };
132
- ChatCollapsibleContentPart = ( __decorate([( __param(3, IHoverService))], ChatCollapsibleContentPart));
150
+ ChatCollapsibleContentPart = ( __decorate([( __param(3, IHoverService)), ( __param(4, IConfigurationService))], ChatCollapsibleContentPart));
133
151
 
134
152
  export { ChatCollapsibleContentPart };
@@ -1,5 +1,6 @@
1
1
  import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
2
2
  import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
3
+ import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
3
4
  import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
4
5
  import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
5
6
  import { ChatCollapsibleContentPart } from "./chatCollapsibleContentPart.js";
@@ -12,7 +13,7 @@ export declare class ChatCollapsibleMarkdownContentPart extends ChatCollapsibleC
12
13
  private readonly markdownContent;
13
14
  private readonly chatContentMarkdownRenderer;
14
15
  private contentElement;
15
- constructor(title: string, markdownContent: string, context: IChatContentPartRenderContext, chatContentMarkdownRenderer: IMarkdownRenderer, hoverService: IHoverService);
16
+ constructor(title: string, markdownContent: string, context: IChatContentPartRenderContext, chatContentMarkdownRenderer: IMarkdownRenderer, hoverService: IHoverService, configurationService: IConfigurationService);
16
17
  protected initContent(): HTMLElement;
17
18
  hasSameContent(other: IChatRendererContent, _followingContent: IChatRendererContent[], _element: ChatTreeItem): boolean;
18
19
  }
@@ -4,11 +4,19 @@ import { $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
4
  import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
5
5
  import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
6
6
  import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
7
+ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
7
8
  import { ChatCollapsibleContentPart } from './chatCollapsibleContentPart.js';
8
9
 
9
10
  let ChatCollapsibleMarkdownContentPart = class ChatCollapsibleMarkdownContentPart extends ChatCollapsibleContentPart {
10
- constructor(title, markdownContent, context, chatContentMarkdownRenderer, hoverService) {
11
- super(title, context, undefined, hoverService);
11
+ constructor(
12
+ title,
13
+ markdownContent,
14
+ context,
15
+ chatContentMarkdownRenderer,
16
+ hoverService,
17
+ configurationService
18
+ ) {
19
+ super(title, context, undefined, hoverService, configurationService);
12
20
  this.markdownContent = markdownContent;
13
21
  this.chatContentMarkdownRenderer = chatContentMarkdownRenderer;
14
22
  this.icon = Codicon.check;
@@ -27,6 +35,6 @@ let ChatCollapsibleMarkdownContentPart = class ChatCollapsibleMarkdownContentPar
27
35
  return false;
28
36
  }
29
37
  };
30
- ChatCollapsibleMarkdownContentPart = ( __decorate([( __param(4, IHoverService))], ChatCollapsibleMarkdownContentPart));
38
+ ChatCollapsibleMarkdownContentPart = ( __decorate([( __param(4, IHoverService)), ( __param(5, IConfigurationService))], ChatCollapsibleMarkdownContentPart));
31
39
 
32
40
  export { ChatCollapsibleMarkdownContentPart };
@@ -23,7 +23,7 @@ let ChatCommandButtonContentPart = class ChatCommandButtonContentPart extends Di
23
23
  }
24
24
  }
25
25
  renderButton(container, command, enabled, secondary) {
26
- const tooltip = enabled ? command.tooltip : ( localize(5902, "Button not available in restored chat"));
26
+ const tooltip = enabled ? command.tooltip : ( localize(6406, "Button not available in restored chat"));
27
27
  const button = this._register(( new Button(container, {
28
28
  ...defaultButtonStyles,
29
29
  supportIcons: true,
@@ -26,10 +26,10 @@ let ChatConfirmationContentPart = class ChatConfirmationContentPart extends Disp
26
26
  data: confirmation.data,
27
27
  isSecondary: button !== confirmation.buttons?.[0]
28
28
  }))) : [{
29
- label: ( localize(5903, "Accept")),
29
+ label: ( localize(6407, "Accept")),
30
30
  data: confirmation.data
31
31
  }, {
32
- label: ( localize(5904, "Dismiss")),
32
+ label: ( localize(6408, "Dismiss")),
33
33
  data: confirmation.data,
34
34
  isSecondary: true
35
35
  }];
@@ -405,7 +405,7 @@ function configureAccessibilityContainer(container, title, message) {
405
405
  container.tabIndex = 0;
406
406
  const titleAsString = typeof title === "string" ? title : title.value;
407
407
  const messageAsString = typeof message === "string" ? message : message && "value" in message ? message.value : message && "textContent" in message ? message.textContent : "";
408
- container.setAttribute("aria-label", ( localize(5905, "Chat Confirmation Dialog {0} {1}", titleAsString, messageAsString)));
408
+ container.setAttribute("aria-label", ( localize(6409, "Chat Confirmation Dialog {0} {1}", titleAsString, messageAsString)));
409
409
  container.classList.add("chat-confirmation-widget-container");
410
410
  }
411
411
 
@@ -31,8 +31,6 @@ export declare class MarkdownDiffBlockPart extends Disposable {
31
31
  private readonly modelService;
32
32
  private readonly textModelService;
33
33
  private readonly languageService;
34
- private readonly _onDidChangeContentHeight;
35
- readonly onDidChangeContentHeight: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
36
34
  readonly element: HTMLElement;
37
35
  private readonly comparePart;
38
36
  private readonly modelRef;
@@ -1,7 +1,6 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
3
  import { CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
4
- import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
5
4
  import { hashAsync } from '@codingame/monaco-vscode-api/vscode/vs/base/common/hash';
6
5
  import { Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
7
6
  import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
@@ -66,13 +65,8 @@ let MarkdownDiffBlockPart = class MarkdownDiffBlockPart extends Disposable {
66
65
  this.modelService = modelService;
67
66
  this.textModelService = textModelService;
68
67
  this.languageService = languageService;
69
- this._onDidChangeContentHeight = this._register(( new Emitter()));
70
- this.onDidChangeContentHeight = this._onDidChangeContentHeight.event;
71
68
  this.modelRef = this._register(( new MutableDisposable()));
72
69
  this.comparePart = this._register(diffEditorPool.get());
73
- this._register(this.comparePart.object.onDidChangeContentHeight(() => {
74
- this._onDidChangeContentHeight.fire();
75
- }));
76
70
  const originalUri = ( URI.from({
77
71
  scheme: Schemas.vscodeChatCodeBlock,
78
72
  path: `/chat-diff-original-${data.codeBlockIndex}-${generateUuid()}`
@@ -24,12 +24,12 @@ let ChatDisabledClaudeHooksContentPart = class ChatDisabledClaudeHooksContentPar
24
24
  const icon = $(".chat-disabled-claude-hooks-icon");
25
25
  icon.classList.add(...ThemeIcon.asClassNameArray(Codicon.info));
26
26
  const enableLink = createMarkdownCommandLink({
27
- title: ( localize(5906, "Enable")),
27
+ title: ( localize(6410, "Enable")),
28
28
  id: "workbench.action.openSettings",
29
29
  arguments: [PromptsConfig.USE_CLAUDE_HOOKS]
30
30
  });
31
31
  const message = ( localize(
32
- 5907,
32
+ 6411,
33
33
  "Claude Code hooks are available for this workspace. {0}",
34
34
  enableLink
35
35
  ));
@@ -5,12 +5,14 @@ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
5
5
  import { ChatErrorLevel, IChatResponseErrorDetailsConfirmationButton } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
6
6
  import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
7
7
  import { IChatErrorDetailsPart, IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
8
+ import { IChatAccessibilityService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
8
9
  import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
9
10
  import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
10
11
  export declare class ChatErrorConfirmationContentPart extends Disposable implements IChatContentPart {
11
12
  private readonly errorDetails;
13
+ private readonly chatAccessibilityService;
12
14
  readonly domNode: HTMLElement;
13
- constructor(kind: ChatErrorLevel, content: IMarkdownString, errorDetails: IChatErrorDetailsPart, confirmationButtons: IChatResponseErrorDetailsConfirmationButton[], renderer: IMarkdownRenderer, context: IChatContentPartRenderContext, instantiationService: IInstantiationService, chatWidgetService: IChatWidgetService, chatService: IChatService);
15
+ constructor(kind: ChatErrorLevel, content: IMarkdownString, errorDetails: IChatErrorDetailsPart, confirmationButtons: IChatResponseErrorDetailsConfirmationButton[], renderer: IMarkdownRenderer, context: IChatContentPartRenderContext, instantiationService: IInstantiationService, chatWidgetService: IChatWidgetService, chatService: IChatService, chatAccessibilityService: IChatAccessibilityService);
14
16
  hasSameContent(other: IChatRendererContent): boolean;
15
17
  addDisposable(disposable: IDisposable): void;
16
18
  }
@@ -7,7 +7,7 @@ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
7
7
  import { defaultButtonStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
8
8
  import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
9
9
  import { assertIsResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel';
10
- import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
10
+ import { IChatWidgetService, IChatAccessibilityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
11
11
  import { ChatErrorWidget } from './chatErrorContentPart.js';
12
12
 
13
13
  const $ = $$1;
@@ -21,10 +21,12 @@ let ChatErrorConfirmationContentPart = class ChatErrorConfirmationContentPart ex
21
21
  context,
22
22
  instantiationService,
23
23
  chatWidgetService,
24
- chatService
24
+ chatService,
25
+ chatAccessibilityService
25
26
  ) {
26
27
  super();
27
28
  this.errorDetails = errorDetails;
29
+ this.chatAccessibilityService = chatAccessibilityService;
28
30
  const element = context.element;
29
31
  assertIsResponseVM(element);
30
32
  this.domNode = $(".chat-error-confirmation");
@@ -49,6 +51,7 @@ let ChatErrorConfirmationContentPart = class ChatErrorConfirmationContentPart ex
49
51
  const widget = chatWidgetService.getWidgetBySessionResource(element.sessionResource);
50
52
  options.userSelectedModelId = widget?.input.currentLanguageModel;
51
53
  Object.assign(options, widget?.getModeRequestOptions());
54
+ this.chatAccessibilityService.acceptRequest(element.sessionResource);
52
55
  await chatService.sendRequest(element.sessionResource, prompt, options);
53
56
  }));
54
57
  });
@@ -60,6 +63,6 @@ let ChatErrorConfirmationContentPart = class ChatErrorConfirmationContentPart ex
60
63
  this._register(disposable);
61
64
  }
62
65
  };
63
- ChatErrorConfirmationContentPart = ( __decorate([( __param(6, IInstantiationService)), ( __param(7, IChatWidgetService)), ( __param(8, IChatService))], ChatErrorConfirmationContentPart));
66
+ ChatErrorConfirmationContentPart = ( __decorate([( __param(6, IInstantiationService)), ( __param(7, IChatWidgetService)), ( __param(8, IChatService)), ( __param(9, IChatAccessibilityService))], ChatErrorConfirmationContentPart));
64
67
 
65
68
  export { ChatErrorConfirmationContentPart };
@@ -30,7 +30,7 @@ let ChatExtensionsContentPart = class ChatExtensionsContentPart extends Disposab
30
30
  append(
31
31
  loadingElement,
32
32
  $(ThemeIcon.asCSSSelector(ThemeIcon.modify(Codicon.loading, "spin"))),
33
- $("span.loading-message", undefined, ( localize(5908, "Loading extensions...")))
33
+ $("span.loading-message", undefined, ( localize(6412, "Loading extensions...")))
34
34
  );
35
35
  const extensionsList = append(this.domNode, $(".extensions-list"));
36
36
  const list = this._register(
@@ -1,4 +1,5 @@
1
1
  import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
2
+ import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
2
3
  import { IChatHookPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
3
4
  import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
4
5
  import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
@@ -6,7 +7,7 @@ import { ChatCollapsibleContentPart } from "./chatCollapsibleContentPart.js";
6
7
  import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
7
8
  export declare class ChatHookContentPart extends ChatCollapsibleContentPart implements IChatContentPart {
8
9
  private readonly hookPart;
9
- constructor(hookPart: IChatHookPart, context: IChatContentPartRenderContext, hoverService: IHoverService);
10
+ constructor(hookPart: IChatHookPart, context: IChatContentPartRenderContext, hoverService: IHoverService, configurationService: IConfigurationService);
10
11
  protected initContent(): HTMLElement;
11
12
  hasSameContent(other: IChatRendererContent, _followingContent: IChatRendererContent[], _element: ChatTreeItem): boolean;
12
13
  }