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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -3,8 +3,6 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
3
3
  import { $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
4
  import { Separator } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
5
5
  import { getExtensionForMimeType } from '@codingame/monaco-vscode-api/vscode/vs/base/common/mime';
6
- import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service';
7
- import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service';
8
6
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
9
7
  import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
10
8
  import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
@@ -23,41 +21,60 @@ let ChatToolPostExecuteConfirmationPart = class ChatToolPostExecuteConfirmationP
23
21
  get codeblocks() {
24
22
  return this._codeblocks;
25
23
  }
26
- constructor(toolInvocation, context, instantiationService, keybindingService, modelService, languageService, contextKeyService, chatWidgetService, languageModelToolsService, confirmationService) {
27
- super(toolInvocation, context, instantiationService, keybindingService, contextKeyService, chatWidgetService, languageModelToolsService);
28
- this.modelService = modelService;
29
- this.languageService = languageService;
24
+ constructor(
25
+ toolInvocation,
26
+ context,
27
+ instantiationService,
28
+ keybindingService,
29
+ contextKeyService,
30
+ chatWidgetService,
31
+ languageModelToolsService,
32
+ confirmationService
33
+ ) {
34
+ super(
35
+ toolInvocation,
36
+ context,
37
+ instantiationService,
38
+ keybindingService,
39
+ contextKeyService,
40
+ chatWidgetService,
41
+ languageModelToolsService
42
+ );
30
43
  this.confirmationService = confirmationService;
31
44
  this._codeblocks = [];
32
45
  const subtitle = toolInvocation.pastTenseMessage || toolInvocation.invocationMessage;
33
46
  this.render({
34
47
  allowActionId: AcceptToolPostConfirmationActionId,
35
48
  skipActionId: SkipToolPostConfirmationActionId,
36
- allowLabel: ( localize(5760, "Allow")),
37
- skipLabel: ( localize(5761, 'Skip Results')),
38
- partType: 'chatToolPostConfirmation',
39
- subtitle: typeof subtitle === 'string' ? subtitle : subtitle?.value,
49
+ allowLabel: ( localize(6016, "Allow")),
50
+ skipLabel: ( localize(6017, "Skip Results")),
51
+ partType: "chatToolPostConfirmation",
52
+ subtitle: typeof subtitle === "string" ? subtitle : subtitle?.value
40
53
  });
41
54
  }
42
55
  createContentElement() {
43
- if (this.toolInvocation.kind !== 'toolInvocation') {
44
- throw ( new Error('post-approval not supported for serialized data'));
56
+ if (this.toolInvocation.kind !== "toolInvocation") {
57
+ throw ( new Error("post-approval not supported for serialized data"));
45
58
  }
46
59
  const state = this.toolInvocation.state.get();
47
60
  if (state.type !== IChatToolInvocation.StateKind.WaitingForPostApproval) {
48
- throw ( new Error('Tool invocation is not waiting for post-approval'));
61
+ throw ( new Error("Tool invocation is not waiting for post-approval"));
49
62
  }
50
63
  return this.createResultsDisplay(this.toolInvocation, state.contentForModel);
51
64
  }
52
65
  getTitle() {
53
- return localize(5762, "Approve Tool Result");
66
+ return localize(6018, "Approve Tool Result");
54
67
  }
55
68
  additionalPrimaryActions() {
56
69
  const actions = super.additionalPrimaryActions();
70
+ const state = this.toolInvocation.state.get();
71
+ if (state.type !== IChatToolInvocation.StateKind.WaitingForPostApproval) {
72
+ return actions;
73
+ }
57
74
  const confirmActions = this.confirmationService.getPostConfirmActions({
58
75
  toolId: this.toolInvocation.toolId,
59
76
  source: this.toolInvocation.source,
60
- parameters: this.toolInvocation.parameters
77
+ parameters: state.parameters
61
78
  });
62
79
  for (const action of confirmActions) {
63
80
  if (action.divider) {
@@ -69,7 +86,9 @@ let ChatToolPostExecuteConfirmationPart = class ChatToolPostExecuteConfirmationP
69
86
  data: async () => {
70
87
  const shouldConfirm = await action.select();
71
88
  if (shouldConfirm) {
72
- this.confirmWith(this.toolInvocation, { type: ToolConfirmKind.UserAction });
89
+ this.confirmWith(this.toolInvocation, {
90
+ type: ToolConfirmKind.UserAction
91
+ });
73
92
  }
74
93
  }
75
94
  });
@@ -77,124 +96,109 @@ let ChatToolPostExecuteConfirmationPart = class ChatToolPostExecuteConfirmationP
77
96
  return actions;
78
97
  }
79
98
  createResultsDisplay(toolInvocation, contentForModel) {
80
- const container = $('.tool-postconfirm-display');
99
+ const container = $(".tool-postconfirm-display");
81
100
  if (!contentForModel || contentForModel.length === 0) {
82
- container.textContent = ( localize(5763, 'No results to display'));
101
+ container.textContent = ( localize(6019, "No results to display"));
83
102
  return container;
84
103
  }
85
104
  const parts = [];
86
105
  for (const [i, part] of contentForModel.entries()) {
87
- if (part.kind === 'text') {
88
- const model = this._register(this.modelService.createModel(part.value, this.languageService.createById('plaintext'), undefined, true));
106
+ if (part.kind === "text") {
89
107
  parts.push({
90
- kind: 'code',
108
+ kind: "code",
91
109
  title: part.title,
92
- textModel: model,
93
- languageId: model.getLanguageId(),
110
+ data: part.value,
111
+ languageId: "plaintext",
112
+ codeBlockIndex: i,
113
+ ownerMarkdownPartId: this.codeblocksPartId,
94
114
  options: {
95
115
  hideToolbar: true,
96
116
  reserveWidth: 19,
97
117
  maxHeightInLines: 13,
98
118
  verticalPadding: 5,
99
- editorOptions: { wordWrap: 'on', readOnly: true }
100
- },
101
- codeBlockInfo: {
102
- codeBlockIndex: i,
103
- codemapperUri: undefined,
104
- elementId: this.context.element.id,
105
- focus: () => { },
106
- ownerMarkdownPartId: this.codeblocksPartId,
107
- uri: model.uri,
108
- chatSessionResource: this.context.element.sessionResource,
109
- uriPromise: Promise.resolve(model.uri)
119
+ editorOptions: {
120
+ wordWrap: "on",
121
+ readOnly: true
122
+ }
110
123
  }
111
124
  });
112
- }
113
- else if (part.kind === 'promptTsx') {
125
+ } else if (part.kind === "promptTsx") {
114
126
  const stringified = stringifyPromptTsxPart(part);
115
- const model = this._register(this.modelService.createModel(stringified, this.languageService.createById('json'), undefined, true));
116
127
  parts.push({
117
- kind: 'code',
118
- textModel: model,
119
- languageId: model.getLanguageId(),
128
+ kind: "code",
129
+ data: stringified,
130
+ languageId: "json",
131
+ codeBlockIndex: i,
132
+ ownerMarkdownPartId: this.codeblocksPartId,
120
133
  options: {
121
134
  hideToolbar: true,
122
135
  reserveWidth: 19,
123
136
  maxHeightInLines: 13,
124
137
  verticalPadding: 5,
125
- editorOptions: { wordWrap: 'on', readOnly: true }
126
- },
127
- codeBlockInfo: {
128
- codeBlockIndex: i,
129
- codemapperUri: undefined,
130
- elementId: this.context.element.id,
131
- focus: () => { },
132
- ownerMarkdownPartId: this.codeblocksPartId,
133
- uri: model.uri,
134
- chatSessionResource: this.context.element.sessionResource,
135
- uriPromise: Promise.resolve(model.uri)
138
+ editorOptions: {
139
+ wordWrap: "on",
140
+ readOnly: true
141
+ }
136
142
  }
137
143
  });
138
- }
139
- else if (part.kind === 'data') {
144
+ } else if (part.kind === "data") {
140
145
  const mimeType = part.value.mimeType;
141
146
  const data = part.value.data;
142
- if (mimeType?.startsWith('image/')) {
143
- const permalinkBasename = getExtensionForMimeType(mimeType) ? `image${getExtensionForMimeType(mimeType)}` : 'image.bin';
144
- const permalinkUri = ChatResponseResource.createUri(this.context.element.sessionResource, toolInvocation.toolCallId, i, permalinkBasename);
145
- parts.push({ kind: 'data', value: data.buffer, mimeType, uri: permalinkUri, audience: part.audience });
146
- }
147
- else {
148
- const decoder = ( new TextDecoder('utf-8', { fatal: true }));
147
+ if (mimeType?.startsWith("image/")) {
148
+ const permalinkBasename = getExtensionForMimeType(mimeType) ? `image${getExtensionForMimeType(mimeType)}` : "image.bin";
149
+ const permalinkUri = ChatResponseResource.createUri(
150
+ this.context.element.sessionResource,
151
+ toolInvocation.toolCallId,
152
+ i,
153
+ permalinkBasename
154
+ );
155
+ parts.push({
156
+ kind: "data",
157
+ value: data.buffer,
158
+ mimeType,
159
+ uri: permalinkUri,
160
+ audience: part.audience
161
+ });
162
+ } else {
163
+ const decoder = ( new TextDecoder("utf-8", {
164
+ fatal: true
165
+ }));
149
166
  try {
150
167
  const text = decoder.decode(data.buffer);
151
- const model = this._register(this.modelService.createModel(text, this.languageService.createById('plaintext'), undefined, true));
152
168
  parts.push({
153
- kind: 'code',
154
- textModel: model,
155
- languageId: model.getLanguageId(),
169
+ kind: "code",
170
+ data: text,
171
+ languageId: "plaintext",
172
+ codeBlockIndex: i,
173
+ ownerMarkdownPartId: this.codeblocksPartId,
156
174
  options: {
157
175
  hideToolbar: true,
158
176
  reserveWidth: 19,
159
177
  maxHeightInLines: 13,
160
178
  verticalPadding: 5,
161
- editorOptions: { wordWrap: 'on', readOnly: true }
162
- },
163
- codeBlockInfo: {
164
- codeBlockIndex: i,
165
- codemapperUri: undefined,
166
- elementId: this.context.element.id,
167
- focus: () => { },
168
- ownerMarkdownPartId: this.codeblocksPartId,
169
- uri: model.uri,
170
- chatSessionResource: this.context.element.sessionResource,
171
- uriPromise: Promise.resolve(model.uri)
179
+ editorOptions: {
180
+ wordWrap: "on",
181
+ readOnly: true
182
+ }
172
183
  }
173
184
  });
174
- }
175
- catch {
185
+ } catch {
176
186
  const base64 = ( data.toString());
177
- const model = this._register(this.modelService.createModel(base64, this.languageService.createById('plaintext'), undefined, true));
178
187
  parts.push({
179
- kind: 'code',
180
- textModel: model,
181
- languageId: model.getLanguageId(),
188
+ kind: "code",
189
+ data: base64,
190
+ languageId: "plaintext",
191
+ codeBlockIndex: i,
192
+ ownerMarkdownPartId: this.codeblocksPartId,
182
193
  options: {
183
194
  hideToolbar: true,
184
195
  reserveWidth: 19,
185
196
  maxHeightInLines: 13,
186
197
  verticalPadding: 5,
187
- editorOptions: { wordWrap: 'on', readOnly: true }
188
- },
189
- codeBlockInfo: {
190
- codeBlockIndex: i,
191
- codemapperUri: undefined,
192
- elementId: this.context.element.id,
193
- focus: () => { },
194
- ownerMarkdownPartId: this.codeblocksPartId,
195
- uri: model.uri,
196
- chatSessionResource: this.context.element.sessionResource,
197
- uriPromise: Promise.resolve(model.uri)
198
+ editorOptions: {
199
+ wordWrap: "on",
200
+ readOnly: true
201
+ }
198
202
  }
199
203
  });
200
204
  }
@@ -202,25 +206,17 @@ let ChatToolPostExecuteConfirmationPart = class ChatToolPostExecuteConfirmationP
202
206
  }
203
207
  }
204
208
  if (parts.length > 0) {
205
- const outputSubPart = this._register(this.instantiationService.createInstance(ChatToolOutputContentSubPart, this.context, parts));
209
+ const outputSubPart = this._register(
210
+ this.instantiationService.createInstance(ChatToolOutputContentSubPart, this.context, parts)
211
+ );
206
212
  this._codeblocks.push(...outputSubPart.codeblocks);
207
- this._register(outputSubPart.onDidChangeHeight(() => this._onDidChangeHeight.fire()));
208
- outputSubPart.domNode.classList.add('tool-postconfirm-display');
213
+ outputSubPart.domNode.classList.add("tool-postconfirm-display");
209
214
  return outputSubPart.domNode;
210
215
  }
211
- container.textContent = ( localize(5764, 'No displayable results'));
216
+ container.textContent = ( localize(6020, "No displayable results"));
212
217
  return container;
213
218
  }
214
219
  };
215
- ChatToolPostExecuteConfirmationPart = ( __decorate([
216
- ( __param(2, IInstantiationService)),
217
- ( __param(3, IKeybindingService)),
218
- ( __param(4, IModelService)),
219
- ( __param(5, ILanguageService)),
220
- ( __param(6, IContextKeyService)),
221
- ( __param(7, IChatWidgetService)),
222
- ( __param(8, ILanguageModelToolsService)),
223
- ( __param(9, ILanguageModelToolsConfirmationService))
224
- ], ChatToolPostExecuteConfirmationPart));
220
+ ChatToolPostExecuteConfirmationPart = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IKeybindingService)), ( __param(4, IContextKeyService)), ( __param(5, IChatWidgetService)), ( __param(6, ILanguageModelToolsService)), ( __param(7, ILanguageModelToolsConfirmationService))], ChatToolPostExecuteConfirmationPart));
225
221
 
