@codingame/monaco-vscode-katex-common 25.1.1 → 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
@@ -23,7 +23,7 @@ import { IChatAttachmentResolveService } from '@codingame/monaco-vscode-api/vsco
23
23
  import { convertStringToUInt8Array } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatImageUtils';
24
24
 
25
25
  var ChatDragAndDropType;
26
- (function (ChatDragAndDropType) {
26
+ (function(ChatDragAndDropType) {
27
27
  ChatDragAndDropType[ChatDragAndDropType["FILE_INTERNAL"] = 0] = "FILE_INTERNAL";
28
28
  ChatDragAndDropType[ChatDragAndDropType["FILE_EXTERNAL"] = 1] = "FILE_EXTERNAL";
29
29
  ChatDragAndDropType[ChatDragAndDropType["FOLDER"] = 2] = "FOLDER";
@@ -37,7 +37,16 @@ var ChatDragAndDropType;
37
37
  const IMAGE_DATA_REGEX = /^data:image\/[a-z]+;base64,/;
38
38
  const URL_REGEX = /^https?:\/\/.+/;
39
39
  let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
40
- constructor(widgetRef, attachmentModel, styles, themeService, extensionService, webContentExtractorService, logService, chatAttachmentResolveService) {
40
+ constructor(
41
+ widgetRef,
42
+ attachmentModel,
43
+ styles,
44
+ themeService,
45
+ extensionService,
46
+ webContentExtractorService,
47
+ logService,
48
+ chatAttachmentResolveService
49
+ ) {
41
50
  super(themeService);
42
51
  this.widgetRef = widgetRef;
43
52
  this.attachmentModel = attachmentModel;
@@ -47,12 +56,17 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
47
56
  this.logService = logService;
48
57
  this.chatAttachmentResolveService = chatAttachmentResolveService;
49
58
  this.overlays = ( new Map());
50
- this.overlayTextBackground = '';
59
+ this.overlayTextBackground = "";
51
60
  this.disableOverlay = false;
52
61
  this.currentActiveTarget = undefined;
53
62
  this.updateStyles();
54
63
  this._register(toDisposable(() => {
55
- this.overlays.forEach(({ overlay, disposable }) => {
64
+ this.overlays.forEach((
65
+ {
66
+ overlay,
67
+ disposable
68
+ }
69
+ ) => {
56
70
  disposable.dispose();
57
71
  overlay.remove();
58
72
  });
@@ -64,8 +78,14 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
64
78
  }
65
79
  addOverlay(target, overlayContainer) {
66
80
  this.removeOverlay(target);
67
- const { overlay, disposable } = this.createOverlay(target, overlayContainer);
68
- this.overlays.set(target, { overlay, disposable });
81
+ const {
82
+ overlay,
83
+ disposable
84
+ } = this.createOverlay(target, overlayContainer);
85
+ this.overlays.set(target, {
86
+ overlay,
87
+ disposable
88
+ });
69
89
  }
70
90
  removeOverlay(target) {
71
91
  if (this.currentActiveTarget === target) {
@@ -82,12 +102,12 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
82
102
  this.disableOverlay = disable;
83
103
  }
84
104
  createOverlay(target, overlayContainer) {
85
- const overlay = createElement('div');
86
- overlay.classList.add('chat-dnd-overlay');
105
+ const overlay = createElement("div");
106
+ overlay.classList.add("chat-dnd-overlay");
87
107
  this.updateOverlayStyles(overlay);
88
108
  overlayContainer.appendChild(overlay);
89
109
  const disposable = ( new DragAndDropObserver(target, {
90
- onDragOver: (e) => {
110
+ onDragOver: e => {
91
111
  if (this.disableOverlay) {
92
112
  return;
93
113
  }
@@ -102,7 +122,7 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
102
122
  this.currentActiveTarget = target;
103
123
  this.onDragEnter(e, target);
104
124
  },
105
- onDragLeave: (e) => {
125
+ onDragLeave: e => {
106
126
  if (this.disableOverlay) {
107
127
  return;
108
128
  }
@@ -111,7 +131,7 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
111
131
  }
112
132
  this.onDragLeave(e, target);
113
133
  },
114
- onDrop: (e) => {
134
+ onDrop: e => {
115
135
  if (this.disableOverlay) {
116
136
  return;
117
137
  }
@@ -122,9 +142,12 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
122
142
  }
123
143
  this.currentActiveTarget = undefined;
124
144
  this.onDrop(e, target);
125
- },
145
+ }
126
146
  }));
127
- return { overlay, disposable };
147
+ return {
148
+ overlay,
149
+ disposable
150
+ };
128
151
  }
129
152
  onDragEnter(e, target) {
130
153
  const estimatedDropType = this.guessDropType(e);
@@ -147,36 +170,34 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
147
170
  updateDropFeedback(e, target, dropType) {
148
171
  const showOverlay = dropType !== undefined;
149
172
  if (e.dataTransfer) {
150
- e.dataTransfer.dropEffect = showOverlay ? 'copy' : 'none';
173
+ e.dataTransfer.dropEffect = showOverlay ? "copy" : "none";
151
174
  }
152
175
  this.setOverlay(target, dropType);
153
176
  }
154
177
  guessDropType(e) {
155
178
  if (containsDragType(e, CodeDataTransfers.NOTEBOOK_CELL_OUTPUT)) {
156
179
  return ChatDragAndDropType.NOTEBOOK_CELL_OUTPUT;
157
- }
158
- else if (containsDragType(e, CodeDataTransfers.SCM_HISTORY_ITEM)) {
180
+ } else if (containsDragType(e, CodeDataTransfers.SCM_HISTORY_ITEM)) {
159
181
  return ChatDragAndDropType.SCM_HISTORY_ITEM;
160
- }
161
- else if (containsImageDragType(e)) {
162
- return ( this.extensionService.extensions.some(ext => isProposedApiEnabled(ext, 'chatReferenceBinaryData'))) ? ChatDragAndDropType.IMAGE : undefined;
163
- }
164
- else if (containsDragType(e, 'text/html')) {
182
+ } else if (containsImageDragType(e)) {
183
+ return ( this.extensionService.extensions.some(ext => isProposedApiEnabled(ext, "chatReferenceBinaryData"))) ? ChatDragAndDropType.IMAGE : undefined;
184
+ } else if (containsDragType(e, "text/html")) {
165
185
  return ChatDragAndDropType.HTML;
166
- }
167
- else if (containsDragType(e, CodeDataTransfers.SYMBOLS)) {
186
+ } else if (containsDragType(e, CodeDataTransfers.SYMBOLS)) {
168
187
  return ChatDragAndDropType.SYMBOL;
169
- }
170
- else if (containsDragType(e, CodeDataTransfers.MARKERS)) {
188
+ } else if (containsDragType(e, CodeDataTransfers.MARKERS)) {
171
189
  return ChatDragAndDropType.MARKER;
172
- }
173
- else if (containsDragType(e, DataTransfers.FILES)) {
190
+ } else if (containsDragType(e, DataTransfers.FILES)) {
174
191
  return ChatDragAndDropType.FILE_EXTERNAL;
175
- }
176
- else if (containsDragType(e, CodeDataTransfers.EDITORS)) {
192
+ } else if (containsDragType(e, CodeDataTransfers.EDITORS)) {
177
193
  return ChatDragAndDropType.FILE_INTERNAL;
178
- }
179
- else if (containsDragType(e, Mimes.uriList, CodeDataTransfers.FILES, DataTransfers.RESOURCES, DataTransfers.INTERNAL_URI_LIST)) {
194
+ } else if (containsDragType(
195
+ e,
196
+ Mimes.uriList,
197
+ CodeDataTransfers.FILES,
198
+ DataTransfers.RESOURCES,
199
+ DataTransfers.INTERNAL_URI_LIST
200
+ )) {
180
201
  return ChatDragAndDropType.FOLDER;
181
202
  }
182
203
  return undefined;
@@ -187,15 +208,24 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
187
208
  }
188
209
  getDropTypeName(type) {
189
210
  switch (type) {
190
- case ChatDragAndDropType.FILE_INTERNAL: return localize(5765, 'File');
191
- case ChatDragAndDropType.FILE_EXTERNAL: return localize(5765, 'File');
192
- case ChatDragAndDropType.FOLDER: return localize(5766, 'Folder');
193
- case ChatDragAndDropType.IMAGE: return localize(5767, 'Image');
194
- case ChatDragAndDropType.SYMBOL: return localize(5768, 'Symbol');
195
- case ChatDragAndDropType.MARKER: return localize(5769, 'Problem');
196
- case ChatDragAndDropType.HTML: return localize(5770, 'URL');
197
- case ChatDragAndDropType.NOTEBOOK_CELL_OUTPUT: return localize(5771, 'Output');
198
- case ChatDragAndDropType.SCM_HISTORY_ITEM: return localize(5772, 'Change');
211
+ case ChatDragAndDropType.FILE_INTERNAL:
212
+ return localize(6021, "File");
213
+ case ChatDragAndDropType.FILE_EXTERNAL:
214
+ return localize(6021, "File");
215
+ case ChatDragAndDropType.FOLDER:
216
+ return localize(6022, "Folder");
217
+ case ChatDragAndDropType.IMAGE:
218
+ return localize(6023, "Image");
219
+ case ChatDragAndDropType.SYMBOL:
220
+ return localize(6024, "Symbol");
221
+ case ChatDragAndDropType.MARKER:
222
+ return localize(6025, "Problem");
223
+ case ChatDragAndDropType.HTML:
224
+ return localize(6026, "URL");
225
+ case ChatDragAndDropType.NOTEBOOK_CELL_OUTPUT:
226
+ return localize(6027, "Output");
227
+ case ChatDragAndDropType.SCM_HISTORY_ITEM:
228
+ return localize(6028, "Change");
199
229
  }
200
230
  }
201
231
  async resolveAttachmentsFromDragEvent(e) {
@@ -232,12 +262,12 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
232
262
  if (internal) {
233
263
  const uriList = UriList.parse(internal);
234
264
  if (uriList.length) {
235
- return coalesce(await Promise.all(( uriList.map(
236
- uri => this.chatAttachmentResolveService.resolveEditorAttachContext({ resource: ( URI.parse(uri)) })
237
- ))));
265
+ return coalesce(await Promise.all(( uriList.map(uri => this.chatAttachmentResolveService.resolveEditorAttachContext({
266
+ resource: ( URI.parse(uri))
267
+ })))));
238
268
  }
239
269
  }
240
- if (!containsDragType(e, DataTransfers.INTERNAL_URI_LIST) && containsDragType(e, Mimes.uriList) && (((containsDragType(e, Mimes.html) || containsDragType(e, Mimes.text)) ))) {
270
+ if (!containsDragType(e, DataTransfers.INTERNAL_URI_LIST) && containsDragType(e, Mimes.uriList) && (containsDragType(e, Mimes.html) || containsDragType(e, Mimes.text)) ) {
241
271
  return this.resolveHTMLAttachContext(e);
242
272
  }
243
273
  return [];
@@ -248,22 +278,26 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
248
278
  if (extractedImages) {
249
279
  return extractedImages.buffer;
250
280
  }
251
- }
252
- catch (error) {
253
- this.logService.warn('Fetch failed:', error);
281
+ } catch (error) {
282
+ this.logService.warn("Fetch failed:", error);
254
283
  }
255
284
  const widget = this.widgetRef();
256
285
  const selection = widget?.inputEditor.getSelection();
257
286
  if (selection && widget) {
258
- widget.inputEditor.executeEdits('chatInsertUrl', [{ range: selection, text: url }]);
259
- }
260
- this.logService.warn(`Image URLs must end in .jpg, .png, .gif, .webp, or .bmp. Failed to fetch image from this URL: ${url}`);
287
+ widget.inputEditor.executeEdits("chatInsertUrl", [{
288
+ range: selection,
289
+ text: url
290
+ }]);
291
+ }
292
+ this.logService.warn(
293
+ `Image URLs must end in .jpg, .png, .gif, .webp, or .bmp. Failed to fetch image from this URL: ${url}`
294
+ );
261
295
  return undefined;
262
296
  }
263
297
  async resolveHTMLAttachContext(e) {
264
298
  const existingAttachmentNames = ( new Set(( this.attachmentModel.attachments.map(attachment => attachment.name))));
265
299
  const createDisplayName = () => {
266
- const baseName = ( localize(5773, 'Image from URL'));
300
+ const baseName = ( localize(6029, "Image from URL"));
267
301
  let uniqueName = baseName;
268
302
  let baseNameInstance = 1;
269
303
  while (( existingAttachmentNames.has(uniqueName))) {
@@ -272,26 +306,37 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
272
306
  existingAttachmentNames.add(uniqueName);
273
307
  return uniqueName;
274
308
  };
275
- const getImageTransferDataFromUrl = async (url) => {
309
+ const getImageTransferDataFromUrl = async url => {
276
310
  const resource = ( URI.parse(url));
277
311
  if (IMAGE_DATA_REGEX.test(url)) {
278
- return { data: convertStringToUInt8Array(url), name: createDisplayName(), resource };
312
+ return {
313
+ data: convertStringToUInt8Array(url),
314
+ name: createDisplayName(),
315
+ resource
316
+ };
279
317
  }
280
318
  if (URL_REGEX.test(url)) {
281
319
  const data = await this.downloadImageAsUint8Array(url);
282
320
  if (data) {
283
- return { data, name: createDisplayName(), resource, id: url };
321
+ return {
322
+ data,
323
+ name: createDisplayName(),
324
+ resource,
325
+ id: url
326
+ };
284
327
  }
285
328
  }
286
329
  return undefined;
287
330
  };
288
- const getImageTransferDataFromFile = async (file) => {
331
+ const getImageTransferDataFromFile = async file => {
289
332
  try {
290
333
  const buffer = await file.arrayBuffer();
291
- return { data: ( new Uint8Array(buffer)), name: createDisplayName() };
292
- }
293
- catch (error) {
294
- this.logService.error('Error reading file:', error);
334
+ return {
335
+ data: ( new Uint8Array(buffer)),
336
+ name: createDisplayName()
337
+ };
338
+ } catch (error) {
339
+ this.logService.error("Error reading file:", error);
295
340
  }
296
341
  return undefined;
297
342
  };
@@ -311,67 +356,62 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
311
356
  setOverlay(target, type) {
312
357
  this.overlayText?.remove();
313
358
  this.overlayText = undefined;
314
- const { overlay } = this.overlays.get(target);
359
+ const {
360
+ overlay
361
+ } = this.overlays.get(target);
315
362
  if (type !== undefined) {
316
363
  const iconAndtextElements = renderLabelWithIcons(`$(${Codicon.attach.id}) ${this.getOverlayText(type)}`);
317
364
  const htmlElements = ( iconAndtextElements.map(element => {
318
- if (typeof element === 'string') {
319
- return $('span.overlay-text', undefined, element);
365
+ if (typeof element === "string") {
366
+ return $("span.overlay-text", undefined, element);
320
367
  }
321
368
  return element;
322
369
  }));
323
- this.overlayText = $('span.attach-context-overlay-text', undefined, ...htmlElements);
370
+ this.overlayText = $("span.attach-context-overlay-text", undefined, ...htmlElements);
324
371
  this.overlayText.style.backgroundColor = this.overlayTextBackground;
325
372
  overlay.appendChild(this.overlayText);
326
373
  }
327
- overlay.classList.toggle('visible', type !== undefined);
374
+ overlay.classList.toggle("visible", type !== undefined);
328
375
  }
329
376
  getOverlayText(type) {
330
377
  const typeName = this.getDropTypeName(type);
331
- return localize(5774, 'Attach {0} as Context', typeName);
378
+ return localize(6030, "Attach {0} as Context", typeName);
332
379
  }
333
380
  updateOverlayStyles(overlay) {
334
- overlay.style.backgroundColor = this.getColor(this.styles.overlayBackground) || '';
335
- overlay.style.color = this.getColor(this.styles.listForeground) || '';
381
+ overlay.style.backgroundColor = this.getColor(this.styles.overlayBackground) || "";
382
+ overlay.style.color = this.getColor(this.styles.listForeground) || "";
336
383
  }
337
384
  updateStyles() {
338
385
  this.overlays.forEach(overlay => this.updateOverlayStyles(overlay.overlay));
339
- this.overlayTextBackground = this.getColor(this.styles.listBackground) || '';
386
+ this.overlayTextBackground = this.getColor(this.styles.listBackground) || "";
340
387
  }
341
388
  };
342
- ChatDragAndDrop = ( __decorate([
343
- ( __param(3, IThemeService)),
344
- ( __param(4, IExtensionService)),
345
- ( __param(5, ISharedWebContentExtractorService)),
346
- ( __param(6, ILogService)),
347
- ( __param(7, IChatAttachmentResolveService))
348
- ], ChatDragAndDrop));
389
+ ChatDragAndDrop = ( __decorate([( __param(3, IThemeService)), ( __param(4, IExtensionService)), ( __param(5, ISharedWebContentExtractorService)), ( __param(6, ILogService)), ( __param(7, IChatAttachmentResolveService))], ChatDragAndDrop));
349
390
  function containsImageDragType(e) {
350
- if (containsDragType(e, 'image')) {
391
+ if (containsDragType(e, "image")) {
351
392
  return true;
352
393
  }
353
394
  if (containsDragType(e, DataTransfers.FILES)) {
354
395
  const files = e.dataTransfer?.files;
355
396
  if (files && files.length > 0) {
356
- return ( Array.from(files).some(file => file.type.startsWith('image/')));
397
+ return ( Array.from(files).some(file => file.type.startsWith("image/")));
357
398
  }
358
399
  const items = e.dataTransfer?.items;
359
400
  if (items && items.length > 0) {
360
- return ( Array.from(items).some(item => item.type.startsWith('image/')));
401
+ return ( Array.from(items).some(item => item.type.startsWith("image/")));
361
402
  }
362
403
  }
363
404
  return false;
364
405
  }
365
406
  function extractUrlsFromDragEvent(e, logService) {
366
- const textUrl = e.dataTransfer?.getData('text/uri-list');
407
+ const textUrl = e.dataTransfer?.getData("text/uri-list");
367
408
  if (textUrl) {
368
409
  try {
369
410
  const urls = UriList.parse(textUrl);
370
411
  if (urls.length > 0) {
371
412
  return urls;
372
413
  }
373
- }
374
- catch (error) {
414
+ } catch (error) {
375
415
  return [];
376
416
  }
377
417
  }
@@ -382,7 +422,7 @@ function extractImageFilesFromDragEvent(e) {
382
422
  if (!files) {
383
423
  return [];
384
424
  }
385
- return Array.from(files).filter(file => file.type.startsWith('image/'));
425
+ return Array.from(files).filter(file => file.type.startsWith("image/"));
386
426
  }
387
427
 
388
428
  export { ChatDragAndDrop };
@@ -1,10 +1,11 @@
1
1
  import { DropdownMenuActionViewItem, IDropdownMenuActionViewItemOptions } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/dropdown/dropdownActionViewItem";
2
- import { IListElementRenderDetails, IListVirtualDelegate } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/list/list";
2
+ import { CachedListVirtualDelegate, IListElementRenderDetails } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/list/list";
3
3
  import { ITreeNode, ITreeRenderer } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/tree";
4
4
  import { IAction } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
5
5
  import { Emitter, Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
6
6
  import { FuzzyScore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/filters";
7
7
  import { Disposable, DisposableStore, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
8
+ import { ScrollEvent } from "@codingame/monaco-vscode-api/vscode/vs/base/common/scrollable";
8
9
  import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
9
10
  import { MenuWorkbenchToolBar } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/toolbar";
10
11
  import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
@@ -18,6 +19,7 @@ import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/t
18
19
  import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
19
20
  import { IWorkbenchIssueService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/issue/common/issue.service";
20
21
  import { IChatFollowup, IChatThinkingPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
22
+ import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
21
23
  import { IChatResponseViewModel, IChatViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
22
24
  import { CodeBlockModelCollection } from "../../common/widget/codeBlockModelCollection.js";
23
25
  import { ChatModeKind } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants";
@@ -27,6 +29,7 @@ import { ChatAgentHover } from "./chatAgentHover.js";
27
29
  import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
28
30
  import { ChatEditorOptions } from "./chatOptions.js";
29
31
  import { CodeBlockPart } from "./chatContentParts/codeBlockPart.js";
32
+ import { IChatTipService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatTipService.service";
30
33
  export interface IChatListItemTemplate {
31
34
  currentElement?: ChatTreeItem;
32
35
  /**
@@ -34,6 +37,10 @@ export interface IChatListItemTemplate {
34
37
  * they are disposed in a separate cycle after diffing with the next content to render.
35
38
  */
36
39
  renderedParts?: IChatContentPart[];
40
+ /**
41
+ * Element used to track whether the template is mounted in the DOM.
42
+ */
43
+ renderedPartsMounted?: boolean;
37
44
  readonly rowContainer: HTMLElement;
38
45
  readonly titleToolbar?: MenuWorkbenchToolBar;
39
46
  readonly header?: HTMLElement;
@@ -63,7 +70,7 @@ export interface IChatRendererDelegate {
63
70
  container: HTMLElement;
64
71
  getListLength(): number;
65
72
  currentChatMode(): ChatModeKind;
66
- readonly onDidScroll?: Event<void>;
73
+ readonly onDidScroll?: Event<ScrollEvent>;
67
74
  }
68
75
  export declare class ChatListItemRenderer extends Disposable implements ITreeRenderer<ChatTreeItem, FuzzyScore, IChatListItemTemplate> {
69
76
  private rendererOptions;
@@ -79,12 +86,16 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
79
86
  private readonly hoverService;
80
87
  private readonly chatWidgetService;
81
88
  private readonly chatEntitlementService;
89
+ private readonly chatService;
90
+ private readonly chatTipService;
82
91
  static readonly ID = "item";
83
92
  private readonly codeBlocksByResponseId;
84
93
  private readonly codeBlocksByEditorUri;
85
94
  private readonly fileTreesByResponseId;
86
95
  private readonly focusedFileTreesByResponseId;
87
96
  private readonly templateDataByRequestId;
97
+ /** Track pending question carousels by session resource for auto-skip on chat submission */
98
+ private readonly pendingQuestionCarousels;
88
99
  private readonly chatContentMarkdownRenderer;
89
100
  private readonly markdownDecorationsRenderer;
90
101
  protected readonly _onDidClickFollowup: Emitter<IChatFollowup>;
@@ -104,6 +115,7 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
104
115
  readonly onDidFocusOutside: Event<void>;
105
116
  protected readonly _onDidChangeItemHeight: Emitter<IItemHeightChangeParams>;
106
117
  readonly onDidChangeItemHeight: Event<IItemHeightChangeParams>;
118
+ private readonly _onDidUpdateViewModel;
107
119
  private readonly _editorPool;
108
120
  private readonly _toolEditorPool;
109
121
  private readonly _diffEditorPool;
@@ -111,6 +123,7 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
111
123
  private readonly _contentReferencesListPool;
112
124
  private _currentLayoutWidth;
113
125
  private _isVisible;
126
+ private _elementBeingRendered;
114
127
  private _onDidChangeVisibility;
115
128
  /**
116
129
  * Tool invocations get their own so that the ChatViewModel doesn't overwrite it.
@@ -122,7 +135,7 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
122
135
  * by screen readers
123
136
  */
124
137
  private readonly _announcedToolProgressKeys;
125
- constructor(editorOptions: ChatEditorOptions, rendererOptions: IChatListItemRendererOptions, delegate: IChatRendererDelegate, codeBlockModelCollection: CodeBlockModelCollection, overflowWidgetsDomNode: HTMLElement | undefined, viewModel: IChatViewModel | undefined, instantiationService: IInstantiationService, configService: IConfigurationService, logService: ILogService, contextKeyService: IContextKeyService, themeService: IThemeService, commandService: ICommandService, hoverService: IHoverService, chatWidgetService: IChatWidgetService, chatEntitlementService: IChatEntitlementService);
138
+ constructor(editorOptions: ChatEditorOptions, rendererOptions: IChatListItemRendererOptions, delegate: IChatRendererDelegate, codeBlockModelCollection: CodeBlockModelCollection, overflowWidgetsDomNode: HTMLElement | undefined, viewModel: IChatViewModel | undefined, instantiationService: IInstantiationService, configService: IConfigurationService, logService: ILogService, contextKeyService: IContextKeyService, themeService: IThemeService, commandService: ICommandService, hoverService: IHoverService, chatWidgetService: IChatWidgetService, chatEntitlementService: IChatEntitlementService, chatService: IChatService, chatTipService: IChatTipService);
126
139
  updateOptions(options: IChatListItemRendererOptions): void;
127
140
  get templateId(): string;
128
141
  editorsInUse(): Iterable<CodeBlockPart>;
@@ -141,8 +154,12 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
141
154
  layout(width: number): void;
142
155
  renderTemplate(container: HTMLElement): IChatListItemTemplate;
143
156
  renderElement(node: ITreeNode<ChatTreeItem, FuzzyScore>, index: number, templateData: IChatListItemTemplate): void;
157
+ /**
158
+ * Dispose the rendered parts in the template, which aren't done in disposeElement
159
+ * so they can be reused when a new render is started.
160
+ */
144
161
  private clearRenderedParts;
145
- renderChatTreeItem(element: ChatTreeItem, index: number, templateData: IChatListItemTemplate): void;
162
+ private renderChatTreeItem;
146
163
  private renderDetail;
147
164
  private renderConfirmationAction;
148
165
  private renderAvatar;
@@ -151,8 +168,6 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
151
168
  private shouldShowWorkingProgress;
152
169
  private getChatFileChangesSummaryPart;
153
170
  private renderChatRequest;
154
- updateItemHeightOnRender(element: ChatTreeItem, templateData: IChatListItemTemplate): void;
155
- private updateItemHeight;
156
171
  /**
157
172
  * @returns true if progressive rendering should be considered complete- the element's data is fully rendered or the view is not visible
158
173
  */
@@ -165,9 +180,20 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
165
180
  private shouldShowFileChangesSummary;
166
181
  private getDataForProgressiveRender;
167
182
  private diff;
183
+ private hasCodeblockUri;
184
+ private isCodeblockComplete;
168
185
  private shouldPinPart;
169
- private isCreateToolInvocationContent;
170
186
  private getLastThinkingPart;
187
+ /**
188
+ * Determines if a thinking part at the given content index is "look-ahead complete".
189
+ * A thinking part is look-ahead complete if there are subsequent parts that will NOT
190
+ * be pinned to it, meaning we know this thinking part is already done even though
191
+ * the overall response is still in progress.
192
+ */
193
+ private isThinkingLookAheadComplete;
194
+ private getSubagentPart;
195
+ private finalizeAllSubagentParts;
196
+ private handleSubagentToolGrouping;
171
197
  private finalizeCurrentThinkingPart;
172
198
  private renderChatContentPart;
173
199
  dispose(): void;
@@ -180,11 +206,14 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
180
206
  private renderCodeCitations;
181
207
  private handleRenderedCodeblocks;
182
208
  private renderToolInvocation;
209
+ private setupConfirmationTransitionWatcher;
183
210
  private renderExtensionsContent;
184
211
  private renderPullRequestContent;
185
212
  private renderProgressTask;
186
213
  private renderConfirmation;
187
214
  private renderElicitation;
215
+ private renderQuestionCarousel;
216
+ private removeCarouselFromTracking;
188
217
  private renderChangesSummary;
189
218
  private renderAttachments;
190
219
  private renderTextEdit;
@@ -196,12 +225,10 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
196
225
  private hoverVisible;
197
226
  private hoverHidden;
198
227
  }
199
- export declare class ChatListDelegate implements IListVirtualDelegate<ChatTreeItem> {
228
+ export declare class ChatListDelegate extends CachedListVirtualDelegate<ChatTreeItem> {
200
229
  private readonly defaultElementHeight;
201
- private readonly logService;
202
- constructor(defaultElementHeight: number, logService: ILogService);
203
- private _traceLayout;
204
- getHeight(element: ChatTreeItem): number;
230
+ constructor(defaultElementHeight: number);
231
+ protected estimateHeight(element: ChatTreeItem): number;
205
232
  getTemplateId(element: ChatTreeItem): string;
206
233
  hasDynamicHeight(element: ChatTreeItem): boolean;
207
234
  }