@codingame/monaco-vscode-chat-service-override 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 (334) hide show
  1. package/index.js +24 -3
  2. package/package.json +5 -5
  3. package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +23 -3
  4. package/vscode/src/vs/platform/browserElements/common/browserElements.js +13 -6
  5. package/vscode/src/vs/platform/domWidget/browser/domWidget.js +4 -4
  6. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.d.ts +1 -1
  7. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +42 -27
  8. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +14 -0
  9. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +218 -74
  10. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatTerminalOutputAccessibleView.js +6 -8
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +14 -9
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +165 -168
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +27 -25
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +141 -140
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +189 -121
  16. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +14 -15
  17. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.d.ts +60 -0
  18. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.js +435 -0
  19. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +28 -12
  20. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +10 -12
  21. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.d.ts +3 -1
  22. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +37 -16
  23. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.d.ts +11 -0
  24. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +54 -24
  25. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +73 -34
  26. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +71 -30
  27. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +151 -89
  28. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +12 -15
  29. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +39 -40
  30. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +90 -125
  31. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.d.ts +5 -2
  32. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +263 -143
  33. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTransfer.js +4 -4
  34. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +188 -126
  35. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.d.ts +1 -1
  36. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +37 -28
  37. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +21 -9
  38. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +392 -226
  39. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +31 -27
  40. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +25 -23
  41. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.js +1 -3
  42. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.d.ts +2 -0
  43. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +13 -0
  44. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.d.ts +20 -0
  45. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +83 -0
  46. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.d.ts +68 -0
  47. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +319 -0
  48. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.d.ts +1 -0
  49. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +215 -0
  50. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +179 -0
  51. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +951 -0
  52. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agentsessionprojection.css +20 -0
  53. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +388 -0
  54. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/unifiedQuickAccess.css +195 -0
  55. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.d.ts +120 -0
  56. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +394 -0
  57. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.d.ts +38 -0
  58. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +95 -0
  59. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.d.ts +3 -1
  60. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.js +31 -29
  61. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +49 -47
  62. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +4 -6
  63. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/media/simpleBrowserOverlay.css +0 -1
  64. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +188 -151
  65. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +1012 -639
  66. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +256 -151
  67. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.d.ts +8 -1
  68. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +182 -101
  69. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.d.ts +79 -0
  70. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.js +193 -0
  71. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorAccessibility.js +9 -7
  72. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.d.ts +68 -0
  73. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +253 -0
  74. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +4 -5
  75. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +69 -50
  76. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +3 -4
  77. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +52 -33
  78. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +5 -6
  79. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +274 -155
  80. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.js +1 -1
  81. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +2 -10
  82. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +130 -104
  83. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +12 -2
  84. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +385 -160
  85. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +53 -36
  86. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +112 -75
  87. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +19 -10
  88. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditorController.css +31 -11
  89. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.js +39 -17
  90. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNewNotebookContentEdits.js +10 -14
  91. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.d.ts +0 -2
  92. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.js +25 -16
  93. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.d.ts +1 -1
  94. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +265 -203
  95. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.js +29 -26
  96. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/helpers.js +114 -60
  97. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/notebookCellChanges.js +16 -19
  98. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.js +44 -30
  99. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +119 -45
  100. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +1 -0
  101. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +152 -136
  102. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +12 -8
  103. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.d.ts +51 -31
  104. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +323 -217
  105. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +4 -3
  106. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +653 -401
  107. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +52 -40
  108. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +22 -3
  109. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.d.ts +5 -2
  110. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +43 -28
  111. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +182 -136
  112. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.d.ts +33 -0
  113. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +548 -0
  114. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.d.ts +0 -1
  115. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +222 -138
  116. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.d.ts +3 -3
  117. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +151 -113
  118. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +6 -4
  119. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +453 -217
  120. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +1 -1
  121. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +162 -88
  122. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/media/chatSetup.css +2 -1
  123. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatus.d.ts +0 -2
  124. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatus.js +1 -13
  125. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +1 -0
  126. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +309 -233
  127. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +55 -53
  128. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusItemService.js +3 -1
  129. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +37 -0
  130. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +109 -0
  131. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +35 -23
  132. package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.d.ts +9 -4
  133. package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.js +73 -33
  134. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.d.ts +47 -0
  135. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +333 -0
  136. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +39 -25
  137. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionContribution.js +9 -5
  138. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +23 -20
  139. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileActions.js +2 -0
  140. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +20 -16
  141. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +65 -57
  142. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +48 -36
  143. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +20 -12
  144. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.d.ts +4 -0
  145. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +52 -0
  146. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +155 -159
  147. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +24 -14
  148. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +521 -246
  149. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +107 -76
  150. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +28 -24
  151. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownAnchorService.js +10 -6
  152. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputStateCache.d.ts +16 -0
  153. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputStateCache.js +57 -0
  154. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatLayoutService.js +4 -6
  155. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +56 -44
  156. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.d.ts +0 -3
  157. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +37 -47
  158. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatEditorInputContentProvider.js +5 -7
  159. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.d.ts +10 -0
  160. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +1284 -0
  161. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +179 -125
  162. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +9 -11
  163. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/editorHoverWrapper.js +7 -6
  164. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +96 -78
  165. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +58 -53
  166. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +25 -11
  167. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +484 -292
  168. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.d.ts +1 -6
  169. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +65 -92
  170. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +16 -19
  171. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewTitleControl.css +1 -0
  172. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +9 -1
  173. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +331 -189
  174. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +81 -93
  175. package/vscode/src/vs/workbench/contrib/chat/common/ignoredFiles.js +1 -3
  176. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.d.ts +5 -3
  177. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.js +6 -7
  178. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.d.ts +36 -8
  179. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +169 -31
  180. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.d.ts +6 -0
  181. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +141 -0
  182. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +6 -4
  183. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +218 -144
  184. package/vscode/src/vs/workbench/contrib/chat/common/model/chatTransferService.js +20 -10
  185. package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.d.ts +109 -0
  186. package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.js +349 -0
  187. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.js +9 -8
  188. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.d.ts +9 -0
  189. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +139 -36
  190. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +3 -6
  191. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.js +64 -51
  192. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +49 -34
  193. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +21 -13
  194. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +1 -1
  195. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +125 -97
  196. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +91 -131
  197. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptLinkProvider.js +8 -5
  198. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +5 -0
  199. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +488 -222
  200. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +32 -12
  201. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +58 -13
  202. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +717 -200
  203. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +79 -18
  204. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +371 -130
  205. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.d.ts +0 -1
  206. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.js +3 -7
  207. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +79 -61
  208. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.js +27 -21
  209. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +7 -10
  210. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.d.ts +1 -1
  211. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +26 -32
  212. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +2 -2
  213. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +8 -60
  214. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +115 -426
  215. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.d.ts +15 -0
  216. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +127 -0
  217. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +1 -37
  218. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +16 -0
  219. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +21 -0
  220. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +51 -0
  221. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +334 -0
  222. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.d.ts +41 -0
  223. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +424 -0
  224. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +4 -0
  225. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +58 -0
  226. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts +7 -0
  227. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +195 -0
  228. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.d.ts +8 -0
  229. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +368 -0
  230. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.d.ts +2 -0
  231. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +7 -0
  232. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.d.ts +1 -1
  233. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.js +1 -1
  234. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +23 -25
  235. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.js +7 -8
  236. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +34 -38
  237. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibleView.js +8 -12
  238. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +103 -95
  239. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +28 -16
  240. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatEnabler.js +4 -5
  241. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +12 -8
  242. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +65 -54
  243. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +86 -60
  244. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.js +13 -26
  245. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/commandFileWriteParser.d.ts +24 -0
  246. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.d.ts +26 -0
  247. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.js +142 -0
  248. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +2 -1
  249. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +56 -46
  250. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +2 -2
  251. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +63 -31
  252. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +2 -1
  253. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +35 -30
  254. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +2 -1
  255. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +44 -37
  256. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +3 -4
  257. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +3 -3
  258. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +11 -0
  259. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +70 -50
  260. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +26 -394
  261. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +85 -49
  262. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +68 -27
  263. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +1 -0
  264. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +67 -45
  265. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.d.ts +12 -0
  266. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +106 -0
  267. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.d.ts +2 -2
  268. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js +177 -97
  269. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +136 -49
  270. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +2 -1
  271. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +128 -112
  272. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +51 -49
  273. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.d.ts +8 -0
  274. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +25 -0
  275. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/commandLinePresenter.d.ts +41 -0
  276. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.d.ts +19 -0
  277. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.js +37 -0
  278. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.d.ts +19 -0
  279. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.js +37 -0
  280. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.d.ts +19 -0
  281. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.js +44 -0
  282. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +12 -0
  283. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +21 -0
  284. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.js +5 -14
  285. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.js +2 -4
  286. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +1 -0
  287. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.d.ts +8 -0
  288. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +29 -0
  289. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +30 -31
  290. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +16 -17
  291. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +19 -20
  292. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.d.ts +11 -0
  293. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +58 -0
  294. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +31 -3
  295. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +325 -199
  296. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +1 -1
  297. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.js +1 -1
  298. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +33 -38
  299. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +45 -5
  300. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +746 -456
  301. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +145 -98
  302. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +88 -37
  303. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +120 -51
  304. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +25 -28
  305. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +5 -0
  306. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.js +58 -12
  307. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.d.ts +12 -0
  308. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.js +17 -0
  309. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +8 -1
  310. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +47 -28
  311. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +37 -0
  312. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +171 -0
  313. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +0 -58
  314. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +0 -213
  315. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +0 -39
  316. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +0 -243
  317. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.d.ts +0 -7
  318. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +0 -41
  319. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +0 -166
  320. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +0 -607
  321. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +0 -255
  322. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +0 -46
  323. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +0 -396
  324. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +0 -9
  325. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +0 -379
  326. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +0 -117
  327. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +0 -141
  328. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +0 -961
  329. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +0 -36
  330. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +0 -447
  331. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.d.ts +0 -6
  332. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.js +0 -251
  333. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.d.ts +0 -10
  334. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +0 -42
