@codingame/monaco-vscode-katex-common 25.1.2 → 26.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +23 -2
  3. package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +64 -27
  4. package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.d.ts +3 -1
  5. package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.js +31 -28
  6. package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +2 -0
  7. package/vscode/src/vs/platform/actions/browser/buttonbar.js +71 -50
  8. package/vscode/src/vs/platform/editor/browser/editor.js +17 -7
  9. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +112 -129
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +10 -1
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +110 -85
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +5 -5
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +21 -6
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +308 -216
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +153 -148
  16. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.d.ts +27 -0
  17. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +247 -0
  18. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +71 -0
  19. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +347 -0
  20. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +44 -0
  21. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +287 -0
  22. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.d.ts +20 -0
  23. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +89 -0
  24. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +188 -0
  25. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +677 -0
  26. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentSessionHoverWidget.css +98 -0
  27. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +263 -0
  28. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.js +34 -25
  29. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +19 -14
  30. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +762 -359
  31. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.d.ts +22 -1
  32. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.js +188 -99
  33. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +9 -3
  34. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +166 -113
  35. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +12 -5
  36. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +279 -213
  37. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +46 -0
  38. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +533 -0
  39. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +28 -0
  40. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +382 -0
  41. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +101 -0
  42. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +509 -0
  43. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +130 -0
  44. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +276 -0
  45. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.d.ts +24 -7
  46. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +128 -52
  47. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +153 -0
  48. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +1218 -0
  49. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/chatSessionPickerActionItem.css +14 -0
  50. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.d.ts +39 -0
  51. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +193 -0
  52. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts +2 -0
  53. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +93 -89
  54. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcome.js +5 -2
  55. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +42 -47
  56. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +58 -56
  57. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +18 -14
  58. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +17 -15
  59. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +6 -2
  60. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +132 -68
  61. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.d.ts +0 -2
  62. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +68 -47
  63. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +14 -13
  64. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.d.ts +4 -4
  65. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.js +36 -24
  66. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.d.ts +18 -0
  67. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.js +32 -0
  68. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.d.ts +7 -2
  69. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.js +15 -4
  70. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.d.ts +1 -0
  71. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +22 -14
  72. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.d.ts +0 -2
  73. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +34 -27
  74. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +1 -5
  75. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +198 -135
  76. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.d.ts +2 -0
  77. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.js +38 -10
  78. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.js +29 -27
  79. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.d.ts +0 -2
  80. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.js +41 -36
  81. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.d.ts +0 -2
  82. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.js +23 -18
  83. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorContentPart.js +13 -13
  84. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.d.ts +0 -3
  85. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +20 -14
  86. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +11 -1
  87. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +291 -152
  88. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +2 -3
  89. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +227 -162
  90. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownDecorationsRenderer.js +68 -72
  91. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.d.ts +2 -4
  92. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +76 -75
  93. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.d.ts +2 -5
  94. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +96 -76
  95. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +4 -1
  96. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +74 -38
  97. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.d.ts +0 -2
  98. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.js +11 -25
  99. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +107 -0
  100. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +814 -0
  101. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.d.ts +0 -2
  102. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +34 -29
  103. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.d.ts +8 -10
  104. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +236 -197
  105. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +123 -0
  106. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +492 -0
  107. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +75 -47
  108. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.d.ts +2 -4
  109. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.js +31 -20
  110. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.d.ts +0 -3
  111. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +42 -36
  112. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +55 -7
  113. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +714 -148
  114. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.d.ts +7 -0
  115. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +21 -0
  116. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.d.ts +2 -7
  117. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +143 -153
  118. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +14 -5
  119. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +79 -61
  120. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +10 -4
  121. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +209 -77
  122. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.d.ts +9 -7
  123. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +71 -54
  124. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.d.ts +18 -0
  125. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +83 -0
  126. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.d.ts +4 -4
  127. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +248 -190
  128. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +1 -14
  129. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatInlineAnchorWidget.css +23 -0
  130. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPullRequestContent.css +5 -41
  131. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +493 -0
  132. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentContent.css +63 -0
  133. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +9 -1
  134. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +121 -5
  135. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css +37 -0
  136. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +51 -45
  137. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +46 -42
  138. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +4 -2
  139. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +99 -67
  140. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.d.ts +112 -0
  141. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +634 -0
  142. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.d.ts +49 -0
  143. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +132 -0
  144. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatResultListSubPart.js +15 -9
  145. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +196 -149
  146. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +17 -1
  147. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +577 -193
  148. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +119 -86
  149. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +10 -2
  150. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +165 -36
  151. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.d.ts +0 -2
  152. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.js +5 -8
  153. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +5 -3
  154. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +75 -65
  155. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +30 -28
  156. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +1 -5
  157. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +102 -106
  158. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +44 -20
  159. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.d.ts +19 -0
  160. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.js +67 -0
  161. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.d.ts +57 -0
  162. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.js +69 -0
  163. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +122 -82
  164. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +39 -12
  165. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +1110 -597
  166. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +291 -0
  167. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +485 -0
  168. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatOptions.js +38 -28
  169. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +9 -20
  170. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +650 -689
  171. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +21 -18
  172. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +102 -36
  173. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +1253 -790
  174. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.d.ts +0 -7
  175. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.js +11 -11
  176. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +34 -0
  177. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.js +55 -0
  178. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.d.ts +6 -2
  179. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.js +51 -35
  180. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +22 -0
  181. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +102 -0
  182. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +16 -4
  183. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +192 -44
  184. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.d.ts +11 -12
  185. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +99 -66
  186. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +47 -0
  187. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +188 -0
  188. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.d.ts +20 -0
  189. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +115 -0
  190. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +129 -167
  191. package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatViewWelcome.css +16 -3
  192. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.d.ts +37 -0
  193. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +143 -0
  194. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.d.ts +56 -0
  195. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +206 -0
  196. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css +152 -0
  197. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageWidget.css +67 -0
  198. package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.d.ts +22 -0
  199. package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +170 -0
  200. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.d.ts +1 -0
  201. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +80 -19
  202. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatWidgetHistoryService.js +20 -28
  203. package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.d.ts +2 -1
  204. package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.js +22 -19
  205. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +15 -0
  206. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +122 -0
  207. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +19 -104
  208. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +316 -1040
  209. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.d.ts +28 -0
  210. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.js +162 -0
  211. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.d.ts +21 -0
  212. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +98 -0
  213. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +68 -0
  214. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +416 -0
  215. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +1 -6
  216. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +194 -215
  217. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +0 -1
  218. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +74 -104
  219. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +45 -91
  220. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatEditorAffordance.css +22 -0
  221. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +98 -0
  222. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +5 -2
  223. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +96 -68
  224. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.d.ts +7 -0
  225. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.js +11 -0
  226. package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.d.ts +20 -0
  227. package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +150 -0
  228. package/vscode/src/vs/workbench/contrib/markdown/browser/markedKatexSupport.js +141 -147
  229. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.d.ts +64 -0
  230. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.js +200 -0
  231. package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.d.ts +548 -0
  232. package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.js +23 -0
  233. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.d.ts +22 -0
  234. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +338 -0
  235. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.d.ts +18 -0
  236. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +58 -0
  237. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.d.ts +75 -0
  238. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +364 -0
  239. package/vscode/src/vs/workbench/contrib/replNotebook/browser/interactiveEditor.css +21 -0
  240. package/vscode/src/vs/workbench/contrib/replNotebook/browser/media/interactive.css +36 -0
  241. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.d.ts +110 -0
  242. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +692 -0
  243. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.d.ts +40 -0
  244. package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +158 -0
  245. package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.d.ts +80 -21
  246. package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +440 -82
  247. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.d.ts +0 -34
  248. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.js +0 -139
  249. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.d.ts +0 -10
  250. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +0 -1081
  251. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.d.ts +0 -199
  252. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +0 -482
  253. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +0 -28
  254. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +0 -37
  255. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +0 -94
  256. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +0 -495
  257. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.d.ts +0 -72
  258. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +0 -454
  259. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.d.ts +0 -13
  260. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +0 -66
  261. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.d.ts +0 -41
  262. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +0 -372
  263. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +0 -4
  264. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +0 -58
  265. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.d.ts +0 -26
  266. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +0 -594
  267. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +0 -8
  268. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -55
  269. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +0 -273
  270. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1746
  271. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +0 -50
  272. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -269
  273. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +0 -258
  274. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -806
  275. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +0 -41
  276. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -116
  277. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +0 -17
  278. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +0 -62
  279. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +0 -27
  280. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -40
  281. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +0 -23
  282. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +0 -295
  283. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +0 -51
  284. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +0 -241
  285. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +0 -24
  286. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +0 -146
  287. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +0 -28
  288. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +0 -90
  289. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +0 -10
  290. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +0 -41
  291. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +0 -21
  292. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +0 -42
  293. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +0 -25
  294. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +0 -77
  295. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +0 -469
  296. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +0 -149
  297. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -823
  298. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +0 -180
  299. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -29
  300. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +0 -102
  301. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -567
  302. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +0 -30
  303. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -189
  304. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +0 -75
  305. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +0 -439
  306. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +0 -57
  307. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +0 -263
  308. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +0 -22
  309. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.js +0 -48
  310. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +0 -13
  311. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +0 -39
  312. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +0 -19
  313. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +0 -89
  314. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +0 -26
  315. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +0 -92
  316. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.d.ts +0 -33
  317. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +0 -108
