@codingame/monaco-vscode-katex-common 24.3.0 → 25.0.1

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 (197) hide show
  1. package/package.json +3 -3
  2. package/vscode/src/vs/platform/actions/browser/buttonbar.js +3 -3
  3. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAccessibilityProvider.d.ts → accessibility/chatAccessibilityProvider.d.ts} +1 -1
  4. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAccessibilityProvider.js → accessibility/chatAccessibilityProvider.js} +25 -20
  5. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +19 -19
  6. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +4 -4
  7. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +31 -31
  8. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +15 -15
  9. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentModel.d.ts → attachments/chatAttachmentModel.d.ts} +4 -2
  10. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentModel.js → attachments/chatAttachmentModel.js} +24 -3
  11. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentWidgets.d.ts → attachments/chatAttachmentWidgets.d.ts} +4 -4
  12. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentWidgets.js → attachments/chatAttachmentWidgets.js} +80 -89
  13. package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatImplicitContext.d.ts +4 -4
  14. package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatImplicitContext.js +23 -11
  15. package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatInputRelatedFilesContrib.d.ts +1 -1
  16. package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatInputRelatedFilesContrib.js +2 -2
  17. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +4 -3
  18. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +47 -21
  19. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +1 -1
  20. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +39 -39
  21. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +3 -3
  22. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +5 -5
  23. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAgentHover.d.ts → widget/chatAgentHover.d.ts} +3 -3
  24. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAgentHover.js → widget/chatAgentHover.js} +4 -4
  25. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAgentCommandContentPart.d.ts +3 -3
  26. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAgentCommandContentPart.js +2 -2
  27. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAnonymousRateLimitedPart.d.ts +2 -2
  28. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAnonymousRateLimitedPart.js +2 -2
  29. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAttachmentsContentPart.d.ts +2 -2
  30. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAttachmentsContentPart.js +3 -3
  31. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatChangesSummaryPart.d.ts +10 -13
  32. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatChangesSummaryPart.js +59 -119
  33. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCodeCitationContentPart.d.ts +2 -2
  34. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCodeCitationContentPart.js +2 -2
  35. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollapsibleContentPart.d.ts +11 -4
  36. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollapsibleContentPart.js +31 -10
  37. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCommandContentPart.d.ts +3 -3
  38. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCommandContentPart.js +2 -2
  39. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationContentPart.d.ts +4 -4
  40. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationContentPart.js +5 -5
  41. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationWidget.d.ts +9 -18
  42. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationWidget.js +31 -99
  43. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatContentCodePools.d.ts +1 -1
  44. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatContentCodePools.js +1 -1
  45. package/vscode/src/vs/workbench/contrib/chat/browser/{chatDiffBlockPart.d.ts → widget/chatContentParts/chatDiffBlockPart.d.ts} +2 -2
  46. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatElicitationContentPart.d.ts +3 -3
  47. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatElicitationContentPart.js +3 -3
  48. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorConfirmationPart.d.ts +4 -4
  49. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorConfirmationPart.js +2 -2
  50. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorContentPart.d.ts +3 -3
  51. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorContentPart.js +1 -1
  52. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatExtensionsContentPart.d.ts +3 -3
  53. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatExtensionsContentPart.js +1 -1
  54. package/vscode/src/vs/workbench/contrib/chat/browser/{chatInlineAnchorWidget.d.ts → widget/chatContentParts/chatInlineAnchorWidget.d.ts} +2 -2
  55. package/vscode/src/vs/workbench/contrib/chat/browser/{chatInlineAnchorWidget.js → widget/chatContentParts/chatInlineAnchorWidget.js} +18 -15
  56. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMarkdownContentPart.d.ts +6 -6
  57. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMarkdownContentPart.js +15 -15
  58. package/vscode/src/vs/workbench/contrib/chat/browser/{chatMarkdownDecorationsRenderer.d.ts → widget/chatContentParts/chatMarkdownDecorationsRenderer.d.ts} +7 -7
  59. package/vscode/src/vs/workbench/contrib/chat/browser/{chatMarkdownDecorationsRenderer.js → widget/chatContentParts/chatMarkdownDecorationsRenderer.js} +9 -12
  60. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMcpServersInteractionContentPart.d.ts +3 -3
  61. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMcpServersInteractionContentPart.js +7 -7
  62. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMultiDiffContentPart.d.ts +4 -6
  63. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMultiDiffContentPart.js +31 -35
  64. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatProgressContentPart.d.ts +5 -5
  65. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatProgressContentPart.js +9 -42
  66. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatPullRequestContentPart.d.ts +3 -3
  67. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatPullRequestContentPart.js +1 -1
  68. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatQuotaExceededPart.d.ts +2 -2
  69. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatQuotaExceededPart.js +4 -4
  70. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatReferencesContentPart.d.ts +7 -6
  71. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatReferencesContentPart.js +20 -17
  72. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatSuggestNextWidget.js +5 -5
  73. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTaskContentPart.d.ts +3 -3
  74. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTaskContentPart.js +1 -1
  75. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.d.ts +2 -2
  76. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.js +3 -3
  77. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.service.d.ts +2 -2
  78. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatThinkingContentPart.d.ts +9 -7
  79. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatThinkingContentPart.js +71 -17
  80. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTodoListWidget.d.ts +1 -1
  81. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTodoListWidget.js +23 -23
  82. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolInputOutputContentPart.d.ts +4 -3
  83. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolInputOutputContentPart.js +2 -2
  84. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolOutputContentSubPart.d.ts +6 -3
  85. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolOutputContentSubPart.js +27 -11
  86. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTreeContentPart.d.ts +3 -3
  87. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTreeContentPart.js +1 -1
  88. package/vscode/src/vs/workbench/contrib/chat/browser/{codeBlockPart.d.ts → widget/chatContentParts/codeBlockPart.d.ts} +5 -5
  89. package/vscode/src/vs/workbench/contrib/chat/browser/{codeBlockPart.js → widget/chatContentParts/codeBlockPart.js} +19 -18
  90. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatThinkingContent.css +17 -14
  91. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/abstractToolConfirmationSubPart.d.ts +3 -3
  92. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/abstractToolConfirmationSubPart.js +4 -4
  93. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatExtensionsInstallToolSubPart.d.ts +2 -2
  94. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatExtensionsInstallToolSubPart.js +7 -7
  95. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +3 -3
  96. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +4 -32
  97. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatResultListSubPart.d.ts +2 -2
  98. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatResultListSubPart.js +4 -1
  99. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +4 -3
  100. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +107 -39
  101. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolProgressPart.d.ts +3 -3
  102. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolProgressPart.js +19 -132
  103. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolConfirmationSubPart.d.ts +6 -6
  104. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolConfirmationSubPart.js +13 -13
  105. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationPart.d.ts +4 -4
  106. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationPart.js +2 -2
  107. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationSubPart.d.ts +1 -1
  108. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationSubPart.js +1 -1
  109. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolOutputPart.d.ts +2 -2
  110. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolOutputPart.js +3 -3
  111. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.d.ts +14 -0
  112. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +46 -0
  113. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +4 -4
  114. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +11 -10
  115. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolProgressPart.d.ts +2 -2
  116. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolProgressPart.js +1 -1
  117. package/vscode/src/vs/workbench/contrib/chat/browser/{chatDragAndDrop.d.ts → widget/chatDragAndDrop.d.ts} +3 -3
  118. package/vscode/src/vs/workbench/contrib/chat/browser/{chatDragAndDrop.js → widget/chatDragAndDrop.js} +13 -13
  119. package/vscode/src/vs/workbench/contrib/chat/browser/{chatListRenderer.d.ts → widget/chatListRenderer.d.ts} +5 -5
  120. package/vscode/src/vs/workbench/contrib/chat/browser/{chatListRenderer.js → widget/chatListRenderer.js} +41 -53
  121. package/vscode/src/vs/workbench/contrib/chat/browser/{chatWidget.d.ts → widget/chatWidget.d.ts} +18 -16
  122. package/vscode/src/vs/workbench/contrib/chat/browser/{chatWidget.js → widget/chatWidget.js} +77 -57
  123. package/vscode/src/vs/workbench/contrib/chat/browser/{chatFollowups.d.ts → widget/input/chatFollowups.d.ts} +2 -2
  124. package/vscode/src/vs/workbench/contrib/chat/browser/{chatFollowups.js → widget/input/chatFollowups.js} +3 -3
  125. package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPart.d.ts → widget/input/chatInputPart.d.ts} +14 -13
  126. package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPart.js → widget/input/chatInputPart.js} +75 -59
  127. package/vscode/src/vs/workbench/contrib/chat/browser/{chatSelectedTools.d.ts → widget/input/chatSelectedTools.d.ts} +3 -3
  128. package/vscode/src/vs/workbench/contrib/chat/browser/{chatSelectedTools.js → widget/input/chatSelectedTools.js} +2 -2
  129. package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputCompletions.js +36 -24
  130. package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modePickerActionItem.d.ts +2 -2
  131. package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modePickerActionItem.js +9 -7
  132. package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modelPickerActionItem.d.ts +4 -2
  133. package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modelPickerActionItem.js +21 -14
  134. package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/media}/chat.css +17 -16
  135. package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/media}/chatViewWelcome.css +3 -1
  136. package/vscode/src/vs/workbench/contrib/chat/common/{chatColors.js → widget/chatColors.js} +13 -13
  137. package/vscode/src/vs/workbench/contrib/chat/common/{chatWidgetHistoryService.d.ts → widget/chatWidgetHistoryService.d.ts} +2 -2
  138. package/vscode/src/vs/workbench/contrib/chat/common/{chatWidgetHistoryService.js → widget/chatWidgetHistoryService.js} +2 -2
  139. package/vscode/src/vs/workbench/contrib/chat/common/{codeBlockModelCollection.d.ts → widget/codeBlockModelCollection.d.ts} +2 -2
  140. package/vscode/src/vs/workbench/contrib/chat/common/{codeBlockModelCollection.js → widget/codeBlockModelCollection.js} +4 -3
  141. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +7 -8
  142. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +63 -63
  143. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.d.ts +2 -2
  144. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +2 -2
  145. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +1 -1
  146. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +3 -4
  147. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +16 -18
  148. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.d.ts +1 -5
  149. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +8 -18
  150. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +3 -3
  151. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +12 -12
  152. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +1 -1
  153. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +2 -2
  154. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +1 -1
  155. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +0 -1
  156. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +35 -54
  157. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
  158. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +1 -1
  159. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
  160. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
  161. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +4 -4
  162. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
  163. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +1 -1
  164. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
  165. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
  166. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
  167. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +3 -3
  168. package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.d.ts +35 -4
  169. package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +129 -31
  170. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.d.ts +0 -19
  171. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.js +0 -76
  172. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +0 -48
  173. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +0 -373
  174. /package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/{chatSessionAction.css → chatSessionPickerActionItem.css} +0 -0
  175. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentMarkdownRenderer.d.ts → widget/chatContentMarkdownRenderer.d.ts} +0 -0
  176. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentMarkdownRenderer.js → widget/chatContentMarkdownRenderer.js} +0 -0
  177. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollections.d.ts +0 -0
  178. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollections.js +0 -0
  179. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatDiffBlockPart.js → widget/chatContentParts/chatDiffBlockPart.js} +0 -0
  180. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatSuggestNextWidget.d.ts +0 -0
  181. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.service.js +0 -0
  182. /package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/chatContentParts/media}/chatCodeBlockPill.css +0 -0
  183. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatConfirmationWidget.css +0 -0
  184. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatExtensionsContent.css +0 -0
  185. /package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/chatContentParts/media}/chatInlineAnchorWidget.css +0 -0
  186. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatMarkdownPart.css +0 -0
  187. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatMcpServersInteractionContent.css +0 -0
  188. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatPullRequestContent.css +0 -0
  189. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatTerminalToolProgressPart.css +0 -0
  190. /package/vscode/src/vs/workbench/contrib/chat/browser/{codeBlockPart.css → widget/chatContentParts/media/codeBlockPart.css} +0 -0
  191. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatOptions.d.ts → widget/chatOptions.d.ts} +0 -0
  192. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatOptions.js → widget/chatOptions.js} +0 -0
  193. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPartWidgets.d.ts → widget/input/chatInputPartWidgets.d.ts} +0 -0
  194. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPartWidgets.js → widget/input/chatInputPartWidgets.js} +0 -0
  195. /package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputCompletions.d.ts +0 -0
  196. /package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/media}/chatAgentHover.css +0 -0
  197. /package/vscode/src/vs/workbench/contrib/chat/common/{chatColors.d.ts → widget/chatColors.d.ts} +0 -0
