@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
@@ -29,13 +29,12 @@ let ChatQueryTitlePart = class ChatQueryTitlePart extends Disposable {
29
29
  set title(value) {
30
30
  this._title = value;
31
31
  const next = this._renderer.render(this.toMdString(value), {
32
- asyncRenderCallback: () => this._onDidChangeHeight.fire(),
32
+ asyncRenderCallback: () => this._onDidChangeHeight.fire()
33
33
  });
34
34
  const previousEl = this._renderedTitle.value?.element;
35
35
  if (previousEl?.parentElement) {
36
36
  previousEl.replaceWith(next.element);
37
- }
38
- else {
37
+ } else {
39
38
  this.element.appendChild(next.element);
40
39
  }
41
40
  this._renderedTitle.value = next;
@@ -48,69 +47,88 @@ let ChatQueryTitlePart = class ChatQueryTitlePart extends Disposable {
48
47
  this._onDidChangeHeight = this._register(( new Emitter()));
49
48
  this.onDidChangeHeight = this._onDidChangeHeight.event;
50
49
  this._renderedTitle = this._register(( new MutableDisposable()));
51
- element.classList.add('chat-query-title-part');
50
+ element.classList.add("chat-query-title-part");
52
51
  this._renderedTitle.value = _renderer.render(this.toMdString(_title), {
53
- asyncRenderCallback: () => this._onDidChangeHeight.fire(),
52
+ asyncRenderCallback: () => this._onDidChangeHeight.fire()
54
53
  });
55
54
  element.append(this._renderedTitle.value.element);
56
55
  if (subtitle) {
57
56
  const str = this.toMdString(subtitle);
58
57
  const renderedTitle = this._register(_renderer.render(str, {
59
- asyncRenderCallback: () => this._onDidChangeHeight.fire(),
58
+ asyncRenderCallback: () => this._onDidChangeHeight.fire()
60
59
  }));
61
- const wrapper = createElement('small');
60
+ const wrapper = createElement("small");
62
61
  wrapper.appendChild(renderedTitle.element);
63
62
  element.append(wrapper);
64
63
  }
65
64
  }
66
65
  toMdString(value) {
67
- if (typeof value === 'string') {
68
- return ( new MarkdownString('', { supportThemeIcons: true })).appendText(value);
69
- }
70
- else {
71
- return ( new MarkdownString(value.value, { supportThemeIcons: true, isTrusted: value.isTrusted }));
66
+ if (typeof value === "string") {
67
+ return ( new MarkdownString("", {
68
+ supportThemeIcons: true
69
+ })).appendText(value);
70
+ } else {
71
+ return ( new MarkdownString(value.value, {
72
+ supportThemeIcons: true,
73
+ isTrusted: value.isTrusted
74
+ }));
72
75
  }
73
76
  }
74
77
  };
75
- ChatQueryTitlePart = ( __decorate([
76
- ( __param(3, IMarkdownRendererService))
77
- ], ChatQueryTitlePart));
78
+ ChatQueryTitlePart = ( __decorate([( __param(3, IMarkdownRendererService))], ChatQueryTitlePart));
78
79
  let BaseSimpleChatConfirmationWidget = class BaseSimpleChatConfirmationWidget extends Disposable {
79
- get onDidClick() { return this._onDidClick.event; }
80
- get onDidChangeHeight() { return this._onDidChangeHeight.event; }
80
+ get onDidClick() {
81
+ return this._onDidClick.event;
82
+ }
81
83
  get domNode() {
82
84
  return this._domNode;
83
85
  }
84
86
  setShowButtons(showButton) {
85
- this.domNode.classList.toggle('hideButtons', !showButton);
87
+ this.domNode.classList.toggle("hideButtons", !showButton);
86
88
  }
87
- constructor(context, options, instantiationService, _markdownRendererService, contextMenuService, contextKeyService) {
89
+ constructor(
90
+ context,
91
+ options,
92
+ instantiationService,
93
+ _markdownRendererService,
94
+ contextMenuService,
95
+ contextKeyService
96
+ ) {
88
97
  super();
89
98
  this.context = context;
90
99
  this.instantiationService = instantiationService;
91
100
  this._markdownRendererService = _markdownRendererService;
92
101
  this._onDidClick = this._register(( new Emitter()));
93
- this._onDidChangeHeight = this._register(( new Emitter()));
94
- const { title, subtitle, message, buttons } = options;
95
- const elements = h('.chat-confirmation-widget-container@container', [
96
- h('.chat-confirmation-widget@root', [
97
- h('.chat-confirmation-widget-title@title'),
98
- h('.chat-confirmation-widget-message-container', [
99
- h('.chat-confirmation-widget-message@message'),
100
- h('.chat-buttons-container@buttonsContainer', [
101
- h('.chat-buttons@buttons'),
102
- h('.chat-toolbar@toolbar'),
103
- ]),
104
- ]),
105
- ]),
106
- ]);
102
+ const {
103
+ title,
104
+ subtitle,
105
+ message,
106
+ buttons
107
+ } = options;
108
+ const elements = h(".chat-confirmation-widget-container@container", [h(
109
+ ".chat-confirmation-widget@root",
110
+ [h(".chat-confirmation-widget-title@title"), h(
111
+ ".chat-confirmation-widget-message-container",
112
+ [h(".chat-confirmation-widget-message@message"), h(
113
+ ".chat-buttons-container@buttonsContainer",
114
+ [h(".chat-buttons@buttons"), h(".chat-toolbar@toolbar")]
115
+ )]
116
+ )]
117
+ )]);
107
118
  configureAccessibilityContainer(elements.container, title, message);
108
119
  this._domNode = elements.root;
109
- const titlePart = this._register(instantiationService.createInstance(ChatQueryTitlePart, elements.title, title, subtitle));
110
- this._register(titlePart.onDidChangeHeight(() => this._onDidChangeHeight.fire()));
120
+ this._register(
121
+ instantiationService.createInstance(ChatQueryTitlePart, elements.title, title, subtitle)
122
+ );
111
123
  this.messageElement = elements.message;
112
124
  buttons.forEach(buttonData => {
113
- const buttonOptions = { ...defaultButtonStyles, secondary: buttonData.isSecondary, title: buttonData.tooltip, disabled: buttonData.disabled };
125
+ const buttonOptions = {
126
+ ...defaultButtonStyles,
127
+ small: true,
128
+ secondary: buttonData.isSecondary,
129
+ title: buttonData.tooltip,
130
+ disabled: buttonData.disabled
131
+ };
114
132
  let button;
115
133
  if (buttonData.moreActions) {
116
134
  button = ( new ButtonWithDropdown(elements.buttons, {
@@ -125,10 +143,9 @@ let BaseSimpleChatConfirmationWidget = class BaseSimpleChatConfirmationWidget ex
125
143
  this._onDidClick.fire(action);
126
144
  return Promise.resolve();
127
145
  })));
128
- })),
146
+ }))
129
147
  }));
