@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
@@ -8,7 +8,7 @@ import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/th
8
8
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
9
9
  import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
10
10
  import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
11
- import { AgentSessionProviders, getAgentSessionProviderIcon, getAgentSessionProviderName } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
11
+ import { getAgentSessionProvider, getAgentCanContinueIn, getAgentSessionProviderIcon, getAgentSessionProviderName } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
12
12
 
13
13
  let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
14
14
  constructor(contextMenuService, chatSessionsService) {
@@ -23,15 +23,15 @@ let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
23
23
  this.domNode = this.createSuggestNextWidget();
24
24
  }
25
25
  get height() {
26
- return this.domNode.style.display === 'none' ? 0 : this.domNode.offsetHeight;
26
+ return this.domNode.style.display === "none" ? 0 : this.domNode.offsetHeight;
27
27
  }
28
28
  getCurrentMode() {
29
29
  return this._currentMode;
30
30
  }
31
31
  createSuggestNextWidget() {
32
- const container = $('.chat-suggest-next-widget.chat-welcome-view-suggested-prompts');
33
- container.style.display = 'none';
34
- this.titleElement = append(container, $('.chat-welcome-view-suggested-prompts-title'));
32
+ const container = $(".chat-suggest-next-widget.chat-welcome-view-suggested-prompts");
33
+ container.style.display = "none";
34
+ this.titleElement = append(container, $(".chat-welcome-view-suggested-prompts-title"));
35
35
  this.promptsContainer = container;
36
36
  return container;
37
37
  }
@@ -42,8 +42,8 @@ let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
42
42
  return;
43
43
  }
44
44
  this._currentMode = mode;
45
- const modeName = mode.name.get() || mode.label.get() || ( localize(5666, 'current mode'));
46
- this.titleElement.textContent = ( localize(5667, 'Proceed from {0}', modeName));
45
+ const modeName = mode.name.get() || mode.label.get() || ( localize(5897, "current mode"));
46
+ this.titleElement.textContent = ( localize(5898, "Proceed from {0}", modeName));
47
47
  const childrenToRemove = [];
48
48
  for (let i = 1; i < this.promptsContainer.children.length; i++) {
49
49
  childrenToRemove.push(this.promptsContainer.children[i]);
@@ -60,87 +60,118 @@ let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
60
60
  const promptButton = this.createPromptButton(handoff);
61
61
  this.promptsContainer.appendChild(promptButton);
62
62
  }
63
- this.domNode.style.display = 'flex';
63
+ this.domNode.style.display = "flex";
64
64
  this._onDidChangeHeight.fire();
65
65
  }
