@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
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
- import { $ as $$1, EventHelper, hide, append, clearNode } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
3
+ import { $ as $$1, EventHelper, hide } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
4
4
  import { coalesce } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
5
5
  import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
6
6
  import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
@@ -40,13 +40,22 @@ import { ChatCollapsibleContentPart } from './chatCollapsibleContentPart.js';
40
40
  import { ResourcePool } from './chatCollections.js';
41
41
  import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
42
42
 
43
- var CollapsibleListRenderer_1, DividerRenderer_1;
43
+ var CollapsibleListRenderer_1;
44
44
  const $ = $$1;
45
45
  let ChatCollapsibleListContentPart = class ChatCollapsibleListContentPart extends ChatCollapsibleContentPart {
46
- constructor(data, labelOverride, context, contentReferencesListPool, hoverMessage, openerService, menuService, instantiationService, contextMenuService, hoverService) {
47
- super(labelOverride ?? (data.length > 1 ?
48
- ( localize(5659, "Used {0} references", data.length)) :
49
- ( localize(5660, "Used {0} reference", 1))), context, hoverMessage, hoverService);
46
+ constructor(
47
+ data,
48
+ labelOverride,
49
+ context,
50
+ contentReferencesListPool,
51
+ hoverMessage,
52
+ openerService,
53
+ menuService,
54
+ instantiationService,
55
+ contextMenuService,
56
+ hoverService
57
+ ) {
58
+ super(labelOverride ?? (data.length > 1 ? ( localize(5887, "Used {0} references", data.length)) : ( localize(5888, "Used {0} reference", 1))), context, hoverMessage, hoverService);
50
59
  this.data = data;
51
60
  this.contentReferencesListPool = contentReferencesListPool;
52
61
  this.openerService = openerService;
@@ -57,18 +66,17 @@ let ChatCollapsibleListContentPart = class ChatCollapsibleListContentPart extend
57
66
  initContent() {
58
67
  const ref = this._register(this.contentReferencesListPool.get());
59
68
  const list = ref.object;
60
- this._register(list.onDidOpen((e) => {
61
- if (e.element && 'reference' in e.element && typeof e.element.reference === 'object') {
62
- const uriOrLocation = 'variableName' in e.element.reference ? e.element.reference.value : e.element.reference;
63
- const uri = URI.isUri(uriOrLocation) ? uriOrLocation :
64
- uriOrLocation?.uri;
69
+ this._register(list.onDidOpen(e => {
70
+ if (e.element && "reference" in e.element && typeof e.element.reference === "object") {
71
+ const uriOrLocation = "variableName" in e.element.reference ? e.element.reference.value : e.element.reference;
72
+ const uri = URI.isUri(uriOrLocation) ? uriOrLocation : uriOrLocation?.uri;
65
73
  if (uri) {
66
74
  this.openerService.open(uri, {
67
75
  fromUserGesture: true,
68
76
  editorOptions: {
69
77
  ...e.editorOptions,
70
78
  ...{
71
- selection: uriOrLocation && 'range' in uriOrLocation ? uriOrLocation.range : undefined
79
+ selection: uriOrLocation && "range" in uriOrLocation ? uriOrLocation.range : undefined
72
80
  }
73
81
  }
74
82
  });
@@ -84,7 +92,10 @@ let ChatCollapsibleListContentPart = class ChatCollapsibleListContentPart extend
84
92
  this.contextMenuService.showContextMenu({
85
93
  getAnchor: () => e.anchor,
86
94
  getActions: () => {
87
- const menu = this.menuService.getMenuActions(MenuId.ChatAttachmentsContext, list.contextKeyService, { shouldForwardArgs: true, arg: uri });
95
+ const menu = this.menuService.getMenuActions(MenuId.ChatAttachmentsContext, list.contextKeyService, {
96
+ shouldForwardArgs: true,
97
+ arg: uri
98
+ });
88
99
  return getFlatContextMenuActions(menu);
89
100
  }
90
101
  });
@@ -105,45 +116,62 @@ let ChatCollapsibleListContentPart = class ChatCollapsibleListContentPart extend
105
116
  return list.getHTMLElement().parentElement;
106
117
  }
107
118
  hasSameContent(other, followingContent, element) {
108
- return other.kind === 'references' && other.references.length === this.data.length && (!!followingContent.length === this.hasFollowingContent);
119
+ return other.kind === "references" && other.references.length === this.data.length && (!!followingContent.length === this.hasFollowingContent);
109
120
  }
110
121
  };
111
- ChatCollapsibleListContentPart = ( __decorate([
112
- ( __param(5, IOpenerService)),
113
- ( __param(6, IMenuService)),
114
- ( __param(7, IInstantiationService)),
115
- ( __param(8, IContextMenuService)),
116
- ( __param(9, IHoverService))
117
- ], ChatCollapsibleListContentPart));
122
+ ChatCollapsibleListContentPart = ( __decorate([( __param(5, IOpenerService)), ( __param(6, IMenuService)), ( __param(7, IInstantiationService)), ( __param(8, IContextMenuService)), ( __param(9, IHoverService))], ChatCollapsibleListContentPart));
118
123
  let ChatUsedReferencesListContentPart = class ChatUsedReferencesListContentPart extends ChatCollapsibleListContentPart {
119
- constructor(data, labelOverride, context, contentReferencesListPool, options, openerService, menuService, instantiationService, contextMenuService, hoverService) {
120
- super(data, labelOverride, context, contentReferencesListPool, undefined, openerService, menuService, instantiationService, contextMenuService, hoverService);
124
+ constructor(
125
+ data,
126
+ labelOverride,
127
+ context,
128
+ contentReferencesListPool,
129
+ options,
130
+ openerService,
131
+ menuService,
132
+ instantiationService,
133
+ contextMenuService,
134
+ hoverService
135
+ ) {
136
+ super(
137
+ data,
138
+ labelOverride,
139
+ context,
140
+ contentReferencesListPool,
141
+ undefined,
142
+ openerService,
143
+ menuService,
144
+ instantiationService,
145
+ contextMenuService,
146
+ hoverService
147
+ );
121
148
  this.options = options;
122
149
  if (data.length === 0) {
123
150
  hide(this.domNode);
124
151
  }
125
152
  }
126
153
  isExpanded() {
127
- const element = this.context.element;
154
+ const element = this.element;
128
155
  return element.usedReferencesExpanded ?? !!(this.options.expandedWhenEmptyResponse && element.response.value.length === 0);
129
156
  }
130
157
  setExpanded(value) {
131
- const element = this.context.element;
158
+ const element = this.element;
132
159
  element.usedReferencesExpanded = !this.isExpanded();
133
160
  }
134
161
  };
135
- ChatUsedReferencesListContentPart = ( __decorate([
136
- ( __param(5, IOpenerService)),
137
- ( __param(6, IMenuService)),
138
- ( __param(7, IInstantiationService)),
139
- ( __param(8, IContextMenuService)),
140
- ( __param(9, IHoverService))
141
- ], ChatUsedReferencesListContentPart));
162
+ ChatUsedReferencesListContentPart = ( __decorate([( __param(5, IOpenerService)), ( __param(6, IMenuService)), ( __param(7, IInstantiationService)), ( __param(8, IContextMenuService)), ( __param(9, IHoverService))], ChatUsedReferencesListContentPart));
142
163
  let CollapsibleListPool = class CollapsibleListPool extends Disposable {
143
164
  get inUse() {
144
165
  return this._pool.inUse;
145
166
  }
146
- constructor(_onDidChangeVisibility, menuId, listOptions, instantiationService, themeService, labelService) {
167
+ constructor(
168
+ _onDidChangeVisibility,
169
+ menuId,
170
+ listOptions,
171
+ instantiationService,
172
+ themeService,
173
+ labelService
174
+ ) {
147
175
  super();
148
176
  this._onDidChangeVisibility = _onDidChangeVisibility;
149
177
  this.menuId = menuId;
@@ -154,99 +182,106 @@ let CollapsibleListPool = class CollapsibleListPool extends Disposable {
154
182
  this._pool = this._register(( new ResourcePool(() => this.listFactory())));
155
183
  }
156
184
  listFactory() {
157
- const resourceLabels = this._register(this.instantiationService.createInstance(ResourceLabels, { onDidChangeVisibility: this._onDidChangeVisibility }));
158
- const container = $('.chat-used-context-list');
159
- this._register(createFileIconThemableTreeContainerScope(container, this.themeService));
160
- const list = this.instantiationService.createInstance((WorkbenchList), 'ChatListRenderer', container, ( new CollapsibleListDelegate()), [this.instantiationService.createInstance(CollapsibleListRenderer, resourceLabels, this.menuId), this.instantiationService.createInstance(DividerRenderer)], {
185
+ const store = ( new DisposableStore());
186
+ const resourceLabels = store.add(this.instantiationService.createInstance(ResourceLabels, {
187
+ onDidChangeVisibility: this._onDidChangeVisibility
188
+ }));
189
+ const container = $(".chat-used-context-list");
190
+ store.add(createFileIconThemableTreeContainerScope(container, this.themeService));
191
+ const list = this.instantiationService.createInstance(WorkbenchList, "ChatListRenderer", container, ( new CollapsibleListDelegate()), [
192
+ this.instantiationService.createInstance(CollapsibleListRenderer, resourceLabels, this.menuId)
193
+ ], {
161
194
  ...this.listOptions,
162
195
  alwaysConsumeMouseWheel: false,
163
196
  accessibilityProvider: {
164
- getAriaLabel: (element) => {
165
- if (element.kind === 'warning') {
197
+ getAriaLabel: element => {
198
+ if (element.kind === "warning") {
166
199
  return element.content.value;
167
200
  }
168
- if (element.kind === 'divider') {
169
- return element.label;
170
- }
171
201
  const reference = element.reference;
172
- if (typeof reference === 'string') {
202
+ if (typeof reference === "string") {
173
203
  return reference;
174
- }
175
- else if ('variableName' in reference) {
204
+ } else if ("variableName" in reference) {
176
205
  return reference.variableName;
177
- }
178
- else if (URI.isUri(reference)) {
206
+ } else if (URI.isUri(reference)) {
179
207
  return basename(reference.path);
180
- }
181
- else {
208
+ } else {
182
209
  return basename(reference.uri.path);
183
210
  }
184
211
  },
185
- getWidgetAriaLabel: () => ( localize(5661, "Collapsible Chat References List"))
212
+ getWidgetAriaLabel: () => ( localize(5889, "Collapsible Chat References List"))
186
213
  },
187
214
  dnd: {
188
- getDragURI: (element) => getResourceForElement(element)?.toString() ?? null,
215
+ getDragURI: element => getResourceForElement(element)?.toString() ?? null,
189
216
  getDragLabel: (elements, originalEvent) => {
190
217
  const uris = coalesce(( elements.map(getResourceForElement)));
191
218
  if (!uris.length) {
192
219
  return undefined;
193
- }
194
- else if (uris.length === 1) {
195
- return this.labelService.getUriLabel(uris[0], { relative: true });
196
- }
197
- else {
220
+ } else if (uris.length === 1) {
221
+ return this.labelService.getUriLabel(uris[0], {
222
+ relative: true
223
+ });
224
+ } else {
198
225
  return `${uris.length}`;
199
226
  }
200
227
  },
201
- dispose: () => { },
228
+ dispose: () => {},
202
229
  onDragOver: () => false,
203
- drop: () => { },
230
+ drop: () => {},
204
231
  onDragStart: (data, originalEvent) => {
205
232
  try {
206
233
  const elements = data.getData();
207
234
  const uris = coalesce(( elements.map(getResourceForElement)));
208
235
  this.instantiationService.invokeFunction(accessor => fillEditorsDragData(accessor, uris, originalEvent));
209
- }
210
- catch {
211
- }
212
- },
213
- },
236
+ } catch {}
237
+ }
238
+ }
214
239
  });
215
- return list;
240
+ return {
241
+ list,
242
+ dispose: () => store.dispose()
243
+ };
216
244
  }
217
245
  get() {
218
- const object = this._pool.get();
246
+ const wrapper = this._pool.get();
219
247
  let stale = false;
220
248
  return {
221
- object,
249
+ object: wrapper.list,
222
250
  isStale: () => stale,
223
251
  dispose: () => {
224
252
  stale = true;
225
- this._pool.release(object);
253
+ this._pool.release(wrapper);
226
254
  }
227
255
  };
228
256
  }
257
+ clear() {
258
+ this._pool.clear();
259
+ }
229
260
  };
230
- CollapsibleListPool = ( __decorate([
231
- ( __param(3, IInstantiationService)),
232
- ( __param(4, IThemeService)),
233
- ( __param(5, ILabelService))
234
- ], CollapsibleListPool));
261
+ CollapsibleListPool = ( __decorate([( __param(3, IInstantiationService)), ( __param(4, IThemeService)), ( __param(5, ILabelService))], CollapsibleListPool));
235
262
  class CollapsibleListDelegate {
236
263
  getHeight(element) {
237
264
  return 22;
238
265
  }
239
266
  getTemplateId(element) {
240
- if (element.kind === 'divider') {
241
- return DividerRenderer.TEMPLATE_ID;
242
- }
243
267
  return CollapsibleListRenderer.TEMPLATE_ID;
244
268
  }
245
269
  }
246
270
  let CollapsibleListRenderer = class CollapsibleListRenderer {
247
- static { CollapsibleListRenderer_1 = this; }
248
- static { this.TEMPLATE_ID = 'chatCollapsibleListRenderer'; }
249
- constructor(labels, menuId, themeService, productService, instantiationService, contextKeyService) {
271
+ static {
272
+ CollapsibleListRenderer_1 = this;
273
+ }
274
+ static {
275
+ this.TEMPLATE_ID = "chatCollapsibleListRenderer";
276
+ }
277
+ constructor(
278
+ labels,
279
+ menuId,
280
+ themeService,
281
+ productService,
282
+ instantiationService,
283
+ contextKeyService
284
+ ) {
250
285
  this.labels = labels;
251
286
  this.menuId = menuId;
252
287
  this.themeService = themeService;
@@ -257,10 +292,13 @@ let CollapsibleListRenderer = class CollapsibleListRenderer {
257
292
  }
258
293
  renderTemplate(container) {
259
294
  const templateDisposables = ( new DisposableStore());
260
- const label = templateDisposables.add(this.labels.create(container, { supportHighlights: true, supportIcons: true }));
261
- const fileDiffsContainer = $('.working-set-line-counts');
262
- const addedSpan = $$1('.working-set-lines-added');
263
- const removedSpan = $$1('.working-set-lines-removed');
295
+ const label = templateDisposables.add(this.labels.create(container, {
296
+ supportHighlights: true,
297
+ supportIcons: true
298
+ }));
299
+ const fileDiffsContainer = $(".working-set-line-counts");
300
+ const addedSpan = $$1(".working-set-lines-added");
301
+ const removedSpan = $$1(".working-set-lines-removed");
264
302
  fileDiffsContainer.appendChild(addedSpan);
265
303
  fileDiffsContainer.appendChild(removedSpan);
266
304
  label.element.appendChild(fileDiffsContainer);
@@ -268,92 +306,127 @@ let CollapsibleListRenderer = class CollapsibleListRenderer {
268
306
  let actionBarContainer;
269
307
  let contextKeyService;
270
308
  if (this.menuId) {
271
- actionBarContainer = $('.chat-collapsible-list-action-bar');
309
+ actionBarContainer = $(".chat-collapsible-list-action-bar");
272
310
  contextKeyService = templateDisposables.add(this.contextKeyService.createScoped(actionBarContainer));
273
311
  const scopedInstantiationService = templateDisposables.add(this.instantiationService.createChild(( new ServiceCollection([IContextKeyService, contextKeyService]))));
274
- toolbar = templateDisposables.add(scopedInstantiationService.createInstance(MenuWorkbenchToolBar, actionBarContainer, this.menuId, { menuOptions: { shouldForwardArgs: true, arg: undefined } }));
312
+ toolbar = templateDisposables.add(
313
+ scopedInstantiationService.createInstance(MenuWorkbenchToolBar, actionBarContainer, this.menuId, {
314
+ menuOptions: {
315
+ shouldForwardArgs: true,
316
+ arg: undefined
317
+ }
318
+ })
319
+ );
275
320
  label.element.appendChild(actionBarContainer);
276
321
  }
277
- return { templateDisposables, label, toolbar, actionBarContainer, contextKeyService, fileDiffsContainer, addedSpan, removedSpan };
322
+ return {
323
+ templateDisposables,
324
+ label,
325
+ toolbar,
326
+ actionBarContainer,
327
+ contextKeyService,
328
+ fileDiffsContainer,
329
+ addedSpan,
330
+ removedSpan
331
+ };
278
332
  }
279
333
  getReferenceIcon(data) {
280
334
  if (ThemeIcon.isThemeIcon(data.iconPath)) {
281
335
  return data.iconPath;
282
- }
283
- else {
284
- return isDark(this.themeService.getColorTheme().type) && data.iconPath?.dark
285
- ? data.iconPath?.dark
286
- : data.iconPath?.light;
336
+ } else {
337
+ return isDark(this.themeService.getColorTheme().type) && data.iconPath?.dark ? data.iconPath?.dark : data.iconPath?.light;
287
338
  }
288
339
  }
289
340
  renderElement(data, index, templateData) {
290
- if (data.kind === 'warning') {
291
- templateData.label.setResource({ name: data.content.value }, { icon: Codicon.warning });
292
- return;
293
- }
294
- if (data.kind === 'divider') {
341
+ if (data.kind === "warning") {
342
+ templateData.label.setResource({
343
+ name: data.content.value
344
+ }, {
345
+ icon: Codicon.warning
346
+ });
295
347
  return;
296
348
  }
297
349
  const reference = data.reference;
298
350
  const icon = this.getReferenceIcon(data);
299
- templateData.label.element.style.display = 'flex';
351
+ templateData.label.element.style.display = "flex";
300
352
  let arg;
301
- if (typeof reference === 'object' && 'variableName' in reference) {
353
+ if (typeof reference === "object" && "variableName" in reference) {
302
354
  if (reference.value) {
303
355
  const uri = URI.isUri(reference.value) ? reference.value : reference.value.uri;
304
356
  templateData.label.setResource({
305
357
  resource: uri,
306
358
  name: basenameOrAuthority(uri),
307
359
  description: `#${reference.variableName}`,
308
- range: 'range' in reference.value ? reference.value.range : undefined,
309
- }, { icon, title: data.options?.status?.description ?? data.title });
310
- }
311
- else if (reference.variableName.startsWith('kernelVariable')) {
312
- const variable = reference.variableName.split(':')[1];
360
+ range: "range" in reference.value ? reference.value.range : undefined
361
+ }, {
362
+ icon,
363
+ title: data.options?.status?.description ?? data.title
364
+ });
365
+ } else if (reference.variableName.startsWith("kernelVariable")) {
366
+ const variable = reference.variableName.split(":")[1];
313
367
  const asVariableName = `${variable}`;
314
368
  const label = `Kernel variable`;
315
- templateData.label.setLabel(label, asVariableName, { title: data.options?.status?.description });
316
- }
317
- else {
318
- templateData.label.setLabel('Unknown variable type');
369
+ templateData.label.setLabel(label, asVariableName, {
370
+ title: data.options?.status?.description
371
+ });
372
+ } else {
373
+ templateData.label.setLabel("Unknown variable type: " + reference.variableName);
319
374
  }
320
- }
321
- else if (typeof reference === 'string') {
322
- templateData.label.setLabel(reference, undefined, { iconPath: URI.isUri(icon) ? icon : undefined, title: data.options?.status?.description ?? data.title });
323
- }
324
- else {
325
- const uri = 'uri' in reference ? reference.uri : reference;
375
+ } else if (typeof reference === "string") {
376
+ templateData.label.setLabel(reference, undefined, {
377
+ iconPath: URI.isUri(icon) ? icon : undefined,
378
+ title: data.options?.status?.description ?? data.title
379
+ });
380
+ } else {
381
+ const uri = "uri" in reference ? reference.uri : reference;
326
382
  arg = uri;
327
- const extraClasses = data.excluded ? ['excluded'] : [];
328
- if (uri.scheme === 'https' && isEqualAuthority(uri.authority, 'github.com') && uri.path.includes('/tree/')) {
329
- templateData.label.setResource(getResourceLabelForGithubUri(uri), { icon: Codicon.github, title: data.title, strikethrough: data.excluded, extraClasses });
330
- }
331
- else if (uri.scheme === this.productService.urlProtocol && isEqualAuthority(uri.authority, SETTINGS_AUTHORITY)) {
383
+ const extraClasses = data.excluded ? ["excluded"] : [];
384
+ if (uri.scheme === "https" && isEqualAuthority(uri.authority, "github.com") && uri.path.includes("/tree/")) {
385
+ templateData.label.setResource(getResourceLabelForGithubUri(uri), {
386
+ icon: Codicon.github,
387
+ title: data.title,
388
+ strikethrough: data.excluded,
389
+ extraClasses
390
+ });
391
+ } else if (uri.scheme === this.productService.urlProtocol && isEqualAuthority(uri.authority, SETTINGS_AUTHORITY)) {
332
392
  const settingId = uri.path.substring(1);
333
- templateData.label.setResource({ resource: uri, name: settingId }, { icon: Codicon.settingsGear, title: ( localize(5662, "Open setting '{0}'", settingId)), strikethrough: data.excluded, extraClasses });
334
- }
335
- else if (matchesSomeScheme(uri, Schemas.mailto, Schemas.http, Schemas.https)) {
336
- templateData.label.setResource({ resource: uri, name: ( uri.toString(true)) }, { icon: icon ?? Codicon.globe, title: data.options?.status?.description ?? data.title ?? ( uri.toString(true)), strikethrough: data.excluded, extraClasses });
337
- }
338
- else {
393
+ templateData.label.setResource({
394
+ resource: uri,
395
+ name: settingId
396
+ }, {
397
+ icon: Codicon.settingsGear,
398
+ title: ( localize(5890, "Open setting '{0}'", settingId)),
399
+ strikethrough: data.excluded,
400
+ extraClasses
401
+ });
402
+ } else if (matchesSomeScheme(uri, Schemas.mailto, Schemas.http, Schemas.https)) {
403
+ templateData.label.setResource({
404
+ resource: uri,
405
+ name: ( uri.toString(true))
406
+ }, {
407
+ icon: icon ?? Codicon.globe,
408
+ title: data.options?.status?.description ?? data.title ?? ( uri.toString(true)),
409
+ strikethrough: data.excluded,
410
+ extraClasses
411
+ });
412
+ } else {
339
413
  templateData.label.setFile(uri, {
340
414
  fileKind: FileKind.FILE,
341
415
  fileDecorations: undefined,
342
- range: 'range' in reference ? reference.range : undefined,
416
+ range: "range" in reference ? reference.range : undefined,
343
417
  title: data.options?.status?.description ?? data.title,
344
418
  strikethrough: data.excluded,
345
419
  extraClasses
346
420
  });
347
421
  }
348
422
  }
349
- for (const selector of ['.monaco-icon-suffix-container', '.monaco-icon-name-container']) {
423
+ for (const selector of [".monaco-icon-suffix-container", ".monaco-icon-name-container"]) {
350
424
  const element = templateData.label.element.querySelector(selector);
351
425
  if (element) {
352
426
  if (data.options?.status?.kind === ChatResponseReferencePartStatusKind.Omitted || data.options?.status?.kind === ChatResponseReferencePartStatusKind.Partial) {
353
- element.classList.add('warning');
354
- }
355
- else {
356
- element.classList.remove('warning');
427
+ element.classList.add("warning");
428
+ } else {
429
+ element.classList.remove("warning");
357
430
  }
358
431
  }
359
432
  }
@@ -366,14 +439,14 @@ let CollapsibleListRenderer = class CollapsibleListRenderer {
366
439
  }
367
440
  templateData.addedSpan.textContent = `+${diffMeta.added}`;
368
441
  templateData.removedSpan.textContent = `-${diffMeta.removed}`;
369
- templateData.fileDiffsContainer.setAttribute('aria-label', ( localize(
370
- 5663,
371
- '{0} lines added, {1} lines removed',
442
+ templateData.fileDiffsContainer.setAttribute("aria-label", ( localize(
443
+ 5891,
444
+ "{0} lines added, {1} lines removed",
372
445
  diffMeta.added,
373
446
  diffMeta.removed
374
447
  )));
375
448
  }
376
- templateData.label.element.querySelector('.monaco-icon-name-container')?.classList.add('modified');
449
+ templateData.label.element.querySelector(".monaco-icon-name-container")?.classList.add("modified");
377
450
  }
378
451
  if (templateData.toolbar) {
379
452
  templateData.toolbar.context = arg;
@@ -389,54 +462,16 @@ let CollapsibleListRenderer = class CollapsibleListRenderer {
389
462
  templateData.templateDisposables.dispose();
390
463
  }
391
464
  };
392
- CollapsibleListRenderer = CollapsibleListRenderer_1 = ( __decorate([
393
- ( __param(2, IThemeService)),
394
- ( __param(3, IProductService)),
395
- ( __param(4, IInstantiationService)),
396
- ( __param(5, IContextKeyService))
397
- ], CollapsibleListRenderer));
398
- let DividerRenderer = class DividerRenderer {
399
- static { DividerRenderer_1 = this; }
400
- static { this.TEMPLATE_ID = 'chatListDividerRenderer'; }
401
- constructor(instantiationService) {
402
- this.instantiationService = instantiationService;
403
- this.templateId = DividerRenderer_1.TEMPLATE_ID;
404
- }
405
- renderTemplate(container) {
406
- const templateDisposables = ( new DisposableStore());
407
- const elementDisposables = templateDisposables.add(( new DisposableStore()));
408
- container.classList.add('chat-list-divider');
409
- const label = append(container, $$1('span.chat-list-divider-label'));
410
- const line = append(container, $$1('div.chat-list-divider-line'));
411
- const toolbarContainer = append(container, $$1('.chat-list-divider-toolbar'));
412
- return { container, label, line, toolbarContainer, templateDisposables, elementDisposables, toolbar: undefined };
413
- }
414
- renderElement(data, index, templateData) {
415
- templateData.label.textContent = data.label;
416
- templateData.elementDisposables.clear();
417
- templateData.toolbar = undefined;
418
- clearNode(templateData.toolbarContainer);
419
- if (data.menuId) {
420
- const instantiationService = data.scopedInstantiationService || this.instantiationService;
421
- templateData.toolbar = templateData.elementDisposables.add(instantiationService.createInstance(MenuWorkbenchToolBar, templateData.toolbarContainer, data.menuId, { menuOptions: { arg: data.menuArg } }));
422
- }
423
- }
424
- disposeTemplate(templateData) {
425
- templateData.templateDisposables.dispose();
426
- }
427
- };
428
- DividerRenderer = DividerRenderer_1 = ( __decorate([
429
- ( __param(0, IInstantiationService))
430
- ], DividerRenderer));
465
+ CollapsibleListRenderer = CollapsibleListRenderer_1 = ( __decorate([( __param(2, IThemeService)), ( __param(3, IProductService)), ( __param(4, IInstantiationService)), ( __param(5, IContextKeyService))], CollapsibleListRenderer));
431
466
  function getResourceLabelForGithubUri(uri) {
432
- const repoPath = uri.path.split('/').slice(1, 3).join('/');
433
- const filePath = uri.path.split('/').slice(5);
467
+ const repoPath = uri.path.split("/").slice(1, 3).join("/");
468
+ const filePath = uri.path.split("/").slice(5);
434
469
  const fileName = filePath.at(-1);
435
470
  const range = getLineRangeFromGithubUri(uri);
436
471
  return {
437
472
  resource: uri,
438
- name: fileName ?? filePath.join('/'),
439
- description: [repoPath, ...filePath.slice(0, -1)].join('/'),
473
+ name: fileName ?? filePath.join("/"),
474
+ description: [repoPath, ...filePath.slice(0, -1)].join("/"),
440
475
  range
441
476
  };
442
477
  }
@@ -464,35 +499,37 @@ function getLineRangeFromGithubUri(uri) {
464
499
  };
465
500
  }
466
501
  function getResourceForElement(element) {
467
- if (element.kind === 'warning' || element.kind === 'divider') {
502
+ if (element.kind === "warning") {
468
503
  return null;
469
504
  }
470
- const { reference } = element;
471
- if (typeof reference === 'string' || 'variableName' in reference) {
505
+ const {
506
+ reference
507
+ } = element;
508
+ if (typeof reference === "string" || "variableName" in reference) {
472
509
  return null;
473
- }
474
- else if (URI.isUri(reference)) {
510
+ } else if (URI.isUri(reference)) {
475
511
  return reference;
476
- }
477
- else {
512
+ } else {
478
513
  return reference.uri;
479
514
  }
480
515
  }
481
516
  registerAction2(class AddToChatAction extends Action2 {
482
- static { this.id = 'workbench.action.chat.addToChatAction'; }
517
+ static {
518
+ this.id = "workbench.action.chat.addToChatAction";
519
+ }
483
520
  constructor() {
484
521
  super({
485
522
  id: AddToChatAction.id,
486
523
  title: {
487
- ...( localize2(5664, "Add File to Chat")),
524
+ ...( localize2(5892, "Add File to Chat"))
488
525
  },
489
526
  f1: false,
490
527
  menu: [{
491
- id: MenuId.ChatAttachmentsContext,
492
- group: 'chat',
493
- order: 1,
494
- when: ( ContextKeyExpr.and(ResourceContextKey.IsFileSystemResource, ( ExplorerFolderContext.negate()))),
495
- }]
528
+ id: MenuId.ChatAttachmentsContext,
529
+ group: "chat",
530
+ order: 1,
531
+ when: ( ContextKeyExpr.and(ResourceContextKey.IsFileSystemResource, ( ExplorerFolderContext.negate())))
532
+ }]
496
533
  });
497
534
  }
498
535
  async run(accessor, resource) {
@@ -507,20 +544,22 @@ registerAction2(class AddToChatAction extends Action2 {
507
544
  }
508
545
  });
509
546
  registerAction2(class OpenChatReferenceLinkAction extends Action2 {
510
- static { this.id = 'workbench.action.chat.copyLink'; }
547
+ static {
548
+ this.id = "workbench.action.chat.copyLink";
549
+ }
511
550
  constructor() {
512
551
  super({
513
552
  id: OpenChatReferenceLinkAction.id,
514
553
  title: {
515
- ...( localize2(5665, "Copy Link")),
554
+ ...( localize2(5893, "Copy Link"))
516
555
  },
517
556
  f1: false,
518
557
  menu: [{
519
- id: MenuId.ChatAttachmentsContext,
520
- group: 'chat',
521
- order: 0,
522
- when: ( ContextKeyExpr.or(( ResourceContextKey.Scheme.isEqualTo(Schemas.http)), ( ResourceContextKey.Scheme.isEqualTo(Schemas.https)))),
523
- }]
558
+ id: MenuId.ChatAttachmentsContext,
559
+ group: "chat",
560
+ order: 0,
561
+ when: ( ContextKeyExpr.or(( ResourceContextKey.Scheme.isEqualTo(Schemas.http)), ( ResourceContextKey.Scheme.isEqualTo(Schemas.https))))
562
+ }]
524
563
  });
525
564
  }
526
565
  async run(accessor, resource) {