130
- }
131
- else {
148
+ } else {
132
149
  button = ( new Button(elements.buttons, buttonOptions));
133
150
  }
134
151
  this._register(button);
@@ -140,55 +157,63 @@ let BaseSimpleChatConfirmationWidget = class BaseSimpleChatConfirmationWidget ex
140
157
  });
141
158
  if (options?.toolbarData) {
142
159
  const overlay = contextKeyService.createOverlay([
143
- ['chatConfirmationPartType', options.toolbarData.partType],
144
- ['chatConfirmationPartSource', options.toolbarData.partSource],
160
+ ["chatConfirmationPartType", options.toolbarData.partType],
161
+ ["chatConfirmationPartSource", options.toolbarData.partSource]
145
162
  ]);
146
163
  const nestedInsta = this._register(instantiationService.createChild(( new ServiceCollection([IContextKeyService, overlay]))));
147
- const toolbar = this._register(nestedInsta.createInstance(MenuWorkbenchToolBar, elements.toolbar, MenuId.ChatConfirmationMenu, {
148
- menuOptions: {
149
- arg: options.toolbarData.arg,
150
- shouldForwardArgs: true,
151
- }
152
- }));
153
- this._register(toolbar.onDidChangeMenuItems(() => this._onDidChangeHeight.fire()));
164
+ this._register(
165
+ nestedInsta.createInstance(MenuWorkbenchToolBar, elements.toolbar, MenuId.ChatConfirmationMenu, {
166
+ menuOptions: {
167
+ arg: options.toolbarData.arg,
168
+ shouldForwardArgs: true
169
+ }
170
+ })
171
+ );
154
172
  }
