@codingame/monaco-vscode-katex-common 26.2.2 → 28.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +10 -4
  3. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +37 -11
  4. package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +3 -0
  5. package/vscode/src/vs/platform/actions/browser/buttonbar.js +15 -4
  6. package/vscode/src/vs/platform/mcp/common/modelContextProtocolApps.d.ts +576 -0
  7. package/vscode/src/vs/{workbench/contrib → platform}/mcp/common/modelContextProtocolApps.js +1 -0
  8. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +15 -15
  9. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +5 -0
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +176 -17
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +5 -0
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +127 -64
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.d.ts +1 -0
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +12 -11
  16. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.d.ts +26 -0
  17. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.js +106 -0
  18. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +9 -9
  19. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +14 -0
  20. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +105 -29
  21. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +13 -1
  22. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +69 -43
  23. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +2 -2
  24. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +35 -7
  25. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +187 -78
  26. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +138 -32
  27. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +23 -6
  28. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +394 -87
  29. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.d.ts +1 -0
  30. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.js +28 -13
  31. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +38 -19
  32. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +113 -116
  33. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +16 -15
  34. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +2 -2
  35. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +8 -8
  36. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +14 -14
  37. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +5 -5
  38. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +1 -1
  39. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +2 -1
  40. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +30 -11
  41. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +250 -132
  42. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +4 -4
  43. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts +1 -16
  44. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +4 -110
  45. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
  46. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.d.ts +1 -1
  47. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +1 -1
  48. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.d.ts +1 -1
  49. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +2 -2
  50. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +3 -1
  51. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +9 -4
  52. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.d.ts +2 -4
  53. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +7 -10
  54. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.d.ts +1 -1
  55. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +1 -1
  56. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.d.ts +4 -2
  57. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.js +22 -4
  58. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.d.ts +3 -2
  59. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.js +11 -3
  60. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.d.ts +1 -1
  61. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +1 -1
  62. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.d.ts +1 -1
  63. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +2 -2
  64. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +1 -1
  65. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +1 -1
  66. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.d.ts +59 -0
  67. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.js +29 -0
  68. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.d.ts +0 -2
  69. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.js +0 -6
  70. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.d.ts +1 -1
  71. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +2 -2
  72. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.d.ts +1 -1
  73. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.d.ts +4 -2
  74. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.js +6 -3
  75. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorContentPart.d.ts +1 -1
  76. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.d.ts +1 -1
  77. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
  78. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.d.ts +3 -2
  79. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +7 -6
  80. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +0 -1
  81. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +26 -27
  82. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +4 -1
  83. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +53 -20
  84. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownTableScrolling.d.ts +15 -0
  85. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownTableScrolling.js +55 -0
  86. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.d.ts +1 -1
  87. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +8 -7
  88. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.d.ts +1 -1
  89. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +4 -4
  90. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +3 -2
  91. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +24 -10
  92. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.d.ts +4 -4
  93. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.js +11 -6
  94. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +62 -7
  95. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +414 -129
  96. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.d.ts +1 -1
  97. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +4 -4
  98. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.d.ts +4 -3
  99. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +19 -12
  100. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.d.ts +22 -0
  101. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +263 -0
  102. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +14 -5
  103. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +98 -26
  104. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +5 -5
  105. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.d.ts +1 -1
  106. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.js +1 -0
  107. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.d.ts +1 -1
  108. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +1 -1
  109. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +11 -2
  110. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +252 -80
  111. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.d.ts +29 -1
  112. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +246 -8
  113. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.d.ts +4 -0
  114. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +39 -18
  115. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +6 -4
  116. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +36 -23
  117. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +3 -13
  118. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +6 -260
  119. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.d.ts +1 -1
  120. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +1 -1
  121. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.d.ts +1 -1
  122. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +3 -3
  123. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.d.ts +5 -7
  124. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +42 -37
  125. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatCodeBlockPill.css +12 -3
  126. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +65 -18
  127. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatHookContentPart.css +9 -6
  128. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatInlineAnchorWidget.css +2 -2
  129. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +356 -415
  130. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +14 -7
  131. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +102 -7
  132. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css +68 -19
  133. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/codeBlockPart.css +48 -15
  134. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.d.ts +5 -2
  135. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +47 -23
  136. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.d.ts +1 -1
  137. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +4 -4
  138. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +1 -2
  139. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +0 -5
  140. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.d.ts +8 -1
  141. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +57 -4
  142. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.d.ts +5 -1
  143. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +24 -8
  144. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatResultListSubPart.d.ts +1 -1
  145. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatSimpleToolProgressPart.d.ts +18 -0
  146. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatSimpleToolProgressPart.js +103 -0
  147. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +1 -1
  148. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +15 -18
  149. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +44 -1
  150. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +85 -89
  151. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.d.ts +3 -5
  152. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +15 -17
  153. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +4 -2
  154. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +41 -2
  155. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +1 -1
  156. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +2 -2
  157. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +3 -3
  158. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +2 -2
  159. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +6 -5
  160. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.d.ts +1 -1
  161. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +13 -1
  162. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.d.ts +1 -1
  163. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.js +2 -1
  164. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +11 -11
  165. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +21 -5
  166. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +341 -88
  167. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +6 -0
  168. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +13 -4
  169. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatQuestionCarouselAutoReply.d.ts +35 -0
  170. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatQuestionCarouselAutoReply.js +440 -0
  171. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +24 -10
  172. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +437 -241
  173. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
  174. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +77 -17
  175. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +521 -284
  176. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +1 -1
  177. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.js +7 -1
  178. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +71 -0
  179. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +664 -0
  180. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.d.ts +104 -0
  181. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.js +127 -0
  182. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +12 -1
  183. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +57 -16
  184. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +4 -7
  185. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +89 -49
  186. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.d.ts +1 -0
  187. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.d.ts +28 -0
  188. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.js +87 -0
  189. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.d.ts +22 -0
  190. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +213 -0
  191. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +1 -0
  192. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +15 -17
  193. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +7 -4
  194. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +563 -140
  195. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatViewWelcome.css +35 -26
  196. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.d.ts +2 -2
  197. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +26 -23
  198. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.d.ts +26 -6
  199. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +145 -79
  200. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css +36 -50
  201. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageWidget.css +35 -15
  202. package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.d.ts +7 -0
  203. package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +127 -30
  204. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.d.ts +1 -0
  205. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +20 -14
  206. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +6 -6
  207. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +96 -34
  208. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +11 -2
  209. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +68 -27
  210. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.d.ts +5 -0
  211. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.js +125 -13
  212. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.d.ts +8 -11
  213. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +54 -45
  214. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +11 -10
  215. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +172 -112
  216. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +5 -5
  217. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
  218. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +2 -44
  219. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatEditorAffordance.css +28 -4
  220. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +84 -3
  221. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +9 -2
  222. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +58 -41
  223. package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +3 -3
  224. package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.d.ts +1 -548
  225. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
  226. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +2 -2
  227. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +1 -1
  228. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +1 -1
  229. package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +6 -10
  230. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +0 -187