@@ -0,0 +1,46 @@
1
+ import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions";
2
+ import { Action2, IAction2Options } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
3
+ import { IChatEditingSession, IModifiedFileEntry, IModifiedFileEntryEditorIntegration } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService";
4
+ declare abstract class ChatEditingEditorAction extends Action2 {
5
+ constructor(desc: Readonly<IAction2Options>);
6
+ run(accessor: ServicesAccessor, ...args: unknown[]): Promise<void>;
7
+ abstract runChatEditingCommand(accessor: ServicesAccessor, session: IChatEditingSession, entry: IModifiedFileEntry, integration: IModifiedFileEntryEditorIntegration, ...args: unknown[]): Promise<void> | void;
8
+ }
9
+ declare abstract class KeepOrUndoAction extends ChatEditingEditorAction {
10
+ private _keep;
11
+ constructor(id: string, _keep: boolean);
12
+ runChatEditingCommand(accessor: ServicesAccessor, session: IChatEditingSession, entry: IModifiedFileEntry, _integration: IModifiedFileEntryEditorIntegration): Promise<void>;
13
+ }
14
+ export declare class AcceptAction extends KeepOrUndoAction {
15
+ static readonly ID = "chatEditor.action.accept";
16
+ constructor();
17
+ }
18
+ export declare class RejectAction extends KeepOrUndoAction {
19
+ static readonly ID = "chatEditor.action.reject";
20
+ constructor();
21
+ }
22
+ declare abstract class AcceptRejectHunkAction extends ChatEditingEditorAction {
23
+ private readonly _accept;
24
+ constructor(_accept: boolean);
25
+ runChatEditingCommand(accessor: ServicesAccessor, session: IChatEditingSession, entry: IModifiedFileEntry, ctrl: IModifiedFileEntryEditorIntegration, ...args: unknown[]): Promise<void>;
26
+ }
27
+ export declare class AcceptHunkAction extends AcceptRejectHunkAction {
28
+ static readonly ID = "chatEditor.action.acceptHunk";
29
+ constructor();
30
+ }
31
+ export declare class RejectHunkAction extends AcceptRejectHunkAction {
32
+ static readonly ID = "chatEditor.action.undoHunk";
33
+ constructor();
34
+ }
35
+ export declare class ReviewChangesAction extends ChatEditingEditorAction {
36
+ constructor();
37
+ runChatEditingCommand(_accessor: ServicesAccessor, _session: IChatEditingSession, entry: IModifiedFileEntry, _integration: IModifiedFileEntryEditorIntegration, ..._args: unknown[]): void;
38
+ }
39
+ export declare class AcceptAllEditsAction extends ChatEditingEditorAction {
40
+ static readonly ID = "chatEditor.action.acceptAllEdits";
41
+ constructor();
42
+ runChatEditingCommand(_accessor: ServicesAccessor, session: IChatEditingSession, _entry: IModifiedFileEntry, _integration: IModifiedFileEntryEditorIntegration, ..._args: unknown[]): Promise<void>;
43
+ }
44
+ export declare function registerChatEditorActions(): void;
45
+ export declare const navigationBearingFakeActionId = "chatEditor.navigation.bearings";
46
+ export {};
@@ -0,0 +1,533 @@
1
+
2
+ import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
3
+ import { CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
4
+ import { KeyMod, KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
5
+ import { EditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorContextKeys';
6
+ import { localize2, localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
7
+ import { Action2, MenuId, registerAction2, MenuRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
8
+ import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
9
+ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
10
+ import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
11
+ import { IListService } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService.service';
12
+ import { resolveCommandsContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorCommandsContext';
13
+ import { ActiveEditorContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
14
+ import { EditorResourceAccessor, SideBySideEditor, TEXT_DIFF_EDITOR_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
15
+ import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
16
+ import { ACTIVE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
17
+ import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
18
+ import { CTX_HOVER_MODE } from '../../../inlineChat/common/inlineChat.js';
19
+ import { MultiDiffEditor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditor';
20
+ import { MultiDiffEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput';
21
+ import { NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_EDITOR_FOCUSED } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
22
+ import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
23
+ import { ModifiedFileEntryState, CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME, parseChatMultiDiffUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService';
24
+ import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService.service';
25
+ import { CHAT_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
26
+ import { ctxReviewModeEnabled, ctxHasEditorModification, ctxIsGlobalEditingSession, ctxHasRequestInProgress, ctxIsCurrentlyBeingModified, ctxCursorInChangeRange } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys';
27
+ import { ChatEditingExplanationWidgetManager } from './chatEditingExplanationWidget.js';
28
+ import { IChatEditingExplanationModelManager } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.service';
29
+ import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
30
+ import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
31
+ import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
32
+ import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
33
+ import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
34
+ import { ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
35
+
36
+ class ChatEditingEditorAction extends Action2 {
37
+ constructor(desc) {
38
+ super({
39
+ category: CHAT_CATEGORY,
40
+ ...desc
41
+ });
42
+ }
43
+ async run(accessor, ...args) {
44
+ const instaService = accessor.get(IInstantiationService);
45
+ const chatEditingService = accessor.get(IChatEditingService);
46
+ const editorService = accessor.get(IEditorService);
47
+ const uri = EditorResourceAccessor.getOriginalUri(editorService.activeEditorPane?.input, {
48
+ supportSideBySide: SideBySideEditor.PRIMARY
49
+ });
50
+ if (!uri || !editorService.activeEditorPane) {
51
+ return;
52
+ }
53
+ const session = chatEditingService.editingSessionsObs.get().find(candidate => candidate.getEntry(uri));
54
+ if (!session) {
55
+ return;
56
+ }
57
+ const entry = session.getEntry(uri);
58
+ const ctrl = entry.getEditorIntegration(editorService.activeEditorPane);
59
+ return instaService.invokeFunction(this.runChatEditingCommand.bind(this), session, entry, ctrl, ...args);
60
+ }
61
+ }
62
+ class NavigateAction extends ChatEditingEditorAction {
63
+ constructor(next) {
64
+ super({
65
+ id: next ? "chatEditor.action.navigateNext" : "chatEditor.action.navigatePrevious",
66
+ title: next ? ( localize2(5287, "Go to Next Chat Edit")) : ( localize2(5288, "Go to Previous Chat Edit")),
67
+ icon: next ? Codicon.arrowDown : Codicon.arrowUp,
68
+ precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ctxHasEditorModification)),
69
+ keybinding: {
70
+ primary: next ? KeyMod.Alt | KeyCode.F5 : KeyMod.Alt | KeyMod.Shift | KeyCode.F5,
71
+ weight: KeybindingWeight.WorkbenchContrib,
72
+ when: ( ContextKeyExpr.and(ctxHasEditorModification, ( ContextKeyExpr.or(EditorContextKeys.focus, NOTEBOOK_CELL_LIST_FOCUSED))))
73
+ },
74
+ f1: true,
75
+ menu: {
76
+ id: MenuId.ChatEditingEditorContent,
77
+ group: "navigate",
78
+ order: !next ? 2 : 3,
79
+ when: ( ContextKeyExpr.and(ctxReviewModeEnabled, ctxHasEditorModification))
80
+ }
81
+ });
82
+ this.next = next;
83
+ }
84
+ async runChatEditingCommand(accessor, session, entry, ctrl) {
85
+ const instaService = accessor.get(IInstantiationService);
86
+ const done = this.next ? ctrl.next(false) : ctrl.previous(false);
87
+ if (done) {
88
+ return;
89
+ }
90
+ const didOpenNext = await instaService.invokeFunction(openNextOrPreviousChange, session, entry, this.next);
91
+ if (didOpenNext) {
92
+ return;
93
+ }
94
+ this.next ? ctrl.next(true) : ctrl.previous(true);
95
+ }
96
+ }
97
+ async function openNextOrPreviousChange(accessor, session, entry, next) {
98
+ const editorService = accessor.get(IEditorService);
99
+ const entries = session.entries.get();
100
+ let idx = entries.indexOf(entry);
101
+ let newEntry;
102
+ while (true) {
103
+ idx = (idx + (next ? 1 : -1) + entries.length) % entries.length;
104
+ newEntry = entries[idx];
105
+ if (newEntry.state.get() === ModifiedFileEntryState.Modified) {
106
+ break;
107
+ } else if (newEntry === entry) {
108
+ return false;
109
+ }
110
+ }
111
+ const pane = await editorService.openEditor({
112
+ resource: newEntry.modifiedURI,
113
+ options: {
114
+ revealIfOpened: false,
115
+ revealIfVisible: false
116
+ }
117
+ }, ACTIVE_GROUP);
118
+ if (!pane) {
119
+ return false;
120
+ }
121
+ if (session.entries.get().includes(newEntry)) {
122
+ newEntry.getEditorIntegration(pane).reveal(next);
123
+ }
124
+ return true;
125
+ }
126
+ class KeepOrUndoAction extends ChatEditingEditorAction {
127
+ constructor(id, _keep) {
128
+ super({
129
+ id,
130
+ title: _keep ? ( localize2(5289, "Keep Chat Edits")) : ( localize2(5290, "Undo Chat Edits")),
131
+ shortTitle: _keep ? ( localize2(5291, "Keep")) : ( localize2(5292, "Undo")),
132
+ tooltip: _keep ? ( localize2(5293, "Keep Chat Edits in this File")) : ( localize2(5294, "Undo Chat Edits in this File")),
133
+ precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
134
+ icon: _keep ? Codicon.check : Codicon.discard,
135
+ f1: true,
136
+ keybinding: {
137
+ when: ( ContextKeyExpr.or(EditorContextKeys.focus, NOTEBOOK_EDITOR_FOCUSED)),
138
+ weight: KeybindingWeight.WorkbenchContrib + 10,
139
+ primary: _keep ? KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyY : KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyN
140
+ },
141
+ menu: {
142
+ id: MenuId.ChatEditingEditorContent,
143
+ group: "a_resolve",
144
+ order: _keep ? 0 : 1,
145
+ when: ( ContextKeyExpr.and(!_keep ? ctxReviewModeEnabled : undefined, ( ContextKeyExpr.or(ctxIsGlobalEditingSession, ( ctxHasRequestInProgress.negate())))))
146
+ }
147
+ });
148
+ this._keep = _keep;
149
+ }
150
+ async runChatEditingCommand(accessor, session, entry, _integration) {
151
+ const instaService = accessor.get(IInstantiationService);
152
+ if (this._keep) {
153
+ session.accept(entry.modifiedURI);
154
+ } else {
155
+ session.reject(entry.modifiedURI);
156
+ }
157
+ await instaService.invokeFunction(openNextOrPreviousChange, session, entry, true);
158
+ }
159
+ }
160
+ class AcceptAction extends KeepOrUndoAction {
161
+ static {
162
+ this.ID = "chatEditor.action.accept";
163
+ }
164
+ constructor() {
165
+ super(AcceptAction.ID, true);
166
+ }
167
+ }
168
+ class RejectAction extends KeepOrUndoAction {
169
+ static {
170
+ this.ID = "chatEditor.action.reject";
171
+ }
172
+ constructor() {
173
+ super(RejectAction.ID, false);
174
+ }
175
+ }
176
+ const acceptHunkId = "chatEditor.action.acceptHunk";
177
+ const undoHunkId = "chatEditor.action.undoHunk";
178
+ class AcceptRejectHunkAction extends ChatEditingEditorAction {
179
+ constructor(_accept) {
180
+ super({
181
+ id: _accept ? acceptHunkId : undoHunkId,
182
+ title: _accept ? ( localize2(5295, "Keep this Change")) : ( localize2(5296, "Undo this Change")),
183
+ shortTitle: _accept ? ( localize2(5297, "Keep")) : ( localize2(5298, "Undo")),
184
+ precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
185
+ f1: true,
186
+ keybinding: {
187
+ when: ( ContextKeyExpr.and(ctxCursorInChangeRange, ( ContextKeyExpr.or(EditorContextKeys.focus, NOTEBOOK_CELL_LIST_FOCUSED)))),
188
+ weight: KeybindingWeight.WorkbenchContrib + 1,
189
+ primary: _accept ? KeyMod.CtrlCmd | KeyCode.KeyY : KeyMod.CtrlCmd | KeyCode.KeyN
190
+ },
191
+ menu: {
192
+ id: MenuId.ChatEditingEditorHunk,
193
+ order: 1
194
+ }
195
+ });
196
+ this._accept = _accept;
197
+ }
198
+ async runChatEditingCommand(accessor, session, entry, ctrl, ...args) {
199
+ const instaService = accessor.get(IInstantiationService);
200
+ if (this._accept) {
201
+ await ctrl.acceptNearestChange(args[0]);
202
+ } else {
203
+ await ctrl.rejectNearestChange(args[0]);
204
+ }
205
+ if (entry.changesCount.get() === 0) {
206
+ await instaService.invokeFunction(openNextOrPreviousChange, session, entry, true);
207
+ }
208
+ }
209
+ }
210
+ class AcceptHunkAction extends AcceptRejectHunkAction {
211
+ static {
212
+ this.ID = acceptHunkId;
213
+ }
214
+ constructor() {
215
+ super(true);
216
+ }
217
+ }
218
+ class RejectHunkAction extends AcceptRejectHunkAction {
219
+ static {
220
+ this.ID = undoHunkId;
221
+ }
222
+ constructor() {
223
+ super(false);
224
+ }
225
+ }
226
+ class ToggleDiffAction extends ChatEditingEditorAction {
227
+ constructor() {
228
+ super({
229
+ id: "chatEditor.action.toggleDiff",
230
+ title: ( localize2(5299, "Toggle Diff Editor for Chat Edits")),
231
+ category: CHAT_CATEGORY,
232
+ toggled: {
233
+ condition: ( ContextKeyExpr.or(EditorContextKeys.inDiffEditor, ( ActiveEditorContext.isEqualTo(TEXT_DIFF_EDITOR_ID)))),
234
+ icon: Codicon.goToFile
235
+ },
236
+ precondition: ( ContextKeyExpr.and(ctxHasEditorModification)),
237
+ icon: Codicon.diffSingle,
238
+ keybinding: {
239
+ when: EditorContextKeys.focus,
240
+ weight: KeybindingWeight.WorkbenchContrib,
241
+ primary: KeyMod.Alt | KeyMod.Shift | KeyCode.F7
242
+ },
243
+ menu: [{
244
+ id: MenuId.ChatEditingEditorHunk,
245
+ order: 10
246
+ }, {
247
+ id: MenuId.ChatEditingEditorContent,
248
+ group: "a_resolve",
249
+ order: 2,
250
+ when: ( ContextKeyExpr.and(ctxReviewModeEnabled))
251
+ }, {
252
+ id: MenuId.ChatEditorInlineExecute,
253
+ group: "a_resolve",
254
+ order: 2,
255
+ when: ( ContextKeyExpr.and(ctxReviewModeEnabled, CTX_HOVER_MODE))
256
+ }]
257
+ });
258
+ }
259
+ runChatEditingCommand(_accessor, _session, _entry, integration, ...args) {
260
+ integration.toggleDiff(args[0]);
261
+ }
262
+ }
263
+ class ToggleAccessibleDiffViewAction extends ChatEditingEditorAction {
264
+ constructor() {
265
+ super({
266
+ id: "chatEditor.action.showAccessibleDiffView",
267
+ title: ( localize2(5300, "Show Accessible Diff View for Chat Edits")),
268
+ f1: true,
269
+ precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
270
+ keybinding: {
271
+ when: EditorContextKeys.focus,
272
+ weight: KeybindingWeight.WorkbenchContrib,
273
+ primary: KeyCode.F7
274
+ }
275
+ });
276
+ }
277
+ runChatEditingCommand(_accessor, _session, _entry, integration) {
278
+ integration.enableAccessibleDiffView();
279
+ }
280
+ }
281
+ class ReviewChangesAction extends ChatEditingEditorAction {
282
+ constructor() {
283
+ super({
284
+ id: "chatEditor.action.reviewChanges",
285
+ title: ( localize2(5301, "Review")),
286
+ precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
287
+ menu: [{
288
+ id: MenuId.ChatEditingEditorContent,
289
+ group: "a_resolve",
290
+ order: 3,
291
+ when: ( ContextKeyExpr.and(( ctxReviewModeEnabled.negate()), ( ctxIsCurrentlyBeingModified.negate()), ( ContextKeyExpr.or(ctxIsGlobalEditingSession, ( ctxHasRequestInProgress.negate())))))
292
+ }]
293
+ });
294
+ }
295
+ runChatEditingCommand(_accessor, _session, entry, _integration, ..._args) {
296
+ entry.enableReviewModeUntilSettled();
297
+ }
298
+ }
299
+ class AcceptAllEditsAction extends ChatEditingEditorAction {
300
+ static {
301
+ this.ID = "chatEditor.action.acceptAllEdits";
302
+ }
303
+ constructor() {
304
+ super({
305
+ id: AcceptAllEditsAction.ID,
306
+ title: ( localize2(5302, "Keep All Chat Edits")),
307
+ tooltip: ( localize2(5303, "Keep All Chat Edits in this Session")),
308
+ precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
309
+ icon: Codicon.checkAll,
310
+ f1: true,
311
+ keybinding: {
312
+ when: ( ContextKeyExpr.or(EditorContextKeys.focus, NOTEBOOK_EDITOR_FOCUSED)),
313
+ weight: KeybindingWeight.WorkbenchContrib + 10,
314
+ primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyY
315
+ }
316
+ });
317
+ }
318
+ async runChatEditingCommand(_accessor, session, _entry, _integration, ..._args) {
319
+ await session.accept();
320
+ }
321
+ }
322
+ class MultiDiffAcceptDiscardAction extends Action2 {
323
+ constructor(accept) {
324
+ super({
325
+ id: accept ? "chatEditing.multidiff.acceptAllFiles" : "chatEditing.multidiff.discardAllFiles",
326
+ title: accept ? ( localize(5304, "Keep All Edits")) : ( localize(5305, "Undo All Edits")),
327
+ icon: accept ? Codicon.check : Codicon.discard,
328
+ menu: {
329
+ when: ( ContextKeyExpr.equals("resourceScheme", CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME)),
330
+ id: MenuId.EditorTitle,
331
+ order: accept ? 0 : 1,
332
+ group: "navigation"
333
+ }
334
+ });
335
+ this.accept = accept;
336
+ }
337
+ async run(accessor, ...args) {
338
+ const chatEditingService = accessor.get(IChatEditingService);
339
+ const editorService = accessor.get(IEditorService);
340
+ const editorGroupsService = accessor.get(IEditorGroupsService);
341
+ const listService = accessor.get(IListService);
342
+ const resolvedContext = resolveCommandsContext(args, editorService, editorGroupsService, listService);
343
+ const groupContext = resolvedContext.groupedEditors[0];
344
+ if (!groupContext) {
345
+ return;
346
+ }
347
+ const editor = groupContext.editors[0];
348
+ if (!(editor instanceof MultiDiffEditorInput) || !editor.resource) {
349
+ return;
350
+ }
351
+ const {
352
+ chatSessionResource
353
+ } = parseChatMultiDiffUri(editor.resource);
354
+ const session = chatEditingService.getEditingSession(chatSessionResource);
355
+ if (session) {
356
+ if (this.accept) {
357
+ await session.accept();
358
+ } else {
359
+ await session.reject();
360
+ }
361
+ editorService.closeEditor({
362
+ editor,
363
+ groupId: groupContext.group.id
364
+ });
365
+ }
366
+ }
367
+ }
368
+ const explainMultiDiffSchemes = [
369
+ CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME,
370
+ "copilotcli-worktree-changes",
371
+ "copilotcloud-pr-changes"
372
+ ];
373
+ class ExplainMultiDiffAction extends Action2 {
374
+ constructor() {
375
+ super({
376
+ id: "chatEditing.multidiff.explain",
377
+ title: ( localize(5306, "Explain")),
378
+ menu: {
379
+ when: ( ContextKeyExpr.and(( ContextKeyExpr.or(...( explainMultiDiffSchemes.map(scheme => ( ContextKeyExpr.equals("resourceScheme", scheme)))))), ( ContextKeyExpr.has(`config.${ChatConfiguration.ExplainChangesEnabled}`)))),
380
+ id: MenuId.MultiDiffEditorContent,
381
+ order: 10
382
+ }
383
+ });
384
+ this._widgetsByInput = ( new WeakMap());
385
+ }
386
+ async run(accessor, ...args) {
387
+ const editorService = accessor.get(IEditorService);
388
+ const explanationModelManager = accessor.get(IChatEditingExplanationModelManager);
389
+ const chatWidgetService = accessor.get(IChatWidgetService);
390
+ const viewsService = accessor.get(IViewsService);
391
+ const chatEditingService = accessor.get(IChatEditingService);
392
+ const activePane = editorService.activeEditorPane;
393
+ if (!activePane) {
394
+ return;
395
+ }
396
+ if (!(activePane instanceof MultiDiffEditor) || !activePane.viewModel) {
397
+ return;
398
+ }
399
+ const input = activePane.input;
400
+ if (!input) {
401
+ return;
402
+ }
403
+ this._widgetsByInput.get(input)?.dispose();
404
+ const widgetsStore = ( new DisposableStore());
405
+ this._widgetsByInput.set(input, widgetsStore);
406
+ Event.once(input.onWillDispose)(() => {
407
+ widgetsStore.dispose();
408
+ this._widgetsByInput.delete(input);
409
+ });
410
+ const viewModel = activePane.viewModel;
411
+ const items = viewModel.items.get();
412
+ let chatSessionResource;
413
+ if (input instanceof MultiDiffEditorInput && input.resource?.scheme === CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME) {
414
+ chatSessionResource = parseChatMultiDiffUri(input.resource).chatSessionResource;
415
+ }
416
+ if (!chatSessionResource) {
417
+ const fileUris = ( items.map(item => {
418
+ const docDiffItem = item.documentDiffItem;
419
+ const goToFileUri = docDiffItem?.multiDiffEditorItem?.goToFileUri;
420
+ if (goToFileUri) {
421
+ return goToFileUri;
422
+ }
423
+ const modifiedUri = docDiffItem?.multiDiffEditorItem?.modifiedUri ?? item.modifiedUri;
424
+ if (modifiedUri?.path) {
425
+ return URI.file(modifiedUri.path);
426
+ }
427
+ return undefined;
428
+ })).filter(uri => !!uri);
429
+ for (const session of chatEditingService.editingSessionsObs.get()) {
430
+ if (( fileUris.some(uri => session.getEntry(uri)))) {
431
+ chatSessionResource = session.chatSessionResource;
432
+ break;
433
+ }
434
+ }
435
+ }
436
+ const diffsByFile = ( new Map());
437
+ for (const item of items) {
438
+ const modifiedUri = item.modifiedUri;
439
+ if (!modifiedUri) {
440
+ continue;
441
+ }
442
+ const editorInfo = activePane.tryGetCodeEditor(modifiedUri);
443
+ if (!editorInfo) {
444
+ continue;
445
+ }
446
+ const diffEditorVM = item.diffEditorViewModel;
447
+ await diffEditorVM.waitForDiff();
448
+ const diff = diffEditorVM.diff.get();
449
+ if (!diff || diff.identical) {
450
+ continue;
451
+ }
452
+ const fileKey = ( modifiedUri.toString());
453
+ const existing = diffsByFile.get(fileKey);
454
+ if (existing) {
455
+ existing.changes.push(...( diff.mappings.map(m => m.lineRangeMapping)));
456
+ } else {
457
+ diffsByFile.set(fileKey, {
458
+ editor: editorInfo.editor,
459
+ changes: ( diff.mappings.map(m => m.lineRangeMapping)),
460
+ originalModel: diffEditorVM.model.original,
461
+ modifiedModel: diffEditorVM.model.modified
462
+ });
463
+ }
464
+ }
465
+ const allDiffInfos = [];
466
+ for (const fileData of ( diffsByFile.values())) {
467
+ const diffInfo = {
468
+ changes: fileData.changes,
469
+ identical: false,
470
+ originalModel: fileData.originalModel,
471
+ modifiedModel: fileData.modifiedModel
472
+ };
473
+ allDiffInfos.push(diffInfo);
474
+ const manager = ( new ChatEditingExplanationWidgetManager(
475
+ fileData.editor,
476
+ chatWidgetService,
477
+ viewsService,
478
+ explanationModelManager,
479
+ diffInfo.modifiedModel.uri
480
+ ));
481
+ widgetsStore.add(manager);
482
+ }
483
+ if (allDiffInfos.length > 0) {
484
+ widgetsStore.add(
485
+ explanationModelManager.generateExplanations(allDiffInfos, chatSessionResource, CancellationToken.None)
486
+ );
487
+ }
488
+ }
489
+ }
490
+ function registerChatEditorActions() {
491
+ registerAction2(class NextAction extends NavigateAction {
492
+ constructor() {
493
+ super(true);
494
+ }
495
+ });
496
+ registerAction2(class PrevAction extends NavigateAction {
497
+ constructor() {
498
+ super(false);
499
+ }
500
+ });
501
+ registerAction2(ReviewChangesAction);
502
+ registerAction2(AcceptAction);
503
+ registerAction2(RejectAction);
504
+ registerAction2(AcceptAllEditsAction);
505
+ registerAction2(AcceptHunkAction);
506
+ registerAction2(RejectHunkAction);
507
+ registerAction2(ToggleDiffAction);
508
+ registerAction2(ToggleAccessibleDiffViewAction);
509
+ registerAction2(class extends MultiDiffAcceptDiscardAction {
510
+ constructor() {
511
+ super(true);
512
+ }
513
+ });
514
+ registerAction2(class extends MultiDiffAcceptDiscardAction {
515
+ constructor() {
516
+ super(false);
517
+ }
518
+ });
519
+ registerAction2(ExplainMultiDiffAction);
520
+ MenuRegistry.appendMenuItem(MenuId.ChatEditingEditorContent, {
521
+ command: {
522
+ id: navigationBearingFakeActionId,
523
+ title: ( localize(5307, "Navigation Status")),
524
+ precondition: ( ContextKeyExpr.false())
525
+ },
526
+ group: "navigate",
527
+ order: -1,
528
+ when: ( ContextKeyExpr.and(ctxReviewModeEnabled, ctxHasEditorModification))
529
+ });
530
+ }
531
+ const navigationBearingFakeActionId = "chatEditor.navigation.bearings";
532
+
533
+ export { AcceptAction, AcceptAllEditsAction, AcceptHunkAction, RejectAction, RejectHunkAction, ReviewChangesAction, navigationBearingFakeActionId, registerChatEditorActions };
@@ -0,0 +1,28 @@
1
+ import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
2
+ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
3
+ import { IModifiedFileEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService";
4
+ import { ActionViewItem, IBaseActionViewItemOptions } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionViewItems";
5
+ import { IAction, IActionRunner } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
6
+ import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
7
+ import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
8
+ import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
9
+ export declare class ChatEditingAcceptRejectActionViewItem extends ActionViewItem {
10
+ private readonly _entry;
11
+ private readonly _editor;
12
+ private readonly _keybindingService;
13
+ private readonly _primaryActionIds;
14
+ private readonly _reveal;
15
+ constructor(action: IAction, options: IBaseActionViewItemOptions, _entry: IObservable<IModifiedFileEntry | undefined>, _editor: {
16
+ focus(): void;
17
+ } | undefined, _keybindingService: IKeybindingService, _primaryActionIds?: readonly string[]);
18
+ render(container: HTMLElement): void;
19
+ set actionRunner(actionRunner: IActionRunner);
20
+ get actionRunner(): IActionRunner;
21
+ protected getTooltip(): string | undefined;
22
+ }
23
+ export declare class ChatEditingEditorOverlay implements IWorkbenchContribution {
24
+ static readonly ID = "chat.edits.editorOverlay";
25
+ private readonly _store;
26
+ constructor(editorGroupsService: IEditorGroupsService, instantiationService: IInstantiationService);
27
+ dispose(): void;
28
+ }