66
66
  createPromptButton(handoff) {
67
67
  const disposables = ( new DisposableStore());
68
- const button = $('.chat-welcome-view-suggested-prompt');
69
- button.setAttribute('tabindex', '0');
70
- button.setAttribute('role', 'button');
71
- button.setAttribute('aria-label', ( localize(5668, '{0}', handoff.label)));
72
- const titleElement = append(button, $('.chat-welcome-view-suggested-prompt-title'));
68
+ const handoffLabel = handoff.label;
69
+ const getCurrentHandoff = () => {
70
+ const currentHandoffs = this._currentMode?.handOffs?.get();
71
+ return currentHandoffs?.find(h => h.label === handoffLabel) ?? handoff;
72
+ };
73
+ const button = $(".chat-welcome-view-suggested-prompt");
74
+ button.setAttribute("tabindex", "0");
75
+ button.setAttribute("role", "button");
76
+ button.setAttribute("aria-label", ( localize(5899, "{0}", handoff.label)));
77
+ const titleElement = append(button, $(".chat-welcome-view-suggested-prompt-title"));
73
78
  titleElement.textContent = handoff.label;
74
79
  const showContinueOn = handoff.showContinueOn ?? true;
75
80
  const contributions = this.chatSessionsService.getAllChatSessionContributions();
76
- const availableContributions = contributions.filter(c => c.canDelegate);
81
+ const availableContributions = contributions.filter(c => {
82
+ if (!c.canDelegate) {
83
+ return false;
84
+ }
85
+ const provider = getAgentSessionProvider(c.type);
86
+ return provider !== undefined && getAgentCanContinueIn(provider);
87
+ });
77
88
  if (showContinueOn && availableContributions.length > 0) {
78
- button.classList.add('chat-suggest-next-has-dropdown');
79
- const dropdownContainer = append(button, $('.chat-suggest-next-dropdown'));
80
- dropdownContainer.setAttribute('tabindex', '0');
81
- dropdownContainer.setAttribute('role', 'button');
82
- dropdownContainer.setAttribute('aria-label', ( localize(5669, 'More options for {0}', handoff.label)));
83
- dropdownContainer.setAttribute('aria-haspopup', 'true');
84
- const separator = append(dropdownContainer, $('.chat-suggest-next-separator'));
85
- separator.setAttribute('aria-hidden', 'true');
86
- const chevron = append(dropdownContainer, $('.codicon.codicon-chevron-down.dropdown-chevron'));
87
- chevron.setAttribute('aria-hidden', 'true');
89
+ button.classList.add("chat-suggest-next-has-dropdown");
90
+ const dropdownContainer = append(button, $(".chat-suggest-next-dropdown"));
91
+ dropdownContainer.setAttribute("tabindex", "0");
92
+ dropdownContainer.setAttribute("role", "button");
93
+ dropdownContainer.setAttribute("aria-label", ( localize(5900, "More options for {0}", handoff.label)));
94
+ dropdownContainer.setAttribute("aria-haspopup", "true");
95
+ const separator = append(dropdownContainer, $(".chat-suggest-next-separator"));
96
+ separator.setAttribute("aria-hidden", "true");
97
+ const chevron = append(dropdownContainer, $(".codicon.codicon-chevron-down.dropdown-chevron"));
98
+ chevron.setAttribute("aria-hidden", "true");
88
99
  const showContextMenu = (e, anchor) => {
89
100
  e.preventDefault();
90
101
  e.stopPropagation();
91
102
  const actions = ( availableContributions.map(contrib => {
92
- const provider = contrib.type === AgentSessionProviders.Background ? AgentSessionProviders.Background : AgentSessionProviders.Cloud;
103
+ const provider = getAgentSessionProvider(contrib.type);
93
104
  const icon = getAgentSessionProviderIcon(provider);
94
105
  const name = getAgentSessionProviderName(provider);
95
106
  return (new Action(
96
107
  contrib.type,
97
- localize(5670, "Continue in {0}", name),
108
+ localize(5901, "Continue in {0}", name),
98
109
  ThemeIcon.isThemeIcon(icon) ? ThemeIcon.asClassName(icon) : undefined,
99
110
  true,
100
111
  () => {
101
- this._onDidSelectPrompt.fire({ handoff, agentId: contrib.name });
112
+ const currentHandoff = getCurrentHandoff();
113
+ if (currentHandoff) {
114
+ this._onDidSelectPrompt.fire({
115
+ handoff: currentHandoff,
116
+ agentId: contrib.name
117
+ });
118
+ }
102
119
  }
103
120
  ));
104
121
  }));
105
122
  this.contextMenuService.showContextMenu({
106
123
  getAnchor: () => anchor || dropdownContainer,
107
124
  getActions: () => actions,
108
- autoSelectFirstItem: true,
125
+ autoSelectFirstItem: true
109
126
  });
110
127
  };
111
- disposables.add(addDisposableListener(dropdownContainer, 'click', (e) => {
128
+ disposables.add(addDisposableListener(dropdownContainer, "click", e => {
112
129
  showContextMenu(e, dropdownContainer);
113
130
  }));
114
- disposables.add(addDisposableListener(dropdownContainer, 'keydown', (e) => {
115
- if (e.key === 'Enter' || e.key === ' ') {
131
+ disposables.add(addDisposableListener(dropdownContainer, "keydown", e => {
132
+ if (e.key === "Enter" || e.key === " ") {
116
133
  showContextMenu(e, dropdownContainer);
117
134
  }
118
135
  }));
119
- disposables.add(addDisposableListener(button, 'click', (e) => {
120
- if (isHTMLElement(e.target) && e.target.closest('.chat-suggest-next-dropdown')) {
136
+ disposables.add(addDisposableListener(button, "click", e => {
137
+ if (isHTMLElement(e.target) && e.target.closest(".chat-suggest-next-dropdown")) {
121
138
  return;
122
139
  }
123
- this._onDidSelectPrompt.fire({ handoff });
140
+ const currentHandoff = getCurrentHandoff();
141
+ if (currentHandoff) {
142
+ this._onDidSelectPrompt.fire({
143
+ handoff: currentHandoff
144
+ });
145
+ }
124
146
  }));
125
- }
126
- else {
127
- disposables.add(addDisposableListener(button, 'click', () => {
128
- this._onDidSelectPrompt.fire({ handoff });
147
+ } else {
148
+ disposables.add(addDisposableListener(button, "click", () => {
149
+ const currentHandoff = getCurrentHandoff();
150
+ if (currentHandoff) {
151
+ this._onDidSelectPrompt.fire({
152
+ handoff: currentHandoff
153
+ });
154
+ }
129
155
  }));
130
156
  }
131
- disposables.add(addDisposableListener(button, 'keydown', (e) => {
132
- if (e.key === 'Enter' || e.key === ' ') {
157
+ disposables.add(addDisposableListener(button, "keydown", e => {
158
+ if (e.key === "Enter" || e.key === " ") {
133
159
  e.preventDefault();
134
- this._onDidSelectPrompt.fire({ handoff });
160
+ const currentHandoff = getCurrentHandoff();
161
+ if (currentHandoff) {
162
+ this._onDidSelectPrompt.fire({
163
+ handoff: currentHandoff
164
+ });
165
+ }
135
166
  }
136
167
  }));
137
168
  this.buttonDisposables.set(button, disposables);
138
169
  return button;
139
170
  }
140
171
  hide() {
141
- if (this.domNode.style.display !== 'none') {
172
+ if (this.domNode.style.display !== "none") {
142
173
  this._currentMode = undefined;
143
- this.domNode.style.display = 'none';
174
+ this.domNode.style.display = "none";
144
175
  this._onDidChangeHeight.fire();
145
176
  }
146
177
  }
@@ -152,9 +183,6 @@ let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
152
183
  super.dispose();
153
184
  }
154
185
  };
155
- ChatSuggestNextWidget = ( __decorate([
156
- ( __param(0, IContextMenuService)),
157
- ( __param(1, IChatSessionsService))
158
- ], ChatSuggestNextWidget));
186
+ ChatSuggestNextWidget = ( __decorate([( __param(0, IContextMenuService)), ( __param(1, IChatSessionsService))], ChatSuggestNextWidget));
159
187
 
160
188
  export { ChatSuggestNextWidget };
@@ -1,15 +1,13 @@
1
- import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
2
1
  import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
3
- import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
4
2
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
5
- import { IChatProgressRenderableResponseContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
3
+ import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
6
4
  import { IChatTask, IChatTaskSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
5
+ import { IChatProgressRenderableResponseContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
7
6
  import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
8
7
  import { CollapsibleListPool } from "./chatReferencesContentPart.js";
9
8
  export declare class ChatTaskContentPart extends Disposable implements IChatContentPart {
10
9
  private readonly task;
11
10
  readonly domNode: HTMLElement;
12
- readonly onDidChangeHeight: Event<void>;
13
11
  private isSettled;
14
12
  constructor(task: IChatTask | IChatTaskSerialized, contentReferencesListPool: CollapsibleListPool, chatContentMarkdownRenderer: IMarkdownRenderer, context: IChatContentPartRenderContext, instantiationService: IInstantiationService);
15
13
  hasSameContent(other: IChatProgressRenderableResponseContent): boolean;
@@ -1,49 +1,60 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
3
  import { $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
- import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
5
4
  import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
6
5
  import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
7
6
  import { ChatProgressContentPart } from './chatProgressContentPart.js';
8
7
  import { ChatCollapsibleListContentPart } from './chatReferencesContentPart.js';
9
8
 
10
9
  let ChatTaskContentPart = class ChatTaskContentPart extends Disposable {
11
- constructor(task, contentReferencesListPool, chatContentMarkdownRenderer, context, instantiationService) {
10
+ constructor(
11
+ task,
12
+ contentReferencesListPool,
13
+ chatContentMarkdownRenderer,
14
+ context,
15
+ instantiationService
16
+ ) {
12
17
  super();
13
18
  this.task = task;
14
19
  if (task.progress.length) {
15
20
  this.isSettled = true;
16
- const refsPart = this._register(instantiationService.createInstance(ChatCollapsibleListContentPart, task.progress, task.content.value, context, contentReferencesListPool, undefined));
17
- this.domNode = $('.chat-progress-task');
21
+ const refsPart = this._register(instantiationService.createInstance(
22
+ ChatCollapsibleListContentPart,
23
+ task.progress,
24
+ task.content.value,
25
+ context,
26
+ contentReferencesListPool,
27
+ undefined
28
+ ));
29
+ this.domNode = $(".chat-progress-task");
18
30
  this.domNode.appendChild(refsPart.domNode);
19
- this.onDidChangeHeight = refsPart.onDidChangeHeight;
20
- }
21
- else {
22
- const isSettled = task.kind === 'progressTask' ?
23
- task.isSettled() :
24
- true;
31
+ } else {
32
+ const isSettled = task.kind === "progressTask" ? task.isSettled() : true;
25
33
  this.isSettled = isSettled;
26
34
  const showSpinner = !isSettled && !context.element.isComplete;
27
- const progressPart = this._register(instantiationService.createInstance(ChatProgressContentPart, task, chatContentMarkdownRenderer, context, showSpinner, true, undefined, undefined));
35
+ const progressPart = this._register(instantiationService.createInstance(
36
+ ChatProgressContentPart,
37
+ task,
38
+ chatContentMarkdownRenderer,
39
+ context,
40
+ showSpinner,
41
+ true,
42
+ undefined,
43
+ undefined
44
+ ));
28
45
  this.domNode = progressPart.domNode;
29
- this.onDidChangeHeight = Event.None;
30
46
  }
31
47
  }
32
48
  hasSameContent(other) {
33
- if (other.kind === 'progressTask' &&
34
- this.task.kind === 'progressTask' &&
35
- other.isSettled() !== this.isSettled) {
49
+ if (other.kind === "progressTask" && this.task.kind === "progressTask" && other.isSettled() !== this.isSettled) {
36
50
  return false;
37
51
  }
38
- return other.kind === this.task.kind &&
39
- other.progress.length === this.task.progress.length;
52
+ return other.kind === this.task.kind && other.progress.length === this.task.progress.length;
40
53
  }
41
54
  addDisposable(disposable) {
42
55
  this._register(disposable);
43
56
  }
44
57
  };
45
- ChatTaskContentPart = ( __decorate([
46
- ( __param(4, IInstantiationService))
47
- ], ChatTaskContentPart));
58
+ ChatTaskContentPart = ( __decorate([( __param(4, IInstantiationService))], ChatTaskContentPart));
48
59
 
49
60
  export { ChatTaskContentPart };
@@ -1,4 +1,3 @@
1
- import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
2
1
  import { Disposable, IDisposable, IReference } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
3
2
  import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service";
4
3
  import { IResolvedTextEditorModel } from "@codingame/monaco-vscode-model-service-override/vscode/vs/editor/common/services/resolverService";
@@ -14,8 +13,6 @@ export declare class ChatTextEditContentPart extends Disposable implements IChat
14
13
  private readonly codeCompareModelService;
15
14
  readonly domNode: HTMLElement;
16
15
  private readonly comparePart;
17
- private readonly _onDidChangeHeight;
18
- readonly onDidChangeHeight: Event<void>;
19
16
  constructor(chatTextEdit: IChatTextEditGroup, context: IChatContentPartRenderContext, rendererOptions: IChatListItemRendererOptions, diffEditorPool: DiffEditorPool, currentWidth: number, codeCompareModelService: ICodeCompareModelService);
20
17
  layout(width: number): void;
21
18
  hasSameContent(other: IChatProgressRenderableResponseContent): boolean;
@@ -2,7 +2,7 @@
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
3
  import { $ as $$1 } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
4
  import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
5
- import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
5
+ import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
6
6
  import { Disposable, toDisposable, RefCountedDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
7
7
  import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
8
8
  import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
@@ -22,26 +22,29 @@ import { ICodeCompareModelService } from '@codingame/monaco-vscode-api/vscode/vs
22
22
 
23
23
  const $ = $$1;
24
24
  let ChatTextEditContentPart = class ChatTextEditContentPart extends Disposable {
25
- constructor(chatTextEdit, context, rendererOptions, diffEditorPool, currentWidth, codeCompareModelService) {
25
+ constructor(
26
+ chatTextEdit,
27
+ context,
28
+ rendererOptions,
29
+ diffEditorPool,
30
+ currentWidth,
31
+ codeCompareModelService
32
+ ) {
26
33
  super();
27
34
  this.codeCompareModelService = codeCompareModelService;
28
- this._onDidChangeHeight = this._register(( new Emitter()));
29
- this.onDidChangeHeight = this._onDidChangeHeight.event;
30
35
  const element = context.element;
31
36
  assertType(isResponseVM(element));
32
37
  if (rendererOptions.renderTextEditsAsSummary?.(chatTextEdit.uri)) {
33
- if (element.response.value.every(item => item.kind === 'textEditGroup')) {
34
- this.domNode = $('.interactive-edits-summary', undefined, !element.isComplete
35
- ? ''
36
- : element.isCanceled
37
- ? ( localize(5671, "Making changes was aborted."))
38
- : ( localize(5672, "Made changes.")));
38
+ if (element.response.value.every(item => item.kind === "textEditGroup")) {
39
+ this.domNode = $(
40
+ ".interactive-edits-summary",
41
+ undefined,
42
+ !element.isComplete ? "" : element.isCanceled ? ( localize(5902, "Making changes was aborted.")) : ( localize(5903, "Made changes."))
43
+ );
44
+ } else {
45
+ this.domNode = $("div");
39
46
  }
40
- else {
41
- this.domNode = $('div');
42
- }
43
- }
44
- else {
47
+ } else {
45
48
  const cts = ( new CancellationTokenSource());
46
49
  let isDisposed = false;
47
50
  this._register(toDisposable(() => {
@@ -49,9 +52,6 @@ let ChatTextEditContentPart = class ChatTextEditContentPart extends Disposable {
49
52
  cts.dispose(true);
50
53
  }));
51
54
  this.comparePart = this._register(diffEditorPool.get());
52
- this._register(this.comparePart.object.onDidChangeContentHeight(() => {
53
- this._onDidChangeHeight.fire();
54
- }));
55
55
  const data = {
56
56
  element,
57
57
  edit: chatTextEdit,
@@ -77,15 +77,13 @@ let ChatTextEditContentPart = class ChatTextEditContentPart extends Disposable {
77
77
  this.comparePart?.object.layout(width);
78
78
  }
79
79
  hasSameContent(other) {
80
- return other.kind === 'textEditGroup';
80
+ return other.kind === "textEditGroup";
81
81
  }
82
82
  addDisposable(disposable) {
83
83
  this._register(disposable);
84
84
  }
85
85
  };
86
- ChatTextEditContentPart = ( __decorate([
87
- ( __param(5, ICodeCompareModelService))
88
- ], ChatTextEditContentPart));
86
+ ChatTextEditContentPart = ( __decorate([( __param(5, ICodeCompareModelService))], ChatTextEditContentPart));
89
87
  let CodeCompareModelService = class CodeCompareModelService {
90
88
  constructor(textModelService, modelService, chatService) {
91
89
  this.textModelService = textModelService;
@@ -94,22 +92,34 @@ let CodeCompareModelService = class CodeCompareModelService {
94
92
  }
95
93
  async createModel(element, chatTextEdit) {
96
94
  const original = await this.textModelService.createModelReference(chatTextEdit.uri);
97
- const modified = await this.textModelService.createModelReference((this.modelService.createModel(createTextBufferFactoryFromSnapshot(original.object.textEditorModel.createSnapshot()), { languageId: original.object.textEditorModel.getLanguageId(), onDidChange: Event.None }, ( URI.from(
98
- { scheme: Schemas.vscodeChatCodeBlock, path: chatTextEdit.uri.path, query: generateUuid() }
99
- )), false)).uri);
95
+ const modified = await this.textModelService.createModelReference((this.modelService.createModel(
96
+ createTextBufferFactoryFromSnapshot(original.object.textEditorModel.createSnapshot()),
97
+ {
98
+ languageId: original.object.textEditorModel.getLanguageId(),
99
+ onDidChange: Event.None
100
+ },
101
+ ( URI.from({
102
+ scheme: Schemas.vscodeChatCodeBlock,
103
+ path: chatTextEdit.uri.path,
104
+ query: generateUuid()
105
+ })),
106
+ false
107
+ )).uri);
100
108
  const d = ( new RefCountedDisposable(toDisposable(() => {
101
109
  original.dispose();
102
110
  modified.dispose();
103
111
  })));
104
- let originalSha1 = '';
112
+ let originalSha1 = "";
105
113
  if (chatTextEdit.state) {
106
114
  originalSha1 = chatTextEdit.state.sha1;
107
- }
108
- else {
115
+ } else {
109
116
  const sha1 = ( new DefaultModelSHA1Computer());
110
117
  if (sha1.canComputeSHA1(original.object.textEditorModel)) {
111
118
  originalSha1 = sha1.computeSHA1(original.object.textEditorModel);
112
- chatTextEdit.state = { sha1: originalSha1, applied: 0 };
119
+ chatTextEdit.state = {
120
+ sha1: originalSha1,
121
+ applied: 0
122
+ };
113
123
  }
114
124
  }
115
125
  const chatModel = this.chatService.getSession(element.sessionResource);
@@ -119,7 +129,7 @@ let CodeCompareModelService = class CodeCompareModelService {
119
129
  continue;
120
130
  }
121
131
  for (const item of request.response.response.value) {
122
- if (item.kind !== 'textEditGroup' || item.state?.applied || !isEqual(item.uri, chatTextEdit.uri)) {
132
+ if (item.kind !== "textEditGroup" || item.state?.applied || !isEqual(item.uri, chatTextEdit.uri)) {
123
133
  continue;
124
134
  }
125
135
  for (const group of item.edits) {
@@ -144,14 +154,10 @@ let CodeCompareModelService = class CodeCompareModelService {
144
154
  },
145
155
  dispose() {
146
156
  d.release();
147
- },
157
+ }
148
158
  };
149
159
  }
150
160
  };
151
- CodeCompareModelService = ( __decorate([
152
- ( __param(0, ITextModelService)),
153
- ( __param(1, IModelService)),
154
- ( __param(2, IChatService))
155
- ], CodeCompareModelService));
161
+ CodeCompareModelService = ( __decorate([( __param(0, ITextModelService)), ( __param(1, IModelService)), ( __param(2, IChatService))], CodeCompareModelService));
156
162
 
157
163
  export { ChatTextEditContentPart, CodeCompareModelService };
@@ -1,4 +1,4 @@
1
- import { IChatThinkingPart, IChatToolInvocation, IChatToolInvocationSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
1
+ import { IChatMarkdownContent, IChatThinkingPart, IChatToolInvocation, IChatToolInvocationSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
2
2
  import { IChatContentPartRenderContext, IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
3
3
  import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
4
4
  import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
@@ -6,17 +6,23 @@ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
6
6
  import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
7
7
  import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
8
8
  import { ChatCollapsibleContentPart } from "./chatCollapsibleContentPart.js";
9
+ import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
10
+ import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
9
11
  import { IChatMarkdownAnchorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownAnchorService.service";
10
12
  import { ILanguageModelsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels.service";
11
13
  import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
14
+ export declare function getToolInvocationIcon(toolId: string): ThemeIcon;
15
+ export declare function createThinkingIcon(icon: ThemeIcon): HTMLElement;
12
16
  export declare class ChatThinkingContentPart extends ChatCollapsibleContentPart implements IChatContentPart {
13
17
  private readonly chatContentMarkdownRenderer;
18
+ private streamingCompleted;
14
19
  private readonly instantiationService;
15
20
  private readonly configurationService;
16
21
  private readonly chatMarkdownAnchorService;
17
22
  private readonly languageModelsService;
18
23
  readonly codeblocks: undefined;
19
24
  readonly codeblocksPartId: undefined;
25
+ private readonly _onDidChangeHeight;
20
26
  private id;
21
27
  private content;
22
28
  private currentThinkingValue;
@@ -26,18 +32,42 @@ export declare class ChatThinkingContentPart extends ChatCollapsibleContentPart
26
32
  private markdownResult;
27
33
  private wrapper;
28
34
  private fixedScrollingMode;
35
+ private autoScrollEnabled;
36
+ private scrollableElement;
29
37
  private lastExtractedTitle;
30
38
  private extractedTitles;
31
39
  private toolInvocationCount;
32
- private streamingCompleted;
40
+ private appendedItemCount;
33
41
  private isActive;
34
42
  private toolInvocations;
35
- private singleToolItemInfo;
36
- constructor(content: IChatThinkingPart, context: IChatContentPartRenderContext, chatContentMarkdownRenderer: IMarkdownRenderer, instantiationService: IInstantiationService, configurationService: IConfigurationService, chatMarkdownAnchorService: IChatMarkdownAnchorService, languageModelsService: ILanguageModelsService, hoverService: IHoverService);
43
+ private singleItemInfo;
44
+ private lazyItems;
45
+ private hasExpandedOnce;
46
+ private workingSpinnerElement;
47
+ private workingSpinnerLabel;
48
+ private availableMessagesByCategory;
49
+ private readonly toolWrappersByCallId;
50
+ private readonly toolDisposables;
51
+ private pendingRemovals;
52
+ private pendingScrollDisposable;
53
+ private mutationObserverDisposable;
54
+ private isUpdatingDimensions;
55
+ private getRandomWorkingMessage;
56
+ constructor(content: IChatThinkingPart, context: IChatContentPartRenderContext, chatContentMarkdownRenderer: IMarkdownRenderer, streamingCompleted: boolean, instantiationService: IInstantiationService, configurationService: IConfigurationService, chatMarkdownAnchorService: IChatMarkdownAnchorService, languageModelsService: ILanguageModelsService, hoverService: IHoverService);
57
+ protected shouldInitEarly(): boolean;
37
58
  protected initContent(): HTMLElement;
59
+ private handleScroll;
60
+ private syncDimensionsAndScheduleScroll;
61
+ private updateScrollDimensions;
62
+ private scrollToBottom;
63
+ /**
64
+ * updates scroll dimensions when streaming is complete.
65
+ */
66
+ private updateScrollDimensionsForCompletion;
38
67
  private renderMarkdown;
39
68
  private setDropdownClickable;
40
69
  private updateDropdownClickability;
70
+ private appendToWrapper;
41
71
  resetId(): void;
42
72
  collapseContent(): void;
43
73
  updateThinking(content: IChatThinkingPart): void;
@@ -46,10 +76,28 @@ export declare class ChatThinkingContentPart extends ChatCollapsibleContentPart
46
76
  finalizeTitleIfDefault(): void;
47
77
  private setGeneratedTitleOnToolInvocations;
48
78
  private generateTitleViaLLM;
49
- private restoreSingleToolToOriginalPosition;
79
+ private restoreSingleItemToOriginalPosition;
50
80
  private setFallbackTitle;
51
- appendItem(content: HTMLElement, toolInvocationId?: string, toolInvocation?: IChatToolInvocation | IChatToolInvocationSerialized, originalParent?: HTMLElement): void;
52
- setupThinkingContainer(content: IChatThinkingPart, context: IChatContentPartRenderContext): void;
81
+ /**
82
+ * Appends a tool invocation or content item to the thinking group.
83
+ * The factory is called lazily - only when the thinking section is expanded.
84
+ * If already expanded, the factory is called immediately.
85
+ */
86
+ appendItem(factory: () => {
87
+ domNode: HTMLElement;
88
+ disposable?: IDisposable;
89
+ }, toolInvocationId?: string, toolInvocationOrMarkdown?: IChatToolInvocation | IChatToolInvocationSerialized | IChatMarkdownContent, originalParent?: HTMLElement): void;
90
+ /**
91
+ * removes/re-establishes a lazy item from the thinking container
92
+ * this is needed so we can check if there are confirmations still needed
93
+ */
94
+ removeLazyItem(toolInvocationId: string): boolean;
95
+ private processPendingRemovals;
96
+ private removeStreamingToolEntry;
97
+ private trackToolMetadata;
98
+ private appendItemToDOM;
99
+ private materializeLazyItem;
100
+ setupThinkingContainer(content: IChatThinkingPart): void;
53
101
  protected setTitle(title: string, omitPrefix?: boolean): void;
54
102
  hasSameContent(other: IChatRendererContent, _followingContent: IChatRendererContent[], _element: ChatTreeItem): boolean;
55
103
  dispose(): void;