@codingame/monaco-vscode-katex-common 24.3.0 → 25.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 (197) hide show
  1. package/package.json +3 -3
  2. package/vscode/src/vs/platform/actions/browser/buttonbar.js +3 -3
  3. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAccessibilityProvider.d.ts → accessibility/chatAccessibilityProvider.d.ts} +1 -1
  4. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAccessibilityProvider.js → accessibility/chatAccessibilityProvider.js} +25 -20
  5. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +19 -19
  6. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +4 -4
  7. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +31 -31
  8. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +15 -15
  9. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentModel.d.ts → attachments/chatAttachmentModel.d.ts} +4 -2
  10. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentModel.js → attachments/chatAttachmentModel.js} +24 -3
  11. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentWidgets.d.ts → attachments/chatAttachmentWidgets.d.ts} +4 -4
  12. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentWidgets.js → attachments/chatAttachmentWidgets.js} +80 -89
  13. package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatImplicitContext.d.ts +4 -4
  14. package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatImplicitContext.js +23 -11
  15. package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatInputRelatedFilesContrib.d.ts +1 -1
  16. package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatInputRelatedFilesContrib.js +2 -2
  17. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +4 -3
  18. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +47 -21
  19. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +1 -1
  20. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +39 -39
  21. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +3 -3
  22. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +5 -5
  23. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAgentHover.d.ts → widget/chatAgentHover.d.ts} +3 -3
  24. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAgentHover.js → widget/chatAgentHover.js} +4 -4
  25. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAgentCommandContentPart.d.ts +3 -3
  26. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAgentCommandContentPart.js +2 -2
  27. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAnonymousRateLimitedPart.d.ts +2 -2
  28. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAnonymousRateLimitedPart.js +2 -2
  29. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAttachmentsContentPart.d.ts +2 -2
  30. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAttachmentsContentPart.js +3 -3
  31. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatChangesSummaryPart.d.ts +10 -13
  32. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatChangesSummaryPart.js +59 -119
  33. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCodeCitationContentPart.d.ts +2 -2
  34. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCodeCitationContentPart.js +2 -2
  35. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollapsibleContentPart.d.ts +11 -4
  36. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollapsibleContentPart.js +31 -10
  37. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCommandContentPart.d.ts +3 -3
  38. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCommandContentPart.js +2 -2
  39. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationContentPart.d.ts +4 -4
  40. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationContentPart.js +5 -5
  41. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationWidget.d.ts +9 -18
  42. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationWidget.js +31 -99
  43. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatContentCodePools.d.ts +1 -1
  44. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatContentCodePools.js +1 -1
  45. package/vscode/src/vs/workbench/contrib/chat/browser/{chatDiffBlockPart.d.ts → widget/chatContentParts/chatDiffBlockPart.d.ts} +2 -2
  46. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatElicitationContentPart.d.ts +3 -3
  47. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatElicitationContentPart.js +3 -3
  48. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorConfirmationPart.d.ts +4 -4
  49. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorConfirmationPart.js +2 -2
  50. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorContentPart.d.ts +3 -3
  51. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorContentPart.js +1 -1
  52. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatExtensionsContentPart.d.ts +3 -3
  53. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatExtensionsContentPart.js +1 -1
  54. package/vscode/src/vs/workbench/contrib/chat/browser/{chatInlineAnchorWidget.d.ts → widget/chatContentParts/chatInlineAnchorWidget.d.ts} +2 -2
  55. package/vscode/src/vs/workbench/contrib/chat/browser/{chatInlineAnchorWidget.js → widget/chatContentParts/chatInlineAnchorWidget.js} +18 -15
  56. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMarkdownContentPart.d.ts +6 -6
  57. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMarkdownContentPart.js +15 -15
  58. package/vscode/src/vs/workbench/contrib/chat/browser/{chatMarkdownDecorationsRenderer.d.ts → widget/chatContentParts/chatMarkdownDecorationsRenderer.d.ts} +7 -7
  59. package/vscode/src/vs/workbench/contrib/chat/browser/{chatMarkdownDecorationsRenderer.js → widget/chatContentParts/chatMarkdownDecorationsRenderer.js} +9 -12
  60. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMcpServersInteractionContentPart.d.ts +3 -3
  61. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMcpServersInteractionContentPart.js +7 -7
  62. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMultiDiffContentPart.d.ts +4 -6
  63. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMultiDiffContentPart.js +31 -35
  64. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatProgressContentPart.d.ts +5 -5
  65. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatProgressContentPart.js +9 -42
  66. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatPullRequestContentPart.d.ts +3 -3
  67. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatPullRequestContentPart.js +1 -1
  68. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatQuotaExceededPart.d.ts +2 -2
  69. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatQuotaExceededPart.js +4 -4
  70. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatReferencesContentPart.d.ts +7 -6
  71. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatReferencesContentPart.js +20 -17
  72. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatSuggestNextWidget.js +5 -5
  73. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTaskContentPart.d.ts +3 -3
  74. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTaskContentPart.js +1 -1
  75. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.d.ts +2 -2
  76. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.js +3 -3
  77. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.service.d.ts +2 -2
  78. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatThinkingContentPart.d.ts +9 -7
  79. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatThinkingContentPart.js +71 -17
  80. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTodoListWidget.d.ts +1 -1
  81. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTodoListWidget.js +23 -23
  82. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolInputOutputContentPart.d.ts +4 -3
  83. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolInputOutputContentPart.js +2 -2
  84. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolOutputContentSubPart.d.ts +6 -3
  85. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolOutputContentSubPart.js +27 -11
  86. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTreeContentPart.d.ts +3 -3
  87. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTreeContentPart.js +1 -1
  88. package/vscode/src/vs/workbench/contrib/chat/browser/{codeBlockPart.d.ts → widget/chatContentParts/codeBlockPart.d.ts} +5 -5
  89. package/vscode/src/vs/workbench/contrib/chat/browser/{codeBlockPart.js → widget/chatContentParts/codeBlockPart.js} +19 -18
  90. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatThinkingContent.css +17 -14
  91. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/abstractToolConfirmationSubPart.d.ts +3 -3
  92. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/abstractToolConfirmationSubPart.js +4 -4
  93. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatExtensionsInstallToolSubPart.d.ts +2 -2
  94. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatExtensionsInstallToolSubPart.js +7 -7
  95. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +3 -3
  96. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +4 -32
  97. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatResultListSubPart.d.ts +2 -2
  98. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatResultListSubPart.js +4 -1
  99. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +4 -3
  100. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +103 -37
  101. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolProgressPart.d.ts +3 -3
  102. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolProgressPart.js +18 -131
  103. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolConfirmationSubPart.d.ts +6 -6
  104. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolConfirmationSubPart.js +13 -13
  105. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationPart.d.ts +4 -4
  106. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationPart.js +2 -2
  107. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationSubPart.d.ts +1 -1
  108. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationSubPart.js +1 -1
  109. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolOutputPart.d.ts +2 -2
  110. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolOutputPart.js +3 -3
  111. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.d.ts +14 -0
  112. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +46 -0
  113. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +4 -4
  114. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +11 -10
  115. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolProgressPart.d.ts +2 -2
  116. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolProgressPart.js +1 -1
  117. package/vscode/src/vs/workbench/contrib/chat/browser/{chatDragAndDrop.d.ts → widget/chatDragAndDrop.d.ts} +3 -3
  118. package/vscode/src/vs/workbench/contrib/chat/browser/{chatDragAndDrop.js → widget/chatDragAndDrop.js} +13 -13
  119. package/vscode/src/vs/workbench/contrib/chat/browser/{chatListRenderer.d.ts → widget/chatListRenderer.d.ts} +5 -5
  120. package/vscode/src/vs/workbench/contrib/chat/browser/{chatListRenderer.js → widget/chatListRenderer.js} +41 -53
  121. package/vscode/src/vs/workbench/contrib/chat/browser/{chatWidget.d.ts → widget/chatWidget.d.ts} +18 -16
  122. package/vscode/src/vs/workbench/contrib/chat/browser/{chatWidget.js → widget/chatWidget.js} +77 -57
  123. package/vscode/src/vs/workbench/contrib/chat/browser/{chatFollowups.d.ts → widget/input/chatFollowups.d.ts} +2 -2
  124. package/vscode/src/vs/workbench/contrib/chat/browser/{chatFollowups.js → widget/input/chatFollowups.js} +3 -3
  125. package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPart.d.ts → widget/input/chatInputPart.d.ts} +14 -13
  126. package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPart.js → widget/input/chatInputPart.js} +75 -59
  127. package/vscode/src/vs/workbench/contrib/chat/browser/{chatSelectedTools.d.ts → widget/input/chatSelectedTools.d.ts} +3 -3
  128. package/vscode/src/vs/workbench/contrib/chat/browser/{chatSelectedTools.js → widget/input/chatSelectedTools.js} +2 -2
  129. package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputCompletions.js +36 -24
  130. package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modePickerActionItem.d.ts +2 -2
  131. package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modePickerActionItem.js +9 -7
  132. package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modelPickerActionItem.d.ts +4 -2
  133. package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modelPickerActionItem.js +21 -14
  134. package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/media}/chat.css +17 -16
  135. package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/media}/chatViewWelcome.css +3 -1
  136. package/vscode/src/vs/workbench/contrib/chat/common/{chatColors.js → widget/chatColors.js} +13 -13
  137. package/vscode/src/vs/workbench/contrib/chat/common/{chatWidgetHistoryService.d.ts → widget/chatWidgetHistoryService.d.ts} +2 -2
  138. package/vscode/src/vs/workbench/contrib/chat/common/{chatWidgetHistoryService.js → widget/chatWidgetHistoryService.js} +2 -2
  139. package/vscode/src/vs/workbench/contrib/chat/common/{codeBlockModelCollection.d.ts → widget/codeBlockModelCollection.d.ts} +2 -2
  140. package/vscode/src/vs/workbench/contrib/chat/common/{codeBlockModelCollection.js → widget/codeBlockModelCollection.js} +4 -3
  141. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +7 -8
  142. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +63 -63
  143. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.d.ts +2 -2
  144. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +2 -2
  145. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +1 -1
  146. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +3 -4
  147. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +16 -18
  148. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.d.ts +1 -5
  149. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +8 -18
  150. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +3 -3
  151. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +12 -12
  152. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +1 -1
  153. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +2 -2
  154. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +1 -1
  155. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +0 -1
  156. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +35 -54
  157. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
  158. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +1 -1
  159. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
  160. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
  161. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +4 -4
  162. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
  163. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +1 -1
  164. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
  165. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
  166. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
  167. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +3 -3
  168. package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.d.ts +35 -4
  169. package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +129 -31
  170. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.d.ts +0 -19
  171. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.js +0 -76
  172. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +0 -48
  173. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +0 -373
  174. /package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/{chatSessionAction.css → chatSessionPickerActionItem.css} +0 -0
  175. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentMarkdownRenderer.d.ts → widget/chatContentMarkdownRenderer.d.ts} +0 -0
  176. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentMarkdownRenderer.js → widget/chatContentMarkdownRenderer.js} +0 -0
  177. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollections.d.ts +0 -0
  178. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollections.js +0 -0
  179. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatDiffBlockPart.js → widget/chatContentParts/chatDiffBlockPart.js} +0 -0
  180. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatSuggestNextWidget.d.ts +0 -0
  181. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.service.js +0 -0
  182. /package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/chatContentParts/media}/chatCodeBlockPill.css +0 -0
  183. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatConfirmationWidget.css +0 -0
  184. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatExtensionsContent.css +0 -0
  185. /package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/chatContentParts/media}/chatInlineAnchorWidget.css +0 -0
  186. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatMarkdownPart.css +0 -0
  187. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatMcpServersInteractionContent.css +0 -0
  188. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatPullRequestContent.css +0 -0
  189. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatTerminalToolProgressPart.css +0 -0
  190. /package/vscode/src/vs/workbench/contrib/chat/browser/{codeBlockPart.css → widget/chatContentParts/media/codeBlockPart.css} +0 -0
  191. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatOptions.d.ts → widget/chatOptions.d.ts} +0 -0
  192. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatOptions.js → widget/chatOptions.js} +0 -0
  193. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPartWidgets.d.ts → widget/input/chatInputPartWidgets.d.ts} +0 -0
  194. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPartWidgets.js → widget/input/chatInputPartWidgets.js} +0 -0
  195. /package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputCompletions.d.ts +0 -0
  196. /package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/media}/chatAgentHover.css +0 -0
  197. /package/vscode/src/vs/workbench/contrib/chat/common/{chatColors.d.ts → widget/chatColors.d.ts} +0 -0
