@codingame/monaco-vscode-chat-service-override 23.2.2 → 24.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/index.js +13 -10
  2. package/package.json +5 -41
  3. package/vscode/src/vs/platform/domWidget/browser/domWidget.d.ts +52 -0
  4. package/vscode/src/vs/platform/domWidget/browser/domWidget.js +53 -0
  5. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +10 -10
  6. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +61 -50
  7. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.d.ts +18 -0
  8. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +152 -0
  9. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.d.ts +2 -2
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +14 -14
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +37 -28
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +9 -9
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +2 -2
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +4 -4
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.d.ts +3 -5
  16. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +7 -11
  17. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +10 -10
  18. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +12 -14
  19. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +21 -18
  20. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +27 -18
  21. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +4 -4
  22. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.d.ts +1 -1
  23. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +11 -11
  24. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.d.ts +6 -27
  25. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.js +44 -208
  26. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +17 -17
  27. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +17 -17
  28. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +1 -1
  29. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +23 -24
  30. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.d.ts +1 -0
  31. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +140 -0
  32. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +85 -0
  33. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +358 -0
  34. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +55 -0
  35. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +222 -0
  36. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +37 -0
  37. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +241 -0
  38. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.d.ts +13 -0
  39. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.js +27 -0
  40. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.d.ts +11 -19
  41. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.js +67 -230
  42. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +65 -33
  43. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +186 -62
  44. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.d.ts +23 -0
  45. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.js +140 -0
  46. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsview.css +2 -7
  47. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +115 -29
  48. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +389 -166
  49. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.d.ts +9 -6
  50. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +22 -16
  51. package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.d.ts +1 -1
  52. package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.js +8 -8
  53. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.d.ts +1 -1
  54. package/vscode/src/vs/workbench/contrib/chat/browser/chatContextService.d.ts +10 -3
  55. package/vscode/src/vs/workbench/contrib/chat/browser/chatContextService.js +63 -3
  56. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimeline.d.ts +7 -3
  57. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.d.ts +14 -5
  58. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +173 -32
  59. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.d.ts +1 -0
  60. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +66 -17
  61. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +32 -29
  62. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +12 -12
  63. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +4 -2
  64. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +9 -6
  65. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +2 -2
  66. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +6 -4
  67. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +4 -4
  68. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +8 -18
  69. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.d.ts +1 -0
  70. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.js +12 -1
  71. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +5 -6
  72. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +15 -24
  73. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +13 -11
  74. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +66 -50
  75. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.d.ts +3 -2
  76. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +6 -5
  77. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.d.ts +3 -1
  78. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +7 -0
  79. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.d.ts +2 -2
  80. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +6 -7
  81. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.d.ts +3 -3
  82. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.js +4 -4
  83. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.d.ts +2 -2
  84. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.js +1 -1
  85. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.d.ts +1 -1
  86. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +15 -4
  87. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.d.ts +1 -1
  88. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.js +3 -4
  89. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js +30 -37
  90. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +13 -10
  91. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +23 -32
  92. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -9
  93. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +1 -1
  94. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +20 -19
  95. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
  96. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.d.ts +47 -15
  97. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +270 -143
  98. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +3 -2
  99. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +310 -170
  100. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +10 -10
  101. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +12 -2
  102. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.d.ts +1 -1
  103. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
  104. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +42 -42
  105. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.d.ts +3 -1
  106. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +35 -25
  107. package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.d.ts +1 -1
  108. package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +4 -4
  109. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.d.ts +1 -4
  110. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.js +22 -26
  111. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.d.ts +18 -14
  112. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.js +80 -72
  113. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.d.ts +2 -8
  114. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.js +48 -77
  115. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.d.ts +16 -17
  116. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.js +257 -77
  117. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +55 -0
  118. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +34 -0
  119. package/vscode/src/vs/workbench/contrib/chat/browser/{chatSetup.d.ts → chatSetup/chatSetupContributions.d.ts} +4 -11
  120. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +622 -0
  121. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.d.ts +53 -0
  122. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +359 -0
  123. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +89 -0
  124. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +667 -0
  125. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +37 -0
  126. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +260 -0
  127. package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatSetup/media}/chatSetup.css +4 -6
  128. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatus.d.ts +4 -0
  129. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatus.js +21 -0
  130. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +55 -0
  131. package/vscode/src/vs/workbench/contrib/chat/browser/{chatStatus.js → chatStatus/chatStatusDashboard.js} +193 -325
  132. package/vscode/src/vs/workbench/contrib/chat/browser/{chatStatus.d.ts → chatStatus/chatStatusEntry.d.ts} +1 -1
  133. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +190 -0
  134. package/vscode/src/vs/workbench/contrib/chat/browser/{chatStatusItemService.d.ts → chatStatus/chatStatusItemService.d.ts} +1 -1
  135. package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatStatus/media}/chatStatus.css +22 -1
  136. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatusWidget.d.ts +25 -0
  137. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatusWidget.js +108 -0
  138. package/vscode/src/vs/workbench/contrib/chat/browser/chatTerminalOutputAccessibleView.d.ts +10 -0
  139. package/vscode/src/vs/workbench/contrib/chat/browser/chatTerminalOutputAccessibleView.js +34 -0
  140. package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +1 -1
  141. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +57 -18
  142. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +478 -146
  143. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewTitleControl.d.ts +43 -0
  144. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewTitleControl.js +204 -0
  145. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidgetService.d.ts +44 -0
  146. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidgetService.js +187 -0
  147. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.d.ts +1 -1
  148. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +108 -62
  149. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.d.ts +1 -1
  150. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +3 -3
  151. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsConfirmationService.d.ts +1 -1
  152. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsConfirmationService.js +37 -32
  153. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +37 -20
  154. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +232 -97
  155. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatStatusWidget.css +57 -0
  156. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewPane.css +142 -0
  157. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewTitleControl.css +39 -0
  158. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +51 -35
  159. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionContribution.js +1 -1
  160. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +5 -4
  161. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileActions.js +2 -2
  162. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +5 -5
  163. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +12 -12
  164. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +19 -21
  165. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.d.ts +1 -1
  166. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +8 -8
  167. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +16 -16
  168. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +6 -6
  169. package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.d.ts +1 -1
  170. package/vscode/src/vs/workbench/contrib/chat/common/chatModelStore.d.ts +49 -0
  171. package/vscode/src/vs/workbench/contrib/chat/common/chatModelStore.js +100 -0
  172. package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +1 -0
  173. package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +2 -1
  174. package/vscode/src/vs/workbench/contrib/chat/common/chatResponseResourceFileSystemProvider.js +3 -4
  175. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +41 -15
  176. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +208 -162
  177. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.d.ts +3 -3
  178. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.d.ts +15 -7
  179. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +61 -7
  180. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.d.ts +3 -2
  181. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +2 -2
  182. package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.js +1 -1
  183. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +10 -10
  184. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +2 -2
  185. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.js +3 -3
  186. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.d.ts +5 -1
  187. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +60 -43
  188. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +1 -1
  189. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +27 -4
  190. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +37 -47
  191. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +5 -3
  192. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +120 -87
  193. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +1 -1
  194. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +49 -42
  195. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +293 -187
  196. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +17 -5
  197. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +43 -9
  198. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +2 -0
  199. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +48 -29
  200. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.d.ts +1 -1
  201. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +2 -2
  202. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +8 -13
  203. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +1 -1
  204. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +2 -2
  205. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +3 -3
  206. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +36 -41
  207. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +3 -3
  208. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.d.ts +2 -2
  209. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.js +2 -2
  210. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
  211. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminal.chat.contribution.js +1 -1
  212. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +18 -18
  213. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibleView.js +1 -1
  214. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +142 -38
  215. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.d.ts +1 -1
  216. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +3 -7
  217. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatEnabler.js +1 -1
  218. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +19 -2
  219. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +78 -6
  220. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.d.ts +7 -11
  221. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +26 -44
  222. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandLineAutoApprover.js +3 -3
  223. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +1 -1
  224. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +9 -0
  225. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +0 -1
  226. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +23 -17
  227. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +1 -1
  228. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +4 -2
  229. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +2 -0
  230. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +26 -5
  231. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +3 -1
  232. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +32 -4
  233. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +15 -29
  234. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +10 -7
  235. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +12 -0
  236. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +3 -1
  237. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +38 -19
  238. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +1 -0
  239. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +32 -7
  240. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +5 -4
  241. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +4 -3
  242. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +4 -3
  243. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +1 -0
  244. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +128 -62
  245. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +2 -2
  246. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +12 -2
  247. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +5 -2
  248. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +68 -22
  249. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +20 -22
  250. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +13 -12
  251. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +20 -19
  252. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.d.ts +1 -1
  253. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
  254. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +12 -0
  255. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.js +72 -0
  256. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +1 -2
  257. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +5 -17
  258. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionViewModel.d.ts +0 -53
  259. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionViewModel.js +0 -154
  260. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +0 -7
  261. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +0 -13
  262. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionTracker.d.ts +0 -25
  263. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionTracker.js +0 -135
  264. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/localChatSessionsProvider.d.ts +0 -35
  265. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/localChatSessionsProvider.js +0 -216
  266. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +0 -1617
  267. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.d.ts +0 -44
  268. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +0 -313
  269. /package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatSetup/media}/apple-dark.svg +0 -0
  270. /package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatSetup/media}/apple-light.svg +0 -0
  271. /package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatSetup/media}/github.svg +0 -0
  272. /package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatSetup/media}/google.svg +0 -0
  273. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatStatusItemService.js → chatStatus/chatStatusItemService.js} +0 -0