155
173
  }
156
174
  renderMessage(element) {
157
175
  this.messageElement.append(element);
158
176
  }
159
177
  };
160
- BaseSimpleChatConfirmationWidget = ( __decorate([
161
- ( __param(2, IInstantiationService)),
162
- ( __param(3, IMarkdownRendererService)),
163
- ( __param(4, IContextMenuService)),
164
- ( __param(5, IContextKeyService))
165
- ], BaseSimpleChatConfirmationWidget));
178
+ BaseSimpleChatConfirmationWidget = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IMarkdownRendererService)), ( __param(4, IContextMenuService)), ( __param(5, IContextKeyService))], BaseSimpleChatConfirmationWidget));
166
179
  let SimpleChatConfirmationWidget = class SimpleChatConfirmationWidget extends BaseSimpleChatConfirmationWidget {
167
- constructor(context, options, instantiationService, markdownRendererService, contextMenuService, contextKeyService) {
168
- super(context, options, instantiationService, markdownRendererService, contextMenuService, contextKeyService);
180
+ constructor(
181
+ context,
182
+ options,
183
+ instantiationService,
184
+ markdownRendererService,
185
+ contextMenuService,
186
+ contextKeyService
187
+ ) {
188
+ super(
189
+ context,
190
+ options,
191
+ instantiationService,
192
+ markdownRendererService,
193
+ contextMenuService,
194
+ contextKeyService
195
+ );
169
196
  this.updateMessage(options.message);
170
197
  }
171
198
  updateMessage(message) {
172
199
  this._renderedMessage?.remove();
173
- const renderedMessage = this._register(this._markdownRendererService.render(typeof message === 'string' ? ( new MarkdownString(message)) : message, { asyncRenderCallback: () => this._onDidChangeHeight.fire() }));
200
+ const renderedMessage = this._register(
201
+ this._markdownRendererService.render(typeof message === "string" ? ( new MarkdownString(message)) : message)
202
+ );
174
203
  this.renderMessage(renderedMessage.element);
175
204
  this._renderedMessage = renderedMessage.element;
176
205
  }
177
206
  };
178
- SimpleChatConfirmationWidget = ( __decorate([
179
- ( __param(2, IInstantiationService)),
180
- ( __param(3, IMarkdownRendererService)),
181
- ( __param(4, IContextMenuService)),
182
- ( __param(5, IContextKeyService))
183
- ], SimpleChatConfirmationWidget));
207
+ SimpleChatConfirmationWidget = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IMarkdownRendererService)), ( __param(4, IContextMenuService)), ( __param(5, IContextKeyService))], SimpleChatConfirmationWidget));
184
208
  let BaseChatConfirmationWidget = class BaseChatConfirmationWidget extends Disposable {
185
- get onDidClick() { return this._onDidClick.event; }
186
- get onDidChangeHeight() { return this._onDidChangeHeight.event; }
209
+ get onDidClick() {
210
+ return this._onDidClick.event;
211
+ }
187
212
  get domNode() {
188
213
  return this._domNode;
189
214
  }
190
215
  setShowButtons(showButton) {
191
- this.domNode.classList.toggle('hideButtons', !showButton);
216
+ this.domNode.classList.toggle("hideButtons", !showButton);
192
217
  }
193
218
  get codeblocksPartId() {
194
219
  return this.markdownContentPart.value?.codeblocksPartId;
@@ -196,7 +221,15 @@ let BaseChatConfirmationWidget = class BaseChatConfirmationWidget extends Dispos
196
221
  get codeblocks() {
197
222
  return this.markdownContentPart.value?.codeblocks;
198
223
  }
199
- constructor(_context, options, instantiationService, markdownRendererService, contextMenuService, contextKeyService, chatMarkdownAnchorService) {
224
+ constructor(
225
+ _context,
226
+ options,
227
+ instantiationService,
228
+ markdownRendererService,
229
+ contextMenuService,
230
+ contextKeyService,
231
+ chatMarkdownAnchorService
232
+ ) {
200
233
  super();
201
234
  this._context = _context;
202
235
  this.instantiationService = instantiationService;
@@ -204,44 +237,49 @@ let BaseChatConfirmationWidget = class BaseChatConfirmationWidget extends Dispos
204
237
  this.contextMenuService = contextMenuService;
205
238
  this.chatMarkdownAnchorService = chatMarkdownAnchorService;
206
239
  this._onDidClick = this._register(( new Emitter()));
207
- this._onDidChangeHeight = this._register(( new Emitter()));
208
240
  this.markdownContentPart = this._register(( new MutableDisposable()));
209
- const { title, subtitle, message, buttons, icon } = options;
210
- const elements = h('.chat-confirmation-widget-container@container', [
211
- h('.chat-confirmation-widget2@root', [
212
- h('.chat-confirmation-widget-title', [
213
- h('.chat-title@title'),
214
- h('.chat-toolbar-container@buttonsContainer', [
215
- h('.chat-toolbar@toolbar'),
216
- ]),
217
- ]),
218
- h('.chat-confirmation-widget-message@message'),
219
- h('.chat-confirmation-widget-buttons', [
220
- h('.chat-buttons@buttons'),
221
- ]),
222
- ]),
223
- ]);
241
+ const {
242
+ title,
243
+ subtitle,
244
+ message,
245
+ buttons,
246
+ icon
247
+ } = options;
248
+ const elements = h(
249
+ ".chat-confirmation-widget-container@container",
250
+ [h(".chat-confirmation-widget2@root", [
251
+ h(".chat-confirmation-widget-title", [h(".chat-title@title"), h(
252
+ ".chat-toolbar-container@buttonsContainer",
253
+ [h(".chat-toolbar@toolbar")]
254
+ )]),
255
+ h(".chat-confirmation-widget-message@message"),
256
+ h(".chat-confirmation-widget-buttons", [h(".chat-buttons@buttons")])
257
+ ])]
258
+ );
224
259
  configureAccessibilityContainer(elements.container, title, message);
225
260
  this._domNode = elements.root;
226
261
  this._buttonsDomNode = elements.buttons;
227
- const titlePart = this._register(instantiationService.createInstance(ChatQueryTitlePart, elements.title, ( new MarkdownString(
228
- icon ? `$(${icon.id}) ${typeof title === 'string' ? title : title.value}` : typeof title === 'string' ? title : title.value
229
- )), subtitle));
230
- this._register(titlePart.onDidChangeHeight(() => this._onDidChangeHeight.fire()));
262
+ this._register(
263
+ instantiationService.createInstance(ChatQueryTitlePart, elements.title, ( new MarkdownString(
264
+ icon ? `$(${icon.id}) ${typeof title === "string" ? title : title.value}` : typeof title === "string" ? title : title.value
265
+ )), subtitle)
266
+ );
231
267
  this.messageElement = elements.message;
232
268
  this.updateButtons(buttons);
233
269
  if (options?.toolbarData) {
234
270
  const overlay = contextKeyService.createOverlay([
235
- ['chatConfirmationPartType', options.toolbarData.partType],
236
- ['chatConfirmationPartSource', options.toolbarData.partSource],
271
+ ["chatConfirmationPartType", options.toolbarData.partType],
272
+ ["chatConfirmationPartSource", options.toolbarData.partSource]
237
273
  ]);
238
274
  const nestedInsta = this._register(instantiationService.createChild(( new ServiceCollection([IContextKeyService, overlay]))));
239
- this._register(nestedInsta.createInstance(MenuWorkbenchToolBar, elements.toolbar, MenuId.ChatConfirmationMenu, {
240
- menuOptions: {
241
- arg: options.toolbarData.arg,
242
- shouldForwardArgs: true,
243
- }
244
- }));
275
+ this._register(
276
+ nestedInsta.createInstance(MenuWorkbenchToolBar, elements.toolbar, MenuId.ChatConfirmationMenu, {
277
+ menuOptions: {
278
+ arg: options.toolbarData.arg,
279
+ shouldForwardArgs: true
280
+ }
281
+ })
282
+ );
245
283
  }
246
284
  }
247
285
  updateButtons(buttons) {
@@ -249,7 +287,13 @@ let BaseChatConfirmationWidget = class BaseChatConfirmationWidget extends Dispos
249
287
  this._buttonsDomNode.children[0].remove();
250
288
  }
251
289
  for (const buttonData of buttons) {
252
- const buttonOptions = { ...defaultButtonStyles, secondary: buttonData.isSecondary, title: buttonData.tooltip, disabled: buttonData.disabled };
290
+ const buttonOptions = {
291
+ ...defaultButtonStyles,
292
+ small: true,
293
+ secondary: buttonData.isSecondary,
294
+ title: buttonData.tooltip,
295
+ disabled: buttonData.disabled
296
+ };
253
297
  let button;
254
298
  if (buttonData.moreActions) {
255
299
  button = ( new ButtonWithDropdown(this._buttonsDomNode, {
@@ -264,10 +308,9 @@ let BaseChatConfirmationWidget = class BaseChatConfirmationWidget extends Dispos
264
308
  this._onDidClick.fire(action);
265
309
  return Promise.resolve();
266
310
  })));
267
- })),
311
+ }))
268
312
  }));
