@codingame/monaco-vscode-katex-common 24.1.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 (262) hide show
  1. package/empty.js +1 -0
  2. package/package.json +45 -0
  3. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +37 -0
  4. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +127 -0
  5. package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.d.ts +27 -0
  6. package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.js +81 -0
  7. package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +44 -0
  8. package/vscode/src/vs/platform/actions/browser/buttonbar.js +172 -0
  9. package/vscode/src/vs/platform/editor/browser/editor.d.ts +12 -0
  10. package/vscode/src/vs/platform/editor/browser/editor.js +51 -0
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +41 -0
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +295 -0
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.d.ts +2 -0
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +60 -0
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +65 -0
  16. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +650 -0
  17. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.d.ts +2 -0
  18. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +364 -0
  19. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +38 -0
  20. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +207 -0
  21. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.d.ts +17 -0
  22. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +216 -0
  23. package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.d.ts +24 -0
  24. package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +114 -0
  25. package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentModel.d.ts +34 -0
  26. package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentModel.js +141 -0
  27. package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentWidgets.d.ts +169 -0
  28. package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentWidgets.js +951 -0
  29. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentMarkdownRenderer.d.ts +19 -0
  30. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentMarkdownRenderer.js +109 -0
  31. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAgentCommandContentPart.d.ts +12 -0
  32. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAgentCommandContentPart.js +47 -0
  33. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAnonymousRateLimitedPart.d.ts +13 -0
  34. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAnonymousRateLimitedPart.js +49 -0
  35. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.d.ts +27 -0
  36. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +160 -0
  37. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatChangesSummaryPart.d.ts +40 -0
  38. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatChangesSummaryPart.js +286 -0
  39. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.d.ts +13 -0
  40. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.js +49 -0
  41. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCollapsibleContentPart.d.ts +34 -0
  42. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCollapsibleContentPart.js +101 -0
  43. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCollections.d.ts +14 -0
  44. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCollections.js +30 -0
  45. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.d.ts +11 -0
  46. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.js +37 -0
  47. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.d.ts +17 -0
  48. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.js +69 -0
  49. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationWidget.d.ts +116 -0
  50. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationWidget.js +417 -0
  51. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentCodePools.d.ts +20 -0
  52. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentCodePools.js +66 -0
  53. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatElicitationContentPart.d.ts +25 -0
  54. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatElicitationContentPart.js +123 -0
  55. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatErrorConfirmationPart.d.ts +18 -0
  56. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatErrorConfirmationPart.js +60 -0
  57. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatErrorContentPart.d.ts +16 -0
  58. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatErrorContentPart.js +46 -0
  59. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatExtensionsContentPart.d.ts +19 -0
  60. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatExtensionsContentPart.js +57 -0
  61. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownContentPart.d.ts +94 -0
  62. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownContentPart.js +567 -0
  63. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMcpServersInteractionContentPart.d.ts +34 -0
  64. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMcpServersInteractionContentPart.js +224 -0
  65. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMultiDiffContentPart.d.ts +34 -0
  66. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMultiDiffContentPart.js +259 -0
  67. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatProgressContentPart.d.ts +38 -0
  68. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatProgressContentPart.js +160 -0
  69. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatPullRequestContentPart.d.ts +16 -0
  70. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatPullRequestContentPart.js +55 -0
  71. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatQuotaExceededPart.d.ts +17 -0
  72. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatQuotaExceededPart.js +117 -0
  73. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.d.ts +66 -0
  74. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.js +528 -0
  75. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatSuggestNextWidget.d.ts +31 -0
  76. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatSuggestNextWidget.js +160 -0
  77. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTaskContentPart.d.ts +17 -0
  78. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTaskContentPart.js +49 -0
  79. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.d.ts +18 -0
  80. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.js +91 -0
  81. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.service.d.ts +13 -0
  82. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.service.js +6 -0
  83. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatThinkingContentPart.d.ts +54 -0
  84. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatThinkingContentPart.js +429 -0
  85. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTodoListWidget.d.ts +40 -0
  86. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTodoListWidget.js +347 -0
  87. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatToolInputOutputContentPart.d.ts +56 -0
  88. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatToolInputOutputContentPart.js +164 -0
  89. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatToolOutputContentSubPart.d.ts +32 -0
  90. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatToolOutputContentSubPart.js +224 -0
  91. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTreeContentPart.d.ts +35 -0
  92. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTreeContentPart.js +173 -0
  93. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatConfirmationWidget.css +341 -0
  94. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatExtensionsContent.css +27 -0
  95. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatMarkdownPart.css +23 -0
  96. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatMcpServersInteractionContent.css +14 -0
  97. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatPullRequestContent.css +75 -0
  98. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatTerminalToolProgressPart.css +221 -0
  99. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatThinkingContent.css +162 -0
  100. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.d.ts +41 -0
  101. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +94 -0
  102. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.d.ts +15 -0
  103. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +96 -0
  104. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +18 -0
  105. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +147 -0
  106. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatResultListSubPart.d.ts +14 -0
  107. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatResultListSubPart.js +23 -0
  108. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +68 -0
  109. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +353 -0
  110. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +100 -0
  111. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +1085 -0
  112. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.d.ts +39 -0
  113. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +275 -0
  114. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +32 -0
  115. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +119 -0
  116. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.d.ts +19 -0
  117. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.js +36 -0
  118. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +21 -0
  119. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolOutputPart.js +130 -0
  120. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +25 -0
  121. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +225 -0
  122. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolProgressPart.d.ts +24 -0
  123. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolProgressPart.js +101 -0
  124. package/vscode/src/vs/workbench/contrib/chat/browser/chatDiffBlockPart.d.ts +42 -0
  125. package/vscode/src/vs/workbench/contrib/chat/browser/chatDiffBlockPart.js +127 -0
  126. package/vscode/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.d.ts +43 -0
  127. package/vscode/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.js +388 -0
  128. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +49 -0
  129. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +721 -0
  130. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.d.ts +13 -0
  131. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +52 -0
  132. package/vscode/src/vs/workbench/contrib/chat/browser/chatInlineAnchorWidget.d.ts +39 -0
  133. package/vscode/src/vs/workbench/contrib/chat/browser/chatInlineAnchorWidget.js +409 -0
  134. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.d.ts +334 -0
  135. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +2008 -0
  136. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPartWidgets.d.ts +52 -0
  137. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPartWidgets.js +93 -0
  138. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.d.ts +217 -0
  139. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +1573 -0
  140. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.d.ts +43 -0
  141. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +249 -0
  142. package/vscode/src/vs/workbench/contrib/chat/browser/chatOptions.d.ts +50 -0
  143. package/vscode/src/vs/workbench/contrib/chat/browser/chatOptions.js +84 -0
  144. package/vscode/src/vs/workbench/contrib/chat/browser/chatSelectedTools.d.ts +32 -0
  145. package/vscode/src/vs/workbench/contrib/chat/browser/chatSelectedTools.js +174 -0
  146. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.d.ts +31 -0
  147. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +101 -0
  148. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.d.ts +19 -0
  149. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.js +76 -0
  150. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/chatSessionAction.css +39 -0
  151. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.d.ts +292 -0
  152. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +2014 -0
  153. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css +171 -0
  154. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.d.ts +173 -0
  155. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +797 -0
  156. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatImplicitContext.d.ts +54 -0
  157. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatImplicitContext.js +345 -0
  158. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.d.ts +10 -0
  159. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.js +1069 -0
  160. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.d.ts +34 -0
  161. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.js +139 -0
  162. package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css +2880 -0
  163. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatAgentHover.css +87 -0
  164. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatCodeBlockPill.css +139 -0
  165. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatInlineAnchorWidget.css +61 -0
  166. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewWelcome.css +209 -0
  167. package/vscode/src/vs/workbench/contrib/chat/browser/modelPicker/modePickerActionItem.d.ts +28 -0
  168. package/vscode/src/vs/workbench/contrib/chat/browser/modelPicker/modePickerActionItem.js +135 -0
  169. package/vscode/src/vs/workbench/contrib/chat/browser/modelPicker/modelPickerActionItem.d.ts +28 -0
  170. package/vscode/src/vs/workbench/contrib/chat/browser/modelPicker/modelPickerActionItem.js +147 -0
  171. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts +71 -0
  172. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +279 -0
  173. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcome.d.ts +28 -0
  174. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcome.js +28 -0
  175. package/vscode/src/vs/workbench/contrib/chat/common/chatColors.d.ts +13 -0
  176. package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +38 -0
  177. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.d.ts +55 -0
  178. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +176 -0
  179. package/vscode/src/vs/workbench/contrib/chat/common/codeBlockModelCollection.d.ts +45 -0
  180. package/vscode/src/vs/workbench/contrib/chat/common/codeBlockModelCollection.js +207 -0
  181. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +48 -0
  182. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +373 -0
  183. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +171 -0
  184. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +1442 -0
  185. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.d.ts +199 -0
  186. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +482 -0
  187. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +28 -0
  188. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +37 -0
  189. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +95 -0
  190. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +497 -0
  191. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.d.ts +76 -0
  192. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +464 -0
  193. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +124 -0
  194. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +562 -0
  195. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +42 -0
  196. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +279 -0
  197. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +411 -0
  198. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.d.ts +13 -0
  199. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +66 -0
  200. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +61 -0
  201. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +154 -0
  202. package/vscode/src/vs/workbench/contrib/markdown/browser/markedKatexSupport.d.ts +19 -0
  203. package/vscode/src/vs/workbench/contrib/markdown/browser/markedKatexSupport.js +201 -0
  204. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.d.ts +41 -0
  205. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +372 -0
  206. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +4 -0
  207. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +58 -0
  208. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.d.ts +26 -0
  209. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +594 -0
  210. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +8 -0
  211. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +55 -0
  212. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +273 -0
  213. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +1746 -0
  214. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +50 -0
  215. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +269 -0
  216. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +258 -0
  217. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +806 -0
  218. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +41 -0
  219. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +116 -0
  220. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +17 -0
  221. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +62 -0
  222. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +27 -0
  223. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +40 -0
  224. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +23 -0
  225. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +295 -0
  226. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +51 -0
  227. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +241 -0
  228. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +24 -0
  229. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +146 -0
  230. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +28 -0
  231. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +90 -0
  232. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +10 -0
  233. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +41 -0
  234. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +21 -0
  235. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +42 -0
  236. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +25 -0
  237. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +77 -0
  238. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +469 -0
  239. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +149 -0
  240. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +823 -0
  241. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +180 -0
  242. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +29 -0
  243. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +102 -0
  244. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +567 -0
  245. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +30 -0
  246. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +189 -0
  247. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +75 -0
  248. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +439 -0
  249. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +57 -0
  250. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +263 -0
  251. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +22 -0
  252. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.js +48 -0
  253. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +13 -0
  254. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +39 -0
  255. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +19 -0
  256. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +89 -0
  257. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +26 -0
  258. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +92 -0
  259. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.d.ts +33 -0
  260. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +108 -0
  261. package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.d.ts +34 -0
  262. package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +145 -0
