@codingame/monaco-vscode-katex-common 25.1.2 → 26.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +23 -2
  3. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +64 -27
  4. package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.d.ts +3 -1
  5. package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.js +31 -28
  6. package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +2 -0
  7. package/vscode/src/vs/platform/actions/browser/buttonbar.js +71 -50
  8. package/vscode/src/vs/platform/editor/browser/editor.js +17 -7
  9. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +112 -129
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +10 -1
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +110 -85
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +5 -5
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +21 -6
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +308 -216
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +153 -148
  16. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.d.ts +27 -0
  17. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +247 -0
  18. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +71 -0
  19. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +347 -0
  20. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +44 -0
  21. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +287 -0
  22. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.d.ts +20 -0
  23. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +89 -0
  24. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +188 -0
  25. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +677 -0
  26. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentSessionHoverWidget.css +98 -0
  27. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +263 -0
  28. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.js +34 -25
  29. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +19 -14
  30. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +762 -359
  31. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.d.ts +22 -1
  32. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.js +188 -99
  33. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +9 -3
  34. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +166 -113
  35. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +12 -5
  36. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +279 -213
  37. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +46 -0
  38. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +533 -0
  39. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +28 -0
  40. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +382 -0
  41. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +101 -0
  42. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +509 -0
  43. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +130 -0
  44. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +276 -0
  45. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.d.ts +24 -7
  46. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +128 -52
  47. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +153 -0
  48. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +1218 -0
  49. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/chatSessionPickerActionItem.css +14 -0
  50. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.d.ts +39 -0
  51. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +193 -0
  52. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts +2 -0
  53. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +93 -89
  54. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcome.js +5 -2
  55. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +42 -47
  56. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +58 -56
  57. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +18 -14
  58. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +17 -15
  59. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +6 -2
  60. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +132 -68
  61. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.d.ts +0 -2
  62. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +68 -47
  63. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +14 -13
  64. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.d.ts +4 -4
  65. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.js +36 -24
  66. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.d.ts +18 -0
  67. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.js +32 -0
  68. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.d.ts +7 -2
  69. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.js +15 -4
  70. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.d.ts +1 -0
  71. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +22 -14
  72. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.d.ts +0 -2
  73. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +34 -27
  74. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +1 -5
  75. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +198 -135
  76. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.d.ts +2 -0
  77. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.js +38 -10
  78. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.js +29 -27
  79. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.d.ts +0 -2
  80. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.js +41 -36
  81. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.d.ts +0 -2
  82. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.js +23 -18
  83. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorContentPart.js +13 -13
  84. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.d.ts +0 -3
  85. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +20 -14
  86. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +11 -1
  87. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +291 -152
  88. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +2 -3
  89. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +227 -162
  90. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownDecorationsRenderer.js +68 -72
  91. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.d.ts +2 -4
  92. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +76 -75
  93. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.d.ts +2 -5
  94. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +96 -76
  95. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +4 -1
  96. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +74 -38
  97. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.d.ts +0 -2
  98. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.js +11 -25
  99. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +107 -0
  100. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +814 -0
  101. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.d.ts +0 -2
  102. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +34 -29
  103. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.d.ts +8 -10
  104. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +236 -197
  105. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +123 -0
  106. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +492 -0
  107. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +75 -47
  108. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.d.ts +2 -4
  109. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.js +31 -20
  110. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.d.ts +0 -3
  111. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +42 -36
  112. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +55 -7
  113. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +714 -148
  114. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.d.ts +7 -0
  115. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +21 -0
  116. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.d.ts +2 -7
  117. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +143 -153
  118. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +14 -5
  119. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +79 -61
  120. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +10 -4
  121. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +209 -77
  122. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.d.ts +9 -7
  123. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +71 -54
  124. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.d.ts +18 -0
  125. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +83 -0
  126. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.d.ts +4 -4
  127. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +248 -190
  128. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +1 -14
  129. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatInlineAnchorWidget.css +23 -0
  130. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPullRequestContent.css +5 -41
  131. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +493 -0
  132. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentContent.css +63 -0
  133. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +9 -1
  134. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +121 -5
  135. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css +37 -0
  136. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +51 -45
  137. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +46 -42
  138. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +4 -2
  139. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +99 -67
  140. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.d.ts +112 -0
  141. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +634 -0
  142. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.d.ts +49 -0
  143. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +132 -0
  144. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatResultListSubPart.js +15 -9
  145. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +196 -149
  146. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +17 -1
  147. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +577 -193
  148. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +119 -86
  149. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +10 -2
  150. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +165 -36
  151. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.d.ts +0 -2
  152. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.js +5 -8
  153. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +5 -3
  154. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +75 -65
  155. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +30 -28
  156. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +1 -5
  157. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +102 -106
  158. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +44 -20
  159. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.d.ts +19 -0
  160. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.js +67 -0
  161. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.d.ts +57 -0
  162. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.js +69 -0
  163. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +122 -82
  164. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +39 -12
  165. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +1110 -597
  166. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +291 -0
  167. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +485 -0
  168. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatOptions.js +38 -28
  169. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +9 -20
  170. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +650 -689
  171. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +21 -18
  172. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +102 -36
  173. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +1253 -790
  174. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.d.ts +0 -7
  175. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.js +11 -11
  176. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +34 -0
  177. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.js +55 -0
  178. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.d.ts +6 -2
  179. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.js +51 -35
  180. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +22 -0
  181. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +102 -0
  182. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +16 -4
  183. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +192 -44
  184. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.d.ts +11 -12
  185. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +99 -66
  186. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +47 -0
  187. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +188 -0
  188. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.d.ts +20 -0
  189. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +115 -0
  190. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +129 -167
  191. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatViewWelcome.css +16 -3
  192. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.d.ts +37 -0
  193. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +143 -0
  194. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.d.ts +56 -0
  195. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +206 -0
  196. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css +152 -0
  197. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageWidget.css +67 -0
  198. package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.d.ts +22 -0
  199. package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +170 -0
  200. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.d.ts +1 -0
  201. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +80 -19
  202. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatWidgetHistoryService.js +20 -28
  203. package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.d.ts +2 -1
  204. package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.js +22 -19
  205. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +15 -0
  206. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +122 -0
  207. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +19 -104
  208. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +316 -1040
  209. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.d.ts +28 -0
  210. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.js +162 -0
  211. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.d.ts +21 -0
  212. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +98 -0
  213. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +68 -0
  214. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +416 -0
  215. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +1 -6
  216. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +194 -215
  217. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +0 -1
  218. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +74 -104
  219. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +45 -91
  220. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatEditorAffordance.css +22 -0
  221. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +98 -0
  222. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +5 -2
  223. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +96 -68
  224. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.d.ts +7 -0
  225. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.js +11 -0
  226. package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.d.ts +20 -0
  227. package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +150 -0
  228. package/vscode/src/vs/workbench/contrib/markdown/browser/markedKatexSupport.js +141 -147
  229. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.d.ts +64 -0
  230. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.js +200 -0
  231. package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.d.ts +548 -0
  232. package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.js +23 -0
  233. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.d.ts +22 -0
  234. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +338 -0
  235. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.d.ts +18 -0
  236. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +58 -0
  237. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.d.ts +75 -0
  238. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +364 -0
  239. package/vscode/src/vs/workbench/contrib/replNotebook/browser/interactiveEditor.css +21 -0
  240. package/vscode/src/vs/workbench/contrib/replNotebook/browser/media/interactive.css +36 -0
  241. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.d.ts +110 -0
  242. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +692 -0
  243. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.d.ts +40 -0
  244. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +158 -0
  245. package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.d.ts +80 -21
  246. package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +440 -82
  247. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.d.ts +0 -34
  248. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.js +0 -139
  249. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.d.ts +0 -10
  250. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +0 -1081
  251. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.d.ts +0 -199
  252. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +0 -482
  253. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +0 -28
  254. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +0 -37
  255. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +0 -94
  256. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +0 -495
  257. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.d.ts +0 -72
  258. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +0 -454
  259. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.d.ts +0 -13
  260. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +0 -66
  261. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.d.ts +0 -41
  262. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +0 -372
  263. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +0 -4
  264. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +0 -58
  265. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.d.ts +0 -26
  266. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +0 -594
  267. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +0 -8
  268. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -55
  269. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +0 -273
  270. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1746
  271. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +0 -50
  272. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -269
  273. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +0 -258
  274. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -806
  275. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +0 -41
  276. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -116
  277. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +0 -17
  278. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +0 -62
  279. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +0 -27
  280. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -40
  281. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +0 -23
  282. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +0 -295
  283. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +0 -51
  284. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +0 -241
  285. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +0 -24
  286. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +0 -146
  287. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +0 -28
  288. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +0 -90
  289. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +0 -10
  290. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +0 -41
  291. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +0 -21
  292. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +0 -42
  293. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +0 -25
  294. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +0 -77
  295. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +0 -469
  296. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +0 -149
  297. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -823
  298. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +0 -180
  299. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -29
  300. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +0 -102
  301. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -567
  302. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +0 -30
  303. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -189
  304. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +0 -75
  305. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +0 -439
  306. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +0 -57
  307. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +0 -263
  308. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +0 -22
  309. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.js +0 -48
  310. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +0 -13
  311. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +0 -39
  312. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +0 -19
  313. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +0 -89
  314. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +0 -26
  315. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +0 -92
  316. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.d.ts +0 -33
  317. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +0 -108