@@ -10,8 +10,8 @@ import { FileAccess } from '@codingame/monaco-vscode-api/vscode/vs/base/common/n
10
10
  import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
11
11
  import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
12
12
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
13
- import { getFullyQualifiedId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents';
14
- import { IChatAgentService, IChatAgentNameService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
13
+ import { getFullyQualifiedId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents';
14
+ import { IChatAgentService, IChatAgentNameService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service';
15
15
  import { showExtensionsWithIdsCommandId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/browser/extensionsActions';
16
16
  import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
17
17
  import { verifiedPublisherIcon } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionsIcons';
@@ -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(5009, "This chat extension is using a reserved name."))));
52
+ hoverElement.warning.appendChild($('span', undefined, ( localize(5607, "This chat extension is using a reserved name."))));
53
53
  }
54
54
  setAgent(id) {
55
55
  const agent = this.chatAgentService.getAgent(id);
@@ -99,7 +99,7 @@ function getChatAgentHoverOptions(getAgent, commandService) {
99
99
  actions: [
100
100
  {
101
101
  commandId: showExtensionsWithIdsCommandId,
102
- label: ( localize(5010, "View Extension")),
102
+ label: ( localize(5608, "View Extension")),
103
103
  run: () => {
104
104
  const agent = getAgent();
105
105
  if (agent) {
@@ -1,9 +1,9 @@
1
1
  import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
2
  import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
3
- import { IChatAgentCommand } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents";
4
- import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
3
+ import { IChatAgentCommand } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents";
4
+ import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
5
5
  import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
6
- import { IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
6
+ import { IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
7
7
  export declare class ChatAgentCommandContentPart extends Disposable implements IChatContentPart {
8
8
  private readonly _hoverService;
9
9
  readonly domNode: HTMLElement;
@@ -2,7 +2,7 @@
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
3
  import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
4
4
  import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
5
- import { chatSubcommandLeader } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
5
+ import { chatSubcommandLeader } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/requestParser/chatParserTypes';
6
6
  import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
7
7
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
8
8
  import { Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
@@ -26,7 +26,7 @@ let ChatAgentCommandContentPart = class ChatAgentCommandContentPart extends Disp
26
26
  content: cmd.description,
27
27
  style: HoverStyle.Pointer,
28
28
  }, { groupId }));
29
- const rerun = ( localize(5042, "Rerun without {0}{1}", chatSubcommandLeader, cmd.name));
29
+ const rerun = ( localize(5609, "Rerun without {0}{1}", chatSubcommandLeader, cmd.name));
30
30
  const btn = ( new Button(this.domNode, { ariaLabel: rerun }));
31
31
  btn.icon = Codicon.close;
32
32
  this._store.add(btn.onDidClick(() => onClick()));
@@ -2,8 +2,8 @@ import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/
2
2
  import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
3
3
  import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
4
4
  import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
5
- import { IChatErrorDetailsPart, IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
6
- import { IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
5
+ import { IChatErrorDetailsPart, IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
6
+ import { IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
7
7
  export declare class ChatAnonymousRateLimitedPart extends Disposable implements IChatContentPart {
8
8
  private readonly content;
9
9
  readonly domNode: HTMLElement;
@@ -21,11 +21,11 @@ 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
- 5043,
24
+ 5610,
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, { ...defaultButtonStyles, supportIcons: true })));
28
- signInButton.label = ( localize(5044, "Enable more AI features"));
28
+ signInButton.label = ( localize(5611, "Enable more AI features"));
29
29
  signInButton.element.classList.add('chat-rate-limited-button');
30
30
  this._register(signInButton.onDidClick(async () => {
31
31
  const commandId = 'workbench.action.chat.triggerSetup';
@@ -1,7 +1,7 @@
1
1
  import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
2
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
3
- import { IChatRequestVariableEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatVariableEntries";
4
- import { IChatContentReference } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
3
+ import { IChatRequestVariableEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries";
4
+ import { IChatContentReference } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
5
5
  export interface IChatAttachmentsContentPartOptions {
6
6
  readonly variables: IChatRequestVariableEntry[];
7
7
  readonly contentReferences?: ReadonlyArray<IChatContentReference>;
@@ -8,9 +8,9 @@ import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
8
8
  import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range';
9
9
  import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
10
10
  import { ResourceLabels } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/labels';
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/chatVariableEntries';
12
- import { ChatResponseReferencePartStatusKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService';
13
- import { ToolSetOrToolItemAttachmentWidget, ElementChatAttachmentWidget, ImageAttachmentWidget, PromptFileAttachmentWidget, PromptTextAttachmentWidget, FileAttachmentWidget, TerminalCommandAttachmentWidget, PasteAttachmentWidget, NotebookCellOutputChatAttachmentWidget, SCMHistoryItemAttachmentWidget, SCMHistoryItemChangeAttachmentWidget, SCMHistoryItemChangeRangeAttachmentWidget, DefaultChatAttachmentWidget } from '../chatAttachmentWidgets.js';
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
+ import { ChatResponseReferencePartStatusKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
13
+ import { ToolSetOrToolItemAttachmentWidget, ElementChatAttachmentWidget, ImageAttachmentWidget, PromptFileAttachmentWidget, PromptTextAttachmentWidget, FileAttachmentWidget, TerminalCommandAttachmentWidget, PasteAttachmentWidget, NotebookCellOutputChatAttachmentWidget, SCMHistoryItemAttachmentWidget, SCMHistoryItemChangeAttachmentWidget, SCMHistoryItemChangeRangeAttachmentWidget, DefaultChatAttachmentWidget } from '../../attachments/chatAttachmentWidgets.js';
14
14
 
15
15
  let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Disposable {
16
16
  constructor(options, instantiationService) {
@@ -1,16 +1,17 @@
1
1
  import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
- import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
3
- import { IChatChangesSummaryPart as IChatFileChangesSummaryPart, IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
4
- import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
5
- import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
6
- import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
7
- import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
8
- import { IChatEditingSession, IEditSessionEntryDiff } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService";
9
- import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
10
2
  import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
11
- import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
3
+ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
12
4
  import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
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
+ import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
8
+ import { IChatEditingSession, IEditSessionEntryDiff } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService";
9
+ import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
10
+ import { IChatChangesSummaryPart as IChatFileChangesSummaryPart, IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
11
+ import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
12
+ import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
13
13
  export declare class ChatCheckpointFileChangesSummaryContentPart extends Disposable implements IChatContentPart {
14
+ private readonly content;
14
15
  private readonly hoverService;
15
16
  private readonly chatService;
16
17
  private readonly editorService;
@@ -22,19 +23,15 @@ export declare class ChatCheckpointFileChangesSummaryContentPart extends Disposa
22
23
  private readonly _onDidChangeHeight;
23
24
  readonly onDidChangeHeight: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
24
25
  private readonly diffsBetweenRequests;
25
- private fileChanges;
26
26
  private fileChangesDiffsObservable;
27
27
  private list;
28
28
  private isCollapsed;
29
29
  constructor(content: IChatFileChangesSummaryPart, context: IChatContentPartRenderContext, hoverService: IHoverService, chatService: IChatService, editorService: IEditorService, editorGroupsService: IEditorGroupsService, instantiationService: IInstantiationService);
30
- private changeID;
31
30
  private computeFileChangesDiffs;
32
31
  getCachedEntryDiffBetweenRequests(editSession: IChatEditingSession, uri: URI, startRequestId: string, stopRequestId: string): IObservable<IEditSessionEntryDiff | undefined> | undefined;
33
32
  private renderHeader;
34
33
  private renderViewAllFileChangesButton;
35
34
  private renderFilesList;
36
- private updateList;
37
- private computeFileChangeSummaryItems;
38
35
  hasSameContent(other: IChatRendererContent, followingContent: IChatRendererContent[], element: ChatTreeItem): boolean;
39
36
  addDisposable(disposable: IDisposable): void;
40
37
  }
@@ -1,34 +1,35 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
3
  import { $, addDisposableListener, EventHelper } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
- import { Disposable, DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
5
- import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
6
- import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
7
- import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
8
- import { WorkbenchList } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
9
4
  import { ButtonWithIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
10
5
  import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
11
- import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
6
+ import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
7
+ import { Iterable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iterator';
8
+ import { Disposable, DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
9
+ import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
10
+ import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
12
11
  import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
13
- import { ResourcePool } from './chatCollections.js';
14
- import { ResourceLabels } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/labels';
12
+ import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
13
+ import { localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
15
14
  import { FileKind } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
16
- import { createFileIconThemableTreeContainerScope } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/files/browser/views/explorerView';
15
+ import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
16
+ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
17
+ import { WorkbenchList } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
17
18
  import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
18
- import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
19
+ import { ResourceLabels } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/labels';
20
+ import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
21
+ import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
22
+ import { createFileIconThemableTreeContainerScope } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/files/browser/views/explorerView';
19
23
  import { MultiDiffEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput';
20
24
  import { MultiDiffEditorItem } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService';
21
- import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
22
- import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
23
- import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
24
- import { localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
25
- import { LocalChatSessionUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatUri';
26
- import { derived } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/derived';
25
+ import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
26
+ import { ResourcePool } from './chatCollections.js';
27
27
  import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
28
28
 
29
29
  let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChangesSummaryContentPart extends Disposable {
30
30
  constructor(content, context, hoverService, chatService, editorService, editorGroupsService, instantiationService) {
31
31
  super();
32
+ this.content = content;
32
33
  this.hoverService = hoverService;
33
34
  this.chatService = chatService;
34
35
  this.editorService = editorService;
@@ -40,36 +41,20 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
40
41
  this.onDidChangeHeight = this._onDidChangeHeight.event;
41
42
  this.diffsBetweenRequests = ( new Map());
42
43
  this.isCollapsed = true;
43
- this.fileChanges = content.fileChanges;
44
- this.fileChangesDiffsObservable = this.computeFileChangesDiffs(context, content.fileChanges);
44
+ this.fileChangesDiffsObservable = this.computeFileChangesDiffs(content);
45
45
  const headerDomNode = $('.checkpoint-file-changes-summary-header');
46
46
  this.domNode = $('.checkpoint-file-changes-summary', undefined, headerDomNode);
47
47
  this.domNode.tabIndex = 0;
48
48
  this._register(this.renderHeader(headerDomNode));
49
49
  this._register(this.renderFilesList(this.domNode));
50
50
  }
51
- changeID(change) {
52
- return `${change.sessionId}-${change.requestId}-${change.reference.path}`;
53
- }
54
- computeFileChangesDiffs(context, changes) {
55
- return derived((r) => {
56
- const fileChangesDiffs = ( new Map());
57
- const firstRequestId = changes[0].requestId;
58
- const lastRequestId = changes[changes.length - 1].requestId;
59
- for (const change of changes) {
60
- const sessionId = change.sessionId;
61
- const session = this.chatService.getSession(LocalChatSessionUri.forSession(sessionId));
62
- if (!session || !session.editingSession) {
63
- continue;
64
- }
65
- const diff = this.getCachedEntryDiffBetweenRequests(session.editingSession, change.reference, firstRequestId, lastRequestId)?.read(r);
66
- if (!diff) {
67
- continue;
68
- }
69
- fileChangesDiffs.set(this.changeID(change), diff);
70
- }
71
- return fileChangesDiffs;
72
- });
51
+ computeFileChangesDiffs({ requestId, sessionResource }) {
52
+ return ( ( ( this.chatService.chatModels
53
+ .map(
54
+ models => Iterable.find(models, m => isEqual(m.sessionResource, sessionResource))
55
+ ))
56
+ .map(model => model?.editingSession?.getDiffsForFilesInRequest(requestId)))
57
+ .map((diffs, r) => diffs?.read(r) || Iterable.empty()));
73
58
  }
74
59
  getCachedEntryDiffBetweenRequests(editSession, uri, startRequestId, stopRequestId) {
75
60
  const key = `${uri}\0${startRequestId}\0${stopRequestId}`;
@@ -83,7 +68,10 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
83
68
  renderHeader(container) {
84
69
  const viewListButtonContainer = container.appendChild($('.chat-file-changes-label'));
85
70
  const viewListButton = ( new ButtonWithIcon(viewListButtonContainer, {}));
86
- viewListButton.label = this.fileChanges.length === 1 ? `Changed 1 file` : `Changed ${this.fileChanges.length} files`;
71
+ this._register(autorun(r => {
72
+ const diffs = this.fileChangesDiffsObservable.read(r);
73
+ viewListButton.label = diffs.length === 1 ? `Changed 1 file` : `Changed ${diffs.length} files`;
74
+ }));
87
75
  const setExpansionState = () => {
88
76
  viewListButton.icon = this.isCollapsed ? Codicon.chevronRight : Codicon.chevronDown;
89
77
  this.domNode.classList.toggle('chat-file-changes-collapsed', this.isCollapsed);
@@ -102,27 +90,16 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
102
90
  renderViewAllFileChangesButton(container) {
103
91
  const button = container.appendChild($('.chat-view-changes-icon'));
104
92
  this.hoverService.setupDelayedHover(button, () => ({
105
- content: ( localize2(5045, 'View All File Changes'))
93
+ content: ( localize2(5612, 'View All File Changes'))
106
94
  }));
107
95
  button.classList.add(...ThemeIcon.asClassNameArray(Codicon.diffMultiple));
108
96
  button.setAttribute('role', 'button');
109
97
  button.tabIndex = 0;
110
98
  return addDisposableListener(button, 'click', (e) => {
111
- const resources = [];
112
- for (const fileChange of this.fileChanges) {
113
- const diffEntry = this.fileChangesDiffsObservable.get().get(this.changeID(fileChange));
114
- if (diffEntry) {
115
- resources.push({
116
- originalUri: diffEntry.originalURI,
117
- modifiedUri: diffEntry.modifiedURI
118
- });
119
- }
120
- else {
121
- resources.push({
122
- originalUri: fileChange.reference
123
- });
124
- }
125
- }
99
+ const resources = ( this.fileChangesDiffsObservable.get().map(diff => ({
100
+ originalUri: diff.originalURI,
101
+ modifiedUri: diff.modifiedURI
102
+ })));
126
103
  const source = ( URI.parse(`multi-diff-editor:${( ( new Date()).getMilliseconds().toString()) + ( Math.random().toString())}`));
127
104
  const input = this.instantiationService.createInstance(MultiDiffEditorInput, source, 'Checkpoint File Changes', ( resources.map(resource => {
128
105
  return ( new MultiDiffEditorItem(resource.originalUri, resource.modifiedUri, undefined));
@@ -135,71 +112,34 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
135
112
  const store = ( new DisposableStore());
136
113
  this.list = store.add(this.instantiationService.createInstance(CollapsibleChangesSummaryListPool)).get();
137
114
  const listNode = this.list.getHTMLElement();
138
- const itemsShown = Math.min(this.fileChanges.length, this.MAX_ITEMS_SHOWN);
139
- const height = itemsShown * this.ELEMENT_HEIGHT;
140
- this.list.layout(height);
141
- listNode.style.height = height + 'px';
142
- this.updateList(this.fileChanges, this.fileChangesDiffsObservable.get());
143
115
  container.appendChild(listNode.parentElement);
144
116
  store.add(this.list.onDidOpen((item) => {
145
- const element = item.element;
146
- if (!element) {
117
+ const diff = item.element;
118
+ if (!diff) {
147
119
  return;
148
120
  }
149
- const diff = this.fileChangesDiffsObservable.get().get(this.changeID(element));
150
- if (diff) {
151
- const input = {
152
- original: { resource: diff.originalURI },
153
- modified: { resource: diff.modifiedURI },
154
- options: { preserveFocus: true }
155
- };
156
- this.editorService.openEditor(input);
157
- }
158
- else {
159
- this.editorService.openEditor({ resource: element.reference, options: { preserveFocus: true } });
160
- }
121
+ const input = {
122
+ original: { resource: diff.originalURI },
123
+ modified: { resource: diff.modifiedURI },
124
+ options: { preserveFocus: true }
125
+ };
126
+ this.editorService.openEditor(input);
161
127
  }));
162
128
  store.add(this.list.onContextMenu(e => {
163
129
  EventHelper.stop(e.browserEvent, true);
164
130
  }));
165
131
  store.add(autorun((r) => {
166
- this.updateList(this.fileChanges, this.fileChangesDiffsObservable.read(r));
132
+ const diffs = this.fileChangesDiffsObservable.read(r);
133
+ const itemsShown = Math.min(diffs.length, this.MAX_ITEMS_SHOWN);
134
+ const height = itemsShown * this.ELEMENT_HEIGHT;
135
+ this.list.layout(height);
136
+ listNode.style.height = height + 'px';
137
+ this.list.splice(0, this.list.length, diffs);
167
138
  }));
168
139
  return store;
169
140
  }
170
- updateList(fileChanges, fileChangesDiffs) {
171
- this.list.splice(0, this.list.length, this.computeFileChangeSummaryItems(fileChanges, fileChangesDiffs));
172
- }
173
- computeFileChangeSummaryItems(fileChanges, fileChangesDiffs) {
174
- const items = [];
175
- for (const fileChange of fileChanges) {
176
- const diffEntry = fileChangesDiffs.get(this.changeID(fileChange));
177
- if (diffEntry) {
178
- const additionalLabels = [];
179
- if (diffEntry) {
180
- additionalLabels.push({
181
- description: ` +${diffEntry.added} `,
182
- className: 'insertions',
183
- });
184
- additionalLabels.push({
185
- description: ` -${diffEntry.removed} `,
186
- className: 'deletions',
187
- });
188
- }
189
- const item = {
190
- ...fileChange,
191
- additionalLabels
192
- };
193
- items.push(item);
194
- }
195
- else {
196
- items.push(fileChange);
197
- }
198
- }
199
- return items;
200
- }
201
141
  hasSameContent(other, followingContent, element) {
202
- return other.kind === 'changesSummary' && other.fileChanges.length === this.fileChanges.length;
142
+ return other.kind === 'changesSummary' && other.requestId === this.content.requestId;
203
143
  }
204
144
  addDisposable(disposable) {
205
145
  this._register(disposable);
@@ -263,19 +203,19 @@ class CollapsibleChangesSummaryListRenderer {
263
203
  }
264
204
  renderElement(data, index, templateData) {
265
205
  const label = templateData.label;
266
- label.setFile(data.reference, {
206
+ label.setFile(data.modifiedURI, {
267
207
  fileKind: FileKind.FILE,
268
- title: data.reference.path
208
+ title: data.modifiedURI.path
269
209
  });
270
210
  const labelElement = label.element;
271
- labelElement.querySelector(`.${CollapsibleChangesSummaryListRenderer.CHANGES_SUMMARY_CLASS_NAME}`)?.remove();
272
- if (!data.additionalLabels) {
273
- return;
274
- }
275
- const changesSummary = labelElement.appendChild($(`.${CollapsibleChangesSummaryListRenderer.CHANGES_SUMMARY_CLASS_NAME}`));
276
- for (const additionalLabel of data.additionalLabels) {
277
- const element = changesSummary.appendChild($(`.${additionalLabel.className}`));
278
- element.textContent = additionalLabel.description;
211
+ templateData.changesElement?.remove();
212
+ if (!data.identical && !data.isBusy) {
213
+ const changesSummary = labelElement.appendChild($(`.${CollapsibleChangesSummaryListRenderer.CHANGES_SUMMARY_CLASS_NAME}`));
214
+ const added = changesSummary.appendChild($(`.insertions`));
215
+ added.textContent = `+${data.added}`;
216
+ const removed = changesSummary.appendChild($(`.deletions`));
217
+ removed.textContent = `-${data.removed}`;
218
+ templateData.changesElement = changesSummary;
279
219
  }
280
220
  }
281
221
  disposeTemplate(templateData) {
@@ -1,8 +1,8 @@
1
1
  import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
2
  import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
3
3
  import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
4
- import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
5
- import { IChatCodeCitations, IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
4
+ import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
5
+ import { IChatCodeCitations, IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
6
6
  import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
7
7
  export declare class ChatCodeCitationContentPart extends Disposable implements IChatContentPart {
8
8
  private readonly editorService;
@@ -5,7 +5,7 @@ import { Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/b
5
5
  import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
6
6
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
7
7
  import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
8
- import { getCodeCitationsMessage } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModel';
8
+ import { getCodeCitationsMessage } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel';
9
9
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
10
10
 
11
11
  let ChatCodeCitationContentPart = class ChatCodeCitationContentPart extends Disposable {
@@ -29,7 +29,7 @@ let ChatCodeCitationContentPart = class ChatCodeCitationContentPart extends Disp
29
29
  buttonSecondaryHoverBackground: undefined,
30
30
  buttonSeparator: undefined
31
31
  })));
32
- button.label = ( localize(5046, "View matches"));
32
+ button.label = ( localize(5613, "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({ resource: undefined, contents: citationText, languageId: 'markdown' });
@@ -3,15 +3,19 @@ import { Emitter } from "@codingame/monaco-vscode-api/vscode/vs/base/common/even
3
3
  import { IMarkdownString, MarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
4
4
  import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
5
5
  import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
6
- import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
6
+ import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
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";
8
- import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
9
- import { IChatMarkdownAnchorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service";
9
+ import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
10
+ import { IChatMarkdownAnchorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownAnchorService.service";
10
11
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
11
12
  import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
13
+ import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
12
14
  export declare abstract class ChatCollapsibleContentPart extends Disposable implements IChatContentPart {
13
15
  private title;
14
16
  protected readonly context: IChatContentPartRenderContext;
17
+ private readonly hoverMessage;
18
+ private readonly hoverService;
15
19
  private _domNode?;
16
20
  private readonly _renderedTitleWithWidgets;
17
21
  protected readonly _onDidChangeHeight: Emitter<void>;
@@ -19,7 +23,10 @@ export declare abstract class ChatCollapsibleContentPart extends Disposable impl
19
23
  protected readonly hasFollowingContent: boolean;
20
24
  protected _isExpanded: import("@codingame/monaco-vscode-api/vscode/vs/base/common/observable").ISettableObservable<boolean, void>;
21
25
  protected _collapseButton: ButtonWithIcon | undefined;
22
- constructor(title: IMarkdownString | string, context: IChatContentPartRenderContext);
26
+ private readonly _overrideIcon;
27
+ get icon(): ThemeIcon | undefined;
28
+ set icon(value: ThemeIcon | undefined);
29
+ constructor(title: IMarkdownString | string, context: IChatContentPartRenderContext, hoverMessage: IMarkdownString | undefined, hoverService: IHoverService);
23
30
  get domNode(): HTMLElement;
24
31
  protected init(): HTMLElement;
25
32
  protected abstract initContent(): HTMLElement;
@@ -1,24 +1,35 @@
1
1
 
2
+ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
2
3
  import { $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
3
4
  import { ButtonWithIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
5
+ import { HoverStyle } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hover';
4
6
  import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
5
7
  import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
6
8
  import { Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
7
9
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
8
- import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
9
- import { renderFileWidgets } from '../chatInlineAnchorWidget.js';
10
+ import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
11
+ import { renderFileWidgets } from './chatInlineAnchorWidget.js';
10
12
  import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
11
13
  import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
12
14
 
13
- class ChatCollapsibleContentPart extends Disposable {
14
- constructor(title, context) {
15
+ let ChatCollapsibleContentPart = class ChatCollapsibleContentPart extends Disposable {
16
+ get icon() {
17
+ return this._overrideIcon.get();
18
+ }
19
+ set icon(value) {
20
+ this._overrideIcon.set(value, undefined);
21
+ }
22
+ constructor(title, context, hoverMessage, hoverService) {
15
23
  super();
16
24
  this.title = title;
17
25
  this.context = context;
26
+ this.hoverMessage = hoverMessage;
27
+ this.hoverService = hoverService;
18
28
  this._renderedTitleWithWidgets = this._register(( new MutableDisposable()));
19
29
  this._onDidChangeHeight = this._register(( new Emitter()));
20
30
  this.onDidChangeHeight = this._onDidChangeHeight.event;
21
31
  this._isExpanded = observableValue(this, false);
32
+ this._overrideIcon = observableValue(this, undefined);
22
33
  this.hasFollowingContent = this.context.contentIndex + 1 < this.context.content.length;
23
34
  }
24
35
  get domNode() {
@@ -41,15 +52,21 @@ class ChatCollapsibleContentPart extends Disposable {
41
52
  this._collapseButton = collapseButton;
42
53
  this._domNode = $('.chat-used-context', undefined, buttonElement);
43
54
  collapseButton.label = referencesLabel;
55
+ if (this.hoverMessage) {
56
+ this._register(this.hoverService.setupDelayedHover(collapseButton.iconElement, {
57
+ content: this.hoverMessage,
58
+ style: HoverStyle.Pointer,
59
+ }));
60
+ }
44
61
  this._register(collapseButton.onDidClick(() => {
45
62
  const value = this._isExpanded.get();
46
63
  this._isExpanded.set(!value, undefined);
47
64
  }));
48
65
  this._register(autorun(r => {
49
- const value = this._isExpanded.read(r);
50
- collapseButton.icon = value ? Codicon.chevronDown : Codicon.chevronRight;
51
- this._domNode?.classList.toggle('chat-used-context-collapsed', !value);
52
- this.updateAriaLabel(collapseButton.element, typeof referencesLabel === 'string' ? referencesLabel : referencesLabel.value, this.isExpanded());
66
+ const expanded = this._isExpanded.read(r);
67
+ collapseButton.icon = this._overrideIcon.read(r) ?? (expanded ? Codicon.chevronDown : Codicon.chevronRight);
68
+ this._domNode?.classList.toggle('chat-used-context-collapsed', !expanded);
69
+ this.updateAriaLabel(collapseButton.element, typeof referencesLabel === 'string' ? referencesLabel : referencesLabel.value, expanded);
53
70
  if (this._domNode?.isConnected) {
54
71
  queueMicrotask(() => {
55
72
  this._onDidChangeHeight.fire();
@@ -61,7 +78,8 @@ class ChatCollapsibleContentPart extends Disposable {
61
78
  return this._domNode;
62
79
  }
63
80
  updateAriaLabel(element, label, expanded) {
64
- element.ariaLabel = expanded ? ( localize(5047, "{0}, expanded", label)) : ( localize(5048, "{0}, collapsed", label));
81
+ element.ariaLabel = label;
82
+ element.ariaExpanded = String(expanded);
65
83
  }
66
84
  addDisposable(disposable) {
67
85
  this._register(disposable);
@@ -96,6 +114,9 @@ class ChatCollapsibleContentPart extends Disposable {
96
114
  this.updateAriaLabel(this._collapseButton.element, textContent, this.isExpanded());
97
115
  this._renderedTitleWithWidgets.value = result;
98
116
  }
99
- }
117
+ };
118
+ ChatCollapsibleContentPart = ( __decorate([
119
+ ( __param(3, IHoverService))
120
+ ], ChatCollapsibleContentPart));
100
121
 
101
122
  export { ChatCollapsibleContentPart };
@@ -1,8 +1,8 @@
1
1
  import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
2
  import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
3
- import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
4
- import { IChatProgressRenderableResponseContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModel";
5
- import { IChatCommandButton } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
3
+ import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
4
+ import { IChatProgressRenderableResponseContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
5
+ import { IChatCommandButton } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
6
6
  export declare class ChatCommandButtonContentPart extends Disposable implements IChatContentPart {
7
7
  private readonly commandService;
8
8
  readonly domNode: HTMLElement;