@@ -15,7 +15,8 @@
15
15
  .chat-context-usage-details {
16
16
  display: flex;
17
17
  flex-direction: column;
18
- padding: 4px 0;
18
+ margin-top: 4px;
19
+ margin-bottom: 4px;
19
20
  min-width: 200px;
20
21
  }
21
22
 
@@ -23,97 +24,88 @@
23
24
  outline: none;
24
25
  }
25
26
 
26
- /* Using same structure as ChatUsageWidget quota items */
27
- .chat-context-usage-details .quota-item {
28
- margin-bottom: 4px;
29
- }
30
-
31
- .chat-context-usage-details .quota-item-header {
27
+ /* Section headers matching ChatStatusDashboard */
28
+ .chat-context-usage-details div.header {
32
29
  display: flex;
33
30
  align-items: center;
34
- justify-content: space-between;
35
- margin-bottom: 2px;
36
- }
37
-
38
- .chat-context-usage-details .quota-item-label {
39
- color: var(--vscode-foreground);
40
- }
41
-
42
- .chat-context-usage-details .quota-item-value {
43
31
  color: var(--vscode-descriptionForeground);
32
+ margin-bottom: 4px;
33
+ font-weight: 600;
44
34
  }
45
35
 
46
- .chat-context-usage-details .token-row {
36
+ /* Quota indicator — matching ChatStatusDashboard */
37
+ .chat-context-usage-details .quota-indicator .quota-label {
47
38
  display: flex;
48
- align-items: center;
49
- gap: 4px;
50
- margin-bottom: 2px;
39
+ justify-content: space-between;
40
+ gap: 20px;
41
+ margin-bottom: 3px;
51
42
  }
52
43
 
53
- .chat-context-usage-details .token-count-label {
54
- font-size: 12px;
44
+ .chat-context-usage-details .quota-indicator .quota-label .quota-value {
55
45
  color: var(--vscode-descriptionForeground);
56
46
  }
57
47
 
58
- /* Progress bar - matching chat usage implementation */
59
- .chat-context-usage-details .quota-item .quota-bar {
48
+ .chat-context-usage-details .quota-indicator .quota-bar {
60
49
  width: 100%;
61
50
  height: 4px;
62
51
  background-color: var(--vscode-gauge-background);
63
52
  border-radius: 4px;
64
53
  border: 1px solid var(--vscode-gauge-border);
65
- margin: 2px 0;
54
+ margin: 4px 0;
66
55
  }
67
56
 
68
- .chat-context-usage-details .quota-item .quota-bar .quota-bit {
57
+ .chat-context-usage-details .quota-indicator .quota-bar .quota-bit {
69
58
  height: 100%;
70
59
  background-color: var(--vscode-gauge-foreground);
71
60
  border-radius: 4px;
72
61
  transition: width 0.3s ease;
73
62
  }
74
63
 
75
- .chat-context-usage-details .quota-item.warning .quota-bar {
64
+ .chat-context-usage-details .quota-indicator.warning .quota-bar {
76
65
  background-color: var(--vscode-gauge-warningBackground);
77
66
  }
78
67
 
79
- .chat-context-usage-details .quota-item.warning .quota-bar .quota-bit {
68
+ .chat-context-usage-details .quota-indicator.warning .quota-bar .quota-bit {
80
69
  background-color: var(--vscode-gauge-warningForeground);
81
70
  }
82
71
 
83
- .chat-context-usage-details .quota-item.error .quota-bar {
72
+ .chat-context-usage-details .quota-indicator.error .quota-bar {
84
73
  background-color: var(--vscode-gauge-errorBackground);
85
74
  }
86
75
 
87
- .chat-context-usage-details .quota-item.error .quota-bar .quota-bit {
76
+ .chat-context-usage-details .quota-indicator.error .quota-bar .quota-bit {
88
77
  background-color: var(--vscode-gauge-errorForeground);
89
78
  }
90
79
 
91
- .chat-context-usage-details .warning-message {
92
- font-size: 12px;
80
+ /* Description / warning text — matching ChatStatusDashboard */
81
+ .chat-context-usage-details div.description {
82
+ font-size: 11px;
93
83
  color: var(--vscode-descriptionForeground);
94
- margin-bottom: 4px;
84
+ display: flex;
85
+ align-items: center;
86
+ gap: 3px;
95
87
  }
96
88
 
97
89
  /* Token details breakdown */
98
- .chat-context-usage-details .token-details-container {
99
- margin-top: 4px;
100
- }
101
-
102
90
  .chat-context-usage-details .token-category {
103
- margin-bottom: 4px;
91
+ margin-bottom: 6px;
104
92
  }
105
93
 
106
94
  .chat-context-usage-details .token-category-header {
95
+ display: flex;
96
+ align-items: center;
97
+ color: var(--vscode-descriptionForeground);
98
+ margin-top: 16px;
99
+ margin-bottom: 4px;
107
100
  font-weight: 600;
108
- color: var(--vscode-foreground);
109
- margin-bottom: 2px;
110
101
  }
111
102
 
112
103
  .chat-context-usage-details .token-detail-item {
113
104
  display: flex;
114
105
  justify-content: space-between;
115
106
  align-items: center;
116
- padding-left: 8px;
107
+ gap: 20px;
108
+ margin-bottom: 2px;
117
109
  }
118
110
 
119
111
  .chat-context-usage-details .token-detail-label {
@@ -124,15 +116,9 @@
124
116
  color: var(--vscode-descriptionForeground);
125
117
  }
126
118
 
127
- .chat-context-usage-details .actions-section .separator {
128
- border-top: 1px solid var(--vscode-editorHoverWidget-border);
129
- margin: 4px 0;
130
- }
131
-
132
- .chat-context-usage-details .actions-section .actions-header {
133
- font-weight: 600;
134
- color: var(--vscode-foreground);
135
- margin-bottom: 4px;
119
+ /* Actions section */
120
+ .chat-context-usage-details .actions-section {
121
+ margin-top: 8px;
136
122
  }
137
123
 
138
124
  .chat-context-usage-details .actions-section .button-bar-container {
@@ -6,8 +6,7 @@
6
6
  .chat-context-usage-widget {
7
7
  display: flex;
8
8
  align-items: center;
9
- justify-content: center;
10
- height: 22px;
9
+ gap: 4px;
11
10
  flex-shrink: 0;
12
11
  cursor: pointer;
13
12
  padding: 3px;
@@ -19,8 +18,8 @@
19
18
  display: flex;
20
19
  align-items: center;
21
20
  justify-content: center;
22
- width: 16px;
23
- height: 16px;
21
+ width: 14px;
22
+ height: 14px;
24
23
  flex-shrink: 0;
25
24
  }
26
25
 
@@ -46,22 +45,43 @@
46
45
  }
47
46
 
48
47
  .chat-context-usage-widget .progress-bg {
49
- fill: transparent;
50
- stroke: var(--vscode-icon-foreground);
51
- stroke-width: 2;
52
- opacity: 0.4;
48
+ fill: none;
49
+ stroke: var(--vscode-disabledForeground);
50
+ stroke-width: 4;
51
+ opacity: 0.5;
53
52
  }
54
53
 
55
- .chat-context-usage-widget .progress-pie {
56
- fill: var(--vscode-icon-foreground);
57
- opacity: 0.8;
54
+ .chat-context-usage-widget .progress-arc {
55
+ fill: none;
56
+ stroke: var(--vscode-icon-foreground);
57
+ stroke-width: 4;
58
+ stroke-linecap: round;
59
+ transform: rotate(-90deg);
60
+ transform-origin: center;
58
61
  pointer-events: none;
59
62
  }
60
63
 
61
- .chat-context-usage-widget.warning .progress-pie {
62
- fill: var(--vscode-editorWarning-foreground);
64
+ .chat-context-usage-widget.warning .progress-arc {
65
+ stroke: var(--vscode-editorWarning-foreground);
66
+ }
67
+
68
+ .chat-context-usage-widget.error .progress-arc {
69
+ stroke: var(--vscode-editorError-foreground);
70
+ }
71
+
72
+ .chat-context-usage-widget .percentage-label {
73
+ font-size: 11px;
74
+ line-height: 1;
75
+ color: var(--vscode-descriptionForeground);
76
+ white-space: nowrap;
77
+ max-width: 0;
78
+ opacity: 0;
79
+ overflow: hidden;
80
+ transition: max-width 0.1s ease-out, opacity 0.1s ease-out;
63
81
  }
64
82
 
65
- .chat-context-usage-widget.error .progress-pie {
66
- fill: var(--vscode-editorError-foreground);
83
+ .chat-context-usage-widget:hover .percentage-label,
84
+ .chat-context-usage-widget:focus .percentage-label {
85
+ max-width: 4em;
86
+ opacity: 1;
67
87
  }
@@ -3,6 +3,12 @@ import { IRange } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/cor
3
3
  import { IChatProgressRenderableResponseContent, IChatProgressResponseContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
4
4
  export declare const contentRefUrl = "http://_vscodecontentref_";
5
5
  export declare function annotateSpecialMarkdownContent(response: Iterable<IChatProgressResponseContent>): IChatProgressRenderableResponseContent[];
6
+ /**
7
+ * Checks whether the end of a markdown string is inside a code context
8
+ * (fenced code block or inline code span) where markdown link syntax
9
+ * would be rendered as literal text.
10
+ */
11
+ export declare function isInsideCodeContext(text: string): boolean;
6
12
  export interface IMarkdownVulnerability {
7
13
  readonly title: string;
8
14
  readonly description: string;
@@ -16,6 +22,7 @@ export declare function extractCodeblockUrisFromText(text: string): {
16
22
  } | undefined;
17
23
  export declare function extractSubAgentInvocationIdFromText(text: string): string | undefined;
18
24
  export declare function hasCodeblockUriTag(text: string): boolean;
25
+ export declare function hasEditCodeblockUriTag(text: string): boolean;
19
26
  export declare function extractVulnerabilitiesFromText(text: string): {
20
27
  newText: string;
21
28
  vulnerabilities: IMarkdownVulnerability[];
@@ -1,5 +1,4 @@
1
1
 
2
- import { findLastIdx } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arraysFind';
3
2
  import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
4
3
  import { basename } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
5
4
  import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
@@ -11,7 +10,7 @@ function annotateSpecialMarkdownContent(response) {
11
10
  let refIdPool = 0;
12
11
  const result = [];
13
12
  for (const item of response) {
14
- const previousItemIndex = findLastIdx(result, p => p.kind !== "textEditGroup" && p.kind !== "undoStop");
13
+ const previousItemIndex = result.findLastIndex(p => p.kind !== "textEditGroup" && p.kind !== "undoStop");
15
14
  const previousItem = result[previousItemIndex];
16
15
  if (item.kind === "inlineReference") {
17
16
  let label = item.name;
@@ -24,37 +23,65 @@ function annotateSpecialMarkdownContent(response) {
24
23
  label = item.inlineReference.name;
25
24
  }
26
25
  }
27
- const refId = refIdPool++;
28
- const printUri = ( URI.parse(contentRefUrl)).with({
29
- path: String(refId)
30
- });
31
- const markdownText = `[${label}](${( printUri.toString())})`;
32
- const annotationMetadata = {
33
- [refId]: item
34
- };
35
- if (previousItem?.kind === "markdownContent") {
36
- const merged = appendMarkdownString(previousItem.content, ( new MarkdownString(markdownText)));
26
+ const previousText = previousItem?.kind === "markdownContent" ? previousItem.content.value : "";
27
+ if (isInsideCodeContext(previousText)) {
28
+ if (previousItem?.kind === "markdownContent") {
29
+ const merged = appendMarkdownString(previousItem.content, ( new MarkdownString(label)));
30
+ result[previousItemIndex] = {
31
+ ...previousItem,
32
+ content: merged
33
+ };
34
+ } else {
35
+ result.push({
36
+ content: ( new MarkdownString(label)),
37
+ kind: "markdownContent"
38
+ });
39
+ }
40
+ } else {
41
+ const refId = refIdPool++;
42
+ const printUri = ( URI.parse(contentRefUrl)).with({
43
+ path: String(refId)
44
+ });
45
+ const markdownText = `[${label}](${( printUri.toString())})`;
46
+ const annotationMetadata = {
47
+ [refId]: item
48
+ };
49
+ if (previousItem?.kind === "markdownContent") {
50
+ const merged = appendMarkdownString(previousItem.content, ( new MarkdownString(markdownText)));
51
+ result[previousItemIndex] = {
52
+ ...previousItem,
53
+ content: merged,
54
+ inlineReferences: {
55
+ ...annotationMetadata,
56
+ ...(previousItem.inlineReferences || {})
57
+ }
58
+ };
59
+ } else {
60
+ result.push({
61
+ content: ( new MarkdownString(markdownText)),
62
+ inlineReferences: annotationMetadata,
63
+ kind: "markdownContent"
64
+ });
65
+ }
66
+ }
67
+ } else if (item.kind === "markdownContent" && previousItem?.kind === "markdownContent") {
68
+ if (canMergeMarkdownStrings(previousItem.content, item.content)) {
69
+ const merged = appendMarkdownString(previousItem.content, item.content);
37
70
  result[previousItemIndex] = {
38
71
  ...previousItem,
39
- content: merged,
40
- inlineReferences: {
41
- ...annotationMetadata,
42
- ...(previousItem.inlineReferences || {})
72
+ content: merged
73
+ };
74
+ } else if (previousItem.inlineReferences && isContentRefOnly(previousItem.content.value)) {
75
+ result[previousItemIndex] = {
76
+ ...previousItem,
77
+ content: {
78
+ ...item.content,
79
+ value: previousItem.content.value + item.content.value
43
80
  }
44
81
  };
45
82
  } else {
46
- result.push({
47
- content: ( new MarkdownString(markdownText)),
48
- inlineReferences: annotationMetadata,
49
- kind: "markdownContent"
50
- });
83
+ result.push(item);
51
84
  }
52
- } else if (item.kind === "markdownContent" && previousItem?.kind === "markdownContent" && canMergeMarkdownStrings(previousItem.content, item.content)) {
53
- const merged = appendMarkdownString(previousItem.content, item.content);
54
- result[previousItemIndex] = {
55
- ...previousItem,
56
- content: merged
57
- };
58
85
  } else if (item.kind === "markdownVuln") {
59
86
  const vulnText = encodeURIComponent(JSON.stringify(item.vulnerabilities));
60
87
  const markdownText = `<vscode_annotation details='${vulnText}'>${item.content.value}</vscode_annotation>`;
@@ -88,6 +115,76 @@ function annotateSpecialMarkdownContent(response) {
88
115
  }
89
116
  return result;
90
117
  }
118
+ const contentRefPattern = ( new RegExp(`^(\\[.*?\\]\\(${contentRefUrl}/\\d+\\))+$`));
119
+ function isContentRefOnly(text) {
120
+ return contentRefPattern.test(text);
121
+ }
122
+ function isInsideCodeContext(text) {
123
+ const lines = text.split("\n");
124
+ let inFencedBlock = false;
125
+ let fenceChar = "";
126
+ let fenceLength = 0;
127
+ const unfencedLines = [];
128
+ for (const line of lines) {
129
+ const trimmed = line.trimStart();
130
+ if (inFencedBlock) {
131
+ const closeLength = countLeadingChar(trimmed, fenceChar);
132
+ if (closeLength >= fenceLength && trimmed.substring(closeLength).trim() === "") {
133
+ inFencedBlock = false;
134
+ unfencedLines.length = 0;
135
+ }
136
+ continue;
137
+ }
138
+ const firstChar = trimmed[0];
139
+ if (firstChar === "`" || firstChar === "~") {
140
+ const openLength = countLeadingChar(trimmed, firstChar);
141
+ if (openLength >= 3 && (firstChar === "~" || !trimmed.substring(openLength).includes("`"))) {
142
+ inFencedBlock = true;
143
+ fenceChar = firstChar;
144
+ fenceLength = openLength;
145
+ unfencedLines.length = 0;
146
+ continue;
147
+ }
148
+ }
149
+ unfencedLines.push(line);
150
+ }
151
+ return inFencedBlock || hasUnclosedInlineCode(unfencedLines.join("\n"));
152
+ }
153
+ function countLeadingChar(text, char) {
154
+ let count = 0;
155
+ while (count < text.length && text[count] === char) {
156
+ count++;
157
+ }
158
+ return count;
159
+ }
160
+ function hasUnclosedInlineCode(text) {
161
+ let i = 0;
162
+ while (i < text.length) {
163
+ if (text[i] !== "`") {
164
+ i++;
165
+ continue;
166
+ }
167
+ const openLen = countLeadingChar(text.substring(i), "`");
168
+ i += openLen;
169
+ let found = false;
170
+ while (i < text.length) {
171
+ if (text[i] !== "`") {
172
+ i++;
173
+ continue;
174
+ }
175
+ const closeLen = countLeadingChar(text.substring(i), "`");
176
+ i += closeLen;
177
+ if (closeLen === openLen) {
178
+ found = true;
179
+ break;
180
+ }
181
+ }
182
+ if (!found) {
183
+ return true;
184
+ }
185
+ }
186
+ return false;
187
+ }
91
188
  function extractCodeblockUrisFromText(text) {
92
189
  const match = /<vscode_codeblock_uri( isEdit)?( subAgentInvocationId="([^"]*)")?>([\s\S]*?)<\/vscode_codeblock_uri>/ms.exec(text);
93
190
  if (match) {
@@ -124,8 +221,8 @@ function extractSubAgentInvocationIdFromText(text) {
124
221
  }
125
222
  return undefined;
126
223
  }
127
- function hasCodeblockUriTag(text) {
128
- return text.includes("<vscode_codeblock_uri");
224
+ function hasEditCodeblockUriTag(text) {
225
+ return text.includes("<vscode_codeblock_uri isEdit");
129
226
  }
130
227
  function extractVulnerabilitiesFromText(text) {
131
228
  const vulnerabilities = [];
@@ -167,4 +264,4 @@ function extractVulnerabilitiesFromText(text) {
167
264
  };
168
265
  }
169
266
 
170
- export { annotateSpecialMarkdownContent, contentRefUrl, extractCodeblockUrisFromText, extractSubAgentInvocationIdFromText, extractVulnerabilitiesFromText, hasCodeblockUriTag };
267
+ export { annotateSpecialMarkdownContent, contentRefUrl, extractCodeblockUrisFromText, extractSubAgentInvocationIdFromText, extractVulnerabilitiesFromText, hasEditCodeblockUriTag, isInsideCodeContext };
@@ -1,3 +1,4 @@
1
+ export declare const agentStatusIndicatorBackground: string;
1
2
  export declare const chatRequestBorder: string;
2
3
  export declare const chatRequestBackground: string;
3
4
  export declare const chatSlashCommandBackground: string;
@@ -13,44 +13,50 @@ import { badgeBackground, badgeForeground } from '@codingame/monaco-vscode-api/v
13
13
  import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
14
14
  import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
15
15
 
16
+ registerColor("agentStatusIndicator.background", {
17
+ dark: ( Color.white.transparent(0.05)),
18
+ light: ( Color.black.transparent(0.05)),
19
+ hcDark: null,
20
+ hcLight: null
21
+ }, ( localize(7407, "Background color of the agent status indicator in the titlebar.")));
16
22
  registerColor("chat.requestBorder", {
17
23
  dark: ( new Color(( new RGBA(255, 255, 255, 0.10)))),
18
24
  light: ( new Color(( new RGBA(0, 0, 0, 0.10)))),
19
25
  hcDark: contrastBorder,
20
26
  hcLight: contrastBorder
21
- }, ( localize(6616, "The border color of a chat request.")));
27
+ }, ( localize(7408, "The border color of a chat request.")));
22
28
  const chatRequestBackground = registerColor("chat.requestBackground", {
23
29
  dark: ( transparent(editorBackground, 0.62)),
24
30
  light: ( transparent(editorBackground, 0.62)),
25
31
  hcDark: editorWidgetBackground,
26
32
  hcLight: null
27
- }, ( localize(6617, "The background color of a chat request.")));
33
+ }, ( localize(7409, "The background color of a chat request.")));
28
34
  const chatSlashCommandBackground = registerColor("chat.slashCommandBackground", {
29
35
  dark: "#26477866",
30
36
  light: "#adceff7a",
31
37
  hcDark: Color.white,
32
38
  hcLight: badgeBackground
33
- }, ( localize(6618, "The background color of a chat slash command.")));
39
+ }, ( localize(7410, "The background color of a chat slash command.")));
34
40
  const chatSlashCommandForeground = registerColor("chat.slashCommandForeground", {
35
41
  dark: "#85b6ff",
36
42
  light: "#26569e",
37
43
  hcDark: Color.black,
38
44
  hcLight: badgeForeground
39
- }, ( localize(6619, "The foreground color of a chat slash command.")));
45
+ }, ( localize(7411, "The foreground color of a chat slash command.")));
40
46
  registerColor("chat.avatarBackground", {
41
47
  dark: "#1f1f1f",
42
48
  light: "#f2f2f2",
43
49
  hcDark: Color.black,
44
50
  hcLight: Color.white
45
- }, ( localize(6620, "The background color of a chat avatar.")));
46
- registerColor("chat.avatarForeground", foreground, ( localize(6621, "The foreground color of a chat avatar.")));
51
+ }, ( localize(7412, "The background color of a chat avatar.")));
52
+ registerColor("chat.avatarForeground", foreground, ( localize(7413, "The foreground color of a chat avatar.")));
47
53
  registerColor("chat.editedFileForeground", {
48
54
  light: "#895503",
49
55
  dark: "#E2C08D",
50
56
  hcDark: "#E2C08D",
51
57
  hcLight: "#895503"
52
58
  }, ( localize(
53
- 6622,
59
+ 7414,
54
60
  "The foreground color of a chat edited file in the edited file list."
55
61
  )));
56
62
  registerColor("chat.requestCodeBorder", {
@@ -58,42 +64,42 @@ registerColor("chat.requestCodeBorder", {
58
64
  light: "#0e639c40",
59
65
  hcDark: null,
60
66
  hcLight: null
61
- }, ( localize(6623, "Border color of code blocks within the chat request bubble.")), true);
67
+ }, ( localize(7415, "Border color of code blocks within the chat request bubble.")), true);
62
68
  registerColor("chat.requestBubbleBackground", {
63
69
  light: ( transparent(editorSelectionBackground, 0.3)),
64
70
  dark: ( transparent(editorSelectionBackground, 0.3)),
65
71
  hcDark: null,
66
72
  hcLight: null
67
- }, ( localize(6624, "Background color of the chat request bubble.")), true);
73
+ }, ( localize(7416, "Background color of the chat request bubble.")), true);
68
74
  registerColor("chat.requestBubbleHoverBackground", {
69
75
  dark: ( transparent(editorSelectionBackground, 0.6)),
70
76
  light: ( transparent(editorSelectionBackground, 0.6)),
71
77
  hcDark: null,
72
78
  hcLight: null
73
- }, ( localize(6625, "Background color of the chat request bubble on hover.")), true);
79
+ }, ( localize(7417, "Background color of the chat request bubble on hover.")), true);
74
80
  registerColor("chat.checkpointSeparator", {
75
81
  dark: "#585858",
76
82
  light: "#a9a9a9",
77
83
  hcDark: "#a9a9a9",
78
84
  hcLight: "#a5a5a5"
79
- }, ( localize(6626, "Chat checkpoint separator color.")));
85
+ }, ( localize(7418, "Chat checkpoint separator color.")));
80
86
  registerColor("chat.linesAddedForeground", {
81
87
  dark: "#54B054",
82
88
  light: "#107C10",
83
89
  hcDark: "#54B054",
84
90
  hcLight: "#107C10"
85
- }, ( localize(6627, "Foreground color of lines added in chat code block pill.")), true);
91
+ }, ( localize(7419, "Foreground color of lines added in chat code block pill.")), true);
86
92
  registerColor("chat.linesRemovedForeground", {
87
93
  dark: "#FC6A6A",
88
94
  light: "#BC2F32",
89
95
  hcDark: "#F48771",
90
96
  hcLight: "#B5200D"
91
- }, ( localize(6628, "Foreground color of lines removed in chat code block pill.")), true);
97
+ }, ( localize(7420, "Foreground color of lines removed in chat code block pill.")), true);
92
98
  registerColor("chat.thinkingShimmer", {
93
99
  dark: "#ffffff",
94
100
  light: "#000000",
95
101
  hcDark: "#ffffff",
96
102
  hcLight: "#000000"
97
- }, ( localize(6629, "Shimmer highlight for thinking/working labels.")), true);
103
+ }, ( localize(7421, "Shimmer highlight for thinking/working labels.")), true);
98
104
 