@@ -0,0 +1,31 @@
1
+ import { IAction } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
2
+ import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
3
+ import { IActionWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actionWidget/browser/actionWidget.service";
4
+ import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
5
+ import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
6
+ import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
7
+ import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
8
+ import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
9
+ import { ActionWidgetDropdownActionViewItem } from "../../../../../platform/actions/browser/actionWidgetDropdownActionViewItem.js";
10
+ import { IChatSessionProviderOptionGroup, IChatSessionProviderOptionItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService";
11
+ import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
12
+ export interface IChatSessionPickerDelegate {
13
+ readonly onDidChangeOption: Event<IChatSessionProviderOptionItem>;
14
+ getCurrentOption(): IChatSessionProviderOptionItem | undefined;
15
+ setOption(option: IChatSessionProviderOptionItem): void;
16
+ getAllOptions(): IChatSessionProviderOptionItem[];
17
+ }
18
+ /**
19
+ * Action view item for making an option selection for a contributed chat session
20
+ * These options are provided by the relevant ChatSession Provider
21
+ */
22
+ export declare class ChatSessionPickerActionItem extends ActionWidgetDropdownActionViewItem {
23
+ private readonly delegate;
24
+ currentOption: IChatSessionProviderOptionItem | undefined;
25
+ constructor(action: IAction, initialState: {
26
+ group: IChatSessionProviderOptionGroup;
27
+ item: IChatSessionProviderOptionItem | undefined;
28
+ }, delegate: IChatSessionPickerDelegate, actionWidgetService: IActionWidgetService, contextKeyService: IContextKeyService, commandService: ICommandService, chatEntitlementService: IChatEntitlementService, keybindingService: IKeybindingService, telemetryService: ITelemetryService);
29
+ protected renderLabel(element: HTMLElement): IDisposable | null;
30
+ render(container: HTMLElement): void;
31
+ }
@@ -0,0 +1,101 @@
1
+
2
+ import { registerCss } from '@codingame/monaco-vscode-api/css';
3
+ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
4
+ import * as chatSessionAction from './media/chatSessionAction.css';
5
+ import { $, reset } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
6
+ import { IActionWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/platform/actionWidget/browser/actionWidget.service';
7
+ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
8
+ import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
9
+ import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
10
+ import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
11
+ import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
12
+ import { ActionWidgetDropdownActionViewItem } from '../../../../../platform/actions/browser/actionWidgetDropdownActionViewItem.js';
13
+ import { renderIcon, renderLabelWithIcons } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/iconLabel/iconLabels';
14
+ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
15
+
16
+ registerCss(chatSessionAction);
17
+ let ChatSessionPickerActionItem = class ChatSessionPickerActionItem extends ActionWidgetDropdownActionViewItem {
18
+ constructor(action, initialState, delegate, actionWidgetService, contextKeyService, commandService, chatEntitlementService, keybindingService, telemetryService) {
19
+ const { group, item } = initialState;
20
+ const actionWithLabel = {
21
+ ...action,
22
+ label: item?.name || group.name,
23
+ tooltip: item?.description ?? group.description ?? group.name,
24
+ run: () => { }
25
+ };
26
+ const sessionPickerActionWidgetOptions = {
27
+ actionProvider: {
28
+ getActions: () => {
29
+ const currentOption = this.delegate.getCurrentOption();
30
+ if (currentOption?.locked) {
31
+ return [{
32
+ id: currentOption.id,
33
+ enabled: false,
34
+ icon: currentOption.icon,
35
+ checked: true,
36
+ class: undefined,
37
+ description: undefined,
38
+ tooltip: currentOption.description ?? currentOption.name,
39
+ label: currentOption.name,
40
+ run: () => { }
41
+ }];
42
+ }
43
+ else {
44
+ return ( this.delegate.getAllOptions().map(optionItem => {
45
+ const isCurrent = optionItem.id === this.delegate.getCurrentOption()?.id;
46
+ return {
47
+ id: optionItem.id,
48
+ enabled: true,
49
+ icon: optionItem.icon,
50
+ checked: isCurrent,
51
+ class: undefined,
52
+ description: undefined,
53
+ tooltip: optionItem.description ?? optionItem.name,
54
+ label: optionItem.name,
55
+ run: () => {
56
+ this.delegate.setOption(optionItem);
57
+ }
58
+ };
59
+ }));
60
+ }
61
+ }
62
+ },
63
+ actionBarActionProvider: undefined,
64
+ };
65
+ super(actionWithLabel, sessionPickerActionWidgetOptions, actionWidgetService, keybindingService, contextKeyService);
66
+ this.delegate = delegate;
67
+ this.currentOption = item;
68
+ this._register(this.delegate.onDidChangeOption(newOption => {
69
+ this.currentOption = newOption;
70
+ if (this.element) {
71
+ this.renderLabel(this.element);
72
+ }
73
+ }));
74
+ }
75
+ renderLabel(element) {
76
+ const domChildren = [];
77
+ element.classList.add('chat-session-option-picker');
78
+ if (this.currentOption?.icon) {
79
+ domChildren.push(renderIcon(this.currentOption.icon));
80
+ }
81
+ domChildren.push($('span.chat-session-option-label', undefined, this.currentOption?.name ?? ( localize(5503, "Pick Option"))));
82
+ domChildren.push(...renderLabelWithIcons(`$(chevron-down)`));
83
+ reset(element, ...domChildren);
84
+ this.setAriaLabelAttributes(element);
85
+ return null;
86
+ }
87
+ render(container) {
88
+ super.render(container);
89
+ container.classList.add('chat-sessionPicker-item');
90
+ }
91
+ };
92
+ ChatSessionPickerActionItem = ( __decorate([
93
+ ( __param(3, IActionWidgetService)),
94
+ ( __param(4, IContextKeyService)),
95
+ ( __param(5, ICommandService)),
96
+ ( __param(6, IChatEntitlementService)),
97
+ ( __param(7, IKeybindingService)),
98
+ ( __param(8, ITelemetryService))
99
+ ], ChatSessionPickerActionItem));
100
+
101
+ export { ChatSessionPickerActionItem };
@@ -0,0 +1,19 @@
1
+ import { EditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput";
2
+ import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
3
+ import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
4
+ import { IChatSessionItem, IChatSessionItemProvider } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService";
5
+ import { ChatEditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditorInput";
6
+ export declare const NEW_CHAT_SESSION_ACTION_ID = "workbench.action.chat.openNewSessionEditor";
7
+ export type ChatSessionItemWithProvider = IChatSessionItem & {
8
+ readonly provider: IChatSessionItemProvider;
9
+ relativeTime?: string;
10
+ relativeTimeFullWord?: string;
11
+ hideRelativeTime?: boolean;
12
+ };
13
+ export declare function isChatSession(schemes: readonly string[], editor?: EditorInput): editor is ChatEditorInput;
14
+ export declare function extractTimestamp(item: IChatSessionItem): number | undefined;
15
+ export declare function processSessionsWithTimeGrouping(sessions: ChatSessionItemWithProvider[]): ChatSessionItemWithProvider[];
16
+ export declare function getSessionItemContextOverlay(session: IChatSessionItem, provider?: IChatSessionItemProvider, chatService?: IChatService, editorGroupsService?: IEditorGroupsService): [
17
+ string,
18
+ any
19
+ ][];
@@ -0,0 +1,76 @@
1
+
2
+ import { fromNow } from '@codingame/monaco-vscode-api/vscode/vs/base/common/date';
3
+ import '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
4
+ import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
5
+ import { localChatSessionType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService';
6
+ import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
7
+
8
+ const NEW_CHAT_SESSION_ACTION_ID = 'workbench.action.chat.openNewSessionEditor';
9
+ function updateRelativeTime(item, lastRelativeTime) {
10
+ if (item.timing?.startTime) {
11
+ item.relativeTime = fromNow(item.timing.startTime);
12
+ item.relativeTimeFullWord = fromNow(item.timing.startTime, false, true);
13
+ if (lastRelativeTime === undefined || item.relativeTime !== lastRelativeTime) {
14
+ lastRelativeTime = item.relativeTime;
15
+ item.hideRelativeTime = false;
16
+ }
17
+ else {
18
+ item.hideRelativeTime = true;
19
+ }
20
+ }
21
+ else {
22
+ item.relativeTime = undefined;
23
+ item.relativeTimeFullWord = undefined;
24
+ item.hideRelativeTime = false;
25
+ }
26
+ return lastRelativeTime;
27
+ }
28
+ function extractTimestamp(item) {
29
+ if (item.timing?.startTime) {
30
+ return item.timing.startTime;
31
+ }
32
+ if ('timestamp' in item) {
33
+ return item.timestamp;
34
+ }
35
+ return undefined;
36
+ }
37
+ function sortSessionsByTimestamp(sessions) {
38
+ sessions.sort((a, b) => {
39
+ const aTime = a.timing?.startTime ?? 0;
40
+ const bTime = b.timing?.startTime ?? 0;
41
+ return bTime - aTime;
42
+ });
43
+ }
44
+ function applyTimeGrouping(sessions) {
45
+ let lastRelativeTime;
46
+ sessions.forEach(session => {
47
+ lastRelativeTime = updateRelativeTime(session, lastRelativeTime);
48
+ });
49
+ }
50
+ function processSessionsWithTimeGrouping(sessions) {
51
+ const sessionsTemp = [...sessions];
52
+ if (( sessions.some(session => session.timing?.startTime !== undefined))) {
53
+ sortSessionsByTimestamp(sessionsTemp);
54
+ applyTimeGrouping(sessionsTemp);
55
+ }
56
+ return sessionsTemp;
57
+ }
58
+ function getSessionItemContextOverlay(session, provider, chatService, editorGroupsService
59
+ ) {
60
+ const overlay = [];
61
+ if (provider) {
62
+ overlay.push([ChatContextKeys.agentSessionType.key, provider.chatSessionType]);
63
+ }
64
+ overlay.push([ChatContextKeys.isArchivedAgentSession.key, session.archived]);
65
+ let isActiveSession = false;
66
+ if (!session.archived && provider?.chatSessionType === localChatSessionType) {
67
+ isActiveSession = true;
68
+ }
69
+ else if (session.archived && chatService && editorGroupsService) {
70
+ isActiveSession = !!chatService.getSession(session.resource);
71
+ }
72
+ overlay.push([ChatContextKeys.isActiveAgentSession.key, isActiveSession]);
73
+ return overlay;
74
+ }
75
+
76
+ export { NEW_CHAT_SESSION_ACTION_ID, extractTimestamp, getSessionItemContextOverlay, processSessionsWithTimeGrouping };
@@ -0,0 +1,39 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ /* .chat-session-option-picker {
7
+ align-items: center;
8
+ } */
9
+
10
+ /* .chat-session-option-picker .chat-session-option-label {
11
+ overflow: hidden;
12
+ text-overflow: ellipsis;
13
+ }
14
+
15
+ .chat-session-option-picker */
16
+
17
+ .monaco-action-bar .action-item.chat-sessionPicker-item {
18
+ overflow: hidden;
19
+ }
20
+
21
+ .monaco-action-bar .action-item .chat-session-option-picker {
22
+ align-items: center;
23
+ overflow: hidden;
24
+
25
+ .chat-session-option-label {
26
+ overflow: hidden;
27
+ text-overflow: ellipsis;
28
+ }
29
+
30
+ span.codicon {
31
+ font-size: 12px;
32
+ margin-left: 2px;
33
+ }
34
+
35
+ span.codicon.codicon-chevron-down {
36
+ font-size: 12px;
37
+ margin-left: 2px;
38
+ }
39
+ }
@@ -0,0 +1,292 @@
1
+ import { IMouseWheelEvent } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/mouseEvent";
2
+ import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
3
+ import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
4
+ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
5
+ import { ICodeEditor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser";
6
+ import { ICodeEditorService } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService.service";
7
+ import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
8
+ import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
9
+ import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
10
+ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
11
+ import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
12
+ import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
13
+ import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
14
+ import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
15
+ import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
16
+ import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
17
+ import { ILifecycleService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
18
+ import { IChatAgentAttachmentCapabilities, IChatAgentCommand, IChatAgentData } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents";
19
+ import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service";
20
+ import { IChatEditingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService.service";
21
+ import { IChatLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatLayoutService.service";
22
+ import { IChatModel, IChatModelInputState, IChatResponseModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModel";
23
+ import { IChatModeService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModes.service";
24
+ import { IParsedChatRequest } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatParserTypes";
25
+ import { IChatLocationData, IChatSendRequestOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
26
+ import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
27
+ import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
28
+ import { IChatSlashCommandService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSlashCommands.service";
29
+ import { IChatTodoListService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatTodoListService.service";
30
+ import { ChatViewModel, IChatResponseViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
31
+ import { ChatAgentLocation } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants";
32
+ import { ILanguageModelToolsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService.service";
33
+ import { IPromptsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service";
34
+ import { ChatTreeItem, IChatAcceptInputOptions, IChatCodeBlockInfo, IChatFileTreeInfo, IChatWidget, IChatWidgetViewContext, IChatWidgetViewOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
35
+ import { IChatAccessibilityService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
36
+ import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
37
+ import { ChatAttachmentModel } from "./chatAttachmentModel.js";
38
+ import { ChatInputPart, IChatInputStyles } from "./chatInputPart.js";
39
+ import { IAgentSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service";
40
+ export interface IChatWidgetStyles extends IChatInputStyles {
41
+ readonly inputEditorBackground: string;
42
+ readonly resultEditorBackground: string;
43
+ }
44
+ export interface IChatWidgetContrib extends IDisposable {
45
+ readonly id: string;
46
+ /**
47
+ * A piece of state which is related to the input editor of the chat widget.
48
+ * Takes in the `contrib` object that will be saved in the {@link IChatModelInputState}.
49
+ */
50
+ getInputState?(contrib: Record<string, unknown>): void;
51
+ /**
52
+ * Called with the result of getInputState when navigating input history.
53
+ */
54
+ setInputState?(contrib: Readonly<Record<string, unknown>>): void;
55
+ }
56
+ export interface IChatWidgetLocationOptions {
57
+ location: ChatAgentLocation;
58
+ resolveData?(): IChatLocationData | undefined;
59
+ }
60
+ export declare function isQuickChat(widget: IChatWidget): boolean;
61
+ export declare class ChatWidget extends Disposable implements IChatWidget {
62
+ private readonly viewOptions;
63
+ private readonly styles;
64
+ private readonly codeEditorService;
65
+ private readonly editorService;
66
+ private readonly configurationService;
67
+ private readonly contextKeyService;
68
+ private readonly instantiationService;
69
+ private readonly chatService;
70
+ private readonly chatAgentService;
71
+ private readonly chatWidgetService;
72
+ private readonly contextMenuService;
73
+ private readonly chatAccessibilityService;
74
+ private readonly logService;
75
+ private readonly themeService;
76
+ private readonly chatSlashCommandService;
77
+ private readonly telemetryService;
78
+ private readonly promptsService;
79
+ private readonly toolsService;
80
+ private readonly chatModeService;
81
+ private readonly chatLayoutService;
82
+ private readonly chatEntitlementService;
83
+ private readonly chatSessionsService;
84
+ private readonly agentSessionsService;
85
+ private readonly chatTodoListService;
86
+ private readonly contextService;
87
+ private readonly lifecycleService;
88
+ static readonly CONTRIBS: {
89
+ new (...args: [
90
+ IChatWidget,
91
+ ...any
92
+ ]): IChatWidgetContrib;
93
+ }[];
94
+ private readonly _onDidSubmitAgent;
95
+ readonly onDidSubmitAgent: Event<{
96
+ agent: IChatAgentData;
97
+ slashCommand?: IChatAgentCommand;
98
+ }>;
99
+ private _onDidChangeAgent;
100
+ readonly onDidChangeAgent: Event<{
101
+ agent: IChatAgentData;
102
+ slashCommand?: IChatAgentCommand;
103
+ }>;
104
+ private _onDidFocus;
105
+ readonly onDidFocus: Event<void>;
106
+ private _onDidChangeViewModel;
107
+ readonly onDidChangeViewModel: Event<void>;
108
+ private _onDidScroll;
109
+ readonly onDidScroll: Event<void>;
110
+ private _onDidAcceptInput;
111
+ readonly onDidAcceptInput: Event<void>;
112
+ private _onDidHide;
113
+ readonly onDidHide: Event<void>;
114
+ private _onDidShow;
115
+ readonly onDidShow: Event<void>;
116
+ private _onDidChangeParsedInput;
117
+ readonly onDidChangeParsedInput: Event<void>;
118
+ private readonly _onWillMaybeChangeHeight;
119
+ readonly onWillMaybeChangeHeight: Event<void>;
120
+ private _onDidChangeHeight;
121
+ readonly onDidChangeHeight: Event<number>;
122
+ private readonly _onDidChangeContentHeight;
123
+ readonly onDidChangeContentHeight: Event<void>;
124
+ private _onDidChangeEmptyState;
125
+ readonly onDidChangeEmptyState: Event<void>;
126
+ contribs: ReadonlyArray<IChatWidgetContrib>;
127
+ private listContainer;
128
+ private container;
129
+ get domNode(): HTMLElement;
130
+ private tree;
131
+ private renderer;
132
+ private readonly _codeBlockModelCollection;
133
+ private lastItem;
134
+ private readonly visibilityTimeoutDisposable;
135
+ private readonly inputPartDisposable;
136
+ private readonly inlineInputPartDisposable;
137
+ private inputContainer;
138
+ private focusedInputDOM;
139
+ private editorOptions;
140
+ private recentlyRestoredCheckpoint;
141
+ private settingChangeCounter;
142
+ private welcomeMessageContainer;
143
+ private readonly welcomePart;
144
+ private readonly chatSuggestNextWidget;
145
+ private bodyDimension;
146
+ private visibleChangeCount;
147
+ private requestInProgress;
148
+ private agentInInput;
149
+ private currentRequest;
150
+ private _visible;
151
+ get visible(): boolean;
152
+ private previousTreeScrollHeight;
153
+ /**
154
+ * Whether the list is scroll-locked to the bottom. Initialize to true so that we can scroll to the bottom on first render.
155
+ * The initial render leads to a lot of `onDidChangeTreeContentHeight` as the renderer works out the real heights of rows.
156
+ */
157
+ private scrollLock;
158
+ private _instructionFilesCheckPromise;
159
+ private _instructionFilesExist;
160
+ private _isRenderingWelcome;
161
+ private _lockedAgent?;
162
+ private readonly _lockedToCodingAgentContextKey;
163
+ private readonly _agentSupportsAttachmentsContextKey;
164
+ private readonly _sessionIsEmptyContextKey;
165
+ private _attachmentCapabilities;
166
+ private readonly promptDescriptionsCache;
167
+ private readonly promptUriCache;
168
+ private _isLoadingPromptDescriptions;
169
+ private _mostRecentlyFocusedItemIndex;
170
+ private readonly viewModelDisposables;
171
+ private _viewModel;
172
+ private set viewModel(value);
173
+ get viewModel(): ChatViewModel | undefined;
174
+ private readonly _editingSession;
175
+ private parsedChatRequest;
176
+ get parsedInput(): IParsedChatRequest;
177
+ get scopedContextKeyService(): IContextKeyService;
178
+ private readonly _location;
179
+ get location(): ChatAgentLocation;
180
+ readonly viewContext: IChatWidgetViewContext;
181
+ get supportsChangingModes(): boolean;
182
+ get locationData(): IChatLocationData | undefined;
183
+ constructor(location: ChatAgentLocation | IChatWidgetLocationOptions, viewContext: IChatWidgetViewContext | undefined, viewOptions: IChatWidgetViewOptions, styles: IChatWidgetStyles, codeEditorService: ICodeEditorService, editorService: IEditorService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, instantiationService: IInstantiationService, chatService: IChatService, chatAgentService: IChatAgentService, chatWidgetService: IChatWidgetService, contextMenuService: IContextMenuService, chatAccessibilityService: IChatAccessibilityService, logService: ILogService, themeService: IThemeService, chatSlashCommandService: IChatSlashCommandService, chatEditingService: IChatEditingService, telemetryService: ITelemetryService, promptsService: IPromptsService, toolsService: ILanguageModelToolsService, chatModeService: IChatModeService, chatLayoutService: IChatLayoutService, chatEntitlementService: IChatEntitlementService, chatSessionsService: IChatSessionsService, agentSessionsService: IAgentSessionsService, chatTodoListService: IChatTodoListService, contextService: IWorkspaceContextService, lifecycleService: ILifecycleService);
184
+ private _lastSelectedAgent;
185
+ set lastSelectedAgent(agent: IChatAgentData | undefined);
186
+ get lastSelectedAgent(): IChatAgentData | undefined;
187
+ private _updateAgentCapabilitiesContextKeys;
188
+ get supportsFileReferences(): boolean;
189
+ get attachmentCapabilities(): IChatAgentAttachmentCapabilities;
190
+ get input(): ChatInputPart;
191
+ private get inputPart();
192
+ private get inlineInputPart();
193
+ get inputEditor(): ICodeEditor;
194
+ get contentHeight(): number;
195
+ get attachmentModel(): ChatAttachmentModel;
196
+ render(parent: HTMLElement): void;
197
+ private scrollToEnd;
198
+ focusInput(): void;
199
+ hasInputFocus(): boolean;
200
+ refreshParsedInput(): void;
201
+ getSibling(item: ChatTreeItem, type: "next" | "previous"): ChatTreeItem | undefined;
202
+ clear(): Promise<void>;
203
+ private onDidChangeItems;
204
+ /**
205
+ * Updates the DOM visibility of welcome view and chat list immediately
206
+ */
207
+ private updateChatViewVisibility;
208
+ isEmpty(): boolean;
209
+ /**
210
+ * Renders the welcome view content when needed.
211
+ */
212
+ private renderWelcomeViewContentIfNeeded;
213
+ private _getGenerateInstructionsMessage;
214
+ /**
215
+ * Checks if any agent instruction files (.github/copilot-instructions.md or AGENTS.md) exist in the workspace.
216
+ * Used to determine whether to show the "Generate Agent Instructions" hint.
217
+ *
218
+ * @returns true if instruction files exist OR if instruction features are disabled (to hide the hint)
219
+ */
220
+ private _checkForAgentInstructionFiles;
221
+ private getWelcomeViewContent;
222
+ private getPromptFileSuggestions;
223
+ private loadPromptDescriptions;
224
+ private renderChatEditingSessionState;
225
+ private renderFollowups;
226
+ private renderChatSuggestNextWidget;
227
+ private handleNextPromptSelection;
228
+ handleDelegationExitIfNeeded(sourceAgent: Pick<IChatAgentData, "id" | "name"> | undefined, targetAgent: IChatAgentData | undefined): Promise<void>;
229
+ private _shouldExitAfterDelegation;
230
+ /**
231
+ * Handles the exit of the panel chat when a delegation to another session occurs.
232
+ * Waits for the response to complete and any pending confirmations to be resolved,
233
+ * then clears the widget unless the final message is an error.
234
+ */
235
+ private _handleDelegationExit;
236
+ private archiveLocalParentSession;
237
+ setVisible(visible: boolean): void;
238
+ private createList;
239
+ startEditing(requestId: string): void;
240
+ private clickedRequest;
241
+ finishedEditing(completedEdit?: boolean): void;
242
+ private scrollToCurrentItem;
243
+ private onContextMenu;
244
+ private onDidChangeTreeContentHeight;
245
+ private getWidgetViewKindTag;
246
+ private createInput;
247
+ private onDidStyleChange;
248
+ setModel(model: IChatModel | undefined): void;
249
+ getFocus(): ChatTreeItem | undefined;
250
+ reveal(item: ChatTreeItem, relativeTop?: number): void;
251
+ focus(item: ChatTreeItem): void;
252
+ setInputPlaceholder(placeholder: string): void;
253
+ resetInputPlaceholder(): void;
254
+ setInput(value?: string): void;
255
+ getInput(): string;
256
+ getContrib<T extends IChatWidgetContrib>(id: string): T | undefined;
257
+ lockToCodingAgent(name: string, displayName: string, agentId: string): void;
258
+ unlockFromCodingAgent(): void;
259
+ get isLockedToCodingAgent(): boolean;
260
+ get lockedAgentId(): string | undefined;
261
+ logInputHistory(): void;
262
+ acceptInput(query?: string, options?: IChatAcceptInputOptions): Promise<IChatResponseModel | undefined>;
263
+ rerunLastRequest(): Promise<void>;
264
+ private _applyPromptFileIfSet;
265
+ private _acceptInput;
266
+ getModeRequestOptions(): Partial<IChatSendRequestOptions>;
267
+ getCodeBlockInfosForResponse(response: IChatResponseViewModel): IChatCodeBlockInfo[];
268
+ getCodeBlockInfoForEditor(uri: URI): IChatCodeBlockInfo | undefined;
269
+ getFileTreeInfosForResponse(response: IChatResponseViewModel): IChatFileTreeInfo[];
270
+ getLastFocusedFileTreeForResponse(response: IChatResponseViewModel): IChatFileTreeInfo | undefined;
271
+ focusResponseItem(lastFocused?: boolean): void;
272
+ layout(height: number, width: number): void;
273
+ private _dynamicMessageLayoutData?;
274
+ setDynamicChatTreeItemLayout(numOfChatTreeItems: number, maxHeight: number): void;
275
+ updateDynamicChatTreeItemLayout(numOfChatTreeItems: number, maxHeight: number): void;
276
+ get isDynamicChatTreeItemLayoutEnabled(): boolean;
277
+ set isDynamicChatTreeItemLayoutEnabled(value: boolean);
278
+ layoutDynamicChatTreeItemMode(): void;
279
+ saveState(): void;
280
+ getViewState(): IChatModelInputState | undefined;
281
+ private updateChatInputContext;
282
+ private _switchToAgentByName;
283
+ private _applyPromptMetadata;
284
+ /**
285
+ * Adds additional instructions to the context
286
+ * - instructions that have a 'applyTo' pattern that matches the current input
287
+ * - instructions referenced in the copilot settings 'copilot-instructions'
288
+ * - instructions referenced in an already included instruction file
289
+ */
290
+ private _autoAttachInstructions;
291
+ delegateScrollFromMouseWheelEvent(browserEvent: IMouseWheelEvent): void;
292
+ }