269
- }
270
- else {
313
+ } else {
271
314
  button = ( new Button(this._buttonsDomNode, buttonOptions));
272
315
  }
273
316
  this._register(button);
@@ -282,14 +325,18 @@ let BaseChatConfirmationWidget = class BaseChatConfirmationWidget extends Dispos
282
325
  this.markdownContentPart.clear();
283
326
  if (!isHTMLElement(element)) {
284
327
  const part = this._register(this.instantiationService.createInstance(ChatMarkdownContentPart, {
285
- kind: 'markdownContent',
286
- content: typeof element === 'string' ? ( new MarkdownString()).appendMarkdown(element) : element
287
- }, this._context, this._context.editorPool, false, this._context.codeBlockStartIndex, this.markdownRendererService, undefined, this._context.currentWidth(), this._context.codeBlockModelCollection, {
328
+ kind: "markdownContent",
329
+ content: typeof element === "string" ? ( new MarkdownString()).appendMarkdown(element) : element
330
+ }, this._context, this._context.editorPool, false, this._context.codeBlockStartIndex, this.markdownRendererService, undefined, this._context.currentWidth.get(), this._context.codeBlockModelCollection, {
288
331
  allowInlineDiffs: true,
289
- horizontalPadding: 6,
332
+ horizontalPadding: 6
290
333
  }));
291
- renderFileWidgets(part.domNode, this.instantiationService, this.chatMarkdownAnchorService, this._store);
292
- this._register(part.onDidChangeHeight(() => this._onDidChangeHeight.fire()));
334
+ renderFileWidgets(
335
+ part.domNode,
336
+ this.instantiationService,
337
+ this.chatMarkdownAnchorService,
338
+ this._store
339
+ );
293
340
  this.markdownContentPart.value = part;
294
341
  element = part.domNode;
295
342
  }