99
105
  export { chatRequestBackground, chatSlashCommandBackground, chatSlashCommandForeground };
@@ -5,11 +5,11 @@ import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
5
5
  import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
6
6
  import { InlineChatInputWidget } from "./inlineChatOverlayWidget.js";
7
7
  import { IInlineChatSessionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service";
8
+ import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
9
+ import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
8
10
  export declare class InlineChatAffordance extends Disposable {
9
- private readonly _editor;
10
- private readonly _inputWidget;
11
- private readonly _instantiationService;
12
- private _menuData;
13
- constructor(_editor: ICodeEditor, _inputWidget: InlineChatInputWidget, _instantiationService: IInstantiationService, configurationService: IConfigurationService, chatEntiteldService: IChatEntitlementService, inlineChatSessionService: IInlineChatSessionService);
14
- showMenuAtSelection(): Promise<void>;
11
+ #private;
12
+ constructor(editor: ICodeEditor, inputWidget: InlineChatInputWidget, instantiationService: IInstantiationService, configurationService: IConfigurationService, chatEntiteldService: IChatEntitlementService, inlineChatSessionService: IInlineChatSessionService, telemetryService: ITelemetryService, contextKeyService: IContextKeyService);
13
+ dismiss(): void;
14
+ showMenuAtSelection(placeholder: string): Promise<void>;
15
15
  }