@codingame/monaco-vscode-chat-service-override 24.3.0 → 25.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 (271) hide show
  1. package/index.js +35 -35
  2. package/package.json +5 -5
  3. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAccessibilityService.d.ts → accessibility/chatAccessibilityService.d.ts} +10 -8
  4. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAccessibilityService.js → accessibility/chatAccessibilityService.js} +23 -11
  5. package/vscode/src/vs/workbench/contrib/chat/browser/{chatResponseAccessibleView.d.ts → accessibility/chatResponseAccessibleView.d.ts} +6 -0
  6. package/vscode/src/vs/workbench/contrib/chat/browser/{chatResponseAccessibleView.js → accessibility/chatResponseAccessibleView.js} +38 -10
  7. package/vscode/src/vs/workbench/contrib/chat/browser/{chatTerminalOutputAccessibleView.js → accessibility/chatTerminalOutputAccessibleView.js} +1 -1
  8. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +7 -7
  9. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +69 -60
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +2 -12
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.d.ts +3 -0
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +25 -0
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.d.ts +2 -2
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +24 -22
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +13 -13
  16. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +5 -5
  17. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +48 -4
  18. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +4 -4
  19. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +7 -7
  20. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +12 -12
  21. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +10 -10
  22. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +16 -19
  23. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +4 -4
  24. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
  25. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +35 -19
  26. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.d.ts +4 -3
  27. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +22 -17
  28. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTransfer.d.ts +1 -1
  29. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTransfer.js +1 -1
  30. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +3 -3
  31. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +21 -21
  32. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +31 -53
  33. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +61 -25
  34. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +482 -125
  35. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +16 -13
  36. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +84 -93
  37. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +2 -0
  38. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +10 -8
  39. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.d.ts +7 -0
  40. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +41 -0
  41. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +23 -0
  42. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +137 -0
  43. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.d.ts +15 -0
  44. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +92 -0
  45. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +81 -32
  46. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +335 -102
  47. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.d.ts +3 -2
  48. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.js +47 -51
  49. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +80 -8
  50. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentResolveService.d.ts → attachments/chatAttachmentResolveService.d.ts} +2 -2
  51. package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentResolveService.js → attachments/chatAttachmentResolveService.js} +4 -4
  52. package/vscode/src/vs/workbench/contrib/chat/browser/{chatVariables.d.ts → attachments/chatVariables.d.ts} +3 -3
  53. package/vscode/src/vs/workbench/contrib/chat/browser/{chatVariables.js → attachments/chatVariables.js} +1 -1
  54. package/vscode/src/vs/workbench/contrib/chat/browser/{chatEditing → attachments}/simpleBrowserEditorOverlay.js +21 -21
  55. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +171 -206
  56. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.d.ts +1 -1
  57. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimeline.d.ts +2 -2
  58. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.d.ts +2 -2
  59. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +2 -2
  60. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.d.ts +1 -1
  61. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +3 -3
  62. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorAccessibility.d.ts +1 -1
  63. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorAccessibility.js +1 -1
  64. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +1 -1
  65. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +20 -20
  66. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +14 -14
  67. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +3 -3
  68. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +4 -4
  69. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +4 -4
  70. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +3 -3
  71. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +3 -3
  72. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +3 -3
  73. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.d.ts +1 -1
  74. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.js +1 -1
  75. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +4 -4
  76. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +10 -8
  77. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +5 -5
  78. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +6 -2
  79. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.d.ts +1 -1
  80. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.d.ts +2 -2
  81. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +1 -1
  82. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.d.ts +1 -1
  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 +1 -1
  87. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.d.ts +1 -1
  88. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.js +2 -2
  89. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +5 -5
  90. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +18 -18
  91. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
  92. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +1 -1
  93. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +41 -41
  94. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +10 -10
  95. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
  96. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.d.ts +1 -1
  97. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +35 -35
  98. package/vscode/src/vs/workbench/contrib/chat/browser/{chatSessions.contribution.d.ts → chatSessions/chatSessions.contribution.d.ts} +7 -11
  99. package/vscode/src/vs/workbench/contrib/chat/browser/{chatSessions.contribution.js → chatSessions/chatSessions.contribution.js} +53 -106
  100. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +18 -22
  101. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
  102. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +3 -3
  103. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +29 -29
  104. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +13 -13
  105. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +3 -3
  106. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +64 -64
  107. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
  108. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.d.ts +22 -0
  109. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +90 -0
  110. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContextService.d.ts → contextContrib/chatContextService.d.ts} +3 -3
  111. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContextService.js → contextContrib/chatContextService.js} +1 -1
  112. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +7 -7
  113. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +3 -3
  114. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +3 -3
  115. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
  116. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +8 -8
  117. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +4 -4
  118. package/vscode/src/vs/workbench/contrib/chat/browser/{languageModelToolsConfirmationService.d.ts → tools/languageModelToolsConfirmationService.d.ts} +4 -4
  119. package/vscode/src/vs/workbench/contrib/chat/browser/{languageModelToolsConfirmationService.js → tools/languageModelToolsConfirmationService.js} +47 -58
  120. package/vscode/src/vs/workbench/contrib/chat/browser/{languageModelToolsService.d.ts → tools/languageModelToolsService.d.ts} +5 -5
  121. package/vscode/src/vs/workbench/contrib/chat/browser/{languageModelToolsService.js → tools/languageModelToolsService.js} +21 -21
  122. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.d.ts +1 -1
  123. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +16 -16
  124. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
  125. package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMarkdownAnchorService.d.ts +2 -2
  126. package/vscode/src/vs/workbench/contrib/chat/browser/{chatLayoutService.d.ts → widget/chatLayoutService.d.ts} +1 -1
  127. package/vscode/src/vs/workbench/contrib/chat/browser/{chatWidgetService.d.ts → widget/chatWidgetService.d.ts} +6 -2
  128. package/vscode/src/vs/workbench/contrib/chat/browser/{chatWidgetService.js → widget/chatWidgetService.js} +27 -5
  129. package/vscode/src/vs/workbench/contrib/chat/browser/{chatStatusWidget.d.ts → widget/input/chatStatusWidget.d.ts} +4 -2
  130. package/vscode/src/vs/workbench/contrib/chat/browser/{chatStatusWidget.js → widget/input/chatStatusWidget.js} +17 -10
  131. package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputEditorContrib.js +12 -6
  132. package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputEditorHover.d.ts +1 -1
  133. package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputEditorHover.js +3 -3
  134. package/vscode/src/vs/workbench/contrib/chat/browser/{chatQuick.d.ts → widgetHosts/chatQuick.d.ts} +1 -1
  135. package/vscode/src/vs/workbench/contrib/chat/browser/{chatQuick.js → widgetHosts/chatQuick.js} +4 -4
  136. package/vscode/src/vs/workbench/contrib/chat/browser/{chatEditor.d.ts → widgetHosts/editor/chatEditor.d.ts} +4 -5
  137. package/vscode/src/vs/workbench/contrib/chat/browser/{chatEditor.js → widgetHosts/editor/chatEditor.js} +6 -6
  138. package/vscode/src/vs/workbench/contrib/chat/browser/{chatViewPane.d.ts → widgetHosts/viewPane/chatViewPane.d.ts} +46 -31
  139. package/vscode/src/vs/workbench/contrib/chat/browser/{chatViewPane.js → widgetHosts/viewPane/chatViewPane.js} +258 -154
  140. package/vscode/src/vs/workbench/contrib/chat/browser/{chatViewTitleControl.d.ts → widgetHosts/viewPane/chatViewTitleControl.d.ts} +5 -12
  141. package/vscode/src/vs/workbench/contrib/chat/browser/{chatViewTitleControl.js → widgetHosts/viewPane/chatViewTitleControl.js} +97 -85
  142. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +176 -0
  143. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewTitleControl.css +89 -0
  144. package/vscode/src/vs/workbench/contrib/chat/common/{chatServiceImpl.d.ts → chatService/chatServiceImpl.d.ts} +16 -20
  145. package/vscode/src/vs/workbench/contrib/chat/common/{chatServiceImpl.js → chatService/chatServiceImpl.js} +97 -151
  146. package/vscode/src/vs/workbench/contrib/chat/common/{chatServiceTelemetry.d.ts → chatService/chatServiceTelemetry.d.ts} +4 -4
  147. package/vscode/src/vs/workbench/contrib/chat/common/{chatServiceTelemetry.js → chatService/chatServiceTelemetry.js} +2 -2
  148. package/vscode/src/vs/workbench/contrib/chat/common/{chatCodeMapperService.d.ts → editing/chatCodeMapperService.d.ts} +1 -1
  149. package/vscode/src/vs/workbench/contrib/chat/common/{chatModelStore.d.ts → model/chatModelStore.d.ts} +2 -2
  150. package/vscode/src/vs/workbench/contrib/chat/common/{chatProgressTypes → model/chatProgressTypes}/chatToolInvocation.d.ts +2 -2
  151. package/vscode/src/vs/workbench/contrib/chat/common/{chatProgressTypes → model/chatProgressTypes}/chatToolInvocation.js +4 -4
  152. package/vscode/src/vs/workbench/contrib/chat/common/{chatSessionStore.d.ts → model/chatSessionStore.d.ts} +14 -7
  153. package/vscode/src/vs/workbench/contrib/chat/common/{chatSessionStore.js → model/chatSessionStore.js} +164 -39
  154. package/vscode/src/vs/workbench/contrib/chat/common/{chatTransferService.d.ts → model/chatTransferService.d.ts} +3 -3
  155. package/vscode/src/vs/workbench/contrib/chat/common/{chatTransferService.js → model/chatTransferService.js} +1 -1
  156. package/vscode/src/vs/workbench/contrib/chat/common/{chatSlashCommands.d.ts → participants/chatSlashCommands.d.ts} +2 -2
  157. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +25 -49
  158. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.d.ts +1 -1
  159. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.js +2 -2
  160. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.d.ts +1 -1
  161. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +6 -6
  162. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +1 -1
  163. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +3 -3
  164. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +1 -1
  165. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +29 -29
  166. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +1 -1
  167. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +54 -54
  168. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +11 -4
  169. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +83 -18
  170. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +11 -5
  171. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +27 -10
  172. package/vscode/src/vs/workbench/contrib/chat/common/{chatTodoListService.d.ts → tools/chatTodoListService.d.ts} +1 -1
  173. package/vscode/src/vs/workbench/contrib/chat/common/{chatTodoListService.js → tools/chatTodoListService.js} +1 -1
  174. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +1 -1
  175. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +29 -29
  176. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.d.ts +2 -2
  177. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +3 -3
  178. package/vscode/src/vs/workbench/contrib/chat/common/{chatResponseResourceFileSystemProvider.d.ts → widget/chatResponseResourceFileSystemProvider.d.ts} +1 -1
  179. package/vscode/src/vs/workbench/contrib/chat/common/{chatResponseResourceFileSystemProvider.js → widget/chatResponseResourceFileSystemProvider.js} +4 -4
  180. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +5 -5
  181. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +1 -1
  182. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +23 -23
  183. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
  184. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.js +1 -1
  185. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css +1 -0
  186. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
  187. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +47 -30
  188. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +1 -1
  189. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatEnabler.d.ts +1 -1
  190. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatEnabler.js +1 -1
  191. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +15 -1
  192. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +33 -11
  193. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.d.ts +4 -3
  194. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +6 -5
  195. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.d.ts +1 -1
  196. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +12 -2
  197. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +1 -0
  198. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +17 -2
  199. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +12 -2
  200. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +10 -1
  201. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +22 -1
  202. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +3 -2
  203. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +100 -23
  204. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +1 -1
  205. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +6 -6
  206. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +2 -1
  207. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +19 -6
  208. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{commandLineAutoApprover.d.ts → tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.d.ts} +11 -12
  209. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{commandLineAutoApprover.js → tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js} +83 -6
  210. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.d.ts +45 -0
  211. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +156 -0
  212. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +17 -2
  213. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.js +10 -0
  214. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +1 -1
  215. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +64 -26
  216. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +1 -0
  217. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +16 -8
  218. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.d.ts +14 -0
  219. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.js +31 -0
  220. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.d.ts +1 -1
  221. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +4 -4
  222. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.d.ts +1 -1
  223. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +4 -4
  224. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.d.ts +1 -1
  225. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +4 -4
  226. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +3 -2
  227. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +55 -23
  228. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.d.ts +1 -1
  229. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +3 -3
  230. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +3 -3
  231. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +85 -46
  232. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.d.ts +1 -1
  233. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +16 -16
  234. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.d.ts +1 -1
  235. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +9 -9
  236. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.d.ts +1 -1
  237. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +16 -16
  238. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.d.ts +1 -1
  239. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +9 -5
  240. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +1 -1
  241. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.d.ts +0 -46
  242. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.js +0 -248
  243. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.d.ts +0 -36
  244. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.js +0 -184
  245. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsview.css +0 -19
  246. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.d.ts +0 -22
  247. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.js +0 -229
  248. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.d.ts +0 -102
  249. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.js +0 -495
  250. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.d.ts +0 -64
  251. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.js +0 -386
  252. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatSessions.css +0 -299
  253. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewPane.css +0 -142
  254. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewTitleControl.css +0 -39
  255. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatTerminalOutputAccessibleView.d.ts → accessibility/chatTerminalOutputAccessibleView.d.ts} +0 -0
  256. /package/vscode/src/vs/workbench/contrib/chat/browser/{media → attachments/media}/simpleBrowserOverlay.css +0 -0
  257. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatEditing → attachments}/simpleBrowserEditorOverlay.d.ts +0 -0
  258. /package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatEditing/media}/chatEditingEditorOverlay.css +0 -0
  259. /package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatEditing/media}/chatEditorController.css +0 -0
  260. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMarkdownAnchorService.js +0 -0
  261. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatLayoutService.js → widget/chatLayoutService.js} +0 -0
  262. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatEdinputInputContentProvider.d.ts → widget/input/editor/chatEditorInputContentProvider.d.ts} +0 -0
  263. /package/vscode/src/vs/workbench/contrib/chat/browser/{chatEdinputInputContentProvider.js → widget/input/editor/chatEditorInputContentProvider.js} +0 -0
  264. /package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputEditorContrib.d.ts +0 -0
  265. /package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/editorHoverWrapper.d.ts +0 -0
  266. /package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/editorHoverWrapper.js +0 -0
  267. /package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/media/editorHoverWrapper.css +0 -0
  268. /package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/input/media}/chatStatusWidget.css +0 -0
  269. /package/vscode/src/vs/workbench/contrib/chat/common/{chatCodeMapperService.js → editing/chatCodeMapperService.js} +0 -0
  270. /package/vscode/src/vs/workbench/contrib/chat/common/{chatModelStore.js → model/chatModelStore.js} +0 -0
  271. /package/vscode/src/vs/workbench/contrib/chat/common/{chatSlashCommands.js → participants/chatSlashCommands.js} +0 -0