@@ -12,10 +12,16 @@ import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log
12
12
  import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
13
13
  import { getKeyForChatSessionResource } from './chatEditingOperations.js';
14
14
 
15
- const STORAGE_CONTENTS_FOLDER = 'contents';
16
- const STORAGE_STATE_FILE = 'state.json';
15
+ const STORAGE_CONTENTS_FOLDER = "contents";
16
+ const STORAGE_STATE_FILE = "state.json";
17
17
  let ChatEditingSessionStorage = class ChatEditingSessionStorage {
18
- constructor(_chatSessionResource, _fileService, _environmentService, _logService, _workspaceContextService) {
18
+ constructor(
19
+ _chatSessionResource,
20
+ _fileService,
21
+ _environmentService,
22
+ _logService,
23
+ _workspaceContextService
24
+ ) {
19
25
  this._chatSessionResource = _chatSessionResource;
20
26
  this._fileService = _fileService;
21
27
  this._environmentService = _environmentService;
@@ -25,12 +31,17 @@ let ChatEditingSessionStorage = class ChatEditingSessionStorage {
25
31
  }
26
32
  _getStorageLocation() {
27
33
  const workspaceId = this._workspaceContextService.getWorkspace().id;
28
- return joinPath(this._environmentService.workspaceStorageHome, workspaceId, 'chatEditingSessions', this.storageKey);
34
+ return joinPath(
35
+ this._environmentService.workspaceStorageHome,
36
+ workspaceId,
37
+ "chatEditingSessions",
38
+ this.storageKey
39
+ );
29
40
  }
30
41
  async restoreState() {
31
42
  const storageLocation = this._getStorageLocation();
32
43
  const fileContents = ( new Map());
33
- const getFileContent = (hash) => {
44
+ const getFileContent = hash => {
34
45
  let readPromise = fileContents.get(hash);
35
46
  if (!readPromise) {
36
47
  readPromise = this._fileService.readFile(joinPath(storageLocation, STORAGE_CONTENTS_FOLDER, hash)).then(content => ( content.value.toString()));
@@ -38,7 +49,7 @@ let ChatEditingSessionStorage = class ChatEditingSessionStorage {
38
49
  }
39
50
  return readPromise;
40
51
  };
41
- const deserializeSnapshotEntriesDTO = async (dtoEntries) => {
52
+ const deserializeSnapshotEntriesDTO = async dtoEntries => {
42
53
  const entries = ( new ResourceMap());
43
54
  for (const entryDTO of dtoEntries) {
44
55
  const entry = await deserializeSnapshotEntry(entryDTO);
@@ -46,11 +57,14 @@ let ChatEditingSessionStorage = class ChatEditingSessionStorage {
46
57
  }
47
58
  return entries;
48
59
  };
49
- const deserializeChatEditingStopDTO = async (stopDTO) => {
60
+ const deserializeChatEditingStopDTO = async stopDTO => {
50
61
  const entries = await deserializeSnapshotEntriesDTO(stopDTO.entries);
51
- return { stopId: 'stopId' in stopDTO ? stopDTO.stopId : undefined, entries };
62
+ return {
63
+ stopId: "stopId" in stopDTO ? stopDTO.stopId : undefined,
64
+ entries
65
+ };
52
66
  };
53
- const deserializeSnapshotEntry = async (entry) => {
67
+ const deserializeSnapshotEntry = async entry => {
54
68
  return {
55
69
  resource: ( URI.parse(entry.resource)),
56
70
  languageId: entry.languageId,
@@ -67,8 +81,9 @@ let ChatEditingSessionStorage = class ChatEditingSessionStorage {
67
81
  modelId: entry.telemetryInfo.modelId,
68
82
  modeId: entry.telemetryInfo.modeId,
69
83
  applyCodeBlockSuggestionId: entry.telemetryInfo.applyCodeBlockSuggestionId,
70
- feature: entry.telemetryInfo.feature,
71
- }
84
+ feature: entry.telemetryInfo.feature
85
+ },
86
+ isDeleted: entry.isDeleted
72
87
  };
73
88
  };
74
89
  try {
@@ -91,10 +106,9 @@ let ChatEditingSessionStorage = class ChatEditingSessionStorage {
91
106
  return {
92
107
  initialFileContents,
93
108
  recentSnapshot,
94
- timeline: revive(data.timeline),
109
+ timeline: revive(data.timeline)
95
110
  };
96
- }
97
- catch (e) {
111
+ } catch (e) {
98
112
  this._logService.error(`Error restoring chat editing session from ${( storageLocation.toString())}`, e);
99
113
  }
100
114
  return undefined;
@@ -110,18 +124,16 @@ let ChatEditingSessionStorage = class ChatEditingSessionStorage {
110
124
  existingContents.add(child.name);
111
125
  }
112
126
  });
113
- }
114
- catch (e) {
127
+ } catch (e) {
115
128
  try {
116
129
  await this._fileService.createFolder(contentsFolder);
117
- }
118
- catch (e) {
130
+ } catch (e) {
119
131
  this._logService.error(`Error creating chat editing session content folder ${( contentsFolder.toString())}`, e);
120
132
  return;
121
133
  }
122
134
  }
123
135
  const contentWritePromises = ( new Map());
124
- const writeContent = async (content) => {
136
+ const writeContent = async content => {
125
137
  const buffer = VSBuffer.fromString(content);
126
138
  const hash = (await hashAsync(buffer)).substring(0, 7);
127
139
  if (!( existingContents.has(hash))) {
@@ -129,7 +141,7 @@ let ChatEditingSessionStorage = class ChatEditingSessionStorage {
129
141
  }
130
142
  return hash;
131
143
  };
132
- const addFileContent = async (content) => {
144
+ const addFileContent = async content => {
133
145
  let storedContentHash = contentWritePromises.get(content);
134
146
  if (!storedContentHash) {
135
147
  storedContentHash = writeContent(content);
@@ -140,13 +152,13 @@ let ChatEditingSessionStorage = class ChatEditingSessionStorage {
140
152
  const serializeResourceMap = async (resourceMap, serialize) => {
141
153
  return await Promise.all(( Array.from(resourceMap.entries()).map(async ([resourceURI, value]) => [( resourceURI.toString()), await serialize(value)])));
142
154
  };
143
- const serializeChatEditingSessionStop = async (stop) => {
155
+ const serializeChatEditingSessionStop = async stop => {
144
156
  return {
145
157
  stopId: stop.stopId,
146
158
  entries: await Promise.all(( Array.from(( stop.entries.values())).map(serializeSnapshotEntry)))
147
159
  };
148
160
  };
149
- const serializeSnapshotEntry = async (entry) => {
161
+ const serializeSnapshotEntry = async entry => {
150
162
  return {
151
163
  resource: ( entry.resource.toString()),
152
164
  languageId: entry.languageId,
@@ -154,7 +166,14 @@ let ChatEditingSessionStorage = class ChatEditingSessionStorage {
154
166
  currentHash: await addFileContent(entry.current),
155
167
  state: entry.state,
156
168
  snapshotUri: ( entry.snapshotUri.toString()),
157
- telemetryInfo: { requestId: entry.telemetryInfo.requestId, agentId: entry.telemetryInfo.agentId, command: entry.telemetryInfo.command, modelId: entry.telemetryInfo.modelId, modeId: entry.telemetryInfo.modeId }
169
+ telemetryInfo: {
170
+ requestId: entry.telemetryInfo.requestId,
171
+ agentId: entry.telemetryInfo.agentId,
172
+ command: entry.telemetryInfo.command,
173
+ modelId: entry.telemetryInfo.modelId,
174
+ modeId: entry.telemetryInfo.modeId
175
+ },
176
+ isDeleted: entry.isDeleted
158
177
  };
159
178
  };
160
179
  try {
@@ -162,12 +181,14 @@ let ChatEditingSessionStorage = class ChatEditingSessionStorage {
162
181
  version: STORAGE_VERSION,
163
182
  initialFileContents: await serializeResourceMap(state.initialFileContents, value => addFileContent(value)),
164
183
  timeline: state.timeline,
165
- recentSnapshot: await serializeChatEditingSessionStop(state.recentSnapshot),
184
+ recentSnapshot: await serializeChatEditingSessionStop(state.recentSnapshot)
166
185
  };
167
186
  this._logService.debug(`chatEditingSession: Storing editing session at ${( storageFolder.toString())}: ${contentWritePromises.size} files`);
168
- await this._fileService.writeFile(joinPath(storageFolder, STORAGE_STATE_FILE), VSBuffer.fromString(JSON.stringify(data)));
169
- }
170
- catch (e) {
187
+ await this._fileService.writeFile(
188
+ joinPath(storageFolder, STORAGE_STATE_FILE),
189
+ VSBuffer.fromString(JSON.stringify(data))
190
+ );
191
+ } catch (e) {
171
192
  this._logService.debug(`Error storing chat editing session to ${( storageFolder.toString())}`, e);
172
193
  }
173
194
  }
@@ -176,20 +197,16 @@ let ChatEditingSessionStorage = class ChatEditingSessionStorage {
176
197
  if (await this._fileService.exists(storageFolder)) {
177
198
  this._logService.debug(`chatEditingSession: Clearing editing session at ${( storageFolder.toString())}`);
178
199
  try {
179
- await this._fileService.del(storageFolder, { recursive: true });
180
- }
181
- catch (e) {
200
+ await this._fileService.del(storageFolder, {
201
+ recursive: true
202
+ });
203
+ } catch (e) {
182
204
  this._logService.debug(`Error clearing chat editing session from ${( storageFolder.toString())}`, e);
183
205
  }
184
206
  }
185
207
  }
186
208
  };
187
- ChatEditingSessionStorage = ( __decorate([
188
- ( __param(1, IFileService)),
189
- ( __param(2, IEnvironmentService)),
190
- ( __param(3, ILogService)),
191
- ( __param(4, IWorkspaceContextService))
192
- ], ChatEditingSessionStorage));
209
+ ChatEditingSessionStorage = ( __decorate([( __param(1, IFileService)), ( __param(2, IEnvironmentService)), ( __param(3, ILogService)), ( __param(4, IWorkspaceContextService))], ChatEditingSessionStorage));
193
210
  const COMPATIBLE_STORAGE_VERSIONS = [1, 2];
194
211
  const STORAGE_VERSION = 2;
195
212
 
@@ -41,35 +41,43 @@ import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/obse
41
41
 
42
42
  var ChatEditingTextModelChangeService_1;
43
43
  let ChatEditingTextModelChangeService = class ChatEditingTextModelChangeService extends Disposable {
44
- static { ChatEditingTextModelChangeService_1 = this; }
45
- static { this._lastEditDecorationOptions = ModelDecorationOptions.register({
46
- isWholeLine: true,
47
- description: 'chat-last-edit',
48
- className: 'chat-editing-last-edit-line',
49
- marginClassName: 'chat-editing-last-edit',
50
- overviewRuler: {
51
- position: OverviewRulerLane.Full,
52
- color: themeColorFromId(editorSelectionBackground)
53
- },
54
- }); }
55
- static { this._pendingEditDecorationOptions = ModelDecorationOptions.register({
56
- isWholeLine: true,
57
- description: 'chat-pending-edit',
58
- className: 'chat-editing-pending-edit',
59
- minimap: {
60
- position: MinimapPosition.Inline,
61
- color: themeColorFromId(pendingRewriteMinimap)
62
- }
63
- }); }
64
- static { this._atomicEditDecorationOptions = ModelDecorationOptions.register({
65
- isWholeLine: true,
66
- description: 'chat-atomic-edit',
67
- className: 'chat-editing-atomic-edit',
68
- minimap: {
69
- position: MinimapPosition.Inline,
70
- color: themeColorFromId(pendingRewriteMinimap)
71
- }
72
- }); }
44
+ static {
45
+ ChatEditingTextModelChangeService_1 = this;
46
+ }
47
+ static {
48
+ this._lastEditDecorationOptions = ModelDecorationOptions.register({
49
+ isWholeLine: true,
50
+ description: "chat-last-edit",
51
+ className: "chat-editing-last-edit-line",
52
+ marginClassName: "chat-editing-last-edit",
53
+ overviewRuler: {
54
+ position: OverviewRulerLane.Full,
55
+ color: themeColorFromId(editorSelectionBackground)
56
+ }
57
+ });
58
+ }
59
+ static {
60
+ this._pendingEditDecorationOptions = ModelDecorationOptions.register({
61
+ isWholeLine: true,
62
+ description: "chat-pending-edit",
63
+ className: "chat-editing-pending-edit",
64
+ minimap: {
65
+ position: MinimapPosition.Inline,
66
+ color: themeColorFromId(pendingRewriteMinimap)
67
+ }
68
+ });
69
+ }
70
+ static {
71
+ this._atomicEditDecorationOptions = ModelDecorationOptions.register({
72
+ isWholeLine: true,
73
+ description: "chat-atomic-edit",
74
+ className: "chat-editing-atomic-edit",
75
+ minimap: {
76
+ position: MinimapPosition.Inline,
77
+ color: themeColorFromId(pendingRewriteMinimap)
78
+ }
79
+ });
80
+ }
73
81
  get isEditFromUs() {
74
82
  return this._isEditFromUs;
75
83
  }
@@ -89,10 +97,20 @@ let ChatEditingTextModelChangeService = class ChatEditingTextModelChangeService
89
97
  }
90
98
  notifyHunkAction(state, affectedLines) {
91
99
  if (affectedLines.lineCount > 0) {
92
- this._didAcceptOrRejectLines.fire({ state, ...affectedLines });
100
+ this._didAcceptOrRejectLines.fire({
101
+ state,
102
+ ...affectedLines
103
+ });
93
104
  }
94
105
  }
95
- constructor(originalModel, modifiedModel, state, isExternalEditInProgress, _editorWorkerService, _accessibilitySignalService) {
106
+ constructor(
107
+ originalModel,
108
+ modifiedModel,
109
+ state,
110
+ isExternalEditInProgress,
111
+ _editorWorkerService,
112
+ _accessibilitySignalService
113
+ ) {
96
114
  super();
97
115
  this.originalModel = originalModel;
98
116
  this.modifiedModel = modifiedModel;
@@ -103,10 +121,9 @@ let ChatEditingTextModelChangeService = class ChatEditingTextModelChangeService
103
121
  this._allEditsAreFromUs = true;
104
122
  this._diffOperationIds = 0;
105
123
  this._diffInfo = observableValue(this, nullDocumentDiff);
106
- this._editDecorationClear = this._register(( new RunOnceScheduler(
107
- () => { this._editDecorations = this.modifiedModel.deltaDecorations(this._editDecorations, []); },
108
- 500
109
- )));
124
+ this._editDecorationClear = this._register(( new RunOnceScheduler(() => {
125
+ this._editDecorations = this.modifiedModel.deltaDecorations(this._editDecorations, []);
126
+ }, 500)));
110
127
  this._editDecorations = [];
111
128
  this._didAcceptOrRejectAllHunks = this._register(( new Emitter()));
112
129
  this.onDidAcceptOrRejectAllHunks = this._didAcceptOrRejectAllHunks.event;
@@ -153,8 +170,14 @@ let ChatEditingTextModelChangeService = class ChatEditingTextModelChangeService
153
170
  return diff ? diff.identical : false;
154
171
  }
155
172
  async acceptAgentEdits(resource, textEdits, isLastEdits, responseModel) {
156
- assertType(textEdits.every(TextEdit.isTextEdit), 'INVALID args, can only handle text edits');
157
- assert(isEqual(resource, this.modifiedModel.uri), ' INVALID args, can only edit THIS document');
173
+ assertType(
174
+ textEdits.every(TextEdit.isTextEdit),
175
+ "INVALID args, can only handle text edits"
176
+ );
177
+ assert(
178
+ isEqual(resource, this.modifiedModel.uri),
179
+ " INVALID args, can only edit THIS document"
180
+ );
158
181
  const isAtomicEdits = textEdits.length > 0 && isLastEdits;
159
182
  let maxLineNumber = 0;
160
183
  let rewriteRatio = 0;
@@ -169,39 +192,36 @@ let ChatEditingTextModelChangeService = class ChatEditingTextModelChangeService
169
192
  const op = undoEdits[i];
170
193
  if (!range) {
171
194
  range = Range.lift(op.range);
172
- }
173
- else {
195
+ } else {
174
196
  range = Range.plusRange(range, op.range);
175
197
  }
176
198
  }
177
199
  if (range) {
178
200
  const defer = ( new DeferredPromise());
179
- const listener = addDisposableListener(getWindow(undefined), 'animationend', e => {
180
- if (e.animationName === 'kf-chat-editing-atomic-edit') {
201
+ const listener = addDisposableListener(getWindow(undefined), "animationend", e => {
202
+ if (e.animationName === "kf-chat-editing-atomic-edit") {
181
203
  defer.complete();
182
204
  listener.dispose();
183
205
  }
184
206
  });
185
207
  this._editDecorations = this.modifiedModel.deltaDecorations(this._editDecorations, [{
186
- options: ChatEditingTextModelChangeService_1._atomicEditDecorationOptions,
187
- range
188
- }]);
208
+ options: ChatEditingTextModelChangeService_1._atomicEditDecorationOptions,
209
+ range
210
+ }]);
189
211
  await Promise.any([defer.p, timeout(500)]);
190
212
  listener.dispose();
191
213
  }
192
214
  }
193
- }
194
- else {
215
+ } else {
195
216
  const ops = ( textEdits.map(TextEdit.asEditOperation));
196
217
  const undoEdits = this._applyEdits(ops, source);
197
218
  maxLineNumber = undoEdits.reduce((max, op) => Math.max(max, op.range.startLineNumber), 0);
198
219
  rewriteRatio = Math.min(1, maxLineNumber / this.modifiedModel.getLineCount());
199
220
  const newDecorations = [
200
- {
201
- options: ChatEditingTextModelChangeService_1._pendingEditDecorationOptions,
202
- range: ( new Range(maxLineNumber + 1, 1, Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER))
203
- }
204
- ];
221
+ {
222
+ options: ChatEditingTextModelChangeService_1._pendingEditDecorationOptions,
223
+ range: ( new Range(maxLineNumber + 1, 1, Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER))
224
+ }];
205
225
  if (maxLineNumber > 0) {
206
226
  newDecorations.push({
207
227
  options: ChatEditingTextModelChangeService_1._lastEditDecorationOptions,
@@ -214,11 +234,16 @@ let ChatEditingTextModelChangeService = class ChatEditingTextModelChangeService
214
234
  this._updateDiffInfoSeq();
215
235
  this._editDecorationClear.schedule();
216
236
  }
217
- return { rewriteRatio, maxLineNumber };
237
+ return {
238
+ rewriteRatio,
239
+ maxLineNumber
240
+ };
218
241
  }
219
242
  _createEditSource(responseModel) {
220
243
  if (!responseModel) {
221
- return EditSources.unknown({ name: 'editSessionUndoRedo' });
244
+ return EditSources.unknown({
245
+ name: "editSessionUndoRedo"
246
+ });
222
247
  }
223
248
  const sessionId = responseModel.session.sessionId;
224
249
  const request = responseModel.session.getRequests().at(-1);
@@ -231,7 +256,7 @@ let ChatEditingTextModelChangeService = class ChatEditingTextModelChangeService
231
256
  requestId: request?.id,
232
257
  sessionId,
233
258
  languageId,
234
- extensionId,
259
+ extensionId
235
260
  });
236
261
  }
237
262
  return EditSources.chatApplyEdits({
@@ -241,7 +266,7 @@ let ChatEditingTextModelChangeService = class ChatEditingTextModelChangeService
241
266
  languageId,
242
267
  mode: request?.modeInfo?.modeId,
243
268
  extensionId,
244
- codeBlockSuggestionId: request?.modeInfo?.applyCodeBlockSuggestionId,
269
+ codeBlockSuggestionId: request?.modeInfo?.applyCodeBlockSuggestionId
245
270
  });
246
271
  }
247
272
  _applyEdits(edits, source) {
@@ -251,25 +276,36 @@ let ChatEditingTextModelChangeService = class ChatEditingTextModelChangeService
251
276
  try {
252
277
  this._isEditFromUs = true;
253
278
  let result = [];
254
- this.modifiedModel.pushEditOperations(null, edits, (undoEdits) => {
279
+ this.modifiedModel.pushEditOperations(null, edits, undoEdits => {
255
280
  result = undoEdits;
256
281
  return null;
257
282
  }, undefined, source);
258
283
  return result;
259
- }
260
- finally {
284
+ } finally {
261
285
  this._isEditFromUs = false;
262
286
  }
263
287
  }
264
288
  keep() {
265
- this.notifyHunkAction('accepted', { linesAdded: this.linesAdded, linesRemoved: this.linesRemoved, lineCount: this.lineChangeCount, hasRemainingEdits: false });
289
+ this.notifyHunkAction("accepted", {
290
+ linesAdded: this.linesAdded,
291
+ linesRemoved: this.linesRemoved,
292
+ lineCount: this.lineChangeCount,
293
+ hasRemainingEdits: false
294
+ });
266
295
  this.originalModel.setValue(this.modifiedModel.createSnapshot());
267
296
  this._reset();
268
297
  }
269
298
  undo() {
270
- this.notifyHunkAction('rejected', { linesAdded: this.linesAdded, linesRemoved: this.linesRemoved, lineCount: this.lineChangeCount, hasRemainingEdits: false });
299
+ this.notifyHunkAction("rejected", {
300
+ linesAdded: this.linesAdded,
301
+ linesRemoved: this.linesRemoved,
302
+ lineCount: this.lineChangeCount,
303
+ hasRemainingEdits: false
304
+ });
271
305
  this.modifiedModel.pushStackElement();
272
- this._applyEdits([(EditOperation.replace(this.modifiedModel.getFullModelRange(), this.originalModel.getValue()))], EditSources.chatUndoEdits());
306
+ this._applyEdits([
307
+ (EditOperation.replace(this.modifiedModel.getFullModelRange(), this.originalModel.getValue()))
308
+ ], EditSources.chatUndoEdits());
273
309
  this.modifiedModel.pushStackElement();
274
310
  this._reset();
275
311
  }
@@ -286,7 +322,9 @@ let ChatEditingTextModelChangeService = class ChatEditingTextModelChangeService
286
322
  }
287
323
  if (newModified !== undefined && this.modifiedModel.getValue() !== newModified) {
288
324
  this.modifiedModel.pushStackElement();
289
- this._applyEdits([(EditOperation.replace(this.modifiedModel.getFullModelRange(), newModified))], EditSources.chatReset());
325
+ this._applyEdits([
326
+ (EditOperation.replace(this.modifiedModel.getFullModelRange(), newModified))
327
+ ], EditSources.chatReset());
290
328
  this.modifiedModel.pushStackElement();
291
329
  didChange = true;
292
330
  }
@@ -304,15 +342,13 @@ let ChatEditingTextModelChangeService = class ChatEditingTextModelChangeService
304
342
  if (isExternalEdit) {
305
343
  this._updateDiffInfoSeq();
306
344
  }
307
- }
308
- else {
345
+ } else {
309
346
  const e_ai = this._originalToModifiedEdit;
310
347
  const e_user = edit;
311
348
  const e_user_r = e_user.tryRebase(e_ai.inverse(this.originalModel.getValue()));
312
349
  if (e_user_r === undefined) {
313
350
  this._originalToModifiedEdit = e_ai.compose(e_user);
314
- }
315
- else {
351
+ } else {
316
352
  const edits = offsetEditToEditOperations(e_user_r, this.originalModel);
317
353
  this.originalModel.applyEdits(edits);
318
354
  this._originalToModifiedEdit = e_ai.rebaseSkipConflicting(e_user_r);
@@ -335,11 +371,13 @@ let ChatEditingTextModelChangeService = class ChatEditingTextModelChangeService
335
371
  edits.push(EditOperation.replace(edit.originalRange, newText));
336
372
  }
337
373
  this.originalModel.pushEditOperations(null, edits, _ => null);
338
- await this._updateDiffInfoSeq('accepted');
374
+ await this._updateDiffInfoSeq("accepted");
339
375
  if (this._diffInfo.get().identical) {
340
376
  this._didAcceptOrRejectAllHunks.fire(ModifiedFileEntryState.Accepted);
341
377
  }
342
- this._accessibilitySignalService.playSignal(AccessibilitySignal.editsKept, { allowManyInParallel: true });
378
+ this._accessibilitySignalService.playSignal(AccessibilitySignal.editsKept, {
379
+ allowManyInParallel: true
380
+ });
343
381
  return true;
344
382
  }
345
383
  async _undoHunk(change) {
@@ -352,11 +390,13 @@ let ChatEditingTextModelChangeService = class ChatEditingTextModelChangeService
352
390
  edits.push(EditOperation.replace(edit.modifiedRange, newText));
353
391
  }
354
392
  this.modifiedModel.pushEditOperations(null, edits, _ => null);
355
- await this._updateDiffInfoSeq('rejected');
393
+ await this._updateDiffInfoSeq("rejected");
356
394
  if (this._diffInfo.get().identical) {
357
395
  this._didAcceptOrRejectAllHunks.fire(ModifiedFileEntryState.Rejected);
358
396
  }
359
- this._accessibilitySignalService.playSignal(AccessibilitySignal.editsUndone, { allowManyInParallel: true });
397
+ this._accessibilitySignalService.playSignal(AccessibilitySignal.editsUndone, {
398
+ allowManyInParallel: true
399
+ });
360
400
  return true;
361
401
  }
362
402
  async getDiffInfo() {
@@ -405,7 +445,7 @@ let ChatEditingTextModelChangeService = class ChatEditingTextModelChangeService
405
445
  ignoreTrimWhitespace: false,
406
446
  computeMoves: false,
407
447
  maxComputationTimeMs: 3000
408
- }, 'advanced');
448
+ }, "advanced");
409
449
  if (this.originalModel.isDisposed() || this.modifiedModel.isDisposed() || this._store.isDisposed) {
410
450
  return undefined;
411
451
  }
@@ -418,9 +458,6 @@ let ChatEditingTextModelChangeService = class ChatEditingTextModelChangeService
418
458
  return undefined;
419
459
  }
420
460
  };
421
- ChatEditingTextModelChangeService = ChatEditingTextModelChangeService_1 = ( __decorate([
422
- ( __param(4, IEditorWorkerService)),
423
- ( __param(5, IAccessibilitySignalService))
424
- ], ChatEditingTextModelChangeService));
461
+ ChatEditingTextModelChangeService = ChatEditingTextModelChangeService_1 = ( __decorate([( __param(4, IEditorWorkerService)), ( __param(5, IAccessibilitySignalService))], ChatEditingTextModelChangeService));
425
462
 
426
463
  export { ChatEditingTextModelChangeService };
@@ -6,13 +6,21 @@ import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/com
6
6
 
7
7
  var ChatEditingTextModelContentProvider_1;
8
8
  let ChatEditingTextModelContentProvider = class ChatEditingTextModelContentProvider {
9
- static { ChatEditingTextModelContentProvider_1 = this; }
10
- static { this.scheme = Schemas.chatEditingModel; }
9
+ static {
10
+ ChatEditingTextModelContentProvider_1 = this;
11
+ }
12
+ static {
13
+ this.scheme = Schemas.chatEditingModel;
14
+ }
11
15
  static getFileURI(chatSessionResource, documentId, path) {
12
16
  return ( URI.from({
13
17
  scheme: ChatEditingTextModelContentProvider_1.scheme,
14
18
  path,
15
- query: JSON.stringify({ kind: 'doc', documentId, chatSessionResource }),
19
+ query: JSON.stringify({
20
+ kind: "doc",
21
+ documentId,
22
+ chatSessionResource
23
+ })
16
24
  }));
17
25
  }
18
26
  constructor(_chatEditingService, _modelService) {
@@ -33,15 +41,18 @@ let ChatEditingTextModelContentProvider = class ChatEditingTextModelContentProvi
33
41
  return this._modelService.getModel(entry.originalURI);
34
42
  }
35
43
  };
36
- ChatEditingTextModelContentProvider = ChatEditingTextModelContentProvider_1 = ( __decorate([
37
- ( __param(1, IModelService))
38
- ], ChatEditingTextModelContentProvider));
44
+ ChatEditingTextModelContentProvider = ChatEditingTextModelContentProvider_1 = ( __decorate([( __param(1, IModelService))], ChatEditingTextModelContentProvider));
39
45
  let ChatEditingSnapshotTextModelContentProvider = class ChatEditingSnapshotTextModelContentProvider {
40
46
  static getSnapshotFileURI(chatSessionResource, requestId, undoStop, path, scheme) {
41
47
  return ( URI.from({
42
48
  scheme: Schemas.chatEditingSnapshotScheme,
43
49
  path,
44
- query: JSON.stringify({ session: chatSessionResource, requestId: requestId ?? '', undoStop: undoStop ?? '', scheme }),
50
+ query: JSON.stringify({
51
+ session: chatSessionResource,
52
+ requestId: requestId ?? "",
53
+ undoStop: undoStop ?? "",
54
+ scheme
55
+ })
45
56
  }));
46
57
  }
47
58
  constructor(_chatEditingService, _modelService) {
@@ -61,8 +72,6 @@ let ChatEditingSnapshotTextModelContentProvider = class ChatEditingSnapshotTextM
61
72
  return session.getSnapshotModel(data.requestId, data.undoStop || undefined, resource);
62
73
  }
63
74
  };
64
- ChatEditingSnapshotTextModelContentProvider = ( __decorate([
65
- ( __param(1, IModelService))
66
- ], ChatEditingSnapshotTextModelContentProvider));
75
+ ChatEditingSnapshotTextModelContentProvider = ( __decorate([( __param(1, IModelService))], ChatEditingSnapshotTextModelContentProvider));
67
76
 
68
77
  export { ChatEditingSnapshotTextModelContentProvider, ChatEditingTextModelContentProvider };
@@ -8,6 +8,8 @@
8
8
  transition: opacity 0.2s ease-in-out;
9
9
  display: flex;
10
10
  box-shadow: 0 2px 8px var(--vscode-widget-shadow);
11
+ border-radius: 6px;
12
+ overflow: hidden;
11
13
  }
12
14
 
13
15
  .chat-diff-change-content-widget.hover {
@@ -15,25 +17,43 @@
15
17
  }
16
18
 
17
19
  .chat-diff-change-content-widget .monaco-action-bar {
18
- padding: 2px;
19
- border-radius: 2px;
20
- background-color: var(--vscode-button-background);
21
- color: var(--vscode-button-foreground);
20
+ padding: 4px 4px;
21
+ border-radius: 6px;
22
+ background-color: var(--vscode-editorWidget-background);
23
+ color: var(--vscode-foreground);
22
24
  border: 1px solid var(--vscode-contrastBorder);
25
+ overflow: hidden;
26
+ }
27
+
28
+ .chat-diff-change-content-widget .monaco-action-bar .actions-container {
29
+ gap: 4px;
23
30
  }
24
31
 
25
32
  .chat-diff-change-content-widget .monaco-action-bar .action-item .action-label {
26
- border-radius: 2px;
33
+ border-radius: 4px;
34
+ font-size: 11px;
35
+ line-height: 14px;
36
+ padding: 4px 6px;
37
+ }
38
+
39
+ .chat-diff-change-content-widget .monaco-action-bar .action-item.primary .action-label {
40
+ background-color: var(--vscode-button-background);
27
41
  color: var(--vscode-button-foreground);
28
- padding: 2px 5px;
29
42
  }
30
43
 
31
- .chat-diff-change-content-widget .monaco-action-bar .action-item .action-label.codicon {
32
- width: unset;
33
- padding: 2px;
44
+ .monaco-workbench .chat-diff-change-content-widget .monaco-action-bar .action-item.primary .action-label:hover {
45
+ background-color: var(--vscode-button-hoverBackground);
46
+ }
47
+
48
+ .chat-diff-change-content-widget .monaco-action-bar .action-item .action-label.codicon:not(.separator) {
49
+ width: 22px; /* align with default icon button dimensions */
50
+ height: 22px;
51
+ padding: 0;
34
52
  font-size: 16px;
35
- line-height: 16px;
36
- color: var(--vscode-button-foreground);
53
+ line-height: 22px;
54
+ display: flex;
55
+ align-items: center;
56
+ justify-content: center;
37
57
  }
38
58
 
39
59
  .chat-diff-change-content-widget .monaco-action-bar .action-item .action-label.codicon[class*='codicon-'] {