@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
@@ -0,0 +1,485 @@
1
+
2
+ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
+ import { createElement, Dimension } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
+ import { Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
5
+ import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
6
+ import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
7
+ import { Disposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
8
+ import { MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
9
+ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
10
+ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
11
+ import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
12
+ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
13
+ import { ServiceCollection } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/serviceCollection';
14
+ import { WorkbenchObjectTree } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
15
+ import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
16
+ import { asCssVariable } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
17
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/baseColors';
18
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/chartsColors';
19
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/editorColors';
20
+ import { buttonSecondaryHoverBackground, buttonSecondaryForeground, buttonSecondaryBackground } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/inputColors';
21
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/listColors';
22
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/menuColors';
23
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/minimapColors';
24
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/miscColors';
25
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
26
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
27
+ import { katexContainerClassName } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/markdown/common/markedKatexExtension';
28
+ import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
29
+ import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
30
+ import { ChatModeKind, ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
31
+ import { isRequestVM, isResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel';
32
+ import { CodeBlockModelCollection } from '../../common/widget/codeBlockModelCollection.js';
33
+ import { ChatAccessibilityProvider } from '../accessibility/chatAccessibilityProvider.js';
34
+ import { IChatAccessibilityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
35
+ import { ChatListDelegate, ChatListItemRenderer } from './chatListRenderer.js';
36
+ import { ChatEditorOptions } from './chatOptions.js';
37
+
38
+ let ChatListWidget = class ChatListWidget extends Disposable {
39
+ get onDidClickRequest() {
40
+ return this._renderer.onDidClickRequest;
41
+ }
42
+ get onDidRerender() {
43
+ return this._renderer.onDidRerender;
44
+ }
45
+ get onDidDispose() {
46
+ return this._renderer.onDidDispose;
47
+ }
48
+ get onDidFocusOutside() {
49
+ return this._renderer.onDidFocusOutside;
50
+ }
51
+ get domNode() {
52
+ return this._container;
53
+ }
54
+ get scrollTop() {
55
+ return this._tree.scrollTop;
56
+ }
57
+ set scrollTop(value) {
58
+ this._tree.scrollTop = value;
59
+ }
60
+ get scrollHeight() {
61
+ return this._tree.scrollHeight;
62
+ }
63
+ get renderHeight() {
64
+ return this._tree.renderHeight;
65
+ }
66
+ get contentHeight() {
67
+ return this._tree.contentHeight;
68
+ }
69
+ get isScrolledToBottom() {
70
+ return this._tree.scrollTop + this._tree.renderHeight >= this._tree.scrollHeight - 2;
71
+ }
72
+ get lastItem() {
73
+ return this._lastItem;
74
+ }
75
+ constructor(
76
+ container,
77
+ options,
78
+ instantiationService,
79
+ contextKeyService,
80
+ chatService,
81
+ contextMenuService,
82
+ logService,
83
+ configurationService,
84
+ chatAccessibilityService
85
+ ) {
86
+ super();
87
+ this.instantiationService = instantiationService;
88
+ this.contextKeyService = contextKeyService;
89
+ this.chatService = chatService;
90
+ this.contextMenuService = contextMenuService;
91
+ this.logService = logService;
92
+ this.configurationService = configurationService;
93
+ this.chatAccessibilityService = chatAccessibilityService;
94
+ this._onDidScroll = this._register(( new Emitter()));
95
+ this.onDidScroll = this._onDidScroll.event;
96
+ this._onDidChangeContentHeight = this._register(( new Emitter()));
97
+ this.onDidChangeContentHeight = this._onDidChangeContentHeight.event;
98
+ this._onDidClickFollowup = this._register(( new Emitter()));
99
+ this.onDidClickFollowup = this._onDidClickFollowup.event;
100
+ this._onDidFocus = this._register(( new Emitter()));
101
+ this.onDidFocus = this._onDidFocus.event;
102
+ this._onDidChangeItemHeight = this._register(( new Emitter()));
103
+ this.onDidChangeItemHeight = this._onDidChangeItemHeight.event;
104
+ this._visible = true;
105
+ this._mostRecentlyFocusedItemIndex = -1;
106
+ this._scrollLock = true;
107
+ this._settingChangeCounter = 0;
108
+ this._visibleChangeCount = 0;
109
+ this._bodyDimension = null;
110
+ this._previousLastItemMinHeight = null;
111
+ this._viewModel = options.viewModel;
112
+ this._codeBlockModelCollection = options.codeBlockModelCollection ?? this._register(
113
+ this.instantiationService.createInstance(CodeBlockModelCollection, "chatListWidget")
114
+ );
115
+ this._location = options.location;
116
+ this._getCurrentLanguageModelId = options.getCurrentLanguageModelId;
117
+ this._getCurrentModeInfo = options.getCurrentModeInfo;
118
+ this._lastItemIdContextKey = ChatContextKeys.lastItemId.bindTo(this.contextKeyService);
119
+ this._container = container;
120
+ const scopedInstantiationService = this._register(this.instantiationService.createChild(( new ServiceCollection([IContextKeyService, this.contextKeyService]))));
121
+ this._renderStyle = options.renderStyle;
122
+ const overflowWidgetsContainer = options.overflowWidgetsDomNode ?? createElement("div");
123
+ if (!options.overflowWidgetsDomNode) {
124
+ overflowWidgetsContainer.classList.add("chat-overflow-widget-container", "monaco-editor");
125
+ this._container.append(overflowWidgetsContainer);
126
+ this._register(toDisposable(() => overflowWidgetsContainer.remove()));
127
+ }
128
+ const editorOptions = options.editorOptions ?? this._register(scopedInstantiationService.createInstance(
129
+ ChatEditorOptions,
130
+ options.viewId,
131
+ "foreground",
132
+ options.inputEditorBackground ?? "chat.requestEditor.background",
133
+ options.resultEditorBackground ?? "chat.responseEditor.background"
134
+ ));
135
+ const delegate = scopedInstantiationService.createInstance(ChatListDelegate, options.defaultElementHeight ?? 200);
136
+ const rendererDelegate = {
137
+ getListLength: () => this._tree.getNode(null).visibleChildrenCount,
138
+ onDidScroll: this.onDidScroll,
139
+ container: this._container,
140
+ currentChatMode: options.currentChatMode ?? (() => ChatModeKind.Ask)
141
+ };
142
+ this._renderer = this._register(scopedInstantiationService.createInstance(
143
+ ChatListItemRenderer,
144
+ editorOptions,
145
+ options.rendererOptions ?? {},
146
+ rendererDelegate,
147
+ this._codeBlockModelCollection,
148
+ overflowWidgetsContainer,
149
+ this._viewModel
150
+ ));
151
+ this._register(this._renderer.onDidClickFollowup(item => {
152
+ this._onDidClickFollowup.fire(item);
153
+ }));
154
+ this._register(this._renderer.onDidChangeItemHeight(e => {
155
+ this._updateElementHeight(e.element, e.height);
156
+ const secondToLastItem = this._viewModel?.getItems().at(-2);
157
+ if (e.element.id === secondToLastItem?.id) {
158
+ this.updateLastItemMinHeight();
159
+ }
160
+ this._onDidChangeItemHeight.fire(e);
161
+ }));
162
+ this._register(this._renderer.onDidClickRerunWithAgentOrCommandDetection(e => {
163
+ const request = this.chatService.getSession(e.sessionResource)?.getRequests().find(candidate => candidate.id === e.requestId);
164
+ if (request) {
165
+ const sendOptions = {
166
+ noCommandDetection: true,
167
+ attempt: request.attempt + 1,
168
+ location: this._location,
169
+ userSelectedModelId: this._getCurrentLanguageModelId?.(),
170
+ modeInfo: this._getCurrentModeInfo?.()
171
+ };
172
+ this.chatAccessibilityService.acceptRequest(e.sessionResource);
173
+ this.chatService.resendRequest(request, sendOptions).catch(e => this.logService.error("FAILED to rerun request", e));
174
+ }
175
+ }));
176
+ const styles = options.styles ?? {};
177
+ this._tree = this._register(scopedInstantiationService.createInstance(
178
+ WorkbenchObjectTree,
179
+ "ChatList",
180
+ this._container,
181
+ delegate,
182
+ [this._renderer],
183
+ {
184
+ identityProvider: {
185
+ getId: e => e.id
186
+ },
187
+ horizontalScrolling: false,
188
+ alwaysConsumeMouseWheel: false,
189
+ supportDynamicHeights: true,
190
+ hideTwistiesOfChildlessElements: true,
191
+ accessibilityProvider: this.instantiationService.createInstance(ChatAccessibilityProvider),
192
+ keyboardNavigationLabelProvider: {
193
+ getKeyboardNavigationLabel: e => isRequestVM(e) ? e.message : isResponseVM(e) ? e.response.value : ""
194
+ },
195
+ setRowLineHeight: false,
196
+ scrollToActiveElement: true,
197
+ filter: options.filter,
198
+ overrideStyles: {
199
+ listFocusBackground: styles.listBackground,
200
+ listInactiveFocusBackground: styles.listBackground,
201
+ listActiveSelectionBackground: styles.listBackground,
202
+ listFocusAndSelectionBackground: styles.listBackground,
203
+ listInactiveSelectionBackground: styles.listBackground,
204
+ listHoverBackground: styles.listBackground,
205
+ listBackground: styles.listBackground,
206
+ listFocusForeground: styles.listForeground,
207
+ listHoverForeground: styles.listForeground,
208
+ listInactiveFocusForeground: styles.listForeground,
209
+ listInactiveSelectionForeground: styles.listForeground,
210
+ listActiveSelectionForeground: styles.listForeground,
211
+ listFocusAndSelectionForeground: styles.listForeground,
212
+ listActiveSelectionIconForeground: undefined,
213
+ listInactiveSelectionIconForeground: undefined
214
+ }
215
+ }
216
+ ));
217
+ this._scrollDownButton = this._register(( new Button(this._container, {
218
+ buttonBackground: asCssVariable(buttonSecondaryBackground),
219
+ buttonForeground: asCssVariable(buttonSecondaryForeground),
220
+ buttonHoverBackground: asCssVariable(buttonSecondaryHoverBackground),
221
+ buttonSecondaryBackground: undefined,
222
+ buttonSecondaryForeground: undefined,
223
+ buttonSecondaryHoverBackground: undefined,
224
+ buttonSeparator: undefined,
225
+ supportIcons: true
226
+ })));
227
+ this._scrollDownButton.element.classList.add("chat-scroll-down");
228
+ this._scrollDownButton.label = `$(${Codicon.chevronDown.id})`;
229
+ this._scrollDownButton.element.style.display = "none";
230
+ this._register(this._scrollDownButton.onDidClick(() => {
231
+ this.setScrollLock(true);
232
+ this.scrollToEnd();
233
+ }));
234
+ this._register(this._tree.onDidChangeContentHeight(() => {
235
+ this._onDidChangeContentHeight.fire();
236
+ }));
237
+ this._register(this._tree.onDidFocus(() => {
238
+ this._onDidFocus.fire();
239
+ }));
240
+ this._register(this._tree.onDidChangeFocus(() => {
241
+ const focused = this.getFocus();
242
+ if (focused && focused.length > 0) {
243
+ const focusedItem = focused[0];
244
+ const items = this.getItems();
245
+ const idx = items.findIndex(i => i === focusedItem);
246
+ if (idx !== -1) {
247
+ this._mostRecentlyFocusedItemIndex = idx;
248
+ }
249
+ }
250
+ }));
251
+ this._register(this._tree.onDidScroll(e => {
252
+ this._onDidScroll.fire(e);
253
+ this.updateScrollDownButtonVisibility();
254
+ }));
255
+ this._register(this._tree.onContextMenu(e => {
256
+ this.handleContextMenu(e);
257
+ }));
258
+ this._register(this.configurationService.onDidChangeConfiguration(e => {
259
+ if (e.affectsConfiguration(ChatConfiguration.EditRequests) || e.affectsConfiguration(ChatConfiguration.CheckpointsEnabled)) {
260
+ this._settingChangeCounter++;
261
+ this.refresh();
262
+ }
263
+ }));
264
+ }
265
+ updateScrollDownButtonVisibility() {
266
+ const show = !this.isScrolledToBottom && !this._scrollLock;
267
+ this._scrollDownButton.element.style.display = show ? "" : "none";
268
+ }
269
+ handleContextMenu(e) {
270
+ e.browserEvent.preventDefault();
271
+ e.browserEvent.stopPropagation();
272
+ const selected = e.element;
273
+ const target = e.browserEvent.target;
274
+ const isKatexElement = target.closest(`.${katexContainerClassName}`) !== null;
275
+ const scopedContextKeyService = this.contextKeyService.createOverlay([[
276
+ ChatContextKeys.responseIsFiltered.key,
277
+ isResponseVM(selected) && !!selected.errorDetails?.responseIsFiltered
278
+ ], [ChatContextKeys.isKatexMathElement.key, isKatexElement]]);
279
+ this.contextMenuService.showContextMenu({
280
+ menuId: MenuId.ChatContext,
281
+ menuActionOptions: {
282
+ shouldForwardArgs: true
283
+ },
284
+ contextKeyService: scopedContextKeyService,
285
+ getAnchor: () => e.anchor,
286
+ getActionsContext: () => selected
287
+ });
288
+ }
289
+ setViewModel(viewModel) {
290
+ this._viewModel = viewModel;
291
+ this._renderer.updateViewModel(viewModel);
292
+ }
293
+ refresh() {
294
+ if (!this._viewModel) {
295
+ this._tree.setChildren(null, []);
296
+ this._lastItem = undefined;
297
+ this._lastItemIdContextKey.set([]);
298
+ return;
299
+ }
300
+ const items = this._viewModel.getItems();
301
+ this._lastItem = items.at(-1);
302
+ this._lastItemIdContextKey.set(this._lastItem ? [this._lastItem.id] : []);
303
+ const treeItems = ( items.map(item => ({
304
+ element: item,
305
+ collapsed: false,
306
+ collapsible: false
307
+ })));
308
+ const editing = this._viewModel.editing;
309
+ const checkpoint = this._viewModel.model?.checkpoint;
310
+ this._withPersistedAutoScroll(() => {
311
+ this._tree.setChildren(null, treeItems, {
312
+ diffIdentityProvider: {
313
+ getId: element => {
314
+ return (
315
+ element.dataId +
316
+ `${isResponseVM(element) && element.renderData ? `_${this._visibleChangeCount}` : ""}` + (isResponseVM(element) ? `_${element.contentReferences.length}` : "") +
317
+ `_${element.shouldBeRemovedOnSend ? `${element.shouldBeRemovedOnSend.afterUndoStop || "1"}` : "0"}` +
318
+ `_${editing ? "1" : "0"}` +
319
+ `_${checkpoint ? "1" : "0"}` +
320
+ `_setting${this._settingChangeCounter}` + (isRequestVM(element) && element.contentReferences ? `_${element.contentReferences?.length}` : "")
321
+ );
322
+ }
323
+ }
324
+ });
325
+ });
326
+ }
327
+ setScrollLock(value) {
328
+ this._scrollLock = value;
329
+ this.updateScrollDownButtonVisibility();
330
+ }
331
+ get scrollLock() {
332
+ return this._scrollLock;
333
+ }
334
+ setVisibleChangeCount(value) {
335
+ this._visibleChangeCount = value;
336
+ }
337
+ scrollToCurrentItem(currentElement) {
338
+ if (!this._viewModel?.editing || !currentElement) {
339
+ return;
340
+ }
341
+ if (!this._tree.hasElement(currentElement)) {
342
+ return;
343
+ }
344
+ const relativeTop = this._tree.getRelativeTop(currentElement);
345
+ if (relativeTop === null || relativeTop < 0 || relativeTop > 1) {
346
+ this._tree.reveal(currentElement, 0);
347
+ }
348
+ }
349
+ rerender() {
350
+ this._tree.rerender();
351
+ }
352
+ getItems() {
353
+ const items = [];
354
+ const root = this._tree.getNode(null);
355
+ for (const child of root.children) {
356
+ if (child.element) {
357
+ items.push(child.element);
358
+ }
359
+ }
360
+ return items;
361
+ }
362
+ delegateScrollFromMouseWheelEvent(event) {
363
+ this._tree.delegateScrollFromMouseWheelEvent(event);
364
+ }
365
+ hasElement(element) {
366
+ return this._tree.hasElement(element);
367
+ }
368
+ _updateElementHeight(element, height) {
369
+ if (this._tree.hasElement(element) && this._visible) {
370
+ this._withPersistedAutoScroll(() => {
371
+ this._tree.updateElementHeight(element, height);
372
+ });
373
+ }
374
+ }
375
+ reveal(element, relativeTop) {
376
+ this._tree.reveal(element, relativeTop);
377
+ }
378
+ getFocus() {
379
+ return this._tree.getFocus().filter(e => e !== null);
380
+ }
381
+ setFocus(elements) {
382
+ this._tree.setFocus(elements);
383
+ }
384
+ focusItem(item) {
385
+ if (!this.hasElement(item)) {
386
+ return;
387
+ }
388
+ this._tree.setFocus([item]);
389
+ this._tree.domFocus();
390
+ }
391
+ focusLastItem(useMostRecentlyFocusedIndex) {
392
+ const items = this.getItems();
393
+ if (items.length === 0) {
394
+ return -1;
395
+ }
396
+ let focusIndex;
397
+ if (useMostRecentlyFocusedIndex && this._mostRecentlyFocusedItemIndex >= 0 && this._mostRecentlyFocusedItemIndex < items.length) {
398
+ focusIndex = this._mostRecentlyFocusedItemIndex;
399
+ } else {
400
+ focusIndex = items.length - 1;
401
+ }
402
+ this._tree.setFocus([items[focusIndex]]);
403
+ this._tree.domFocus();
404
+ return focusIndex;
405
+ }
406
+ scrollToEnd() {
407
+ if (this._lastItem) {
408
+ const offset = Math.max(this._lastItem.currentRenderedHeight ?? 0, 1e6);
409
+ if (this._tree.hasElement(this._lastItem)) {
410
+ this._tree.reveal(this._lastItem, offset);
411
+ }
412
+ }
413
+ }
414
+ _withPersistedAutoScroll(fn) {
415
+ const wasScrolledToBottom = this.isScrolledToBottom;
416
+ fn();
417
+ if (wasScrolledToBottom) {
418
+ this.scrollToEnd();
419
+ }
420
+ }
421
+ focus() {
422
+ this._tree.domFocus();
423
+ }
424
+ isDOMFocused() {
425
+ return this._tree.isDOMFocused();
426
+ }
427
+ getCodeBlockInfosForResponse(response) {
428
+ return this._renderer.getCodeBlockInfosForResponse(response);
429
+ }
430
+ getCodeBlockInfoForEditor(uri) {
431
+ return this._renderer.getCodeBlockInfoForEditor(uri);
432
+ }
433
+ getFileTreeInfosForResponse(response) {
434
+ return this._renderer.getFileTreeInfosForResponse(response);
435
+ }
436
+ getLastFocusedFileTreeForResponse(response) {
437
+ return this._renderer.getLastFocusedFileTreeForResponse(response);
438
+ }
439
+ editorsInUse() {
440
+ return this._renderer.editorsInUse();
441
+ }
442
+ getTemplateDataForRequestId(requestId) {
443
+ if (!requestId) {
444
+ return undefined;
445
+ }
446
+ return this._renderer.getTemplateDataForRequestId(requestId);
447
+ }
448
+ updateRendererOptions(options) {
449
+ this._renderer.updateOptions(options);
450
+ }
451
+ setVisible(visible) {
452
+ this._visible = visible;
453
+ this._renderer.setVisible(visible);
454
+ }
455
+ layout(height, width) {
456
+ this._bodyDimension = new Dimension(width ?? this._container.clientWidth, height);
457
+ this.updateLastItemMinHeight();
458
+ this._tree.layout(height, width);
459
+ this._renderer.layout(width ?? this._container.clientWidth);
460
+ }
461
+ updateLastItemMinHeight() {
462
+ if (!this._bodyDimension) {
463
+ return;
464
+ }
465
+ const contentHeight = this._bodyDimension.height;
466
+ if (this._renderStyle === "compact" || this._renderStyle === "minimal") {
467
+ this._container.style.removeProperty("--chat-current-response-min-height");
468
+ } else {
469
+ const secondToLastItem = this._viewModel?.getItems().at(-2);
470
+ const secondToLastItemHeight = Math.min(secondToLastItem?.currentRenderedHeight ?? 150, 150);
471
+ const lastItemMinHeight = Math.max(contentHeight - (secondToLastItemHeight + 10), 0);
472
+ this._container.style.setProperty("--chat-current-response-min-height", lastItemMinHeight + "px");
473
+ if (lastItemMinHeight !== this._previousLastItemMinHeight) {
474
+ this._previousLastItemMinHeight = lastItemMinHeight;
475
+ const lastItem = this._viewModel?.getItems().at(-1);
476
+ if (lastItem && this._visible && this._tree.hasElement(lastItem)) {
477
+ this._updateElementHeight(lastItem, undefined);
478
+ }
479
+ }
480
+ }
481
+ }
482
+ };
483
+ ChatListWidget = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IContextKeyService)), ( __param(4, IChatService)), ( __param(5, IContextMenuService)), ( __param(6, ILogService)), ( __param(7, IConfigurationService)), ( __param(8, IChatAccessibilityService))], ChatListWidget));
484
+
485
+ export { ChatListWidget };
@@ -8,24 +8,38 @@ import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/w
8
8
 
9
9
  var ChatEditorOptions_1;
10
10
  let ChatEditorOptions = class ChatEditorOptions extends Disposable {
11
- static { ChatEditorOptions_1 = this; }
12
- static { this.lineHeightEm = 1.4; }
11
+ static {
12
+ ChatEditorOptions_1 = this;
13
+ }
14
+ static {
15
+ this.lineHeightEm = 1.4;
16
+ }
13
17
  get configuration() {
14
18
  return this._config;
15
19
  }
16
- static { this.relevantSettingIds = [
17
- 'chat.editor.lineHeight',
18
- 'chat.editor.fontSize',
19
- 'chat.editor.fontFamily',
20
- 'chat.editor.fontWeight',
21
- 'chat.editor.wordWrap',
22
- 'editor.cursorBlinking',
23
- 'editor.fontLigatures',
24
- 'editor.accessibilitySupport',
25
- 'editor.bracketPairColorization.enabled',
26
- 'editor.bracketPairColorization.independentColorPoolPerBracketType',
27
- ]; }
28
- constructor(viewId, foreground, inputEditorBackgroundColor, resultEditorBackgroundColor, configurationService, themeService, viewDescriptorService) {
20
+ static {
21
+ this.relevantSettingIds = [
22
+ "chat.editor.lineHeight",
23
+ "chat.editor.fontSize",
24
+ "chat.editor.fontFamily",
25
+ "chat.editor.fontWeight",
26
+ "chat.editor.wordWrap",
27
+ "editor.cursorBlinking",
28
+ "editor.fontLigatures",
29
+ "editor.accessibilitySupport",
30
+ "editor.bracketPairColorization.enabled",
31
+ "editor.bracketPairColorization.independentColorPoolPerBracketType"
32
+ ];
33
+ }
34
+ constructor(
35
+ viewId,
36
+ foreground,
37
+ inputEditorBackgroundColor,
38
+ resultEditorBackgroundColor,
39
+ configurationService,
40
+ themeService,
41
+ viewDescriptorService
42
+ ) {
29
43
  super();
30
44
  this.foreground = foreground;
31
45
  this.inputEditorBackgroundColor = inputEditorBackgroundColor;
@@ -49,36 +63,32 @@ let ChatEditorOptions = class ChatEditorOptions extends Disposable {
49
63
  this.update();
50
64
  }
51
65
  update() {
52
- const editorConfig = this.configurationService.getValue('editor');
53
- const chatEditorConfig = this.configurationService.getValue('chat')?.editor;
54
- const accessibilitySupport = this.configurationService.getValue('editor.accessibilitySupport');
66
+ const editorConfig = this.configurationService.getValue("editor");
67
+ const chatEditorConfig = this.configurationService.getValue("chat")?.editor;
68
+ const accessibilitySupport = this.configurationService.getValue("editor.accessibilitySupport");
55
69
  this._config = {
56
70
  foreground: this.themeService.getColorTheme().getColor(this.foreground),
57
71
  inputEditor: {
58
72
  backgroundColor: this.themeService.getColorTheme().getColor(this.inputEditorBackgroundColor),
59
- accessibilitySupport,
73
+ accessibilitySupport
60
74
  },
61
75
  resultEditor: {
62
76
  backgroundColor: this.themeService.getColorTheme().getColor(this.resultEditorBackgroundColor),
63
77
  fontSize: chatEditorConfig.fontSize,
64
- fontFamily: chatEditorConfig.fontFamily === 'default' ? editorConfig.fontFamily : chatEditorConfig.fontFamily,
78
+ fontFamily: chatEditorConfig.fontFamily === "default" ? editorConfig.fontFamily : chatEditorConfig.fontFamily,
65
79
  fontWeight: chatEditorConfig.fontWeight,
66
80
  lineHeight: chatEditorConfig.lineHeight ? chatEditorConfig.lineHeight : ChatEditorOptions_1.lineHeightEm * chatEditorConfig.fontSize,
67
81
  bracketPairColorization: {
68
- enabled: this.configurationService.getValue('editor.bracketPairColorization.enabled'),
69
- independentColorPoolPerBracketType: this.configurationService.getValue('editor.bracketPairColorization.independentColorPoolPerBracketType'),
82
+ enabled: this.configurationService.getValue("editor.bracketPairColorization.enabled"),
83
+ independentColorPoolPerBracketType: this.configurationService.getValue("editor.bracketPairColorization.independentColorPoolPerBracketType")
70
84
  },
71
85
  wordWrap: chatEditorConfig.wordWrap,
72
- fontLigatures: editorConfig.fontLigatures,
86
+ fontLigatures: editorConfig.fontLigatures
73
87
  }
74
88
  };
75
89
  this._onDidChange.fire();
76
90
  }
77
91
  };
78
- ChatEditorOptions = ChatEditorOptions_1 = ( __decorate([
79
- ( __param(4, IConfigurationService)),
80
- ( __param(5, IThemeService)),
81
- ( __param(6, IViewDescriptorService))
82
- ], ChatEditorOptions));
92
+ ChatEditorOptions = ChatEditorOptions_1 = ( __decorate([( __param(4, IConfigurationService)), ( __param(5, IThemeService)), ( __param(6, IViewDescriptorService))], ChatEditorOptions));
83
93
 
84
94
  export { ChatEditorOptions };