@@ -19,21 +19,29 @@ let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Dispos
19
19
  this.attachedContextDisposables = this._register(( new DisposableStore()));
20
20
  this._onDidChangeVisibility = this._register(( new Emitter()));
21
21
  this._showingAll = false;
22
- this.variables = options.variables;
22
+ this._variables = options.variables;
23
23
  this.contentReferences = options.contentReferences ?? [];
24
24
  this.limit = options.limit;
25
- this.domNode = options.domNode ?? $('.chat-attached-context');
26
- this._contextResourceLabels = this._register(this.instantiationService.createInstance(ResourceLabels, { onDidChangeVisibility: this._onDidChangeVisibility.event }));
25
+ this.domNode = options.domNode ?? $(".chat-attached-context");
26
+ this._contextResourceLabels = this._register(this.instantiationService.createInstance(ResourceLabels, {
27
+ onDidChangeVisibility: this._onDidChangeVisibility.event
28
+ }));
27
29
  this.initAttachedContext(this.domNode);
28
30
  if (!this.domNode.childElementCount) {
29
31
  this.domNode = undefined;
30
32
  }
31
33
  }
34
+ updateVariables(variables) {
35
+ this._variables = variables;
36
+ if (this.domNode) {
37
+ this.initAttachedContext(this.domNode);
38
+ }
39
+ }
32
40
  initAttachedContext(container) {
33
41
  clearNode(container);
34
42
  this.attachedContextDisposables.clear();
35
43
  const visibleAttachments = this.getVisibleAttachments();
36
- const hasMoreAttachments = this.limit && this.variables.length > this.limit && !this._showingAll;
44
+ const hasMoreAttachments = this.limit && this._variables.length > this.limit && !this._showingAll;
37
45
  for (const attachment of visibleAttachments) {
38
46
  this.renderAttachment(attachment, container);
39
47
  }
@@ -43,18 +51,22 @@ let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Dispos
43
51
  }