@@ -1,43 +1,36 @@
1
1
  import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
2
  import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
3
3
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
4
- import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service";
5
- import { IChatModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModel";
4
+ import { IChatModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
6
5
  export interface IChatViewTitleDelegate {
7
- updateTitle(title: string): void;
8
6
  focusChat(): void;
9
7
  }
10
8
  export declare class ChatViewTitleControl extends Disposable {
11
9
  private readonly container;
12
10
  private readonly delegate;
13
11
  private readonly configurationService;
14
- private readonly viewDescriptorService;
15
12
  private readonly instantiationService;
16
13
  private static readonly DEFAULT_TITLE;
14
+ private static readonly PICK_AGENT_SESSION_ACTION_ID;
17
15
  private readonly _onDidChangeHeight;
18
16
  readonly onDidChangeHeight: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
19
- private get viewContainerModel();
20
17
  private title;
21
18
  private titleContainer;
22
19
  private titleLabel;
23
- private titleIcon;
24
20
  private model;
25
21
  private modelDisposables;
26
22
  private navigationToolbar?;
27
23
  private actionsToolbar?;
28
24
  private lastKnownHeight;
29
- constructor(container: HTMLElement, delegate: IChatViewTitleDelegate, configurationService: IConfigurationService, viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService);
25
+ constructor(container: HTMLElement, delegate: IChatViewTitleDelegate, configurationService: IConfigurationService, instantiationService: IInstantiationService);
30
26
  private registerListeners;
27
+ private registerActions;
31
28
  private render;
32
29
  update(model: IChatModel | undefined): void;
33
30
  private doUpdate;
34
- private updateIcon;
35
- private getIcon;
36
- private getIconHoverContent;
37
31
  private updateTitle;
32
+ private getIcon;
38
33
  private shouldRender;
39
34
  private isEnabled;
40
- getSingleViewPaneContainerTitle(): string | undefined;
41
- private getTitleWithPrefix;
42
35
  getHeight(): number;
43
36
  }
@@ -2,10 +2,9 @@
2
2
  import { registerCss } from '@codingame/monaco-vscode-api/css';
3
3
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
4
4
  import * as chatViewTitleControl from './media/chatViewTitleControl.css';
5
- import { h, EventType as EventType$1, addDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
5
+ import { h, EventType as EventType$1, addDisposableListener, show, hide } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
6
6
  import { renderAsPlaintext } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer';
7
7
  import { Gesture, EventType } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/touch';
8
- import { getBaseLayerHoverDelegate } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverDelegate2';
9
8
  import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
10
9
  import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
11
10
  import { Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
@@ -13,76 +12,87 @@ import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/th
13
12
  import { MarshalledId } from '@codingame/monaco-vscode-api/vscode/vs/base/common/marshallingIds';
14
13
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
15
14
  import { MenuWorkbenchToolBar, HiddenItemStrategy } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/toolbar';
16
- import { MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
15
+ import { registerAction2, Action2, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
17
16
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
18
17
  import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
19
- import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
20
- import { LayoutSettings, ActivityBarPosition } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService';
21
18
  import { ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
22
- import { ChatViewId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
23
- import { AgentSessionProviders, getAgentSessionProviderIcon, getAgentSessionProviderName } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
19
+ import { AgentSessionProviders, getAgentSessionProviderIcon } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
20
+ import { ActionViewItem } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionViewItems';
21
+ import { AgentSessionsPicker } from '../../agentSessions/agentSessionsPicker.js';
24
22
 
25
23
  var ChatViewTitleControl_1;
26
24
  registerCss(chatViewTitleControl);
27
25
  let ChatViewTitleControl = class ChatViewTitleControl extends Disposable {
28
26
  static { ChatViewTitleControl_1 = this; }
29
- static { this.DEFAULT_TITLE = ( localize(5650, "Chat")); }
30
- get viewContainerModel() {
31
- const viewContainer = this.viewDescriptorService.getViewContainerByViewId(ChatViewId);
32
- if (viewContainer) {
33
- return this.viewDescriptorService.getViewContainerModel(viewContainer);
34
- }
35
- return undefined;
36
- }
37
- constructor(container, delegate, configurationService, viewDescriptorService, instantiationService) {
27
+ static { this.DEFAULT_TITLE = ( localize(5878, "Chat")); }
28
+ static { this.PICK_AGENT_SESSION_ACTION_ID = 'workbench.action.chat.pickAgentSession'; }
29
+ constructor(container, delegate, configurationService, instantiationService) {
38
30
  super();
39
31
  this.container = container;
40
32
  this.delegate = delegate;
41
33
  this.configurationService = configurationService;
42
- this.viewDescriptorService = viewDescriptorService;
43
34
  this.instantiationService = instantiationService;
44
35
  this._onDidChangeHeight = this._register(( new Emitter()));
45
36
  this.onDidChangeHeight = this._onDidChangeHeight.event;
46
37
  this.title = undefined;
38
+ this.titleLabel = this._register(( new MutableDisposable()));
47
39
  this.modelDisposables = this._register(( new MutableDisposable()));
48
40
  this.lastKnownHeight = 0;
49
41
  this.render(this.container);
50
42
  this.registerListeners();
43
+ this.registerActions();
51
44
  }
52
45
  registerListeners() {
53
- if (this.viewContainerModel) {
54
- this._register(this.viewContainerModel.onDidAddVisibleViewDescriptors(() => this.doUpdate()));
55
- this._register(this.viewContainerModel.onDidRemoveVisibleViewDescriptors(() => this.doUpdate()));
56
- }
57
46
  this._register(this.configurationService.onDidChangeConfiguration(e => {
58
- if (e.affectsConfiguration(LayoutSettings.ACTIVITY_BAR_LOCATION) ||
59
- e.affectsConfiguration(ChatConfiguration.ChatViewTitleEnabled)) {
47
+ if (e.affectsConfiguration(ChatConfiguration.ChatViewTitleEnabled)) {
60
48
  this.doUpdate();
61
49
  }
62
50
  }));
63
51
  }
52
+ registerActions() {
53
+ this._register(registerAction2(class extends Action2 {
54
+ constructor() {
55
+ super({
56
+ id: ChatViewTitleControl_1.PICK_AGENT_SESSION_ACTION_ID,
57
+ title: ( localize(5879, "Pick Agent Session")),
58
+ f1: false,
59
+ menu: [{
60
+ id: MenuId.ChatViewSessionTitleNavigationToolbar,
61
+ group: 'navigation',
62
+ order: 2
63
+ }]
64
+ });
65
+ }
66
+ async run(accessor) {
67
+ const instantiationService = accessor.get(IInstantiationService);
68
+ const agentSessionsPicker = instantiationService.createInstance(AgentSessionsPicker);
69
+ await agentSessionsPicker.pickAgentSession();
70
+ }
71
+ }));
72
+ }
64
73
  render(parent) {
65
74
  const elements = h('div.chat-view-title-container', [
66
75
  h('div.chat-view-title-navigation-toolbar@navigationToolbar'),
67
76
  h('span.chat-view-title-icon@icon'),
68
- h('span.chat-view-title-label@label'),
69
77
  h('div.chat-view-title-actions-toolbar@actionsToolbar'),
70
78
  ]);
71
79
  this.navigationToolbar = this._register(this.instantiationService.createInstance(MenuWorkbenchToolBar, elements.navigationToolbar, MenuId.ChatViewSessionTitleNavigationToolbar, {
72
- menuOptions: { shouldForwardArgs: true },
73
- hiddenItemStrategy: HiddenItemStrategy.NoHide
80
+ actionViewItemProvider: (action) => {
81
+ if (action.id === ChatViewTitleControl_1.PICK_AGENT_SESSION_ACTION_ID) {
82
+ this.titleLabel.value = ( new ChatViewTitleLabel(action));
83
+ this.titleLabel.value.updateTitle(this.title ?? ChatViewTitleControl_1.DEFAULT_TITLE, this.getIcon());
84
+ return this.titleLabel.value;
85
+ }
86
+ return undefined;
87
+ },
88
+ hiddenItemStrategy: HiddenItemStrategy.NoHide,
89
+ menuOptions: { shouldForwardArgs: true }
74
90
  }));
75
91
  this.actionsToolbar = this._register(this.instantiationService.createInstance(MenuWorkbenchToolBar, elements.actionsToolbar, MenuId.ChatViewSessionTitleToolbar, {
76
92
  menuOptions: { shouldForwardArgs: true },
77
93
  hiddenItemStrategy: HiddenItemStrategy.NoHide
78
94
  }));
79
95
  this.titleContainer = elements.root;
80
- this.titleLabel = elements.label;
81
- this.titleIcon = elements.icon;
82
- this._register(getBaseLayerHoverDelegate().setupDelayedHoverAtMouse(this.titleIcon, () => ({
83
- content: this.getIconHoverContent() ?? '',
84
- appearance: { compact: true }
85
- })));
86
96
  this._register(Gesture.addTarget(this.titleContainer));
87
97
  for (const eventType of [EventType.Tap, EventType$1.CLICK]) {
88
98
  this._register(addDisposableListener(this.titleContainer, eventType, () => {
@@ -103,9 +113,7 @@ let ChatViewTitleControl = class ChatViewTitleControl extends Disposable {
103
113
  doUpdate() {
104
114
  const markdownTitle = ( new MarkdownString(this.model?.title ?? ''));
105
115
  this.title = renderAsPlaintext(markdownTitle);
106
- this.delegate.updateTitle(this.getTitleWithPrefix());
107
116
  this.updateTitle(this.title ?? ChatViewTitleControl_1.DEFAULT_TITLE);
108
- this.updateIcon();
109
117
  const context = this.model && {
110
118
  $mid: MarshalledId.ChatViewContext,
111
119
  sessionResource: this.model.sessionResource
@@ -117,16 +125,16 @@ let ChatViewTitleControl = class ChatViewTitleControl extends Disposable {
117
125
  this.actionsToolbar.context = context;
118
126
  }
119
127
  }
120
- updateIcon() {
121
- if (!this.titleIcon) {
128
+ updateTitle(title) {
129
+ if (!this.titleContainer) {
122
130
  return;
123
131
  }
124
- const icon = this.getIcon();
125
- if (icon) {
126
- this.titleIcon.className = `chat-view-title-icon ${ThemeIcon.asClassName(icon)}`;
127
- }
128
- else {
129
- this.titleIcon.className = 'chat-view-title-icon';
132
+ this.titleContainer.classList.toggle('visible', this.shouldRender());
133
+ this.titleLabel.value?.updateTitle(title, this.getIcon());
134
+ const currentHeight = this.getHeight();
135
+ if (currentHeight !== this.lastKnownHeight) {
136
+ this.lastKnownHeight = currentHeight;
137
+ this._onDidChangeHeight.fire();
130
138
  }
131
139
  }
132
140
  getIcon() {
@@ -138,56 +146,15 @@ let ChatViewTitleControl = class ChatViewTitleControl extends Disposable {
138
146
  }
139
147
  return undefined;
140
148
  }
141
- getIconHoverContent() {
142
- const sessionType = this.model?.contributedChatSession?.chatSessionType;
143
- switch (sessionType) {
144
- case AgentSessionProviders.Background:
145
- case AgentSessionProviders.Cloud:
146
- return localize(5651, "{0} Agent Session", getAgentSessionProviderName(sessionType));
147
- }
148
- return undefined;
149
- }
150
- updateTitle(title) {
151
- if (!this.titleContainer || !this.titleLabel) {
152
- return;
153
- }
154
- this.titleContainer.classList.toggle('visible', this.shouldRender());
155
- this.titleLabel.textContent = title;
156
- const currentHeight = this.getHeight();
157
- if (currentHeight !== this.lastKnownHeight) {
158
- this.lastKnownHeight = currentHeight;
159
- this._onDidChangeHeight.fire();
160
- }
161
- }
162
149
  shouldRender() {
163
150
  if (!this.isEnabled()) {
164
151
  return false;
165
152
  }
166
- if (this.viewContainerModel && this.viewContainerModel.visibleViewDescriptors.length > 1) {
167
- return false;
168
- }
169
- if (this.configurationService.getValue(LayoutSettings.ACTIVITY_BAR_LOCATION) !== ActivityBarPosition.DEFAULT) {
170
- return false;
171
- }
172
153
  return !!this.model?.title;
173
154
  }
174
155
  isEnabled() {
175
156
  return this.configurationService.getValue(ChatConfiguration.ChatViewTitleEnabled) === true;
176
157
  }
177
- getSingleViewPaneContainerTitle() {
178
- if (!this.isEnabled() ||
179
- this.shouldRender()
180
- ) {
181
- return undefined;
182
- }
183
- return this.getTitleWithPrefix();
184
- }
185
- getTitleWithPrefix() {
186
- if (this.title) {
187
- return localize(5652, "Chat: {0}", this.title);
188
- }
189
- return ChatViewTitleControl_1.DEFAULT_TITLE;
190
- }
191
158
  getHeight() {
192
159
  if (!this.titleContainer || this.titleContainer.style.display === 'none') {
193
160
  return 0;
@@ -197,8 +164,53 @@ let ChatViewTitleControl = class ChatViewTitleControl extends Disposable {
197
164
  };
198
165
  ChatViewTitleControl = ChatViewTitleControl_1 = ( __decorate([
199
166
  ( __param(2, IConfigurationService)),
200
- ( __param(3, IViewDescriptorService)),
201
- ( __param(4, IInstantiationService))
167
+ ( __param(3, IInstantiationService))
202
168
  ], ChatViewTitleControl));
169
+ class ChatViewTitleLabel extends ActionViewItem {
170
+ constructor(action, options) {
171
+ super(null, action, { ...options, icon: false, label: true });
172
+ this.titleLabel = undefined;
173
+ this.titleIcon = undefined;
174
+ }
175
+ render(container) {
176
+ super.render(container);
177
+ container.classList.add('chat-view-title-action-item');
178
+ this.label?.classList.add('chat-view-title-label-container');
179
+ this.titleIcon = this.label?.appendChild(h('span').root);
180
+ this.titleLabel = this.label?.appendChild(h('span.chat-view-title-label').root);
181
+ this.updateLabel();
182
+ this.updateIcon();
183
+ }
184
+ updateTitle(title, icon) {
185
+ this.title = title;
186
+ this.icon = icon;
187
+ this.updateLabel();
188
+ this.updateIcon();
189
+ }
190
+ updateLabel() {
191
+ if (!this.titleLabel) {
192
+ return;
193
+ }
194
+ if (this.title) {
195
+ this.titleLabel.textContent = this.title;
196
+ }
197
+ else {
198
+ this.titleLabel.textContent = '';
199
+ }
200
+ }
201
+ updateIcon() {
202
+ if (!this.titleIcon) {
203
+ return;
204
+ }
205
+ if (this.icon) {
206
+ this.titleIcon.className = ThemeIcon.asClassName(this.icon);
207
+ show(this.titleIcon);
208
+ }
209
+ else {
210
+ this.titleIcon.className = '';
211
+ hide(this.titleIcon);
212
+ }
213
+ }
214
+ }
203
215
 
204
216
  export { ChatViewTitleControl };
@@ -0,0 +1,176 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ /* Overall styles */
7
+ .chat-viewpane {
8
+ display: flex;
9
+ flex-direction: column;
10
+
11
+ .chat-controls-container {
12
+ display: flex;
13
+ flex-direction: column;
14
+ flex: 1;
15
+ height: 100%;
16
+ min-height: 0;
17
+ min-width: 0;
18
+
19
+ .interactive-session {
20
+
21
+ /* needed so that the chat welcome and chat input does not overflow and input grows over welcome */
22
+ width: 100%;
23
+ min-height: 0;
24
+ min-width: 0;
25
+ }
26
+ }
27
+
28
+ &:not(.chat-view-welcome-enabled) {
29
+
30
+ .interactive-session {
31
+
32
+ /* hide most welcome pieces (except suggested actions) when we show recent sessions to make some space */
33
+ .chat-welcome-view .chat-welcome-view-icon,
34
+ .chat-welcome-view .chat-welcome-view-title,
35
+ .chat-welcome-view .chat-welcome-view-message,
36
+ .chat-welcome-view .chat-welcome-view-disclaimer,
37
+ .chat-welcome-view .chat-welcome-view-tips {
38
+ visibility: hidden;
39
+ }
40
+ }
41
+ }
42
+ }
43
+
44
+ /* Sessions control: either sidebar or stacked */
45
+ .chat-viewpane.has-sessions-control .agent-sessions-container {
46
+ display: flex;
47
+ flex-direction: column;
48
+
49
+ .agent-sessions-title-container {
50
+ display: flex;
51
+ align-items: center;
52
+ justify-content: space-between;
53
+ font-size: 11px;
54
+ font-weight: 700;
55
+ text-transform: uppercase;
56
+ letter-spacing: 0.5px;
57
+
58
+ .agent-sessions-title {
59
+ cursor: pointer;
60
+ overflow: hidden;
61
+ text-overflow: ellipsis;
62
+ white-space: nowrap;
63
+ }
64
+ }
65
+
66
+ .agent-sessions-toolbar {
67
+
68
+ .action-item {
69
+ /* align with the title actions*/
70
+ margin-right: 4px;
71
+ }
72
+
73
+ &.filtered .action-label.codicon.codicon-filter {
74
+ /* indicate when sessions filter is enabled */
75
+ border-color: var(--vscode-inputOption-activeBorder);
76
+ color: var(--vscode-inputOption-activeForeground);
77
+ background-color: var(--vscode-inputOption-activeBackground);
78
+ }
79
+ }
80
+
81
+ .agent-sessions-link-container {
82
+ padding: 8px 0;
83
+ font-size: 12px;
84
+ text-align: center;
85
+ }
86
+
87
+ .agent-sessions-link-container a {
88
+ color: var(--vscode-descriptionForeground);
89
+ }
90
+
91
+ .agent-sessions-link-container a:hover,
92
+ .agent-sessions-link-container a:active {
93
+ text-decoration: none;
94
+ color: var(--vscode-textLink-foreground);
95
+ }
96
+ }
97
+
98
+ /* Sessions control: stacked */
99
+ .chat-viewpane.has-sessions-control.sessions-control-orientation-stacked {
100
+
101
+ .agent-sessions-container {
102
+ border-bottom: 1px solid var(--vscode-panel-border);
103
+ }
104
+ }
105
+
106
+ /* Sessions control: side by side */
107
+ .chat-viewpane.has-sessions-control.sessions-control-orientation-sidebyside {
108
+
109
+ &.chat-view-position-left {
110
+ flex-direction: row;
111
+
112
+ .agent-sessions-container {
113
+ border-right: 1px solid var(--vscode-panel-border);
114
+ }
115
+ }
116
+
117
+ &.chat-view-position-right {
118
+ flex-direction: row-reverse;
119
+
120
+ .agent-sessions-container {
121
+ border-left: 1px solid var(--vscode-panel-border);
122
+ }
123
+ }
124
+
125
+ .agent-sessions-link-container {
126
+ /* hide link to show more when side by side */
127
+ display: none;
128
+ }
129
+ }
130
+
131
+ /*
132
+ * Padding rules for agent sessions elements based on:
133
+ * - orientation (stacked vs sidebyside)
134
+ * - view position (left vs right)
135
+ * - activity bar location (default vs other for auxiliarybar)
136
+ */
137
+ .chat-viewpane.has-sessions-control {
138
+
139
+ /* Base padding: left-aligned content */
140
+ .agent-sessions-title-container {
141
+ padding: 0 8px 0 20px;
142
+ }
143
+
144
+ .agent-session-section {
145
+ padding: 0 12px 0 20px;
146
+ }
147
+
148
+ /* Right position: symmetric padding */
149
+ &.sessions-control-orientation-sidebyside.chat-view-position-right {
150
+
151
+ .agent-sessions-title-container {
152
+ padding: 0 8px;
153
+ }
154
+
155
+ .agent-session-section {
156
+ padding: 0 12px 0 8px;
157
+ }
158
+ }
159
+
160
+ /* Auxiliarybar with non-default activity bar: tighter title padding */
161
+ &.activity-bar-location-other.chat-view-location-auxiliarybar {
162
+
163
+ .agent-sessions-title-container {
164
+ padding-right: 4px;
165
+ }
166
+
167
+ /* Right position needs adjusted left padding too */
168
+ &.sessions-control-orientation-sidebyside.chat-view-position-right {
169
+
170
+ .agent-sessions-title-container,
171
+ .agent-session-section {
172
+ padding-left: 8px;
173
+ }
174
+ }
175
+ }
176
+ }
@@ -0,0 +1,89 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ .chat-viewpane {
7
+
8
+ .chat-view-title-container {
9
+ display: none;
10
+ align-items: center;
11
+ cursor: pointer;
12
+
13
+ .chat-view-title-navigation-toolbar {
14
+ overflow: hidden;
15
+
16
+ .chat-view-title-action-item {
17
+ flex: 1 1 auto;
18
+ min-width: 0;
19
+
20
+ .chat-view-title-label-container {
21
+ display: flex;
22
+ gap: 4px;
23
+ }
24
+ }
25
+ }
26
+
27
+ .chat-view-title-label {
28
+ text-transform: uppercase;
29
+ font-size: 11px;
30
+ font-weight: 700;
31
+ line-height: 16px;
32
+ display: block;
33
+ overflow: hidden;
34
+ white-space: nowrap;
35
+ text-overflow: ellipsis;
36
+ min-width: 0;
37
+ }
38
+
39
+ .chat-view-title-actions-toolbar {
40
+ margin-left: auto;
41
+ padding-left: 4px;
42
+ }
43
+ }
44
+
45
+ .chat-view-title-container.visible {
46
+ display: flex;
47
+ }
48
+ }
49
+
50
+ /*
51
+ * Below is a very complicated set of CSS rules that try to align the
52
+ * chat title to the surrounding elements depending on:
53
+ * - the activity bar position
54
+ * - the chat view container (sidebar, panel, auxiliarybar)
55
+ * - the container orientation (left, right)
56
+ * - the visibility of side by side
57
+ */
58
+ .chat-viewpane {
59
+
60
+ /* Default padding for all view locations */
61
+ &.chat-view-location-sidebar,
62
+ &.chat-view-location-panel,
63
+ &.chat-view-location-auxiliarybar {
64
+ .chat-view-title-container {
65
+ padding: 0 12px 0 16px;
66
+ }
67
+ }
68
+
69
+ /* Auxiliarybar with non-default activity bar position */
70
+ &.activity-bar-location-other.chat-view-location-auxiliarybar {
71
+ .chat-view-title-container {
72
+ padding: 0 8px 0 16px;
73
+ }
74
+ }
75
+
76
+ /* Side-by-side sessions: left position (any activity bar) */
77
+ &.has-sessions-control.sessions-control-orientation-sidebyside.chat-view-position-left {
78
+ .chat-view-title-container {
79
+ padding: 0 8px;
80
+ }
81
+ }
82
+
83
+ /* Side-by-side sessions: right position (default activity bar only) */
84
+ &.activity-bar-location-default.has-sessions-control.sessions-control-orientation-sidebyside.chat-view-position-right {
85
+ .chat-view-title-container {
86
+ padding: 0 8px 0 16px;
87
+ }
88
+ }
89
+ }