@@ -15,27 +15,27 @@ import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs
15
15
  import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
16
16
  import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
17
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";
18
+ import { IChatAgentAttachmentCapabilities, IChatAgentCommand, IChatAgentData } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents";
19
+ import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service";
20
+ import { IChatEditingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService.service";
21
+ import { IChatLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/widget/chatLayoutService.service";
22
+ import { IChatModel, IChatModelInputState, IChatResponseModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
23
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";
24
+ import { IParsedChatRequest } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/requestParser/chatParserTypes";
25
+ import { IChatLocationData, IChatSendRequestOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
26
+ import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
27
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";
28
+ import { IChatSlashCommandService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatSlashCommands.service";
29
+ import { IChatTodoListService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/chatTodoListService.service";
30
+ import { ChatViewModel, IChatResponseViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
31
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";
32
+ import { ILanguageModelToolsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService.service";
33
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";
34
+ import { ChatTreeItem, IChatAcceptInputOptions, IChatCodeBlockInfo, IChatFileTreeInfo, IChatWidget, IChatWidgetViewContext, IChatWidgetViewModelChangeEvent, IChatWidgetViewOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
35
35
  import { IChatAccessibilityService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
36
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";
37
+ import { ChatAttachmentModel } from "../attachments/chatAttachmentModel.js";
38
+ import { ChatInputPart, IChatInputStyles } from "./input/chatInputPart.js";
39
39
  import { IAgentSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service";
40
40
  export interface IChatWidgetStyles extends IChatInputStyles {
41
41
  readonly inputEditorBackground: string;
@@ -104,7 +104,7 @@ export declare class ChatWidget extends Disposable implements IChatWidget {
104
104
  private _onDidFocus;
105
105
  readonly onDidFocus: Event<void>;
106
106
  private _onDidChangeViewModel;
107
- readonly onDidChangeViewModel: Event<void>;
107
+ readonly onDidChangeViewModel: Event<IChatWidgetViewModelChangeEvent>;
108
108
  private _onDidScroll;
109
109
  readonly onDidScroll: Event<void>;
110
110
  private _onDidAcceptInput;
@@ -132,6 +132,8 @@ export declare class ChatWidget extends Disposable implements IChatWidget {
132
132
  private readonly _codeBlockModelCollection;
133
133
  private lastItem;
134
134
  private readonly visibilityTimeoutDisposable;
135
+ private readonly visibilityAnimationFrameDisposable;
136
+ private readonly scrollAnimationFrameDisposable;
135
137
  private readonly inputPartDisposable;
136
138
  private readonly inlineInputPartDisposable;
137
139
  private inputContainer;
@@ -57,38 +57,38 @@ import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/
57
57
  import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
58
58
  import { katexContainerClassName } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/markdown/common/markedKatexExtension';
59
59
  import { checkModeOption } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chat';
60
- import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
61
- import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
62
- import { decidedChatEditingResourceContextKey, ModifiedFileEntryState, hasUndecidedChatEditingResourceContextKey, hasAppliedChatEditsContextKey, inChatEditingSessionContextKey, applyingChatEditsFailedContextKey } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService';
63
- import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService.service';
64
- import { IChatLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatLayoutService.service';
60
+ import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service';
61
+ import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
62
+ import { decidedChatEditingResourceContextKey, ModifiedFileEntryState, hasUndecidedChatEditingResourceContextKey, hasAppliedChatEditsContextKey, inChatEditingSessionContextKey, applyingChatEditsFailedContextKey } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService';
63
+ import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService.service';
64
+ import { IChatLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/widget/chatLayoutService.service';
65
65
  import { ChatMode } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModes';
66
66
  import { IChatModeService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModes.service';
67
- import { ChatRequestToolPart, ChatRequestToolSetPart, ChatRequestDynamicVariablePart, chatAgentLeader, chatSubcommandLeader, ChatRequestSlashPromptPart, formatChatQuestion, ChatRequestAgentPart } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
68
- import { ChatRequestParser } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatRequestParser';
69
- import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
67
+ import { ChatRequestToolPart, ChatRequestToolSetPart, ChatRequestDynamicVariablePart, chatAgentLeader, chatSubcommandLeader, ChatRequestSlashPromptPart, formatChatQuestion, ChatRequestAgentPart } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/requestParser/chatParserTypes';
68
+ import { ChatRequestParser } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/requestParser/chatRequestParser';
69
+ import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
70
70
  import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
71
- import { IChatSlashCommandService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSlashCommands.service';
72
- import { IChatTodoListService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatTodoListService.service';
73
- import { isWorkspaceVariableEntry, isPromptFileVariableEntry, isPromptTextVariableEntry, toPromptFileVariableEntry, PromptFileVariableKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatVariableEntries';
74
- import { isResponseVM, isRequestVM, ChatViewModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel';
75
- import { CodeBlockModelCollection } from '../common/codeBlockModelCollection.js';
71
+ import { IChatSlashCommandService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatSlashCommands.service';
72
+ import { IChatTodoListService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/chatTodoListService.service';
73
+ import { isWorkspaceVariableEntry, isPromptFileVariableEntry, isPromptTextVariableEntry, toPromptFileVariableEntry, PromptFileVariableKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries';
74
+ import { isResponseVM, isRequestVM, ChatViewModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel';
75
+ import { CodeBlockModelCollection } from '../../common/widget/codeBlockModelCollection.js';
76
76
  import { ChatConfiguration, ChatModeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
77
- import { ToolSet } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService';
78
- import { ILanguageModelToolsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService.service';
79
- import { ComputeAutomaticInstructions } from '../common/promptSyntax/computeAutomaticInstructions.js';
77
+ import { ToolSet } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService';
78
+ import { ILanguageModelToolsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService.service';
79
+ import { ComputeAutomaticInstructions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions';
80
80
  import { PromptsConfig } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/config/config';
81
81
  import { Target } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser';
82
82
  import { IPromptsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service';
83
83
  import { handleModeSwitch } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
84
84
  import { isIChatResourceViewContext, isIChatViewViewContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
85
85
  import { IChatWidgetService, IChatAccessibilityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
86
- import { ChatAccessibilityProvider } from './chatAccessibilityProvider.js';
86
+ import { ChatAccessibilityProvider } from '../accessibility/chatAccessibilityProvider.js';
87
87
  import { ChatSuggestNextWidget } from './chatContentParts/chatSuggestNextWidget.js';
88
- import { ChatInputPart } from './chatInputPart.js';
88
+ import { ChatInputPart } from './input/chatInputPart.js';
89
89
  import { ChatListDelegate, ChatListItemRenderer } from './chatListRenderer.js';
90
90
  import { ChatEditorOptions } from './chatOptions.js';
91
- import { ChatViewWelcomePart } from './viewsWelcome/chatViewWelcomeController.js';
91
+ import { ChatViewWelcomePart } from '../viewsWelcome/chatViewWelcomeController.js';
92
92
  import { IAgentSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service';
93
93
  import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
94
94
  import { observableFromEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableFromEvent';
@@ -117,7 +117,7 @@ const supportsAllAttachments = {
117
117
  supportsSymbolAttachments: true,
118
118
  supportsTerminalAttachments: true,
119
119
  };
120
- const DISCLAIMER = ( localize(5653, "AI responses may be inaccurate."));
120
+ const DISCLAIMER = ( localize(5791, "AI responses may be inaccurate."));
121
121
  let ChatWidget = class ChatWidget extends Disposable {
122
122
  static { ChatWidget_1 = this; }
123
123
  static { this.CONTRIBS = []; }
@@ -127,6 +127,7 @@ let ChatWidget = class ChatWidget extends Disposable {
127
127
  if (this._viewModel === viewModel) {
128
128
  return;
129
129
  }
130
+ const previousSessionResource = this._viewModel?.sessionResource;
130
131
  this.viewModelDisposables.clear();
131
132
  this._viewModel = viewModel;
132
133
  if (viewModel) {
@@ -136,7 +137,8 @@ let ChatWidget = class ChatWidget extends Disposable {
136
137
  else {
137
138
  this.logService.debug('ChatWidget#setViewModel: no viewModel');
138
139
  }
139
- this._onDidChangeViewModel.fire();
140
+ this.currentRequest = undefined;
141
+ this._onDidChangeViewModel.fire({ previousSessionResource, currentSessionResource: this._viewModel?.sessionResource });
140
142
  }
141
143
  get viewModel() {
142
144
  return this._viewModel;
@@ -224,6 +226,8 @@ let ChatWidget = class ChatWidget extends Disposable {
224
226
  this.onDidChangeEmptyState = this._onDidChangeEmptyState.event;
225
227
  this.contribs = [];
226
228
  this.visibilityTimeoutDisposable = this._register(( new MutableDisposable()));
229
+ this.visibilityAnimationFrameDisposable = this._register(( new MutableDisposable()));
230
+ this.scrollAnimationFrameDisposable = this._register(( new MutableDisposable()));
227
231
  this.inputPartDisposable = this._register(( new MutableDisposable()));
228
232
  this.inlineInputPartDisposable = this._register(( new MutableDisposable()));
229
233
  this.recentlyRestoredCheckpoint = false;
@@ -465,7 +469,7 @@ let ChatWidget = class ChatWidget extends Disposable {
465
469
  })));
466
470
  scrollDownButton.element.classList.add('chat-scroll-down');
467
471
  scrollDownButton.label = `$(${Codicon.chevronDown.id})`;
468
- scrollDownButton.setTitle(( localize(5654, "Scroll down")));
472
+ scrollDownButton.setTitle(( localize(5792, "Scroll down")));
469
473
  this._register(scrollDownButton.onDidClick(() => {
470
474
  this.scrollLock = true;
471
475
  this.scrollToEnd();
@@ -479,8 +483,7 @@ let ChatWidget = class ChatWidget extends Disposable {
479
483
  this.tree.rerender();
480
484
  }
481
485
  }));
482
- this._register(this.editorOptions.onDidChange(() => this.onDidStyleChange()));
483
- this.onDidStyleChange();
486
+ this._register(Event.runAndSubscribe(this.editorOptions.onDidChange, () => this.onDidStyleChange()));
484
487
  if (this.viewModel) {
485
488
  this.onDidChangeItems();
486
489
  this.scrollToEnd();
@@ -649,7 +652,7 @@ let ChatWidget = class ChatWidget extends Disposable {
649
652
  if (this.chatEntitlementService.anonymous && !this.chatEntitlementService.sentiment.installed) {
650
653
  const providers = product.defaultChatAgent.provider;
651
654
  additionalMessage = ( new MarkdownString(( localize(
652
- 5655,
655
+ 5793,
653
656
  "By continuing with {0} Copilot, you agree to {1}'s [Terms]({2}) and [Privacy Statement]({3}).",
654
657
  providers.default.name,
655
658
  providers.default.name,
@@ -696,7 +699,7 @@ let ChatWidget = class ChatWidget extends Disposable {
696
699
  else if (this._instructionFilesExist === false) {
697
700
  const generateInstructionsCommand = 'workbench.action.chat.generateInstructions';
698
701
  return (new MarkdownString(localize(
699
- 5656,
702
+ 5794,
700
703
  "[Generate Agent Instructions]({0}) to onboard AI onto your codebase.",
701
704
  `command:${generateInstructionsCommand}`
702
705
  ), { isTrusted: { enabledCommands: [generateInstructionsCommand] } }));
@@ -727,18 +730,18 @@ let ChatWidget = class ChatWidget extends Disposable {
727
730
  ? ( new MarkdownString(providerMessage))
728
731
  : (this._lockedAgent?.prefix === '@copilot '
729
732
  ? ( new MarkdownString(( localize(
730
- 5657,
733
+ 5795,
731
734
  "This chat session will be forwarded to the {0} [coding agent]({1}) where work is completed in the background. ",
732
735
  this._lockedAgent.prefix,
733
736
  'https://aka.ms/coding-agent-docs'
734
737
  )) + DISCLAIMER, { isTrusted: true }))
735
738
  : ( new MarkdownString(( localize(
736
- 5658,
739
+ 5796,
737
740
  "This chat session will be forwarded to the {0} coding agent where work is completed in the background. ",
738
741
  this._lockedAgent?.prefix
739
742
  )) + DISCLAIMER)));
740
743
  return {
741
- title: providerTitle ?? ( localize(5659, "Delegate to {0}", this._lockedAgent?.prefix)),
744
+ title: providerTitle ?? ( localize(5797, "Delegate to {0}", this._lockedAgent?.prefix)),
742
745
  message,
743
746
  icon: providerIcon ?? Codicon.sendToRemoteAgent,
744
747
  additionalMessage,
@@ -747,13 +750,13 @@ let ChatWidget = class ChatWidget extends Disposable {
747
750
  }
748
751
  let title;
749
752
  if (this.input.currentModeKind === ChatModeKind.Ask) {
750
- title = ( localize(5660, "Ask about your code"));
753
+ title = ( localize(5798, "Ask about your code"));
751
754
  }
752
755
  else if (this.input.currentModeKind === ChatModeKind.Edit) {
753
- title = ( localize(5661, "Edit in context"));
756
+ title = ( localize(5799, "Edit in context"));
754
757
  }
755
758
  else {
756
- title = ( localize(5662, "Build with Agent"));
759
+ title = ( localize(5800, "Build with Agent"));
757
760
  }
758
761
  return {
759
762
  title,
@@ -770,13 +773,13 @@ let ChatWidget = class ChatWidget extends Disposable {
770
773
  return [
771
774
  {
772
775
  icon: Codicon.vscode,
773
- label: ( localize(5663, "Ask @vscode")),
774
- prompt: ( localize(5664, "@vscode How do I change the theme to light mode?")),
776
+ label: ( localize(5801, "Ask @vscode")),
777
+ prompt: ( localize(5802, "@vscode How do I change the theme to light mode?")),
775
778
  },
776
779
  {
777
780
  icon: Codicon.newFolder,
778
- label: ( localize(5665, "Create Project")),
779
- prompt: ( localize(5666, "Create a #new Hello World project in TypeScript")),
781
+ label: ( localize(5803, "Create Project")),
782
+ prompt: ( localize(5804, "Create a #new Hello World project in TypeScript")),
780
783
  }
781
784
  ];
782
785
  }
@@ -784,13 +787,13 @@ let ChatWidget = class ChatWidget extends Disposable {
784
787
  return [
785
788
  {
786
789
  icon: Codicon.debugAlt,
787
- label: ( localize(5667, "Build Workspace")),
788
- prompt: ( localize(5668, "How do I build this workspace?")),
790
+ label: ( localize(5805, "Build Workspace")),
791
+ prompt: ( localize(5806, "How do I build this workspace?")),
789
792
  },
790
793
  {
791
794
  icon: Codicon.gear,
792
- label: ( localize(5669, "Show Config")),
793
- prompt: ( localize(5670, "Where is the configuration for this project defined?")),
795
+ label: ( localize(5807, "Show Config")),
796
+ prompt: ( localize(5808, "Where is the configuration for this project defined?")),
794
797
  }
795
798
  ];
796
799
  }
@@ -857,7 +860,7 @@ let ChatWidget = class ChatWidget extends Disposable {
857
860
  const topPrompts = promptsWithScores.slice(0, 5);
858
861
  for (const { promptName } of topPrompts) {
859
862
  const description = this.promptDescriptionsCache.get(promptName);
860
- const commandLabel = ( localize(5671, "{0}", promptName));
863
+ const commandLabel = ( localize(5809, "{0}", promptName));
861
864
  const uri = this.promptUriCache.get(promptName);
862
865
  const descriptionText = description?.trim() ? description : undefined;
863
866
  result.push({
@@ -912,7 +915,7 @@ let ChatWidget = class ChatWidget extends Disposable {
912
915
  }
913
916
  }
914
917
  async renderFollowups() {
915
- if (this.lastItem && isResponseVM(this.lastItem) && this.lastItem.isComplete && this.input.currentModeKind === ChatModeKind.Ask) {
918
+ if (this.lastItem && isResponseVM(this.lastItem) && this.lastItem.isComplete) {
916
919
  this.input.renderFollowups(this.lastItem.replyFollowups, this.lastItem);
917
920
  }
918
921
  else {
@@ -1080,9 +1083,9 @@ let ChatWidget = class ChatWidget extends Disposable {
1080
1083
  this.onDidChangeItems(true);
1081
1084
  }
1082
1085
  }, 0);
1083
- this._register(scheduleAtNextAnimationFrame(getWindow(this.listContainer), () => {
1086
+ this.visibilityAnimationFrameDisposable.value = scheduleAtNextAnimationFrame(getWindow(this.listContainer), () => {
1084
1087
  this._onDidShow.fire();
1085
- }));
1088
+ });
1086
1089
  }
1087
1090
  }
1088
1091
  else if (wasVisible) {
@@ -1212,14 +1215,23 @@ let ChatWidget = class ChatWidget extends Disposable {
1212
1215
  }
1213
1216
  this.viewModel?.model.setCheckpoint(currentElement.id);
1214
1217
  const currentContext = [];
1218
+ const addedContextIds = ( new Set());
1219
+ const addToContext = (entry) => {
1220
+ if (( addedContextIds.has(entry.id)) || isWorkspaceVariableEntry(entry)) {
1221
+ return;
1222
+ }
1223
+ if ((isPromptFileVariableEntry(entry) || isPromptTextVariableEntry(entry)) && entry.automaticallyAdded) {
1224
+ return;
1225
+ }
1226
+ addedContextIds.add(entry.id);
1227
+ currentContext.push(entry);
1228
+ };
1215
1229
  for (let i = requests.length - 1; i >= 0; i -= 1) {
1216
1230
  const request = requests[i];
1217
1231
  if (request.id === currentElement.id) {
1218
1232
  request.shouldBeBlocked = false;
1219
- if (request.attachedContext) {
1220
- const context = request.attachedContext.filter(entry => !isWorkspaceVariableEntry(entry) && (!(isPromptFileVariableEntry(entry) || isPromptTextVariableEntry(entry)) || !entry.automaticallyAdded));
1221
- currentContext.push(...context);
1222
- }
1233
+ request.attachedContext?.forEach(addToContext);
1234
+ currentElement.variables.forEach(addToContext);
1223
1235
  }
1224
1236
  }
1225
1237
  this.viewModel?.setEditing(currentElement);
@@ -1233,7 +1245,7 @@ let ChatWidget = class ChatWidget extends Disposable {
1233
1245
  this.inputContainer = $$1('.chat-edit-input-container');
1234
1246
  rowContainer.appendChild(this.inputContainer);
1235
1247
  this.createInput(this.inputContainer);
1236
- this.input.setChatMode(this.inputPart.currentModeKind);
1248
+ this.input.setChatMode(this.inputPart.currentModeObs.get().id);
1237
1249
  }
1238
1250
  else {
1239
1251
  this.inputPart.element.classList.add('editing');
@@ -1280,7 +1292,7 @@ let ChatWidget = class ChatWidget extends Disposable {
1280
1292
  }
1281
1293
  const isInput = this.configurationService.getValue('chat.editRequests') === 'input';
1282
1294
  if (!isInput) {
1283
- this.inputPart.setChatMode(this.input.currentModeKind);
1295
+ this.inputPart.setChatMode(this.input.currentModeObs.get().id);
1284
1296
  const currentModel = this.input.selectedLanguageModel;
1285
1297
  if (currentModel) {
1286
1298
  this.inputPart.switchModel(currentModel.metadata);
@@ -1352,9 +1364,9 @@ let ChatWidget = class ChatWidget extends Disposable {
1352
1364
  if (!lastResponseIsRendering || this.scrollLock) {
1353
1365
  const lastElementWasVisible = this.tree.scrollTop + this.tree.renderHeight >= this.previousTreeScrollHeight - 2;
1354
1366
  if (lastElementWasVisible) {
1355
- this._register(scheduleAtNextAnimationFrame(getWindow(this.listContainer), () => {
1367
+ this.scrollAnimationFrameDisposable.value = scheduleAtNextAnimationFrame(getWindow(this.listContainer), () => {
1356
1368
  this.scrollToEnd();
1357
- }, 0));
1369
+ }, 0);
1358
1370
  }
1359
1371
  }
1360
1372
  }
@@ -1493,6 +1505,9 @@ let ChatWidget = class ChatWidget extends Disposable {
1493
1505
  throw ( new Error('Call render() before setModel()'));
1494
1506
  }
1495
1507
  if (!model) {
1508
+ if (this.viewModel?.editing) {
1509
+ this.finishedEditing();
1510
+ }
1496
1511
  this.viewModel = undefined;
1497
1512
  this.onDidChangeItems();
1498
1513
  return;
@@ -1500,6 +1515,9 @@ let ChatWidget = class ChatWidget extends Disposable {
1500
1515
  if (isEqual(model.sessionResource, this.viewModel?.sessionResource)) {
1501
1516
  return;
1502
1517
  }
1518
+ if (this.viewModel?.editing) {
1519
+ this.finishedEditing();
1520
+ }
1503
1521
  this.inputPart.clearTodoListWidget(model.sessionResource, false);
1504
1522
  this.chatSuggestNextWidget.hide();
1505
1523
  this._codeBlockModelCollection.clear();
@@ -1509,7 +1527,7 @@ let ChatWidget = class ChatWidget extends Disposable {
1509
1527
  if (this._lockedAgent) {
1510
1528
  let placeholder = this.chatSessionsService.getInputPlaceholderForSessionType(this._lockedAgent.id);
1511
1529
  if (!placeholder) {
1512
- placeholder = ( localize(5672, "Chat with {0}", this._lockedAgent.id));
1530
+ placeholder = ( localize(5810, "Chat with {0}", this._lockedAgent.id));
1513
1531
  }
1514
1532
  this.viewModel.setInputPlaceholder(placeholder);
1515
1533
  this.inputEditor.updateOptions({ placeholder });
@@ -1710,7 +1728,6 @@ let ChatWidget = class ChatWidget extends Disposable {
1710
1728
  this._onDidAcceptInput.fire();
1711
1729
  this.scrollLock = this.isLockedToCodingAgent || !!checkModeOption(this.input.currentModeKind, this.viewOptions.autoScroll);
1712
1730
  const editorValue = this.getInput();
1713
- const requestId = this.chatAccessibilityService.acceptRequest();
1714
1731
  const requestInputs = {
1715
1732
  input: !query ? editorValue : query.query,
1716
1733
  attachedContext: options?.enableImplicitContext === false ? this.input.getAttachedContext(this.viewModel.sessionResource) : this.input.getAttachedAndImplicitContext(this.viewModel.sessionResource),
@@ -1754,6 +1771,9 @@ let ChatWidget = class ChatWidget extends Disposable {
1754
1771
  }
1755
1772
  }
1756
1773
  }
1774
+ if (this.viewModel.sessionResource) {
1775
+ this.chatAccessibilityService.acceptRequest(this._viewModel.sessionResource);
1776
+ }
1757
1777
  const result = await this.chatService.sendRequest(this.viewModel.sessionResource, requestInputs.input, {
1758
1778
  userSelectedModelId: this.input.currentLanguageModel,
1759
1779
  location: this.location,
@@ -1766,17 +1786,17 @@ let ChatWidget = class ChatWidget extends Disposable {
1766
1786
  agentIdSilent: this._lockedAgent?.id,
1767
1787
  });
1768
1788
  if (!result) {
1769
- this.chatAccessibilityService.disposeRequest(requestId);
1789
+ this.chatAccessibilityService.disposeRequest(this.viewModel.sessionResource);
1770
1790
  return;
1771
1791
  }
1772
1792
  this.updateChatViewVisibility();
1773
- this.input.acceptInput(isUserQuery);
1793
+ this.input.acceptInput(options?.storeToHistory ?? isUserQuery);
1774
1794
  this._onDidSubmitAgent.fire({ agent: result.agent, slashCommand: result.slashCommand });
1775
1795
  this.handleDelegationExitIfNeeded(this._lockedAgent, result.agent);
1776
1796
  this.currentRequest = result.responseCompletePromise.then(() => {
1777
1797
  const responses = this.viewModel?.getItems().filter(isResponseVM);
1778
1798
  const lastResponse = responses?.[responses.length - 1];
1779
- this.chatAccessibilityService.acceptResponse(this, this.container, lastResponse, requestId, options?.isVoiceInput);
1799
+ this.chatAccessibilityService.acceptResponse(this, this.container, lastResponse, this.viewModel?.sessionResource, options?.isVoiceInput);
1780
1800
  if (lastResponse?.result?.nextQuestion) {
1781
1801
  const { prompt, participant, command } = lastResponse.result.nextQuestion;
1782
1802
  const question = formatChatQuestion(this.chatAgentService, this.location, prompt, participant, command);
@@ -1,7 +1,7 @@
1
1
  import { IButtonStyles } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button";
2
2
  import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
3
- import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service";
4
- import { IChatFollowup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
3
+ import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service";
4
+ import { IChatFollowup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
5
5
  import { ChatAgentLocation } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants";
6
6
  export declare class ChatFollowups<T extends IChatFollowup> extends Disposable {
7
7
  private readonly location;
@@ -5,8 +5,8 @@ import { Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/b
5
5
  import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
6
6
  import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
7
7
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
8
- import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
9
- import { formatChatQuestion } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
8
+ import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service';
9
+ import { formatChatQuestion } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/requestParser/chatParserTypes';
10
10
 
11
11
  const $ = $$1;
12
12
  let ChatFollowups = class ChatFollowups extends Disposable {
@@ -40,7 +40,7 @@ let ChatFollowups = class ChatFollowups extends Disposable {
40
40
  else if (followup.kind === 'command') {
41
41
  button.element.classList.add('interactive-followup-command');
42
42
  }
43
- button.element.ariaLabel = ( localize(5293, "Follow up question: {0}", baseTitle));
43
+ button.element.ariaLabel = ( localize(5811, "Follow up question: {0}", baseTitle));
44
44
  button.label = ( new MarkdownString(baseTitle));
45
45
  this._register(button.onDidClick(() => this.clickHandler(followup)));
46
46
  }
@@ -21,28 +21,28 @@ import { ISharedWebContentExtractorService } from "@codingame/monaco-vscode-api/
21
21
  import { IWorkbenchAssignmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/assignment/common/assignmentService.service";
22
22
  import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
23
23
  import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
24
- import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service";
25
- import { IChatEditingSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService";
26
- import { IChatModelInputState, IChatRequestModeInfo, IInputModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModel";
24
+ import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service";
25
+ import { IChatEditingSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService";
26
+ import { IChatModelInputState, IChatRequestModeInfo, IInputModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
27
27
  import { IChatMode } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModes";
28
28
  import { IChatModeService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModes.service";
29
- import { IChatFollowup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
30
- import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
29
+ import { IChatFollowup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
30
+ import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
31
31
  import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
32
- import { ChatRequestVariableSet, IChatRequestVariableEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatVariableEntries";
33
- import { IChatResponseViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
32
+ import { ChatRequestVariableSet, IChatRequestVariableEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries";
33
+ import { IChatResponseViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
34
34
  import { ChatAgentLocation, ChatModeKind } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants";
35
35
  import { ILanguageModelChatMetadata, ILanguageModelChatMetadataAndIdentifier } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels";
36
36
  import { ILanguageModelsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels.service";
37
- import { ILanguageModelToolsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService.service";
37
+ import { ILanguageModelToolsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService.service";
38
38
  import { IAgentSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service";
39
39
  import { IChatWidget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
40
- import { ChatAttachmentModel } from "./chatAttachmentModel.js";
41
- import { IChatContextService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContextService.service";
42
- import { ChatDragAndDrop } from "./chatDragAndDrop.js";
40
+ import { ChatAttachmentModel } from "../../attachments/chatAttachmentModel.js";
41
+ import { IChatContextService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.service";
42
+ import { ChatDragAndDrop } from "../chatDragAndDrop.js";
43
43
  import { ChatSelectedTools } from "./chatSelectedTools.js";
44
- import { ChatImplicitContext } from "./contrib/chatImplicitContext.js";
45
- import { ChatRelatedFiles } from "./contrib/chatInputRelatedFilesContrib.js";
44
+ import { ChatImplicitContext } from "../../attachments/chatImplicitContext.js";
45
+ import { ChatRelatedFiles } from "../../attachments/chatInputRelatedFilesContrib.js";
46
46
  export interface IChatInputStyles {
47
47
  overlayBackground: string;
48
48
  listForeground: string;
@@ -317,6 +317,7 @@ export declare class ChatInputPart extends Disposable implements IHistoryNavigat
317
317
  toggleChatInputOverlay(editing: boolean): void;
318
318
  renderAttachedContext(): void;
319
319
  private hasImplicitContextBlock;
320
+ private isAttachmentAlreadyAttached;
320
321
  private handleAttachmentDeletion;
321
322
  private handleAttachmentOpen;
322
323
  private handleAttachmentNavigation;