44
52
  getVisibleAttachments() {
45
53
  if (!this.limit || this._showingAll) {
46
- return this.variables;
54
+ return this._variables;
47
55
  }
48
- return this.variables.slice(0, this.limit);
56
+ return this._variables.slice(0, this.limit);
49
57
  }
50
58
  renderShowMoreButton(container) {
51
- const remainingCount = this.variables.length - (this.limit ?? 0);
52
- const showMoreButton = $('div.chat-attached-context-attachment.chat-attachments-show-more-button');
53
- showMoreButton.setAttribute('role', 'button');
54
- showMoreButton.setAttribute('tabindex', '0');
55
- showMoreButton.style.cursor = 'pointer';
56
- const pillIcon = $('div.chat-attached-context-pill', {}, $('span.codicon.codicon-ellipsis'));
57
- const textLabel = $('span.chat-attached-context-custom-text');
59
+ const remainingCount = this._variables.length - (this.limit ?? 0);
60
+ const showMoreButton = $("div.chat-attached-context-attachment.chat-attachments-show-more-button");
61
+ showMoreButton.setAttribute("role", "button");
62
+ showMoreButton.setAttribute("tabindex", "0");
63
+ showMoreButton.style.cursor = "pointer";
64
+ const pillIcon = $(
65
+ "div.chat-attached-context-pill",
66
+ {},
67
+ $("span.codicon.codicon-ellipsis")
68
+ );
69
+ const textLabel = $("span.chat-attached-context-custom-text");
58
70
  textLabel.textContent = `${remainingCount} more`;
59
71
  showMoreButton.appendChild(pillIcon);
60
72
  showMoreButton.appendChild(textLabel);
@@ -62,87 +74,141 @@ let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Dispos
62
74
  this._showingAll = true;
63
75
  this.initAttachedContext(container);
64
76
  };