@@ -299,51 +346,67 @@ let BaseChatConfirmationWidget = class BaseChatConfirmationWidget extends Dispos
299
346
  this.messageElement.append(element);
300
347
  }
301
348
  };
302
- BaseChatConfirmationWidget = ( __decorate([
303
- ( __param(2, IInstantiationService)),
304
- ( __param(3, IMarkdownRendererService)),
305
- ( __param(4, IContextMenuService)),
306
- ( __param(5, IContextKeyService)),
307
- ( __param(6, IChatMarkdownAnchorService))
308
- ], BaseChatConfirmationWidget));
349
+ BaseChatConfirmationWidget = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IMarkdownRendererService)), ( __param(4, IContextMenuService)), ( __param(5, IContextKeyService)), ( __param(6, IChatMarkdownAnchorService))], BaseChatConfirmationWidget));
309
350
  let ChatConfirmationWidget = class ChatConfirmationWidget extends BaseChatConfirmationWidget {
310
- constructor(context, options, instantiationService, markdownRendererService, contextMenuService, contextKeyService, chatMarkdownAnchorService) {
311
- super(context, options, instantiationService, markdownRendererService, contextMenuService, contextKeyService, chatMarkdownAnchorService);
351
+ constructor(
352
+ context,
353
+ options,
354
+ instantiationService,
355
+ markdownRendererService,
356
+ contextMenuService,
357
+ contextKeyService,
358
+ chatMarkdownAnchorService
359
+ ) {
360
+ super(
361
+ context,
362
+ options,
363
+ instantiationService,
364
+ markdownRendererService,
365
+ contextMenuService,
366
+ contextKeyService,
367
+ chatMarkdownAnchorService
368
+ );
312
369
  this.renderMessage(options.message);
313
370
  }
314
371
  updateMessage(message) {
315
372
  this._renderedMessage?.remove();
316
- const renderedMessage = this._register(this.markdownRendererService.render(typeof message === 'string' ? ( new MarkdownString(message)) : message, { asyncRenderCallback: () => this._onDidChangeHeight.fire() }));
373
+ const renderedMessage = this._register(
374
+ this.markdownRendererService.render(typeof message === "string" ? ( new MarkdownString(message)) : message)
375
+ );
317
376
  this.renderMessage(renderedMessage.element);
318
377
  this._renderedMessage = renderedMessage.element;
319
378
  }
320
379
  };
321
- ChatConfirmationWidget = ( __decorate([
322
- ( __param(2, IInstantiationService)),
323
- ( __param(3, IMarkdownRendererService)),
324
- ( __param(4, IContextMenuService)),
325
- ( __param(5, IContextKeyService)),
326
- ( __param(6, IChatMarkdownAnchorService))
327
- ], ChatConfirmationWidget));
380
+ ChatConfirmationWidget = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IMarkdownRendererService)), ( __param(4, IContextMenuService)), ( __param(5, IContextKeyService)), ( __param(6, IChatMarkdownAnchorService))], ChatConfirmationWidget));
328
381
  let ChatCustomConfirmationWidget = class ChatCustomConfirmationWidget extends BaseChatConfirmationWidget {
329
- constructor(context, options, instantiationService, markdownRendererService, contextMenuService, contextKeyService, chatMarkdownAnchorService) {
330
- super(context, options, instantiationService, markdownRendererService, contextMenuService, contextKeyService, chatMarkdownAnchorService);
382
+ constructor(
383
+ context,
384
+ options,
385
+ instantiationService,
386
+ markdownRendererService,
387
+ contextMenuService,
388
+ contextKeyService,
389
+ chatMarkdownAnchorService
390
+ ) {
391
+ super(
392
+ context,
393
+ options,
394
+ instantiationService,
395
+ markdownRendererService,
396
+ contextMenuService,
397
+ contextKeyService,
398
+ chatMarkdownAnchorService
399
+ );
331
400
  this.renderMessage(options.message);
332
401
  }
333
402
  };
334
- ChatCustomConfirmationWidget = ( __decorate([
335
- ( __param(2, IInstantiationService)),
336
- ( __param(3, IMarkdownRendererService)),
337
- ( __param(4, IContextMenuService)),
338
- ( __param(5, IContextKeyService)),
339
- ( __param(6, IChatMarkdownAnchorService))
340
- ], ChatCustomConfirmationWidget));
403
+ ChatCustomConfirmationWidget = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IMarkdownRendererService)), ( __param(4, IContextMenuService)), ( __param(5, IContextKeyService)), ( __param(6, IChatMarkdownAnchorService))], ChatCustomConfirmationWidget));
341
404
  function configureAccessibilityContainer(container, title, message) {
342
405
  container.tabIndex = 0;
343
- const titleAsString = typeof title === 'string' ? title : title.value;
344
- const messageAsString = typeof message === 'string' ? message : message && 'value' in message ? message.value : message && 'textContent' in message ? message.textContent : '';
345
- container.setAttribute('aria-label', ( localize(5617, "Chat Confirmation Dialog {0} {1}", titleAsString, messageAsString)));
346
- container.classList.add('chat-confirmation-widget-container');
406
+ const titleAsString = typeof title === "string" ? title : title.value;
407
+ const messageAsString = typeof message === "string" ? message : message && "value" in message ? message.value : message && "textContent" in message ? message.textContent : "";
408
+ container.setAttribute("aria-label", ( localize(5836, "Chat Confirmation Dialog {0} {1}", titleAsString, messageAsString)));
409
+ container.classList.add("chat-confirmation-widget-container");
347
410
  }