226
222
  export { ChatToolPostExecuteConfirmationPart };
@@ -1,8 +1,10 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
- import { createElement, reset } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
3
+ import { createElement, clearNode, reset } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
+ import { renderAsPlaintext } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer';
4
5
  import { status } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/aria/aria';
5
6
  import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
7
+ import { stripIcons } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iconLabels';
6
8
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
7
9
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
8
10
  import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
@@ -13,7 +15,14 @@ import { BaseChatToolInvocationSubPart } from './chatToolInvocationSubPart.js';
13
15
  import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
14
16
 
15
17
  let ChatToolProgressSubPart = class ChatToolProgressSubPart extends BaseChatToolInvocationSubPart {
16
- constructor(toolInvocation, context, renderer, announcedToolProgressKeys, instantiationService, configurationService) {
18
+ constructor(
19
+ toolInvocation,
20
+ context,
21
+ renderer,
22
+ announcedToolProgressKeys,
23
+ instantiationService,
24
+ configurationService
25
+ ) {
17
26
  super(toolInvocation);
18
27
  this.context = context;
19
28
  this.renderer = renderer;
@@ -24,24 +33,31 @@ let ChatToolProgressSubPart = class ChatToolProgressSubPart extends BaseChatTool
24
33
  this.domNode = this.createProgressPart();
25
34
  }
26
35
  createProgressPart() {
27
- if (IChatToolInvocation.isComplete(this.toolInvocation) && this.toolIsConfirmed && this.toolInvocation.pastTenseMessage) {
28
- const key = this.getAnnouncementKey('complete');
36
+ const isComplete = IChatToolInvocation.isComplete(this.toolInvocation);
37
+ if (isComplete && this.toolIsConfirmed && this.toolInvocation.pastTenseMessage) {
38
+ const key = this.getAnnouncementKey("complete");
29
39
  const completionContent = this.toolInvocation.pastTenseMessage ?? this.toolInvocation.invocationMessage;
30
- const shouldAnnounce = this.toolInvocation.kind === 'toolInvocation' && this.hasMeaningfulContent(completionContent) ? this.computeShouldAnnounce(key) : false;
40
+ if (!this.hasMeaningfulContent(completionContent)) {
41
+ return createElement("div");
42
+ }
43
+ const shouldAnnounce = this.toolInvocation.kind === "toolInvocation" && this.hasMeaningfulContent(completionContent) ? this.computeShouldAnnounce(key) : false;
31
44
  const part = this.renderProgressContent(completionContent, shouldAnnounce);
32
45
  this._register(part);
33
46
  return part.domNode;
34
- }
35
- else {
36
- const container = createElement('div');
37
- const progressObservable = this.toolInvocation.kind === 'toolInvocation' ? ( this.toolInvocation.state.map(
47
+ } else {
48
+ const container = createElement("div");
49
+ const progressObservable = this.toolInvocation.kind === "toolInvocation" ? ( this.toolInvocation.state.map(
38
50
  (s, r) => s.type === IChatToolInvocation.StateKind.Executing ? s.progress.read(r) : undefined
39
51
  )) : undefined;
40
52
  this._register(autorun(reader => {
41
53
  const progress = progressObservable?.read(reader);
42
- const key = this.getAnnouncementKey('progress');
54
+ const key = this.getAnnouncementKey("progress");
43
55
  const progressContent = progress?.message ?? this.toolInvocation.invocationMessage;
44
- const shouldAnnounce = this.toolInvocation.kind === 'toolInvocation' && this.hasMeaningfulContent(progressContent) ? this.computeShouldAnnounce(key) : false;
56
+ if (!this.hasMeaningfulContent(progressContent)) {
57
+ clearNode(container);
58
+ return;
59
+ }
60
+ const shouldAnnounce = this.toolInvocation.kind === "toolInvocation" && this.hasMeaningfulContent(progressContent) ? this.computeShouldAnnounce(key) : false;
45
61
  const part = reader.store.add(this.renderProgressContent(progressContent, shouldAnnounce));
46
62
  reset(container, part.domNode);
47
63
  }));
@@ -53,17 +69,26 @@ let ChatToolProgressSubPart = class ChatToolProgressSubPart extends BaseChatTool
53
69
  return !!c && c.type !== ToolConfirmKind.Denied;
54
70
  }
55
71
  renderProgressContent(content, shouldAnnounce) {
56
- if (typeof content === 'string') {
72
+ if (typeof content === "string") {
57
73
  content = ( new MarkdownString()).appendText(content);
58
74
  }
59
75
  const progressMessage = {
60
- kind: 'progressMessage',
76
+ kind: "progressMessage",
61
77
  content
62
78
  };
63
79
  if (shouldAnnounce) {
64
80
  this.provideScreenReaderStatus(content);
65
81
  }
66
- return this.instantiationService.createInstance(ChatProgressContentPart, progressMessage, this.renderer, this.context, undefined, true, this.getIcon(), this.toolInvocation);
82
+ return this.instantiationService.createInstance(
83
+ ChatProgressContentPart,
84
+ progressMessage,
85
+ this.renderer,
86
+ this.context,
87
+ undefined,
88
+ true,
89
+ this.getIcon(),
90
+ this.toolInvocation
91
+ );
67
92
  }
68
93
  getAnnouncementKey(kind) {
69
94
  return `${kind}:${this.toolInvocation.toolCallId}`;
@@ -82,20 +107,19 @@ let ChatToolProgressSubPart = class ChatToolProgressSubPart extends BaseChatTool
82
107
  return true;
83
108
  }
84
109
  provideScreenReaderStatus(content) {
85
- const message = typeof content === 'string' ? content : content.value;
110
+ const message = typeof content === "string" ? content : stripIcons(renderAsPlaintext(content, {
111
+ useLinkFormatter: true
112
+ }));
86
113
  status(message);
87
114
  }
88
115
  hasMeaningfulContent(content) {
89
116
  if (!content) {
90
117
  return false;
91
118
  }
92
- const text = typeof content === 'string' ? content : content.value;
119
+ const text = typeof content === "string" ? content : content.value;
93
120
  return text.trim().length > 0;
94
121
  }
95
122
  };
96
- ChatToolProgressSubPart = ( __decorate([
97
- ( __param(4, IInstantiationService)),
98
- ( __param(5, IConfigurationService))
99
- ], ChatToolProgressSubPart));
123
+ ChatToolProgressSubPart = ( __decorate([( __param(4, IInstantiationService)), ( __param(5, IConfigurationService))], ChatToolProgressSubPart));
100
124
 
101
125
  export { ChatToolProgressSubPart };
@@ -0,0 +1,19 @@
1
+ import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
2
+ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
3
+ import { IChatToolInvocation } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
4
+ import { IChatCodeBlockInfo } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
5
+ import { IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
6
+ import { BaseChatToolInvocationSubPart } from "./chatToolInvocationSubPart.js";
7
+ /**
8
+ * Sub-part for rendering a tool invocation in the streaming state.
9
+ * This shows progress while the tool arguments are being streamed from the LM.
10
+ */
11
+ export declare class ChatToolStreamingSubPart extends BaseChatToolInvocationSubPart {
12
+ private readonly context;
13
+ private readonly renderer;
14
+ private readonly instantiationService;
15
+ readonly domNode: HTMLElement;
16
+ readonly codeblocks: IChatCodeBlockInfo[];
17
+ constructor(toolInvocation: IChatToolInvocation, context: IChatContentPartRenderContext, renderer: IMarkdownRenderer, instantiationService: IInstantiationService);
18
+ private createStreamingPart;
19
+ }
@@ -0,0 +1,67 @@
1
+
2
+ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
+ import { createElement, clearNode, reset } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
+ import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
5
+ import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
6
+ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
7
+ import { IChatToolInvocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
8
+ import { ChatProgressContentPart } from '../chatProgressContentPart.js';
9
+ import { BaseChatToolInvocationSubPart } from './chatToolInvocationSubPart.js';
10
+ import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
11
+
12
+ let ChatToolStreamingSubPart = class ChatToolStreamingSubPart extends BaseChatToolInvocationSubPart {
13
+ constructor(toolInvocation, context, renderer, instantiationService) {
14
+ super(toolInvocation);
15
+ this.context = context;
16
+ this.renderer = renderer;
17
+ this.instantiationService = instantiationService;
18
+ this.codeblocks = [];
19
+ this.domNode = this.createStreamingPart();
20
+ }
21
+ createStreamingPart() {
22
+ const container = createElement("div");
23
+ if (this.toolInvocation.kind !== "toolInvocation") {
24
+ return container;
25
+ }
26
+ const toolInvocation = this.toolInvocation;
27
+ const state = toolInvocation.state.get();
28
+ if (state.type !== IChatToolInvocation.StateKind.Streaming) {
29
+ return container;
30
+ }
31
+ this._register(autorun(reader => {
32
+ const currentState = toolInvocation.state.read(reader);
33
+ if (currentState.type !== IChatToolInvocation.StateKind.Streaming) {
34
+ clearNode(container);
35
+ this._onNeedsRerender.fire();
36
+ return;
37
+ }
38
+ const streamingMessage = currentState.streamingMessage.read(reader);
39
+ const displayMessage = streamingMessage ?? toolInvocation.invocationMessage;
40
+ const messageText = typeof displayMessage === "string" ? displayMessage : displayMessage.value;
41
+ if (!messageText || messageText.trim().length === 0) {
42
+ clearNode(container);
43
+ return;
44
+ }
45
+ const content = typeof displayMessage === "string" ? ( new MarkdownString()).appendText(displayMessage) : displayMessage;
46
+ const progressMessage = {
47
+ kind: "progressMessage",
48
+ content
49
+ };
50
+ const part = reader.store.add(this.instantiationService.createInstance(
51
+ ChatProgressContentPart,
52
+ progressMessage,
53
+ this.renderer,
54
+ this.context,
55
+ undefined,
56
+ true,
57
+ this.getIcon(),
58
+ toolInvocation
59
+ ));
60
+ reset(container, part.domNode);
61
+ }));
62
+ return container;
63
+ }
64
+ };
65
+ ChatToolStreamingSubPart = ( __decorate([( __param(3, IInstantiationService))], ChatToolStreamingSubPart));
66
+
67
+ export { ChatToolStreamingSubPart };
@@ -0,0 +1,57 @@
1
+ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
+ import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
3
+ import type { ICommandDetectionCapability } from "@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/capabilities/capabilities";
4
+ /**
5
+ * The auto-expand algorithm for terminal tool progress parts.
6
+ *
7
+ * The algorithm is:
8
+ * 1. When command executes, kick off 500ms timeout - expand if there's real output (data events
9
+ * may fire before onCommandExecuted due to shell integration sequences, so we can't rely on
10
+ * receivedData to skip this path)
11
+ * 2. On first data event, wait 50ms and expand if command not yet finished and has real output
12
+ * 3. Fast commands (finishing quickly) should NOT auto-expand to prevent flickering
13
+ */
14
+ export interface ITerminalToolAutoExpandOptions {
15
+ /**
16
+ * The command detection capability to listen for command events.
17
+ */
18
+ readonly commandDetection: ICommandDetectionCapability;
19
+ /**
20
+ * Event fired when data is received from the terminal.
21
+ */
22
+ readonly onWillData: Event<unknown>;
23
+ /**
24
+ * Check if the output should auto-expand (e.g. not already expanded, user hasn't toggled).
25
+ */
26
+ shouldAutoExpand(): boolean;
27
+ /**
28
+ * Check if there is real output (not just shell integration sequences).
29
+ */
30
+ hasRealOutput(): boolean;
31
+ }
32
+ /**
33
+ * Timeout constants for the auto-expand algorithm.
34
+ */
35
+ export declare enum TerminalToolAutoExpandTimeout {
36
+ /**
37
+ * Timeout in milliseconds to wait when no data events are received before checking for auto-expand.
38
+ */
39
+ NoData = 500,
40
+ /**
41
+ * Timeout in milliseconds to wait after first data event before checking for auto-expand.
42
+ * This prevents flickering for fast commands like `ls` that finish quickly.
43
+ */
44
+ DataEvent = 50
45
+ }
46
+ export declare class TerminalToolAutoExpand extends Disposable {
47
+ private readonly _options;
48
+ private _commandFinished;
49
+ private _receivedData;
50
+ private _dataEventTimeout;
51
+ private _noDataTimeout;
52
+ private readonly _onDidRequestExpand;
53
+ readonly onDidRequestExpand: Event<void>;
54
+ constructor(_options: ITerminalToolAutoExpandOptions);
55
+ private _setupListeners;
56
+ private _clearAutoExpandTimeouts;
57
+ }
@@ -0,0 +1,69 @@
1
+
2
+ import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
3
+ import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
4
+ import { disposableTimeout } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
5
+
6
+ var TerminalToolAutoExpandTimeout;
7
+ (function(TerminalToolAutoExpandTimeout) {
8
+ TerminalToolAutoExpandTimeout[TerminalToolAutoExpandTimeout["NoData"] = 500] = "NoData";
9
+ TerminalToolAutoExpandTimeout[TerminalToolAutoExpandTimeout["DataEvent"] = 50] = "DataEvent";
10
+ })(TerminalToolAutoExpandTimeout || (TerminalToolAutoExpandTimeout = {}));
11
+ class TerminalToolAutoExpand extends Disposable {
12
+ constructor(_options) {
13
+ super();
14
+ this._options = _options;
15
+ this._commandFinished = false;
16
+ this._receivedData = false;
17
+ this._onDidRequestExpand = this._register(( new Emitter()));
18
+ this.onDidRequestExpand = this._onDidRequestExpand.event;
19
+ this._setupListeners();
20
+ }
21
+ _setupListeners() {
22
+ const store = this._register(( new DisposableStore()));
23
+ const commandDetection = this._options.commandDetection;
24
+ store.add(commandDetection.onCommandExecuted(() => {
25
+ if (this._options.shouldAutoExpand() && !this._noDataTimeout) {
26
+ this._noDataTimeout = disposableTimeout(() => {
27
+ this._noDataTimeout = undefined;
28
+ const shouldExpand = this._options.shouldAutoExpand();
29
+ const hasOutput = this._options.hasRealOutput();
30
+ if (shouldExpand && hasOutput) {
31
+ this._dataEventTimeout?.dispose();
32
+ this._dataEventTimeout = undefined;
33
+ this._onDidRequestExpand.fire();
34
+ }
35
+ }, TerminalToolAutoExpandTimeout.NoData, store);
36
+ }
37
+ }));
38
+ store.add(this._options.onWillData(() => {
39
+ if (this._receivedData) {
40
+ return;
41
+ }
42
+ this._receivedData = true;
43
+ if (this._options.shouldAutoExpand() && !this._dataEventTimeout) {
44
+ this._dataEventTimeout = disposableTimeout(() => {
45
+ this._dataEventTimeout = undefined;
46
+ const shouldExpand = this._options.shouldAutoExpand();
47
+ const hasOutput = this._options.hasRealOutput();
48
+ if (!this._commandFinished && shouldExpand && hasOutput) {
49
+ this._noDataTimeout?.dispose();
50
+ this._noDataTimeout = undefined;
51
+ this._onDidRequestExpand.fire();
52
+ }
53
+ }, TerminalToolAutoExpandTimeout.DataEvent, store);
54
+ }
55
+ }));
56
+ store.add(commandDetection.onCommandFinished(() => {
57
+ this._commandFinished = true;
58
+ this._clearAutoExpandTimeouts();
59
+ }));
60
+ }
61
+ _clearAutoExpandTimeouts() {
62
+ this._dataEventTimeout?.dispose();
63
+ this._dataEventTimeout = undefined;
64
+ this._noDataTimeout?.dispose();
65
+ this._noDataTimeout = undefined;
66
+ }
67
+ }
68
+
69
+ export { TerminalToolAutoExpand, TerminalToolAutoExpandTimeout };