@@ -1,5 +1,4 @@
1
1
  import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
- import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
3
2
  import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
4
3
  import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
5
4
  import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
@@ -10,14 +9,12 @@ export declare class ChatSessionsView extends Disposable implements IWorkbenchCo
10
9
  private registerViewContainer;
11
10
  }
12
11
  export declare class ChatSessionsViewContrib extends Disposable implements IWorkbenchContribution {
13
- private readonly instantiationService;
14
12
  private readonly chatSessionsService;
15
13
  private readonly logService;
16
14
  private readonly productService;
17
15
  static readonly ID = "workbench.contrib.chatSessions";
18
- private readonly sessionTracker;
19
16
  private readonly registeredViewDescriptors;
20
- constructor(instantiationService: IInstantiationService, chatSessionsService: IChatSessionsService, logService: ILogService, productService: IProductService);
17
+ constructor(chatSessionsService: IChatSessionsService, logService: ILogService, productService: IProductService);
21
18
  private getAllChatSessionItemProviders;
22
19
  private updateViewRegistration;
23
20
  private registerViews;
@@ -16,7 +16,7 @@ import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platfo
16
16
  import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
17
17
  import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
18
18
  import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
19
- import { ViewPaneContainer } from '@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
19
+ import { ViewPaneContainer } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
20
20
  import { Extensions, ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
21
21
  import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
22
22
  import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
@@ -24,9 +24,8 @@ import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/
24
24
  import { ChatContextKeyExprs } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
25
25
  import { localChatSessionType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService';
26
26
  import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
27
- import { AGENT_SESSIONS_VIEWLET_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
28
- import { ACTION_ID_OPEN_CHAT } from '@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-81911735d1c7-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
29
- import { ChatSessionTracker } from '../chatSessionTracker.js';
27
+ import { LEGACY_AGENT_SESSIONS_VIEW_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
28
+ import { ACTION_ID_OPEN_CHAT } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
30
29
  import { SessionsViewPane } from './sessionsViewPane.js';
31
30
 
32
31
  class ChatSessionsView extends Disposable {
@@ -37,8 +36,8 @@ class ChatSessionsView extends Disposable {
37
36
  }
38
37
  registerViewContainer() {
39
38
  ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
40
- id: AGENT_SESSIONS_VIEWLET_ID,
41
- title: ( localize2(5422, "Agent Sessions")),
39
+ id: LEGACY_AGENT_SESSIONS_VIEW_ID,
40
+ title: ( localize2(5504, "Agent Sessions")),
42
41
  ctorDescriptor: ( new SyncDescriptor(ChatSessionsViewPaneContainer)),
43
42
  hideIfEmpty: true,
44
43
  icon: registerIcon('chat-sessions-icon', Codicon.commentDiscussionSparkle, 'Icon for Agent Sessions View'),
@@ -48,14 +47,12 @@ class ChatSessionsView extends Disposable {
48
47
  }
49
48
  let ChatSessionsViewContrib = class ChatSessionsViewContrib extends Disposable {
50
49
  static { this.ID = 'workbench.contrib.chatSessions'; }
51
- constructor(instantiationService, chatSessionsService, logService, productService) {
50
+ constructor(chatSessionsService, logService, productService) {
52
51
  super();
53
- this.instantiationService = instantiationService;
54
52
  this.chatSessionsService = chatSessionsService;
55
53
  this.logService = logService;
56
54
  this.productService = productService;
57
55
  this.registeredViewDescriptors = ( new Map());
58
- this.sessionTracker = this._register(this.instantiationService.createInstance(ChatSessionTracker));
59
56
  void this.updateViewRegistration();
60
57
  this._register(this.chatSessionsService.onDidChangeItemsProviders(() => {
61
58
  void this.updateViewRegistration();
@@ -70,7 +67,7 @@ let ChatSessionsViewContrib = class ChatSessionsViewContrib extends Disposable {
70
67
  async updateViewRegistration() {
71
68
  const contributions = this.chatSessionsService.getAllChatSessionContributions();
72
69
  await Promise.all(( contributions.map(
73
- contrib => this.chatSessionsService.hasChatSessionItemProvider(contrib.type)
70
+ contrib => this.chatSessionsService.activateChatSessionItemProvider(contrib.type)
74
71
  )));
75
72
  const currentProviders = this.getAllChatSessionItemProviders();
76
73
  const currentProviderIds = ( new Set(( currentProviders.map(p => p.chatSessionType))));
@@ -82,7 +79,7 @@ let ChatSessionsViewContrib = class ChatSessionsViewContrib extends Disposable {
82
79
  }
83
80
  }
84
81
  if (viewsToUnregister.length > 0) {
85
- const container = ( Registry.as(Extensions.ViewContainersRegistry)).get(AGENT_SESSIONS_VIEWLET_ID);
82
+ const container = ( Registry.as(Extensions.ViewContainersRegistry)).get(LEGACY_AGENT_SESSIONS_VIEW_ID);
86
83
  if (container) {
87
84
  ( Registry.as(Extensions.ViewsRegistry)).deregisterViews(viewsToUnregister, container);
88
85
  }
@@ -90,7 +87,7 @@ let ChatSessionsViewContrib = class ChatSessionsViewContrib extends Disposable {
90
87
  this.registerViews(contributions);
91
88
  }
92
89
  async registerViews(extensionPointContributions) {
93
- const container = ( Registry.as(Extensions.ViewContainersRegistry)).get(AGENT_SESSIONS_VIEWLET_ID);
90
+ const container = ( Registry.as(Extensions.ViewContainersRegistry)).get(LEGACY_AGENT_SESSIONS_VIEW_ID);
94
91
  const providers = this.getAllChatSessionItemProviders();
95
92
  if (container && providers.length > 0) {
96
93
  const viewDescriptorsToRegister = [];
@@ -100,7 +97,7 @@ let ChatSessionsViewContrib = class ChatSessionsViewContrib extends Disposable {
100
97
  const providersWithDisplayNames = ( otherProviders.map(provider => {
101
98
  const extContribution = extensionPointContributions.find(c => c.type === provider.chatSessionType);
102
99
  if (!extContribution) {
103
- this.logService.warn(`No extension contribution found for chat session type: ${provider.chatSessionType}`);
100
+ this.logService.trace(`No extension contribution found for chat session type: ${provider.chatSessionType}`);
104
101
  return null;
105
102
  }
106
103
  return {
@@ -136,14 +133,14 @@ let ChatSessionsViewContrib = class ChatSessionsViewContrib extends Disposable {
136
133
  ];
137
134
  orderedProviders.forEach(({ provider, displayName, baseOrder, when }) => {
138
135
  if (!( this.registeredViewDescriptors.has(provider.chatSessionType))) {
139
- const viewId = `${AGENT_SESSIONS_VIEWLET_ID}.${provider.chatSessionType}`;
136
+ const viewId = `${LEGACY_AGENT_SESSIONS_VIEW_ID}.${provider.chatSessionType}`;
140
137
  const viewDescriptor = {
141
138
  id: viewId,
142
139
  name: {
143
140
  value: displayName,
144
141
  original: displayName,
145
142
  },
146
- ctorDescriptor: ( new SyncDescriptor(SessionsViewPane, [provider, this.sessionTracker, viewId])),
143
+ ctorDescriptor: ( new SyncDescriptor(SessionsViewPane, [provider, viewId])),
147
144
  canToggleVisibility: true,
148
145
  canMoveView: true,
149
146
  order: baseOrder,
@@ -155,7 +152,7 @@ let ChatSessionsViewContrib = class ChatSessionsViewContrib extends Disposable {
155
152
  const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
156
153
  this._register(viewsRegistry.registerViewWelcomeContent(viewDescriptor.id, {
157
154
  content: ( localize(
158
- 5423,
155
+ 5505,
159
156
  "No local chat agent sessions\n[Start an Agent Session](command:{0})",
160
157
  ACTION_ID_OPEN_CHAT
161
158
  )),
@@ -163,16 +160,16 @@ let ChatSessionsViewContrib = class ChatSessionsViewContrib extends Disposable {
163
160
  }
164
161
  }
165
162
  });
166
- const gettingStartedViewId = `${AGENT_SESSIONS_VIEWLET_ID}.gettingStarted`;
163
+ const gettingStartedViewId = `${LEGACY_AGENT_SESSIONS_VIEW_ID}.gettingStarted`;
167
164
  if (!( this.registeredViewDescriptors.has('gettingStarted'))
168
165
  && this.productService.chatSessionRecommendations?.length) {
169
166
  const gettingStartedDescriptor = {
170
167
  id: gettingStartedViewId,
171
168
  name: {
172
- value: ( localize(5424, "Getting Started")),
169
+ value: ( localize(5506, "Getting Started")),
173
170
  original: 'Getting Started',
174
171
  },
175
- ctorDescriptor: ( new SyncDescriptor(SessionsViewPane, [null, this.sessionTracker, gettingStartedViewId])),
172
+ ctorDescriptor: ( new SyncDescriptor(SessionsViewPane, [null, gettingStartedViewId])),
176
173
  canToggleVisibility: true,
177
174
  canMoveView: true,
178
175
  order: 1000,
@@ -189,7 +186,7 @@ let ChatSessionsViewContrib = class ChatSessionsViewContrib extends Disposable {
189
186
  }
190
187
  dispose() {
191
188
  if (this.registeredViewDescriptors.size > 0) {
192
- const container = ( Registry.as(Extensions.ViewContainersRegistry)).get(AGENT_SESSIONS_VIEWLET_ID);
189
+ const container = ( Registry.as(Extensions.ViewContainersRegistry)).get(LEGACY_AGENT_SESSIONS_VIEW_ID);
193
190
  if (container) {
194
191
  const allRegisteredViews = Array.from(( this.registeredViewDescriptors.values()));
195
192
  ( Registry.as(Extensions.ViewsRegistry)).deregisterViews(allRegisteredViews, container);
@@ -200,19 +197,18 @@ let ChatSessionsViewContrib = class ChatSessionsViewContrib extends Disposable {
200
197
  }
201
198
  };
202
199
  ChatSessionsViewContrib = ( __decorate([
203
- ( __param(0, IInstantiationService)),
204
- ( __param(1, IChatSessionsService)),
205
- ( __param(2, ILogService)),
206
- ( __param(3, IProductService))
200
+ ( __param(0, IChatSessionsService)),
201
+ ( __param(1, ILogService)),
202
+ ( __param(2, IProductService))
207
203
  ], ChatSessionsViewContrib));
208
204
  let ChatSessionsViewPaneContainer = class ChatSessionsViewPaneContainer extends ViewPaneContainer {
209
205
  constructor(instantiationService, configurationService, layoutService, contextMenuService, telemetryService, extensionService, themeService, storageService, contextService, viewDescriptorService, logService) {
210
- super(AGENT_SESSIONS_VIEWLET_ID, {
206
+ super(LEGACY_AGENT_SESSIONS_VIEW_ID, {
211
207
  mergeViewWithContainerWhenSingleView: false,
212
208
  }, instantiationService, configurationService, layoutService, contextMenuService, telemetryService, extensionService, themeService, storageService, contextService, viewDescriptorService, logService);
213
209
  }
214
210
  getTitle() {
215
- const title = ( localize(5425, "Agent Sessions"));
211
+ const title = ( localize(5507, "Agent Sessions"));
216
212
  return title;
217
213
  }
218
214
  };
@@ -11,16 +11,14 @@ import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platf
11
11
  import { IContextViewService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
12
12
  import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
13
13
  import { IMarkdownRendererService } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service";
14
- import { IResourceLabel, ResourceLabels } from "@codingame/monaco-vscode-3b5a5cd1-d4ff-500a-b609-57e0cd4afa0a-common/vscode/vs/workbench/browser/labels";
14
+ import { IResourceLabel, ResourceLabels } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/labels";
15
15
  import { ViewContainerLocation } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views";
16
16
  import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
17
17
  import { IWorkbenchLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service";
18
18
  import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
19
19
  import { ChatSessionStatus, IChatSessionItem, IChatSessionItemProvider } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService";
20
20
  import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
21
- import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
22
- import { ChatSessionTracker } from "../chatSessionTracker.js";
23
- import { ChatSessionItemWithProvider } from "@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-81911735d1c7-common/vscode/vs/workbench/contrib/chat/browser/chatSessions/common";
21
+ import { ChatSessionItemWithProvider } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/chatSessions/common";
24
22
  interface ISessionTemplateData {
25
23
  readonly container: HTMLElement;
26
24
  readonly iconLabel: IconLabel;
@@ -32,6 +30,14 @@ interface ISessionTemplateData {
32
30
  readonly statisticsLabel: HTMLElement;
33
31
  readonly customIcon: HTMLElement;
34
32
  }
33
+ export declare class ArchivedSessionItems {
34
+ readonly label: string;
35
+ private readonly items;
36
+ constructor(label: string);
37
+ pushItem(item: ChatSessionItemWithProvider): void;
38
+ getItems(): ChatSessionItemWithProvider[];
39
+ clear(): void;
40
+ }
35
41
  export interface IGettingStartedItem {
36
42
  id: string;
37
43
  label: string;
@@ -62,37 +68,35 @@ export declare class SessionsRenderer extends Disposable implements ITreeRendere
62
68
  private readonly menuService;
63
69
  private readonly contextKeyService;
64
70
  private readonly hoverService;
65
- private readonly chatWidgetService;
66
71
  private readonly chatService;
67
72
  private readonly editorGroupsService;
68
73
  private readonly layoutService;
69
74
  private readonly markdownRendererService;
70
75
  static readonly TEMPLATE_ID = "session";
71
- constructor(viewLocation: ViewContainerLocation | null, contextViewService: IContextViewService, configurationService: IConfigurationService, chatSessionsService: IChatSessionsService, menuService: IMenuService, contextKeyService: IContextKeyService, hoverService: IHoverService, chatWidgetService: IChatWidgetService, chatService: IChatService, editorGroupsService: IEditorGroupsService, layoutService: IWorkbenchLayoutService, markdownRendererService: IMarkdownRendererService);
76
+ constructor(viewLocation: ViewContainerLocation | null, contextViewService: IContextViewService, configurationService: IConfigurationService, chatSessionsService: IChatSessionsService, menuService: IMenuService, contextKeyService: IContextKeyService, hoverService: IHoverService, chatService: IChatService, editorGroupsService: IEditorGroupsService, layoutService: IWorkbenchLayoutService, markdownRendererService: IMarkdownRendererService);
72
77
  get templateId(): string;
73
78
  private getHoverPosition;
74
79
  renderTemplate(container: HTMLElement): ISessionTemplateData;
75
80
  statusToIcon(status?: ChatSessionStatus): ThemeIcon;
81
+ private renderArchivedNode;
76
82
  renderElement(element: ITreeNode<IChatSessionItem, FuzzyScore>, index: number, templateData: ISessionTemplateData): void;
77
83
  disposeElement(_element: ITreeNode<IChatSessionItem, FuzzyScore>, _index: number, templateData: ISessionTemplateData): void;
78
84
  private renderInputBox;
79
85
  disposeTemplate(templateData: ISessionTemplateData): void;
80
86
  }
81
- export declare class SessionsDataSource implements IAsyncDataSource<IChatSessionItemProvider, ChatSessionItemWithProvider> {
87
+ export declare class SessionsDataSource implements IAsyncDataSource<IChatSessionItemProvider, ChatSessionItemWithProvider | ArchivedSessionItems> {
82
88
  private readonly provider;
83
- private readonly chatService;
84
- private readonly sessionTracker;
85
- constructor(provider: IChatSessionItemProvider, chatService: IChatService, sessionTracker: ChatSessionTracker);
86
- hasChildren(element: IChatSessionItemProvider | ChatSessionItemWithProvider): boolean;
87
- getChildren(element: IChatSessionItemProvider | ChatSessionItemWithProvider): Promise<ChatSessionItemWithProvider[]>;
88
- private getHistoryItems;
89
+ private archivedItems;
90
+ constructor(provider: IChatSessionItemProvider);
91
+ hasChildren(element: IChatSessionItemProvider | ChatSessionItemWithProvider | ArchivedSessionItems): boolean;
92
+ getChildren(element: IChatSessionItemProvider | ChatSessionItemWithProvider | ArchivedSessionItems): Promise<(ChatSessionItemWithProvider | ArchivedSessionItems)[]>;
89
93
  }
90
94
  export declare class SessionsDelegate implements IListVirtualDelegate<ChatSessionItemWithProvider> {
91
95
  private readonly configurationService;
92
96
  static readonly ITEM_HEIGHT = 22;
93
97
  static readonly ITEM_HEIGHT_WITH_DESCRIPTION = 44;
94
98
  constructor(configurationService: IConfigurationService);
95
- getHeight(element: ChatSessionItemWithProvider): number;
99
+ getHeight(element: ChatSessionItemWithProvider | ArchivedSessionItems): number;
96
100
  getTemplateId(element: ChatSessionItemWithProvider): string;
97
101
  }
98
102
  export {};
@@ -15,7 +15,6 @@ import { createSingleCallFunction } from '@codingame/monaco-vscode-api/vscode/vs
15
15
  import { isMarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
16
16
  import { KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
17
17
  import { Disposable, DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
18
- import { ResourceSet } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
19
18
  import { MarshalledId } from '@codingame/monaco-vscode-api/vscode/vs/base/common/marshallingIds';
20
19
  import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
21
20
  import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
@@ -34,20 +33,34 @@ import { ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/wo
34
33
  import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
35
34
  import { Position } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService';
36
35
  import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
37
- import { getLocalHistoryDateFormatter } from '@codingame/monaco-vscode-af7aa6ff-f023-5da1-803d-a085ef0e5dc3-common/vscode/vs/workbench/contrib/localHistory/browser/localHistory';
36
+ import { getLocalHistoryDateFormatter } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/localHistory/browser/localHistory';
38
37
  import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
39
- import { ChatSessionStatus, localChatSessionType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService';
38
+ import { ChatSessionStatus } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService';
40
39
  import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
41
- import { chatSessionResourceToId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatUri';
40
+ import { LocalChatSessionUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatUri';
42
41
  import { ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
43
- import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
44
- import { allowedChatMarkdownHtmlTags } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/browser/chatContentMarkdownRenderer';
42
+ import { allowedChatMarkdownHtmlTags } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/chatContentMarkdownRenderer';
45
43
  import * as chatSessions from '../../media/chatSessions.css';
46
- import { isLocalChatSessionItem, getSessionItemContextOverlay, extractTimestamp, processSessionsWithTimeGrouping } from '@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-81911735d1c7-common/vscode/vs/workbench/contrib/chat/browser/chatSessions/common';
47
- import { LocalChatSessionsProvider } from '../localChatSessionsProvider.js';
44
+ import { getSessionItemContextOverlay, extractTimestamp, processSessionsWithTimeGrouping } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/chatSessions/common';
48
45
 
49
46
  var SessionsRenderer_1;
50
47
  registerCss(chatSessions);
48
+ class ArchivedSessionItems {
49
+ constructor(label) {
50
+ this.label = label;
51
+ this.items = ( new Map());
52
+ }
53
+ pushItem(item) {
54
+ const key = ( item.resource.toString());
55
+ this.items.set(key, item);
56
+ }
57
+ getItems() {
58
+ return Array.from(( this.items.values()));
59
+ }
60
+ clear() {
61
+ this.items.clear();
62
+ }
63
+ }
51
64
  class GettingStartedDelegate {
52
65
  getHeight() {
53
66
  return 22;
@@ -82,7 +95,7 @@ class GettingStartedRenderer {
82
95
  let SessionsRenderer = class SessionsRenderer extends Disposable {
83
96
  static { SessionsRenderer_1 = this; }
84
97
  static { this.TEMPLATE_ID = 'session'; }
85
- constructor(viewLocation, contextViewService, configurationService, chatSessionsService, menuService, contextKeyService, hoverService, chatWidgetService, chatService, editorGroupsService, layoutService, markdownRendererService) {
98
+ constructor(viewLocation, contextViewService, configurationService, chatSessionsService, menuService, contextKeyService, hoverService, chatService, editorGroupsService, layoutService, markdownRendererService) {
86
99
  super();
87
100
  this.viewLocation = viewLocation;
88
101
  this.contextViewService = contextViewService;
@@ -91,7 +104,6 @@ let SessionsRenderer = class SessionsRenderer extends Disposable {
91
104
  this.menuService = menuService;
92
105
  this.contextKeyService = contextKeyService;
93
106
  this.hoverService = hoverService;
94
- this.chatWidgetService = chatWidgetService;
95
107
  this.chatService = chatService;
96
108
  this.editorGroupsService = editorGroupsService;
97
109
  this.layoutService = layoutService;
@@ -148,10 +160,23 @@ let SessionsRenderer = class SessionsRenderer extends Disposable {
148
160
  return Codicon.circleOutline;
149
161
  }
150
162
  }
163
+ renderArchivedNode(node, templateData) {
164
+ templateData.customIcon.className = '';
165
+ templateData.descriptionRow.style.display = 'none';
166
+ templateData.timestamp.parentElement.style.display = 'none';
167
+ const childCount = node.getItems().length;
168
+ templateData.iconLabel.setLabel(node.label, undefined, {
169
+ title: childCount === 1 ? ( localize(5508, '1 session')) : ( localize(5509, '{0} sessions', childCount))
170
+ });
171
+ }
151
172
  renderElement(element, index, templateData) {
173
+ if (element.element instanceof ArchivedSessionItems) {
174
+ this.renderArchivedNode(element.element, templateData);
175
+ return;
176
+ }
152
177
  const session = element.element;
153
178
  let editableData;
154
- if (isLocalChatSessionItem(session)) {
179
+ if (LocalChatSessionUri.parseLocalSessionId(session.resource)) {
155
180
  templateData.container.classList.add('local-session');
156
181
  editableData = this.chatSessionsService.getEditableData(session.resource);
157
182
  }
@@ -166,13 +191,13 @@ let SessionsRenderer = class SessionsRenderer extends Disposable {
166
191
  }
167
192
  templateData.actionBar.clear();
168
193
  let iconTheme;
169
- if (!session.iconPath && session.id !== LocalChatSessionsProvider.HISTORY_NODE_ID) {
194
+ if (!session.iconPath) {
170
195
  iconTheme = this.statusToIcon(session.status);
171
196
  }
172
197
  else {
173
198
  iconTheme = session.iconPath;
174
199
  }
175
- const renderDescriptionOnSecondRow = this.configurationService.getValue(ChatConfiguration.ShowAgentSessionsViewDescription) && session.provider.chatSessionType !== localChatSessionType;
200
+ const renderDescriptionOnSecondRow = this.configurationService.getValue(ChatConfiguration.ShowAgentSessionsViewDescription);
176
201
  if (renderDescriptionOnSecondRow && session.description) {
177
202
  templateData.container.classList.toggle('multiline', true);
178
203
  templateData.descriptionRow.style.display = 'flex';
@@ -194,10 +219,22 @@ let SessionsRenderer = class SessionsRenderer extends Disposable {
194
219
  templateData.elementDisposable.add(addDisposableListener(templateData.descriptionLabel, 'auxclick', e => e.stopPropagation()));
195
220
  }
196
221
  clearNode(templateData.statisticsLabel);
222
+ let insertions = 0;
223
+ let deletions = 0;
224
+ if (session.changes instanceof Array) {
225
+ for (const change of session.changes) {
226
+ insertions += change.insertions;
227
+ deletions += change.deletions;
228
+ }
229
+ }
230
+ else if (session.changes) {
231
+ insertions = session.changes.insertions;
232
+ deletions = session.changes.deletions;
233
+ }
197
234
  const insertionNode = append(templateData.statisticsLabel, $('span.insertions'));
198
- insertionNode.textContent = session.statistics ? `+${session.statistics.insertions}` : '';
235
+ insertionNode.textContent = session.changes ? `+${insertions}` : '';
199
236
  const deletionNode = append(templateData.statisticsLabel, $('span.deletions'));
200
- deletionNode.textContent = session.statistics ? `-${session.statistics.deletions}` : '';
237
+ deletionNode.textContent = session.changes ? `-${deletions}` : '';
201
238
  }
202
239
  else {
203
240
  templateData.container.classList.toggle('multiline', false);
@@ -239,7 +276,7 @@ let SessionsRenderer = class SessionsRenderer extends Disposable {
239
276
  if (session.timing?.startTime) {
240
277
  const fullDateTime = getLocalHistoryDateFormatter().format(session.timing.startTime);
241
278
  templateData.elementDisposable.add(this.hoverService.setupDelayedHover(templateData.timestamp, () => ({
242
- content: ( localize(5426, 'Last Activity: {0}', fullDateTime)),
279
+ content: ( localize(5510, 'Last Activity: {0}', fullDateTime)),
243
280
  style: HoverStyle.Pointer,
244
281
  position: { hoverPosition: this.getHoverPosition() }
245
282
  }), { groupId: 'chat.sessions' }));
@@ -248,9 +285,9 @@ let SessionsRenderer = class SessionsRenderer extends Disposable {
248
285
  else {
249
286
  templateData.timestamp.parentElement.style.display = 'none';
250
287
  }
251
- const contextOverlay = getSessionItemContextOverlay(session, session.provider, this.chatWidgetService, this.chatService, this.editorGroupsService);
288
+ const contextOverlay = getSessionItemContextOverlay(session, session.provider, this.chatService, this.editorGroupsService);
252
289
  const contextKeyService = this.contextKeyService.createOverlay(contextOverlay);
253
- const menu = templateData.elementDisposable.add(this.menuService.createMenu(MenuId.ChatSessionsMenu, contextKeyService));
290
+ const menu = templateData.elementDisposable.add(this.menuService.createMenu(MenuId.AgentSessionsContext, contextKeyService));
254
291
  const setupActionBar = () => {
255
292
  templateData.actionBar.clear();
256
293
  const marshalledSession = {
@@ -300,7 +337,7 @@ let SessionsRenderer = class SessionsRenderer extends Disposable {
300
337
  };
301
338
  }
302
339
  },
303
- ariaLabel: ( localize(5427, "Type session name. Press Enter to confirm or Escape to cancel.")),
340
+ ariaLabel: ( localize(5511, "Type session name. Press Enter to confirm or Escape to cancel.")),
304
341
  inputBoxStyles: defaultInputBoxStyles,
305
342
  }));
306
343
  inputBox.value = session.label;
@@ -389,25 +426,22 @@ SessionsRenderer = SessionsRenderer_1 = ( __decorate([
389
426
  ( __param(4, IMenuService)),
390
427
  ( __param(5, IContextKeyService)),
391
428
  ( __param(6, IHoverService)),
392
- ( __param(7, IChatWidgetService)),
393
- ( __param(8, IChatService)),
394
- ( __param(9, IEditorGroupsService)),
395
- ( __param(10, IWorkbenchLayoutService)),
396
- ( __param(11, IMarkdownRendererService))
429
+ ( __param(7, IChatService)),
430
+ ( __param(8, IEditorGroupsService)),
431
+ ( __param(9, IWorkbenchLayoutService)),
432
+ ( __param(10, IMarkdownRendererService))
397
433
  ], SessionsRenderer));
398
434
  class SessionsDataSource {
399
- constructor(provider, chatService, sessionTracker) {
435
+ constructor(provider) {
400
436
  this.provider = provider;
401
- this.chatService = chatService;
402
- this.sessionTracker = sessionTracker;
437
+ this.archivedItems = ( new ArchivedSessionItems(( localize(5512, 'History'))));
403
438
  }
404
439
  hasChildren(element) {
405
- const isProvider = element === this.provider;
406
- if (isProvider) {
440
+ if (element === this.provider) {
407
441
  return true;
408
442
  }
409
- if ('id' in element && element.id === LocalChatSessionsProvider.HISTORY_NODE_ID) {
410
- return true;
443
+ if (element instanceof ArchivedSessionItems) {
444
+ return element.getItems().length > 0;
411
445
  }
412
446
  return false;
413
447
  }
@@ -415,55 +449,29 @@ class SessionsDataSource {
415
449
  if (element === this.provider) {
416
450
  try {
417
451
  const items = await this.provider.provideChatSessionItems(CancellationToken.None);
418
- const itemsWithProvider = ( items.map(item => {
419
- const itemWithProvider = { ...item, provider: this.provider };
420
- itemWithProvider.timing = { startTime: extractTimestamp(item) ?? 0 };
452
+ this.archivedItems.clear();
453
+ const result = ( items.map(item => {
454
+ const itemWithProvider = { ...item, provider: this.provider, timing: { startTime: extractTimestamp(item) ?? 0 } };
455
+ if (itemWithProvider.history) {
456
+ this.archivedItems.pushItem(itemWithProvider);
457
+ return;
458
+ }
421
459
  return itemWithProvider;
422
- }));
423
- if (this.provider.chatSessionType !== localChatSessionType) {
424
- const hybridSessions = await this.sessionTracker.getHybridSessionsForProvider(this.provider);
425
- const existingSessions = ( new ResourceSet());
426
- itemsWithProvider.forEach(s => existingSessions.add(s.resource));
427
- hybridSessions.forEach(session => {
428
- if (!( existingSessions.has(session.resource))) {
429
- itemsWithProvider.push(session);
430
- existingSessions.add(session.resource);
431
- }
432
- });
433
- processSessionsWithTimeGrouping(itemsWithProvider);
460
+ })).filter(item => item !== undefined);
461
+ if (this.archivedItems.getItems().length > 0) {
462
+ result.push(this.archivedItems);
434
463
  }
435
- return itemsWithProvider;
464
+ return result;
436
465
  }
437
466
  catch (error) {
438
467
  return [];
439
468
  }
440
469
  }
441
- if ('id' in element && element.id === LocalChatSessionsProvider.HISTORY_NODE_ID) {
442
- return this.getHistoryItems();
470
+ if (element instanceof ArchivedSessionItems) {
471
+ return processSessionsWithTimeGrouping(element.getItems());
443
472
  }
444
473
  return [];
445
474
  }
446
- async getHistoryItems() {
447
- try {
448
- const allHistory = await this.chatService.getLocalSessionHistory();
449
- const historyItems = ( allHistory.map((historyDetail) => ({
450
- id: chatSessionResourceToId(historyDetail.sessionResource),
451
- resource: historyDetail.sessionResource,
452
- label: historyDetail.title,
453
- iconPath: Codicon.chatSparkle,
454
- provider: this.provider,
455
- timing: {
456
- startTime: historyDetail.lastMessageDate ?? Date.now()
457
- },
458
- isHistory: true,
459
- })));
460
- processSessionsWithTimeGrouping(historyItems);
461
- return historyItems;
462
- }
463
- catch (error) {
464
- return [];
465
- }
466
- }
467
475
  }
468
476
  class SessionsDelegate {
469
477
  static { this.ITEM_HEIGHT = 22; }
@@ -472,7 +480,7 @@ class SessionsDelegate {
472
480
  this.configurationService = configurationService;
473
481
  }
474
482
  getHeight(element) {
475
- if (element.description && this.configurationService.getValue(ChatConfiguration.ShowAgentSessionsViewDescription) && element.provider.chatSessionType !== localChatSessionType) {
483
+ if (this.configurationService.getValue(ChatConfiguration.ShowAgentSessionsViewDescription) && !(element instanceof ArchivedSessionItems) && element.description) {
476
484
  return SessionsDelegate.ITEM_HEIGHT_WITH_DESCRIPTION;
477
485
  }
478
486
  else {
@@ -484,4 +492,4 @@ class SessionsDelegate {
484
492
  }
485
493
  }
486
494
 
487
- export { GettingStartedDelegate, GettingStartedRenderer, SessionsDataSource, SessionsDelegate, SessionsRenderer };
495
+ export { ArchivedSessionItems, GettingStartedDelegate, GettingStartedRenderer, SessionsDataSource, SessionsDelegate, SessionsRenderer };
@@ -13,23 +13,17 @@ import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log
13
13
  import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
14
14
  import { IProgressService } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service";
15
15
  import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
16
- import { IViewPaneOptions, ViewPane } from "@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewPane";
16
+ import { IViewPaneOptions, ViewPane } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPane";
17
17
  import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service";
18
18
  import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
19
- import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
20
- import { IViewsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service";
21
19
  import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
22
20
  import { IChatSessionItemProvider } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService";
23
21
  import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
24
22
  import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
25
- import { ChatSessionTracker } from "../chatSessionTracker.js";
26
23
  export declare class SessionsViewPane extends ViewPane {
27
24
  private readonly provider;
28
- private readonly sessionTracker;
29
25
  private readonly viewId;
30
26
  private readonly chatService;
31
- private readonly editorService;
32
- private readonly viewsService;
33
27
  private readonly logService;
34
28
  private readonly progressService;
35
29
  private readonly menuService;
@@ -42,7 +36,7 @@ export declare class SessionsViewPane extends ViewPane {
42
36
  private treeContainer;
43
37
  private messageElement?;
44
38
  private _isEmpty;
45
- constructor(provider: IChatSessionItemProvider, sessionTracker: ChatSessionTracker, viewId: string, options: IViewPaneOptions, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService, openerService: IOpenerService, themeService: IThemeService, hoverService: IHoverService, chatService: IChatService, editorService: IEditorService, viewsService: IViewsService, logService: ILogService, progressService: IProgressService, menuService: IMenuService, commandService: ICommandService, chatWidgetService: IChatWidgetService, editorGroupsService: IEditorGroupsService, chatSessionsService: IChatSessionsService);
39
+ constructor(provider: IChatSessionItemProvider, viewId: string, options: IViewPaneOptions, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService, openerService: IOpenerService, themeService: IThemeService, hoverService: IHoverService, chatService: IChatService, logService: ILogService, progressService: IProgressService, menuService: IMenuService, commandService: ICommandService, chatWidgetService: IChatWidgetService, editorGroupsService: IEditorGroupsService, chatSessionsService: IChatSessionsService);
46
40
  shouldShowWelcome(): boolean;
47
41
  createActionViewItem(action: IAction, options: IBaseActionViewItemOptions): IActionViewItem | undefined;
48
42
  private getChatSessionDropdown;