348
411
 
349
412
  export { ChatConfirmationWidget, ChatCustomConfirmationWidget, ChatQueryTitlePart, SimpleChatConfirmationWidget };
@@ -10,6 +10,7 @@ export declare class EditorPool extends Disposable {
10
10
  inUse(): Iterable<CodeBlockPart>;
11
11
  constructor(options: ChatEditorOptions, delegate: IChatRendererDelegate, overflowWidgetsDomNode: HTMLElement | undefined, isSimpleWidget: boolean | undefined, instantiationService: IInstantiationService);
12
12
  get(): IDisposableReference<CodeBlockPart>;
13
+ clear(): void;
13
14
  }
14
15
  export declare class DiffEditorPool extends Disposable {
15
16
  private readonly isSimpleWidget;
@@ -17,4 +18,5 @@ export declare class DiffEditorPool extends Disposable {
17
18
  inUse(): Iterable<CodeCompareBlockPart>;
18
19
  constructor(options: ChatEditorOptions, delegate: IChatRendererDelegate, overflowWidgetsDomNode: HTMLElement | undefined, isSimpleWidget: boolean | undefined, instantiationService: IInstantiationService);
19
20
  get(): IDisposableReference<CodeCompareBlockPart>;
21
+ clear(): void;
20
22
  }
@@ -10,11 +10,24 @@ let EditorPool = class EditorPool extends Disposable {
10
10
  inUse() {
11
11
  return this._pool.inUse;
12
12
  }
13
- constructor(options, delegate, overflowWidgetsDomNode, isSimpleWidget = false, instantiationService) {
13
+ constructor(
14
+ options,
15
+ delegate,
16
+ overflowWidgetsDomNode,
17
+ isSimpleWidget = false,
18
+ instantiationService
19
+ ) {
14
20
  super();
15
21
  this.isSimpleWidget = isSimpleWidget;
16
22
  this._pool = this._register(( new ResourcePool(() => {
17
- return instantiationService.createInstance(CodeBlockPart, options, MenuId.ChatCodeBlock, delegate, overflowWidgetsDomNode, this.isSimpleWidget);
23
+ return instantiationService.createInstance(
24
+ CodeBlockPart,
25
+ options,
26
+ MenuId.ChatCodeBlock,
27
+ delegate,
28
+ overflowWidgetsDomNode,
29
+ this.isSimpleWidget
30
+ );
18
31
  })));
19
32
  }
20
33
  get() {
@@ -30,19 +43,33 @@ let EditorPool = class EditorPool extends Disposable {
30
43
  }
31
44
  };
32
45
  }
46
+ clear() {
47
+ this._pool.clear();
48
+ }
33
49
  };
34
- EditorPool = ( __decorate([
35
- ( __param(4, IInstantiationService))
36
- ], EditorPool));
50
+ EditorPool = ( __decorate([( __param(4, IInstantiationService))], EditorPool));
37
51
  let DiffEditorPool = class DiffEditorPool extends Disposable {
38
52
  inUse() {
39
53
  return this._pool.inUse;
40
54
  }
41
- constructor(options, delegate, overflowWidgetsDomNode, isSimpleWidget = false, instantiationService) {
55
+ constructor(
56
+ options,
57
+ delegate,
58
+ overflowWidgetsDomNode,
59
+ isSimpleWidget = false,
60
+ instantiationService
61
+ ) {
42
62
  super();
43
63
  this.isSimpleWidget = isSimpleWidget;
44
64
  this._pool = this._register(( new ResourcePool(() => {
45
- return instantiationService.createInstance(CodeCompareBlockPart, options, MenuId.ChatCompareBlock, delegate, overflowWidgetsDomNode, this.isSimpleWidget);
65
+ return instantiationService.createInstance(
66
+ CodeCompareBlockPart,
67
+ options,
68
+ MenuId.ChatCompareBlock,
69
+ delegate,
70
+ overflowWidgetsDomNode,
71
+ this.isSimpleWidget
72
+ );
46
73
  })));
47
74
  }
48
75
  get() {
@@ -58,9 +85,10 @@ let DiffEditorPool = class DiffEditorPool extends Disposable {
58
85
  }
59
86
  };
60
87
  }
88
+ clear() {
89
+ this._pool.clear();
90
+ }
61
91
  };
62
- DiffEditorPool = ( __decorate([
63
- ( __param(4, IInstantiationService))
64
- ], DiffEditorPool));
92
+ DiffEditorPool = ( __decorate([( __param(4, IInstantiationService))], DiffEditorPool));
65
93
 
66
94
  export { DiffEditorPool, EditorPool };