65
- this.attachedContextDisposables.add(addDisposableListener(showMoreButton, 'click', clickHandler));
66
- this.attachedContextDisposables.add(addDisposableListener(showMoreButton, 'keydown', (e) => {
67
- if (e.key === 'Enter' || e.key === ' ') {
77
+ this.attachedContextDisposables.add(addDisposableListener(showMoreButton, "click", clickHandler));
78
+ this.attachedContextDisposables.add(addDisposableListener(showMoreButton, "keydown", e => {
79
+ if (e.key === "Enter" || e.key === " ") {
68
80
  e.preventDefault();
69
81
  clickHandler();
70
82
  }
71
83
  }));
72
84
  container.appendChild(showMoreButton);
73
- this.attachedContextDisposables.add({ dispose: () => showMoreButton.remove() });
85
+ this.attachedContextDisposables.add({
86
+ dispose: () => showMoreButton.remove()
87
+ });
74
88
  }
75
89
  renderAttachment(attachment, container) {
76
- const resource = URI.isUri(attachment.value) ? attachment.value : attachment.value && typeof attachment.value === 'object' && 'uri' in attachment.value && URI.isUri(attachment.value.uri) ? attachment.value.uri : undefined;
77
- const range = attachment.value && typeof attachment.value === 'object' && 'range' in attachment.value && Range.isIRange(attachment.value.range) ? attachment.value.range : undefined;
78
- const correspondingContentReference = this.contentReferences.find((ref) => (typeof ref.reference === 'object' && 'variableName' in ref.reference && ref.reference.variableName === attachment.name) || (URI.isUri(ref.reference) && basename(ref.reference.path) === attachment.name));
90
+ const resource = URI.isUri(attachment.value) ? attachment.value : attachment.value && typeof attachment.value === "object" && "uri" in attachment.value && URI.isUri(attachment.value.uri) ? attachment.value.uri : undefined;
91
+ const range = attachment.value && typeof attachment.value === "object" && "range" in attachment.value && Range.isIRange(attachment.value.range) ? attachment.value.range : undefined;
92
+ const correspondingContentReference = this.contentReferences.find(
93
+ ref => (typeof ref.reference === "object" && "variableName" in ref.reference && ref.reference.variableName === attachment.name) || (URI.isUri(ref.reference) && basename(ref.reference.path) === attachment.name)
94
+ );
79
95
  const isAttachmentOmitted = correspondingContentReference?.options?.status?.kind === ChatResponseReferencePartStatusKind.Omitted;
80
96
  const isAttachmentPartialOrOmitted = isAttachmentOmitted || correspondingContentReference?.options?.status?.kind === ChatResponseReferencePartStatusKind.Partial;
81
97
  let widget;
82
- if (attachment.kind === 'tool' || attachment.kind === 'toolset') {
83
- widget = this.instantiationService.createInstance(ToolSetOrToolItemAttachmentWidget, attachment, undefined, { shouldFocusClearButton: false, supportsDeletion: false }, container, this._contextResourceLabels);
84
- }
85
- else if (isElementVariableEntry(attachment)) {
86
- widget = this.instantiationService.createInstance(ElementChatAttachmentWidget, attachment, undefined, { shouldFocusClearButton: false, supportsDeletion: false }, container, this._contextResourceLabels);
87
- }
88
- else if (isImageVariableEntry(attachment)) {
98
+ if (attachment.kind === "tool" || attachment.kind === "toolset") {
99
+ widget = this.instantiationService.createInstance(ToolSetOrToolItemAttachmentWidget, attachment, undefined, {
100
+ shouldFocusClearButton: false,
101
+ supportsDeletion: false
102
+ }, container, this._contextResourceLabels);
103
+ } else if (isElementVariableEntry(attachment)) {
104
+ widget = this.instantiationService.createInstance(ElementChatAttachmentWidget, attachment, undefined, {
105
+ shouldFocusClearButton: false,
106
+ supportsDeletion: false
107
+ }, container, this._contextResourceLabels);
108
+ } else if (isImageVariableEntry(attachment)) {
89
109
  attachment.omittedState = isAttachmentPartialOrOmitted ? OmittedState.Full : attachment.omittedState;
90
- widget = this.instantiationService.createInstance(ImageAttachmentWidget, resource, attachment, undefined, { shouldFocusClearButton: false, supportsDeletion: false }, container, this._contextResourceLabels);
91
- }
92
- else if (isPromptFileVariableEntry(attachment)) {
110
+ widget = this.instantiationService.createInstance(ImageAttachmentWidget, resource, attachment, undefined, {
111
+ shouldFocusClearButton: false,
112
+ supportsDeletion: false
113
+ }, container, this._contextResourceLabels);
114
+ } else if (isPromptFileVariableEntry(attachment)) {
93
115
  if (attachment.automaticallyAdded) {
94
116
  return;
95
117
  }
96
- widget = this.instantiationService.createInstance(PromptFileAttachmentWidget, attachment, undefined, { shouldFocusClearButton: false, supportsDeletion: false }, container, this._contextResourceLabels);
97
- }
98
- else if (isPromptTextVariableEntry(attachment)) {
118
+ widget = this.instantiationService.createInstance(PromptFileAttachmentWidget, attachment, undefined, {
119
+ shouldFocusClearButton: false,
120
+ supportsDeletion: false
121
+ }, container, this._contextResourceLabels);
122
+ } else if (isPromptTextVariableEntry(attachment)) {
99
123
  if (attachment.automaticallyAdded) {
100
124
  return;
101
125
  }
102
- widget = this.instantiationService.createInstance(PromptTextAttachmentWidget, attachment, undefined, { shouldFocusClearButton: false, supportsDeletion: false }, container, this._contextResourceLabels);
103
- }
104
- else if (resource && (attachment.kind === 'file' || attachment.kind === 'directory')) {
105
- widget = this.instantiationService.createInstance(FileAttachmentWidget, resource, range, attachment, correspondingContentReference, undefined, { shouldFocusClearButton: false, supportsDeletion: false }, container, this._contextResourceLabels);
106
- }
107
- else if (isTerminalVariableEntry(attachment)) {
108
- widget = this.instantiationService.createInstance(TerminalCommandAttachmentWidget, attachment, undefined, { shouldFocusClearButton: false, supportsDeletion: false }, container, this._contextResourceLabels);
109
- }
110
- else if (isPasteVariableEntry(attachment)) {
111
- widget = this.instantiationService.createInstance(PasteAttachmentWidget, attachment, undefined, { shouldFocusClearButton: false, supportsDeletion: false }, container, this._contextResourceLabels);
112
- }
113
- else if (resource && isNotebookOutputVariableEntry(attachment)) {
114
- widget = this.instantiationService.createInstance(NotebookCellOutputChatAttachmentWidget, resource, attachment, undefined, { shouldFocusClearButton: false, supportsDeletion: false }, container, this._contextResourceLabels);
115
- }
116
- else if (isSCMHistoryItemVariableEntry(attachment)) {
117
- widget = this.instantiationService.createInstance(SCMHistoryItemAttachmentWidget, attachment, undefined, { shouldFocusClearButton: false, supportsDeletion: false }, container, this._contextResourceLabels);
118
- }
119
- else if (isSCMHistoryItemChangeVariableEntry(attachment)) {
120
- widget = this.instantiationService.createInstance(SCMHistoryItemChangeAttachmentWidget, attachment, undefined, { shouldFocusClearButton: false, supportsDeletion: false }, container, this._contextResourceLabels);
121
- }
122
- else if (isSCMHistoryItemChangeRangeVariableEntry(attachment)) {
123
- widget = this.instantiationService.createInstance(SCMHistoryItemChangeRangeAttachmentWidget, attachment, undefined, { shouldFocusClearButton: false, supportsDeletion: false }, container, this._contextResourceLabels);
124
- }
125
- else if (isWorkspaceVariableEntry(attachment)) {
126
+ widget = this.instantiationService.createInstance(PromptTextAttachmentWidget, attachment, undefined, {
127
+ shouldFocusClearButton: false,
128
+ supportsDeletion: false
129
+ }, container, this._contextResourceLabels);
130
+ } else if (resource && (attachment.kind === "file" || attachment.kind === "directory")) {
131
+ widget = this.instantiationService.createInstance(
132
+ FileAttachmentWidget,
133
+ resource,
134
+ range,
135
+ attachment,
136
+ correspondingContentReference,
137
+ undefined,
138
+ {
139
+ shouldFocusClearButton: false,
140
+ supportsDeletion: false
141
+ },
142
+ container,
143
+ this._contextResourceLabels
144
+ );
145
+ } else if (isTerminalVariableEntry(attachment)) {
146
+ widget = this.instantiationService.createInstance(TerminalCommandAttachmentWidget, attachment, undefined, {
147
+ shouldFocusClearButton: false,
148
+ supportsDeletion: false
149
+ }, container, this._contextResourceLabels);
150
+ } else if (isPasteVariableEntry(attachment)) {
151
+ widget = this.instantiationService.createInstance(PasteAttachmentWidget, attachment, undefined, {
152
+ shouldFocusClearButton: false,
153
+ supportsDeletion: false
154
+ }, container, this._contextResourceLabels);
155
+ } else if (resource && isNotebookOutputVariableEntry(attachment)) {
156
+ widget = this.instantiationService.createInstance(NotebookCellOutputChatAttachmentWidget, resource, attachment, undefined, {
157
+ shouldFocusClearButton: false,
158
+ supportsDeletion: false
159
+ }, container, this._contextResourceLabels);
160
+ } else if (isSCMHistoryItemVariableEntry(attachment)) {
161
+ widget = this.instantiationService.createInstance(SCMHistoryItemAttachmentWidget, attachment, undefined, {
162
+ shouldFocusClearButton: false,
163
+ supportsDeletion: false
164
+ }, container, this._contextResourceLabels);
165
+ } else if (isSCMHistoryItemChangeVariableEntry(attachment)) {
166
+ widget = this.instantiationService.createInstance(SCMHistoryItemChangeAttachmentWidget, attachment, undefined, {
167
+ shouldFocusClearButton: false,
168
+ supportsDeletion: false
169
+ }, container, this._contextResourceLabels);
170
+ } else if (isSCMHistoryItemChangeRangeVariableEntry(attachment)) {
171
+ widget = this.instantiationService.createInstance(SCMHistoryItemChangeRangeAttachmentWidget, attachment, undefined, {
172
+ shouldFocusClearButton: false,
173
+ supportsDeletion: false
174
+ }, container, this._contextResourceLabels);
175
+ } else if (isWorkspaceVariableEntry(attachment)) {
126
176
  return;
127
- }
128
- else {
129
- widget = this.instantiationService.createInstance(DefaultChatAttachmentWidget, resource, range, attachment, correspondingContentReference, undefined, { shouldFocusClearButton: false, supportsDeletion: false }, container, this._contextResourceLabels);
177
+ } else {
178
+ widget = this.instantiationService.createInstance(
179
+ DefaultChatAttachmentWidget,
180
+ resource,
181
+ range,
182
+ attachment,
183
+ correspondingContentReference,
184
+ undefined,
185
+ {
186
+ shouldFocusClearButton: false,
187
+ supportsDeletion: false
188
+ },
189
+ container,
190
+ this._contextResourceLabels
191
+ );
130
192
  }
131
193
  let ariaLabel = null;
132
194
  if (isAttachmentPartialOrOmitted) {
133
- widget.element.classList.add('warning');
195
+ widget.element.classList.add("warning");
134
196
  }
135
197
  const description = correspondingContentReference?.options?.status?.description;
136
198
  if (isAttachmentPartialOrOmitted) {
137
- ariaLabel = `${ariaLabel}${description ? ` ${description}` : ''}`;
138
- for (const selector of ['.monaco-icon-suffix-container', '.monaco-icon-name-container']) {
199
+ ariaLabel = `${ariaLabel}${description ? ` ${description}` : ""}`;
200
+ for (const selector of [".monaco-icon-suffix-container", ".monaco-icon-name-container"]) {
139
201
  const element = widget.label.element.querySelector(selector);
140
202
  if (element) {
141
- element.classList.add('warning');
203
+ element.classList.add("warning");
142
204
  }
143
205
  }
144
206
  }
145
- this._register(addDisposableListener(widget.element, 'contextmenu', e => this.contextMenuHandler?.(attachment, e)));
207
+ this._register(addDisposableListener(
208
+ widget.element,
209
+ "contextmenu",
210
+ e => this.contextMenuHandler?.(attachment, e)
211
+ ));
146
212
  if (this.attachedContextDisposables.isDisposed) {
147
213
  widget.dispose();
148
214
  return;
@@ -153,8 +219,6 @@ let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Dispos
153
219
  this.attachedContextDisposables.add(widget);
154
220
  }
155
221
  };
156
- ChatAttachmentsContentPart = ( __decorate([
157
- ( __param(1, IInstantiationService))
158
- ], ChatAttachmentsContentPart));
222
+ ChatAttachmentsContentPart = ( __decorate([( __param(1, IInstantiationService))], ChatAttachmentsContentPart));
159
223
 
160
224
  export { ChatAttachmentsContentPart };
@@ -20,8 +20,6 @@ export declare class ChatCheckpointFileChangesSummaryContentPart extends Disposa
20
20
  readonly domNode: HTMLElement;
21
21
  readonly ELEMENT_HEIGHT = 22;
22
22
  readonly MAX_ITEMS_SHOWN = 6;
23
- private readonly _onDidChangeHeight;
24
- readonly onDidChangeHeight: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
25
23
  private readonly diffsBetweenRequests;
26
24
  private fileChangesDiffsObservable;
27
25
  private list;
@@ -3,7 +3,6 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
3
3
  import { $, addDisposableListener, EventHelper } 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 { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
6
- import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
7
6
  import { Iterable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iterator';
8
7
  import { Disposable, DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
9
8
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
@@ -27,7 +26,15 @@ import { ResourcePool } from './chatCollections.js';
27
26
  import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
28
27
 
29
28
  let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChangesSummaryContentPart extends Disposable {
30
- constructor(content, context, hoverService, chatService, editorService, editorGroupsService, instantiationService) {
29
+ constructor(
30
+ content,
31
+ context,
32
+ hoverService,
33
+ chatService,
34
+ editorService,
35
+ editorGroupsService,
36
+ instantiationService
37
+ ) {
31
38
  super();
32
39
  this.content = content;
33
40
  this.hoverService = hoverService;
@@ -37,24 +44,24 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
37
44
  this.instantiationService = instantiationService;
38
45
  this.ELEMENT_HEIGHT = 22;
39
46
  this.MAX_ITEMS_SHOWN = 6;
40
- this._onDidChangeHeight = this._register(( new Emitter()));
41
- this.onDidChangeHeight = this._onDidChangeHeight.event;
42
47
  this.diffsBetweenRequests = ( new Map());
43
48
  this.isCollapsed = true;
44
49
  this.fileChangesDiffsObservable = this.computeFileChangesDiffs(content);
45
- const headerDomNode = $('.checkpoint-file-changes-summary-header');
46
- this.domNode = $('.checkpoint-file-changes-summary', undefined, headerDomNode);
50
+ const headerDomNode = $(".checkpoint-file-changes-summary-header");
51
+ this.domNode = $(".checkpoint-file-changes-summary", undefined, headerDomNode);
47
52
  this.domNode.tabIndex = 0;
48
53
  this._register(this.renderHeader(headerDomNode));
49
54
  this._register(this.renderFilesList(this.domNode));
50
55
  }
51
- computeFileChangesDiffs({ requestId, sessionResource }) {
52
- return ( ( ( this.chatService.chatModels
53
- .map(
56
+ computeFileChangesDiffs(
57
+ {
58
+ requestId,
59
+ sessionResource
60
+ }
61
+ ) {
62
+ return ( ( ( this.chatService.chatModels.map(
54
63
  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()));
64
+ )).map(model => model?.editingSession?.getDiffsForFilesInRequest(requestId))).map((diffs, r) => diffs?.read(r) || Iterable.empty()));
58
65
  }
59
66
  getCachedEntryDiffBetweenRequests(editSession, uri, startRequestId, stopRequestId) {
60
67
  const key = `${uri}\0${startRequestId}\0${stopRequestId}`;
@@ -66,7 +73,7 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
66
73
  return observable;
67
74
  }
68
75
  renderHeader(container) {
69
- const viewListButtonContainer = container.appendChild($('.chat-file-changes-label'));
76
+ const viewListButtonContainer = container.appendChild($(".chat-file-changes-label"));
70
77
  const viewListButton = ( new ButtonWithIcon(viewListButtonContainer, {}));
71
78
  this._register(autorun(r => {
72
79
  const diffs = this.fileChangesDiffsObservable.read(r);
@@ -74,8 +81,7 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
74
81
  }));
75
82
  const setExpansionState = () => {
76
83
  viewListButton.icon = this.isCollapsed ? Codicon.chevronRight : Codicon.chevronDown;
77
- this.domNode.classList.toggle('chat-file-changes-collapsed', this.isCollapsed);
78
- this._onDidChangeHeight.fire();
84
+ this.domNode.classList.toggle("chat-file-changes-collapsed", this.isCollapsed);
79
85
  };
80
86
  setExpansionState();
81
87
  const disposables = ( new DisposableStore());
@@ -88,20 +94,20 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
88
94
  return toDisposable(() => disposables.dispose());
89
95
  }
90
96
  renderViewAllFileChangesButton(container) {
91
- const button = container.appendChild($('.chat-view-changes-icon'));
97
+ const button = container.appendChild($(".chat-view-changes-icon"));
92
98
  this.hoverService.setupDelayedHover(button, () => ({
93
- content: ( localize2(5612, 'View All File Changes'))
99
+ content: ( localize2(5831, "View All File Changes"))
94
100
  }));
95
101
  button.classList.add(...ThemeIcon.asClassNameArray(Codicon.diffMultiple));
96
- button.setAttribute('role', 'button');
102
+ button.setAttribute("role", "button");
97
103
  button.tabIndex = 0;
98
- return addDisposableListener(button, 'click', (e) => {
104
+ return addDisposableListener(button, "click", e => {
99
105
  const resources = ( this.fileChangesDiffsObservable.get().map(diff => ({
100
106
  originalUri: diff.originalURI,
101
107
  modifiedUri: diff.modifiedURI
102
108
  })));
103
109
  const source = ( URI.parse(`multi-diff-editor:${( ( new Date()).getMilliseconds().toString()) + ( Math.random().toString())}`));
104
- const input = this.instantiationService.createInstance(MultiDiffEditorInput, source, 'Checkpoint File Changes', ( resources.map(resource => {
110
+ const input = this.instantiationService.createInstance(MultiDiffEditorInput, source, "Checkpoint File Changes", ( resources.map(resource => {
105
111
  return ( new MultiDiffEditorItem(resource.originalUri, resource.modifiedUri, undefined));
106
112
  })), false);
107
113
  this.editorGroupsService.activeGroup.openEditor(input);
@@ -110,48 +116,50 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
110
116
  }
111
117
  renderFilesList(container) {
112
118
  const store = ( new DisposableStore());
113
- this.list = store.add(this.instantiationService.createInstance(CollapsibleChangesSummaryListPool)).get();
119
+ this.list = store.add(
120
+ this.instantiationService.createInstance(CollapsibleChangesSummaryListPool)
121
+ ).get();
114
122
  const listNode = this.list.getHTMLElement();
115
123
  container.appendChild(listNode.parentElement);
116
- store.add(this.list.onDidOpen((item) => {
124
+ store.add(this.list.onDidOpen(item => {
117
125
  const diff = item.element;
118
126
  if (!diff) {
119
127
  return;
120
128
  }
121
129
  const input = {
122
- original: { resource: diff.originalURI },
123
- modified: { resource: diff.modifiedURI },
124
- options: { preserveFocus: true }
130
+ original: {
131
+ resource: diff.originalURI
132
+ },
133
+ modified: {
134
+ resource: diff.modifiedURI
135
+ },
136
+ options: {
137
+ preserveFocus: true
138
+ }
125
139
  };
126
140
  this.editorService.openEditor(input);
127
141
  }));
128
142
  store.add(this.list.onContextMenu(e => {
129
143
  EventHelper.stop(e.browserEvent, true);
130
144
  }));
131
- store.add(autorun((r) => {
145
+ store.add(autorun(r => {
132
146
  const diffs = this.fileChangesDiffsObservable.read(r);
133
147
  const itemsShown = Math.min(diffs.length, this.MAX_ITEMS_SHOWN);
134
148
  const height = itemsShown * this.ELEMENT_HEIGHT;
135
149
  this.list.layout(height);
136
- listNode.style.height = height + 'px';
150
+ listNode.style.height = height + "px";
137
151
  this.list.splice(0, this.list.length, diffs);
138
152
  }));
139
153
  return store;
140
154
  }
141
155
  hasSameContent(other, followingContent, element) {
142
- return other.kind === 'changesSummary' && other.requestId === this.content.requestId;
156
+ return other.kind === "changesSummary" && other.requestId === this.content.requestId;
143
157
  }
144
158
  addDisposable(disposable) {
145
159
  this._register(disposable);
146
160
  }
147
161
  };
148
- ChatCheckpointFileChangesSummaryContentPart = ( __decorate([
149
- ( __param(2, IHoverService)),
150
- ( __param(3, IChatService)),
151
- ( __param(4, IEditorService)),
152
- ( __param(5, IEditorGroupsService)),
153
- ( __param(6, IInstantiationService))
154
- ], ChatCheckpointFileChangesSummaryContentPart));
162
+ ChatCheckpointFileChangesSummaryContentPart = ( __decorate([( __param(2, IHoverService)), ( __param(3, IChatService)), ( __param(4, IEditorService)), ( __param(5, IEditorGroupsService)), ( __param(6, IInstantiationService))], ChatCheckpointFileChangesSummaryContentPart));
155
163
  let CollapsibleChangesSummaryListPool = class CollapsibleChangesSummaryListPool extends Disposable {
156
164
  constructor(instantiationService, themeService) {
157
165
  super();
@@ -160,13 +168,19 @@ let CollapsibleChangesSummaryListPool = class CollapsibleChangesSummaryListPool
160
168
  this._resourcePool = this._register(( new ResourcePool(() => this.listFactory())));
161
169
  }
162
170
  listFactory() {
163
- const container = $('.chat-summary-list');
171
+ const container = $(".chat-summary-list");
164
172
  const store = ( new DisposableStore());
165
173
  store.add(createFileIconThemableTreeContainerScope(container, this.themeService));
166
- const resourceLabels = store.add(this.instantiationService.createInstance(ResourceLabels, { onDidChangeVisibility: () => Disposable.None }));
167
- const list = store.add(this.instantiationService.createInstance((WorkbenchList), 'ChatListRenderer', container, ( new CollapsibleChangesSummaryListDelegate()), [this.instantiationService.createInstance(CollapsibleChangesSummaryListRenderer, resourceLabels)], {
168
- alwaysConsumeMouseWheel: false
174
+ const resourceLabels = store.add(this.instantiationService.createInstance(ResourceLabels, {
175
+ onDidChangeVisibility: () => Disposable.None
169
176
  }));
177
+ const list = store.add(
178
+ this.instantiationService.createInstance(WorkbenchList, "ChatListRenderer", container, ( new CollapsibleChangesSummaryListDelegate()), [
179
+ this.instantiationService.createInstance(CollapsibleChangesSummaryListRenderer, resourceLabels)
180
+ ], {
181
+ alwaysConsumeMouseWheel: false
182
+ })
183
+ );
170
184
  return {
171
185
  list: list,
172
186
  dispose: () => {
@@ -178,10 +192,7 @@ let CollapsibleChangesSummaryListPool = class CollapsibleChangesSummaryListPool
178
192
  return this._resourcePool.get().list;
179
193
  }
180
194
  };
181
- CollapsibleChangesSummaryListPool = ( __decorate([
182
- ( __param(0, IInstantiationService)),
183
- ( __param(1, IThemeService))
184
- ], CollapsibleChangesSummaryListPool));
195
+ CollapsibleChangesSummaryListPool = ( __decorate([( __param(0, IInstantiationService)), ( __param(1, IThemeService))], CollapsibleChangesSummaryListPool));
185
196
  class CollapsibleChangesSummaryListDelegate {
186
197
  getHeight(element) {
187
198
  return 22;
@@ -191,15 +202,25 @@ class CollapsibleChangesSummaryListDelegate {
191
202
  }
192
203
  }
193
204
  class CollapsibleChangesSummaryListRenderer {
194
- static { this.TEMPLATE_ID = 'collapsibleChangesSummaryListRenderer'; }
195
- static { this.CHANGES_SUMMARY_CLASS_NAME = 'insertions-and-deletions'; }
205
+ static {
206
+ this.TEMPLATE_ID = "collapsibleChangesSummaryListRenderer";
207
+ }
208
+ static {
209
+ this.CHANGES_SUMMARY_CLASS_NAME = "insertions-and-deletions";
210
+ }
196
211
  constructor(labels) {
197
212
  this.labels = labels;
198
213
  this.templateId = CollapsibleChangesSummaryListRenderer.TEMPLATE_ID;
199
214
  }
200
215
  renderTemplate(container) {
201
- const label = this.labels.create(container, { supportHighlights: true, supportIcons: true });
202
- return { label, dispose: () => label.dispose() };
216
+ const label = this.labels.create(container, {
217
+ supportHighlights: true,
218
+ supportIcons: true
219
+ });
220
+ return {
221
+ label,
222
+ dispose: () => label.dispose()
223
+ };
203
224
  }
204
225
  renderElement(data, index, templateData) {
205
226
  const label = templateData.label;
@@ -14,11 +14,11 @@ let ChatCodeCitationContentPart = class ChatCodeCitationContentPart extends Disp
14
14
  this.editorService = editorService;
15
15
  this.telemetryService = telemetryService;
16
16
  const label = getCodeCitationsMessage(citations.citations);
17
- const elements = h('.chat-code-citation-message@root', [
18
- h('span.chat-code-citation-label@label'),
19
- h('.chat-code-citation-button-container@button'),
17
+ const elements = h(".chat-code-citation-message@root", [
18
+ h("span.chat-code-citation-label@label"),
19
+ h(".chat-code-citation-button-container@button")
20
20
  ]);
21
- elements.label.textContent = label + ' - ';
21
+ elements.label.textContent = label + " - ";
22
22
  const button = this._register(( new Button(elements.button, {
23
23
  buttonBackground: undefined,
24
24
  buttonBorder: undefined,
@@ -29,21 +29,22 @@ let ChatCodeCitationContentPart = class ChatCodeCitationContentPart extends Disp
29
29
  buttonSecondaryHoverBackground: undefined,
30
30
  buttonSeparator: undefined
31
31
  })));
32
- button.label = ( localize(5613, "View matches"));
32
+ button.label = ( localize(5832, "View matches"));
33
33
  this._register(button.onDidClick(() => {
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
- this.editorService.openEditor({ resource: undefined, contents: citationText, languageId: 'markdown' });
36
- this.telemetryService.publicLog2('openedChatCodeCitations');
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
+ this.editorService.openEditor({
36
+ resource: undefined,
37
+ contents: citationText,
38
+ languageId: "markdown"
39
+ });
40
+ this.telemetryService.publicLog2("openedChatCodeCitations");
37
41
  }));
38
42
  this.domNode = elements.root;
39
43
  }
40
44
  hasSameContent(other, followingContent, element) {
41
- return other.kind === 'codeCitations';
45
+ return other.kind === "codeCitations";
42
46
  }
43
47
  };
44
- ChatCodeCitationContentPart = ( __decorate([
45
- ( __param(2, IEditorService)),
46
- ( __param(3, ITelemetryService))
47
- ], ChatCodeCitationContentPart));
48
+ ChatCodeCitationContentPart = ( __decorate([( __param(2, IEditorService)), ( __param(3, ITelemetryService))], ChatCodeCitationContentPart));
48
49
 
49
50
  export { ChatCodeCitationContentPart };
@@ -1,5 +1,4 @@
1
1
  import { ButtonWithIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button";
2
- import { Emitter } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
3
2
  import { IMarkdownString, MarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
4
3
  import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
5
4
  import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
@@ -13,23 +12,24 @@ import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platfo
13
12
  import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
14
13
  export declare abstract class ChatCollapsibleContentPart extends Disposable implements IChatContentPart {
15
14
  private title;
16
- protected readonly context: IChatContentPartRenderContext;
17
15
  private readonly hoverMessage;
18
16
  private readonly hoverService;
19
17
  private _domNode?;
20
18
  private readonly _renderedTitleWithWidgets;
21
- protected readonly _onDidChangeHeight: Emitter<void>;
22
- readonly onDidChangeHeight: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
23
19
  protected readonly hasFollowingContent: boolean;
24
20
  protected _isExpanded: import("@codingame/monaco-vscode-api/vscode/vs/base/common/observable").ISettableObservable<boolean, void>;
25
21
  protected _collapseButton: ButtonWithIcon | undefined;
26
22
  private readonly _overrideIcon;
23
+ private _contentElement?;
24
+ private _contentInitialized;
27
25
  get icon(): ThemeIcon | undefined;
28
26
  set icon(value: ThemeIcon | undefined);
27
+ protected readonly element: ChatTreeItem;
29
28
  constructor(title: IMarkdownString | string, context: IChatContentPartRenderContext, hoverMessage: IMarkdownString | undefined, hoverService: IHoverService);
30
29
  get domNode(): HTMLElement;
31
30
  protected init(): HTMLElement;
32
31
  protected abstract initContent(): HTMLElement;
32
+ protected shouldInitEarly(): boolean;
33
33
  abstract hasSameContent(other: IChatRendererContent, followingContent: IChatRendererContent[], element: ChatTreeItem): boolean;
34
34
  private updateAriaLabel;
35
35
  addDisposable(disposable: IDisposable): void;