@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,66 @@
1
+
2
+ import { EditOperation } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/editOperation';
3
+ import { TrackedRangeStickiness } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/model';
4
+ import { AsyncIterableSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
5
+ import { getNWords } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatWordCounter';
6
+
7
+ async function performAsyncTextEdit(model, edit, progress, obs, editSource) {
8
+ const [id] = model.deltaDecorations([], [{
9
+ range: edit.range,
10
+ options: {
11
+ description: 'asyncTextEdit',
12
+ stickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges
13
+ }
14
+ }]);
15
+ let first = true;
16
+ for await (const part of edit.newText) {
17
+ if (model.isDisposed()) {
18
+ break;
19
+ }
20
+ const range = model.getDecorationRange(id);
21
+ if (!range) {
22
+ throw ( new Error(
23
+ 'FAILED to perform async replace edit because the anchor decoration was removed'
24
+ ));
25
+ }
26
+ const edit = first
27
+ ? EditOperation.replace(range, part)
28
+ : EditOperation.insert(range.getEndPosition(), part);
29
+ obs?.start();
30
+ model.pushEditOperations(null, [edit], (undoEdits) => {
31
+ progress?.report(undoEdits);
32
+ return null;
33
+ }, undefined, editSource);
34
+ obs?.stop();
35
+ first = false;
36
+ }
37
+ }
38
+ function asProgressiveEdit(interval, edit, wordsPerSec, token) {
39
+ wordsPerSec = Math.max(30, wordsPerSec);
40
+ const stream = ( new AsyncIterableSource());
41
+ let newText = edit.text ?? '';
42
+ interval.cancelAndSet(() => {
43
+ if (token.isCancellationRequested) {
44
+ return;
45
+ }
46
+ const r = getNWords(newText, 1);
47
+ stream.emitOne(r.value);
48
+ newText = newText.substring(r.value.length);
49
+ if (r.isFullString) {
50
+ interval.cancel();
51
+ stream.resolve();
52
+ d.dispose();
53
+ }
54
+ }, 1000 / wordsPerSec);
55
+ const d = token.onCancellationRequested(() => {
56
+ interval.cancel();
57
+ stream.resolve();
58
+ d.dispose();
59
+ });
60
+ return {
61
+ range: edit.range,
62
+ newText: stream.asyncIterable
63
+ };
64
+ }
65
+
66
+ export { asProgressiveEdit, performAsyncTextEdit };
@@ -0,0 +1,61 @@
1
+ import { MenuId } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
2
+ import { RawContextKey } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey";
3
+ export declare enum InlineChatConfigKeys {
4
+ FinishOnType = "inlineChat.finishOnType",
5
+ StartWithOverlayWidget = "inlineChat.startWithOverlayWidget",
6
+ HoldToSpeech = "inlineChat.holdToSpeech",
7
+ AccessibleDiffView = "inlineChat.accessibleDiffView",
8
+ /** @deprecated do not read on client */
9
+ EnableV2 = "inlineChat.enableV2",
10
+ notebookAgent = "inlineChat.notebookAgent"
11
+ }
12
+ export declare const INLINE_CHAT_ID = "interactiveEditor";
13
+ export declare const INTERACTIVE_EDITOR_ACCESSIBILITY_HELP_ID = "interactiveEditorAccessiblityHelp";
14
+ export declare enum InlineChatResponseType {
15
+ None = "none",
16
+ Messages = "messages",
17
+ MessagesAndEdits = "messagesAndEdits"
18
+ }
19
+ export declare const CTX_INLINE_CHAT_POSSIBLE: RawContextKey<boolean>;
20
+ export declare const CTX_INLINE_CHAT_HAS_AGENT2: RawContextKey<boolean>;
21
+ export declare const CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE: RawContextKey<boolean>;
22
+ export declare const CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT: RawContextKey<boolean>;
23
+ export declare const CTX_INLINE_CHAT_VISIBLE: RawContextKey<boolean>;
24
+ export declare const CTX_INLINE_CHAT_FOCUSED: RawContextKey<boolean>;
25
+ export declare const CTX_INLINE_CHAT_EDITING: RawContextKey<boolean>;
26
+ export declare const CTX_INLINE_CHAT_RESPONSE_FOCUSED: RawContextKey<boolean>;
27
+ export declare const CTX_INLINE_CHAT_EMPTY: RawContextKey<boolean>;
28
+ export declare const CTX_INLINE_CHAT_INNER_CURSOR_FIRST: RawContextKey<boolean>;
29
+ export declare const CTX_INLINE_CHAT_INNER_CURSOR_LAST: RawContextKey<boolean>;
30
+ export declare const CTX_INLINE_CHAT_OUTER_CURSOR_POSITION: RawContextKey<"" | "above" | "below">;
31
+ export declare const CTX_INLINE_CHAT_HAS_STASHED_SESSION: RawContextKey<boolean>;
32
+ export declare const CTX_INLINE_CHAT_CHANGE_HAS_DIFF: RawContextKey<boolean>;
33
+ export declare const CTX_INLINE_CHAT_CHANGE_SHOWS_DIFF: RawContextKey<boolean>;
34
+ export declare const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS: RawContextKey<boolean>;
35
+ export declare const CTX_INLINE_CHAT_RESPONSE_TYPE: RawContextKey<InlineChatResponseType>;
36
+ export declare const CTX_INLINE_CHAT_V1_ENABLED: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
37
+ export declare const CTX_INLINE_CHAT_V2_ENABLED: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
38
+ export declare const ACTION_START = "inlineChat.start";
39
+ export declare const ACTION_ACCEPT_CHANGES = "inlineChat.acceptChanges";
40
+ export declare const ACTION_DISCARD_CHANGES = "inlineChat.discardHunkChange";
41
+ export declare const ACTION_REGENERATE_RESPONSE = "inlineChat.regenerate";
42
+ export declare const ACTION_VIEW_IN_CHAT = "inlineChat.viewInChat";
43
+ export declare const ACTION_TOGGLE_DIFF = "inlineChat.toggleDiff";
44
+ export declare const ACTION_REPORT_ISSUE = "inlineChat.reportIssue";
45
+ export declare const MENU_INLINE_CHAT_WIDGET_STATUS: MenuId;
46
+ export declare const MENU_INLINE_CHAT_WIDGET_SECONDARY: MenuId;
47
+ export declare const MENU_INLINE_CHAT_ZONE: MenuId;
48
+ export declare const MENU_INLINE_CHAT_SIDE: MenuId;
49
+ export declare const inlineChatForeground: string;
50
+ export declare const inlineChatBackground: string;
51
+ export declare const inlineChatBorder: string;
52
+ export declare const inlineChatShadow: string;
53
+ export declare const inlineChatInputBorder: string;
54
+ export declare const inlineChatInputFocusBorder: string;
55
+ export declare const inlineChatInputPlaceholderForeground: string;
56
+ export declare const inlineChatInputBackground: string;
57
+ export declare const inlineChatDiffInserted: string;
58
+ export declare const overviewRulerInlineChatDiffInserted: string;
59
+ export declare const minimapInlineChatDiffInserted: string;
60
+ export declare const inlineChatDiffRemoved: string;
61
+ export declare const overviewRulerInlineChatDiffRemoved: string;
@@ -0,0 +1,154 @@
1
+
2
+ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
3
+ import { MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
4
+ import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
5
+ import { RawContextKey, ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
6
+ import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
7
+ import { registerColor, transparent } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
8
+ import { focusBorder } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/baseColors';
9
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/chartsColors';
10
+ import { editorWidgetForeground, editorWidgetBackground, editorWidgetBorder, widgetShadow, diffInserted, diffRemoved } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/editorColors';
11
+ import { inputPlaceholderForeground, inputBackground } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/inputColors';
12
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/listColors';
13
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/menuColors';
14
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/minimapColors';
15
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/miscColors';
16
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
17
+ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
18
+ import { NOTEBOOK_IS_ACTIVE_EDITOR } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
19
+
20
+ var InlineChatConfigKeys;
21
+ (function (InlineChatConfigKeys) {
22
+ InlineChatConfigKeys["FinishOnType"] = "inlineChat.finishOnType";
23
+ InlineChatConfigKeys["StartWithOverlayWidget"] = "inlineChat.startWithOverlayWidget";
24
+ InlineChatConfigKeys["HoldToSpeech"] = "inlineChat.holdToSpeech";
25
+ InlineChatConfigKeys["AccessibleDiffView"] = "inlineChat.accessibleDiffView";
26
+ InlineChatConfigKeys["EnableV2"] = "inlineChat.enableV2";
27
+ InlineChatConfigKeys["notebookAgent"] = "inlineChat.notebookAgent";
28
+ })(InlineChatConfigKeys || (InlineChatConfigKeys = {}));
29
+ ( Registry.as(Extensions.Configuration)).registerConfiguration({
30
+ id: 'editor',
31
+ properties: {
32
+ [InlineChatConfigKeys.FinishOnType]: {
33
+ description: ( localize(
34
+ 8326,
35
+ "Whether to finish an inline chat session when typing outside of changed regions."
36
+ )),
37
+ default: false,
38
+ type: 'boolean'
39
+ },
40
+ [InlineChatConfigKeys.HoldToSpeech]: {
41
+ description: ( localize(
42
+ 8327,
43
+ "Whether holding the inline chat keybinding will automatically enable speech recognition."
44
+ )),
45
+ default: true,
46
+ type: 'boolean'
47
+ },
48
+ [InlineChatConfigKeys.AccessibleDiffView]: {
49
+ description: ( localize(
50
+ 8328,
51
+ "Whether the inline chat also renders an accessible diff viewer for its changes."
52
+ )),
53
+ default: 'auto',
54
+ type: 'string',
55
+ enum: ['auto', 'on', 'off'],
56
+ markdownEnumDescriptions: [
57
+ ( localize(
58
+ 8329,
59
+ "The accessible diff viewer is based on screen reader mode being enabled."
60
+ )),
61
+ ( localize(8330, "The accessible diff viewer is always enabled.")),
62
+ ( localize(8331, "The accessible diff viewer is never enabled.")),
63
+ ],
64
+ },
65
+ [InlineChatConfigKeys.EnableV2]: {
66
+ description: ( localize(8332, "Whether to use the next version of inline chat.")),
67
+ default: false,
68
+ type: 'boolean',
69
+ tags: ['preview'],
70
+ experiment: {
71
+ mode: 'auto'
72
+ }
73
+ },
74
+ [InlineChatConfigKeys.notebookAgent]: {
75
+ markdownDescription: ( localize(8333, "Enable agent-like behavior for inline chat widget in notebooks.")),
76
+ default: false,
77
+ type: 'boolean',
78
+ tags: ['experimental'],
79
+ experiment: {
80
+ mode: 'startup'
81
+ }
82
+ }
83
+ }
84
+ });
85
+ const INLINE_CHAT_ID = 'interactiveEditor';
86
+ var InlineChatResponseType;
87
+ (function (InlineChatResponseType) {
88
+ InlineChatResponseType["None"] = "none";
89
+ InlineChatResponseType["Messages"] = "messages";
90
+ InlineChatResponseType["MessagesAndEdits"] = "messagesAndEdits";
91
+ })(InlineChatResponseType || (InlineChatResponseType = {}));
92
+ const CTX_INLINE_CHAT_POSSIBLE = ( new RawContextKey('inlineChatPossible', false, ( localize(
93
+ 8334,
94
+ "Whether a provider for inline chat exists and whether an editor for inline chat is open"
95
+ ))));
96
+ const CTX_INLINE_CHAT_HAS_AGENT = ( new RawContextKey('inlineChatHasProvider', false, ( localize(8335, "Whether a provider for interactive editors exists"))));
97
+ const CTX_INLINE_CHAT_HAS_AGENT2 = ( new RawContextKey('inlineChatHasEditsAgent', false, ( localize(8336, "Whether an agent for inline for interactive editors exists"))));
98
+ const CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE = ( new RawContextKey('inlineChatHasNotebookInline', false, ( localize(8337, "Whether an agent for notebook cells exists"))));
99
+ const CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT = ( new RawContextKey('inlineChatHasNotebookAgent', false, ( localize(8338, "Whether an agent for notebook cells exists"))));
100
+ const CTX_INLINE_CHAT_VISIBLE = ( new RawContextKey('inlineChatVisible', false, ( localize(8339, "Whether the interactive editor input is visible"))));
101
+ const CTX_INLINE_CHAT_FOCUSED = ( new RawContextKey('inlineChatFocused', false, ( localize(8340, "Whether the interactive editor input is focused"))));
102
+ const CTX_INLINE_CHAT_EDITING = ( new RawContextKey('inlineChatEditing', true, ( localize(
103
+ 8341,
104
+ "Whether the user is currently editing or generating code in the inline chat"
105
+ ))));
106
+ const CTX_INLINE_CHAT_RESPONSE_FOCUSED = ( new RawContextKey('inlineChatResponseFocused', false, ( localize(8342, "Whether the interactive widget's response is focused"))));
107
+ const CTX_INLINE_CHAT_INNER_CURSOR_FIRST = ( new RawContextKey('inlineChatInnerCursorFirst', false, ( localize(
108
+ 8343,
109
+ "Whether the cursor of the iteractive editor input is on the first line"
110
+ ))));
111
+ const CTX_INLINE_CHAT_INNER_CURSOR_LAST = ( new RawContextKey('inlineChatInnerCursorLast', false, ( localize(
112
+ 8344,
113
+ "Whether the cursor of the iteractive editor input is on the last line"
114
+ ))));
115
+ const CTX_INLINE_CHAT_OUTER_CURSOR_POSITION = ( new RawContextKey('inlineChatOuterCursorPosition', '', ( localize(
116
+ 8345,
117
+ "Whether the cursor of the outer editor is above or below the interactive editor input"
118
+ ))));
119
+ const CTX_INLINE_CHAT_HAS_STASHED_SESSION = ( new RawContextKey('inlineChatHasStashedSession', false, ( localize(8346, "Whether interactive editor has kept a session for quick restore"))));
120
+ const CTX_INLINE_CHAT_CHANGE_HAS_DIFF = ( new RawContextKey('inlineChatChangeHasDiff', false, ( localize(8347, "Whether the current change supports showing a diff"))));
121
+ const CTX_INLINE_CHAT_CHANGE_SHOWS_DIFF = ( new RawContextKey('inlineChatChangeShowsDiff', false, ( localize(8348, "Whether the current change showing a diff"))));
122
+ const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS = ( new RawContextKey('inlineChatRequestInProgress', false, ( localize(8349, "Whether an inline chat request is currently in progress"))));
123
+ const CTX_INLINE_CHAT_RESPONSE_TYPE = ( new RawContextKey('inlineChatResponseType', InlineChatResponseType.None, ( localize(
124
+ 8350,
125
+ "What type was the responses have been receieved, nothing yet, just messages, or messaged and local edits"
126
+ ))));
127
+ const CTX_INLINE_CHAT_V1_ENABLED = ( ContextKeyExpr.or(( ContextKeyExpr.and(( NOTEBOOK_IS_ACTIVE_EDITOR.negate()), CTX_INLINE_CHAT_HAS_AGENT)), ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE))));
128
+ const CTX_INLINE_CHAT_V2_ENABLED = ( ContextKeyExpr.or(( ContextKeyExpr.and(( NOTEBOOK_IS_ACTIVE_EDITOR.negate()), CTX_INLINE_CHAT_HAS_AGENT2)), ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT))));
129
+ const ACTION_START = 'inlineChat.start';
130
+ const ACTION_ACCEPT_CHANGES = 'inlineChat.acceptChanges';
131
+ const ACTION_DISCARD_CHANGES = 'inlineChat.discardHunkChange';
132
+ const ACTION_REGENERATE_RESPONSE = 'inlineChat.regenerate';
133
+ const ACTION_VIEW_IN_CHAT = 'inlineChat.viewInChat';
134
+ const ACTION_TOGGLE_DIFF = 'inlineChat.toggleDiff';
135
+ const ACTION_REPORT_ISSUE = 'inlineChat.reportIssue';
136
+ const MENU_INLINE_CHAT_WIDGET_STATUS = MenuId.for('inlineChatWidget.status');
137
+ const MENU_INLINE_CHAT_WIDGET_SECONDARY = MenuId.for('inlineChatWidget.secondary');
138
+ const MENU_INLINE_CHAT_ZONE = MenuId.for('inlineChatWidget.changesZone');
139
+ const MENU_INLINE_CHAT_SIDE = MenuId.for('inlineChatWidget.side');
140
+ const inlineChatForeground = registerColor('inlineChat.foreground', editorWidgetForeground, ( localize(8351, "Foreground color of the interactive editor widget")));
141
+ const inlineChatBackground = registerColor('inlineChat.background', editorWidgetBackground, ( localize(8352, "Background color of the interactive editor widget")));
142
+ registerColor('inlineChat.border', editorWidgetBorder, ( localize(8353, "Border color of the interactive editor widget")));
143
+ registerColor('inlineChat.shadow', widgetShadow, ( localize(8354, "Shadow color of the interactive editor widget")));
144
+ registerColor('inlineChatInput.border', editorWidgetBorder, ( localize(8355, "Border color of the interactive editor input")));
145
+ registerColor('inlineChatInput.focusBorder', focusBorder, ( localize(8356, "Border color of the interactive editor input when focused")));
146
+ registerColor('inlineChatInput.placeholderForeground', inputPlaceholderForeground, ( localize(8357, "Foreground color of the interactive editor input placeholder")));
147
+ registerColor('inlineChatInput.background', inputBackground, ( localize(8358, "Background color of the interactive editor input")));
148
+ registerColor('inlineChatDiff.inserted', ( transparent(diffInserted, .5)), ( localize(8359, "Background color of inserted text in the interactive editor input")));
149
+ const overviewRulerInlineChatDiffInserted = registerColor('editorOverviewRuler.inlineChatInserted', { dark: ( transparent(diffInserted, 0.6)), light: ( transparent(diffInserted, 0.8)), hcDark: ( transparent(diffInserted, 0.6)), hcLight: ( transparent(diffInserted, 0.8)) }, ( localize(8360, 'Overview ruler marker color for inline chat inserted content.')));
150
+ const minimapInlineChatDiffInserted = registerColor('editorMinimap.inlineChatInserted', { dark: ( transparent(diffInserted, 0.6)), light: ( transparent(diffInserted, 0.8)), hcDark: ( transparent(diffInserted, 0.6)), hcLight: ( transparent(diffInserted, 0.8)) }, ( localize(8361, 'Minimap marker color for inline chat inserted content.')));
151
+ registerColor('inlineChatDiff.removed', ( transparent(diffRemoved, .5)), ( localize(8362, "Background color of removed text in the interactive editor input")));
152
+ registerColor('editorOverviewRuler.inlineChatRemoved', { dark: ( transparent(diffRemoved, 0.6)), light: ( transparent(diffRemoved, 0.8)), hcDark: ( transparent(diffRemoved, 0.6)), hcLight: ( transparent(diffRemoved, 0.8)) }, ( localize(8363, 'Overview ruler marker color for inline chat removed content.')));
153
+
154
+ export { ACTION_ACCEPT_CHANGES, ACTION_DISCARD_CHANGES, ACTION_REGENERATE_RESPONSE, ACTION_REPORT_ISSUE, ACTION_START, ACTION_TOGGLE_DIFF, ACTION_VIEW_IN_CHAT, CTX_INLINE_CHAT_CHANGE_HAS_DIFF, CTX_INLINE_CHAT_CHANGE_SHOWS_DIFF, CTX_INLINE_CHAT_EDITING, CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_HAS_AGENT2, CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT, CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE, CTX_INLINE_CHAT_HAS_STASHED_SESSION, CTX_INLINE_CHAT_INNER_CURSOR_FIRST, CTX_INLINE_CHAT_INNER_CURSOR_LAST, CTX_INLINE_CHAT_OUTER_CURSOR_POSITION, CTX_INLINE_CHAT_POSSIBLE, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS, CTX_INLINE_CHAT_RESPONSE_FOCUSED, CTX_INLINE_CHAT_RESPONSE_TYPE, CTX_INLINE_CHAT_V1_ENABLED, CTX_INLINE_CHAT_V2_ENABLED, CTX_INLINE_CHAT_VISIBLE, INLINE_CHAT_ID, InlineChatConfigKeys, InlineChatResponseType, MENU_INLINE_CHAT_SIDE, MENU_INLINE_CHAT_WIDGET_SECONDARY, MENU_INLINE_CHAT_WIDGET_STATUS, MENU_INLINE_CHAT_ZONE, inlineChatBackground, inlineChatForeground, minimapInlineChatDiffInserted, overviewRulerInlineChatDiffInserted };
@@ -0,0 +1,19 @@
1
+ import * as domSanitize from "@codingame/monaco-vscode-api/vscode/vs/base/browser/domSanitize";
2
+ import { MarkdownSanitizerConfig } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer";
3
+ import { CodeWindow } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/window";
4
+ import type * as marked from "@codingame/monaco-vscode-api/vscode/vs/base/common/marked/marked";
5
+ import { MarkedKatexExtension } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/markdown/common/markedKatexExtension";
6
+ export declare class MarkedKatexSupport {
7
+ static getSanitizerOptions(baseConfig: {
8
+ readonly allowedTags: readonly string[];
9
+ readonly allowedAttributes: ReadonlyArray<string | domSanitize.SanitizeAttributeRule>;
10
+ }): MarkdownSanitizerConfig;
11
+ private static tempSanitizerRule;
12
+ private static sanitizeStyles;
13
+ private static sanitizeKatexStyles;
14
+ private static _katex?;
15
+ private static _katexPromise;
16
+ static getExtension(window: CodeWindow, options?: MarkedKatexExtension.MarkedKatexOptions): marked.MarkedExtension | undefined;
17
+ static loadExtension(window: CodeWindow, options?: MarkedKatexExtension.MarkedKatexOptions): Promise<marked.MarkedExtension>;
18
+ static ensureKatexStyles(window: CodeWindow): void;
19
+ }
@@ -0,0 +1,201 @@
1
+
2
+ import { createLinkElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
3
+ import { Lazy } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lazy';
4
+ import { katexContainerLatexAttributeName, MarkedKatexExtension } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/markdown/common/markedKatexExtension';
5
+
6
+ class MarkedKatexSupport {
7
+ static getSanitizerOptions(baseConfig) {
8
+ return {
9
+ allowedTags: {
10
+ override: [
11
+ ...baseConfig.allowedTags,
12
+ ...trustedMathMlTags,
13
+ ]
14
+ },
15
+ allowedAttributes: {
16
+ override: [
17
+ ...baseConfig.allowedAttributes,
18
+ 'stretchy',
19
+ 'encoding',
20
+ 'accent',
21
+ katexContainerLatexAttributeName,
22
+ 'd',
23
+ 'viewBox',
24
+ 'preserveAspectRatio',
25
+ 'class',
26
+ {
27
+ attributeName: 'style',
28
+ shouldKeep: (_el, data) => this.sanitizeKatexStyles(data.attrValue),
29
+ },
30
+ ]
31
+ },
32
+ };
33
+ }
34
+ static { this.tempSanitizerRule = ( new Lazy(() => {
35
+ const styleSheet = ( new CSSStyleSheet());
36
+ styleSheet.insertRule(`.temp{}`);
37
+ const rule = styleSheet.cssRules[0];
38
+ if (!(rule instanceof CSSStyleRule)) {
39
+ throw ( new Error('Invalid CSS rule'));
40
+ }
41
+ return rule.style;
42
+ })); }
43
+ static sanitizeStyles(styleString, allowedProperties) {
44
+ const style = this.tempSanitizerRule.value;
45
+ style.cssText = styleString;
46
+ const sanitizedProps = [];
47
+ for (let i = 0; i < style.length; i++) {
48
+ const prop = style[i];
49
+ if (allowedProperties.includes(prop)) {
50
+ const value = style.getPropertyValue(prop);
51
+ if (/^(([\d\.\-]+\w*\s?)+|\w+)$/.test(value)) {
52
+ sanitizedProps.push(`${prop}: ${value}`);
53
+ }
54
+ }
55
+ }
56
+ return sanitizedProps.join('; ');
57
+ }
58
+ static sanitizeKatexStyles(styleString) {
59
+ const allowedProperties = [
60
+ 'display',
61
+ 'position',
62
+ 'font-family',
63
+ 'font-style',
64
+ 'font-weight',
65
+ 'font-size',
66
+ 'height',
67
+ 'min-height',
68
+ 'max-height',
69
+ 'width',
70
+ 'min-width',
71
+ 'max-width',
72
+ 'margin',
73
+ 'margin-top',
74
+ 'margin-right',
75
+ 'margin-bottom',
76
+ 'margin-left',
77
+ 'padding',
78
+ 'padding-top',
79
+ 'padding-right',
80
+ 'padding-bottom',
81
+ 'padding-left',
82
+ 'top',
83
+ 'left',
84
+ 'right',
85
+ 'bottom',
86
+ 'vertical-align',
87
+ 'transform',
88
+ 'border',
89
+ 'border-top-width',
90
+ 'border-right-width',
91
+ 'border-bottom-width',
92
+ 'border-left-width',
93
+ 'color',
94
+ 'white-space',
95
+ 'text-align',
96
+ 'line-height',
97
+ 'float',
98
+ 'clear',
99
+ ];
100
+ return this.sanitizeStyles(styleString, allowedProperties);
101
+ }
102
+ static { this._katexPromise = ( new Lazy(async () => {
103
+ this._katex = (await import('katex').then(module => module.default ?? module)).default;
104
+ return this._katex;
105
+ })); }
106
+ static getExtension(window, options = {}) {
107
+ if (!this._katex) {
108
+ return undefined;
109
+ }
110
+ this.ensureKatexStyles(window);
111
+ return MarkedKatexExtension.extension(this._katex, options);
112
+ }
113
+ static async loadExtension(window, options = {}) {
114
+ const katex = await this._katexPromise.value;
115
+ this.ensureKatexStyles(window);
116
+ return MarkedKatexExtension.extension(katex, options);
117
+ }
118
+ static ensureKatexStyles(window) {
119
+ const doc = window.document;
120
+ if (!doc.querySelector('link.katex')) {
121
+ const katexStyle = createLinkElement();
122
+ katexStyle.classList.add('katex');
123
+ katexStyle.rel = 'stylesheet';
124
+ katexStyle.href = ( new URL('katex/dist/katex.min.css', import.meta.url)).href;
125
+ }
126
+ }
127
+ }
128
+ const trustedMathMlTags = ( Object.freeze([
129
+ 'semantics',
130
+ 'annotation',
131
+ 'math',
132
+ 'menclose',
133
+ 'merror',
134
+ 'mfenced',
135
+ 'mfrac',
136
+ 'mglyph',
137
+ 'mi',
138
+ 'mlabeledtr',
139
+ 'mmultiscripts',
140
+ 'mn',
141
+ 'mo',
142
+ 'mover',
143
+ 'mpadded',
144
+ 'mphantom',
145
+ 'mroot',
146
+ 'mrow',
147
+ 'ms',
148
+ 'mspace',
149
+ 'msqrt',
150
+ 'mstyle',
151
+ 'msub',
152
+ 'msup',
153
+ 'msubsup',
154
+ 'mtable',
155
+ 'mtd',
156
+ 'mtext',
157
+ 'mtr',
158
+ 'munder',
159
+ 'munderover',
160
+ 'mprescripts',
161
+ 'svg',
162
+ 'altglyph',
163
+ 'altglyphdef',
164
+ 'altglyphitem',
165
+ 'circle',
166
+ 'clippath',
167
+ 'defs',
168
+ 'desc',
169
+ 'ellipse',
170
+ 'filter',
171
+ 'font',
172
+ 'g',
173
+ 'glyph',
174
+ 'glyphref',
175
+ 'hkern',
176
+ 'line',
177
+ 'lineargradient',
178
+ 'marker',
179
+ 'mask',
180
+ 'metadata',
181
+ 'mpath',
182
+ 'path',
183
+ 'pattern',
184
+ 'polygon',
185
+ 'polyline',
186
+ 'radialgradient',
187
+ 'rect',
188
+ 'stop',
189
+ 'style',
190
+ 'switch',
191
+ 'symbol',
192
+ 'text',
193
+ 'textpath',
194
+ 'title',
195
+ 'tref',
196
+ 'tspan',
197
+ 'view',
198
+ 'vkern',
199
+ ]));
200
+
201
+ export { MarkedKatexSupport };
@@ -0,0 +1,41 @@
1
+ import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
2
+ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
3
+ import { ICodeEditorService } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService.service";
4
+ import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service";
5
+ import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service";
6
+ import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
7
+ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
8
+ import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
9
+ import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service";
10
+ import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
11
+ import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
12
+ import { ISearchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/search/common/search.service";
13
+ import { ITerminalGroupService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
14
+ import { ITerminalService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
15
+ import { IMcpPrompt } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpTypes";
16
+ export declare class McpPromptArgumentPick extends Disposable {
17
+ private readonly prompt;
18
+ private readonly _quickInputService;
19
+ private readonly _terminalService;
20
+ private readonly _searchService;
21
+ private readonly _workspaceContextService;
22
+ private readonly _labelService;
23
+ private readonly _fileService;
24
+ private readonly _modelService;
25
+ private readonly _languageService;
26
+ private readonly _terminalGroupService;
27
+ private readonly _instantiationService;
28
+ private readonly _codeEditorService;
29
+ private readonly _editorService;
30
+ private readonly quickPick;
31
+ private _terminal?;
32
+ constructor(prompt: IMcpPrompt, _quickInputService: IQuickInputService, _terminalService: ITerminalService, _searchService: ISearchService, _workspaceContextService: IWorkspaceContextService, _labelService: ILabelService, _fileService: IFileService, _modelService: IModelService, _languageService: ILanguageService, _terminalGroupService: ITerminalGroupService, _instantiationService: IInstantiationService, _codeEditorService: ICodeEditorService, _editorService: IEditorService);
33
+ createArgs(token?: CancellationToken): Promise<Record<string, string | undefined> | undefined>;
34
+ private _getArg;
35
+ private _promptCompletions;
36
+ private _fileCompletions;
37
+ private _activeFileCompletions;
38
+ private _asyncCompletions;
39
+ private _getTerminalOutput;
40
+ private _getTerminalOutputInner;
41
+ }