@codingame/monaco-vscode-chat-service-override 25.1.2 → 26.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. package/index.js +24 -3
  2. package/package.json +5 -5
  3. package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +23 -3
  4. package/vscode/src/vs/platform/browserElements/common/browserElements.js +13 -6
  5. package/vscode/src/vs/platform/domWidget/browser/domWidget.js +4 -4
  6. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.d.ts +1 -1
  7. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +42 -27
  8. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +14 -0
  9. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +218 -74
  10. package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatTerminalOutputAccessibleView.js +6 -8
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +14 -9
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +165 -168
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +27 -25
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +141 -140
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +189 -121
  16. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +14 -15
  17. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.d.ts +60 -0
  18. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.js +435 -0
  19. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +28 -12
  20. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +10 -12
  21. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.d.ts +3 -1
  22. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +37 -16
  23. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.d.ts +11 -0
  24. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +54 -24
  25. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +73 -34
  26. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +71 -30
  27. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +151 -89
  28. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +12 -15
  29. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +39 -40
  30. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +90 -125
  31. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.d.ts +5 -2
  32. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +263 -143
  33. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTransfer.js +4 -4
  34. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +188 -126
  35. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.d.ts +1 -1
  36. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +37 -28
  37. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +21 -9
  38. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +392 -226
  39. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +31 -27
  40. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +25 -23
  41. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.js +1 -3
  42. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.d.ts +2 -0
  43. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +13 -0
  44. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.d.ts +20 -0
  45. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +83 -0
  46. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.d.ts +68 -0
  47. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +319 -0
  48. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.d.ts +1 -0
  49. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +215 -0
  50. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +179 -0
  51. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +951 -0
  52. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agentsessionprojection.css +20 -0
  53. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +388 -0
  54. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/unifiedQuickAccess.css +195 -0
  55. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.d.ts +120 -0
  56. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +394 -0
  57. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.d.ts +38 -0
  58. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +95 -0
  59. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.d.ts +3 -1
  60. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.js +31 -29
  61. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +49 -47
  62. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +4 -6
  63. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/media/simpleBrowserOverlay.css +0 -1
  64. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +188 -151
  65. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +1012 -639
  66. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +256 -151
  67. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.d.ts +8 -1
  68. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +182 -101
  69. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.d.ts +79 -0
  70. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingDeletedFileEntry.js +193 -0
  71. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorAccessibility.js +9 -7
  72. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.d.ts +68 -0
  73. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +253 -0
  74. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +4 -5
  75. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +69 -50
  76. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +3 -4
  77. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +52 -33
  78. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +5 -6
  79. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +274 -155
  80. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.js +1 -1
  81. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +2 -10
  82. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +130 -104
  83. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +12 -2
  84. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +385 -160
  85. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +53 -36
  86. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +112 -75
  87. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +19 -10
  88. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditorController.css +31 -11
  89. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.js +39 -17
  90. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNewNotebookContentEdits.js +10 -14
  91. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.d.ts +0 -2
  92. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.js +25 -16
  93. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.d.ts +1 -1
  94. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +265 -203
  95. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.js +29 -26
  96. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/helpers.js +114 -60
  97. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/notebookCellChanges.js +16 -19
  98. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.js +44 -30
  99. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +119 -45
  100. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +1 -0
  101. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +152 -136
  102. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +12 -8
  103. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.d.ts +51 -31
  104. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +323 -217
  105. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +4 -3
  106. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +653 -401
  107. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +52 -40
  108. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +22 -3
  109. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.d.ts +5 -2
  110. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +43 -28
  111. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +182 -136
  112. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.d.ts +33 -0
  113. package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +548 -0
  114. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.d.ts +0 -1
  115. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +222 -138
  116. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.d.ts +3 -3
  117. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +151 -113
  118. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +6 -4
  119. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +453 -217
  120. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +1 -1
  121. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +162 -88
  122. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/media/chatSetup.css +2 -1
  123. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatus.d.ts +0 -2
  124. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatus.js +1 -13
  125. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +1 -0
  126. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +309 -233
  127. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +55 -53
  128. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusItemService.js +3 -1
  129. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +37 -0
  130. package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +109 -0
  131. package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +35 -23
  132. package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.d.ts +9 -4
  133. package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.js +73 -33
  134. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.d.ts +47 -0
  135. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +333 -0
  136. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +39 -25
  137. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionContribution.js +9 -5
  138. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +23 -20
  139. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileActions.js +2 -0
  140. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +20 -16
  141. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +65 -57
  142. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +48 -36
  143. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +20 -12
  144. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.d.ts +4 -0
  145. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +52 -0
  146. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +155 -159
  147. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +24 -14
  148. package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +521 -246
  149. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +107 -76
  150. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +28 -24
  151. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownAnchorService.js +10 -6
  152. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputStateCache.d.ts +16 -0
  153. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputStateCache.js +57 -0
  154. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatLayoutService.js +4 -6
  155. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +56 -44
  156. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.d.ts +0 -3
  157. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +37 -47
  158. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatEditorInputContentProvider.js +5 -7
  159. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.d.ts +10 -0
  160. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +1284 -0
  161. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +179 -125
  162. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +9 -11
  163. package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/editorHoverWrapper.js +7 -6
  164. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +96 -78
  165. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +58 -53
  166. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +25 -11
  167. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +484 -292
  168. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.d.ts +1 -6
  169. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +65 -92
  170. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +16 -19
  171. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewTitleControl.css +1 -0
  172. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +9 -1
  173. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +331 -189
  174. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +81 -93
  175. package/vscode/src/vs/workbench/contrib/chat/common/ignoredFiles.js +1 -3
  176. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.d.ts +5 -3
  177. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.js +6 -7
  178. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.d.ts +36 -8
  179. package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +169 -31
  180. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.d.ts +6 -0
  181. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.js +141 -0
  182. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +6 -4
  183. package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +218 -144
  184. package/vscode/src/vs/workbench/contrib/chat/common/model/chatTransferService.js +20 -10
  185. package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.d.ts +109 -0
  186. package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.js +349 -0
  187. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.js +9 -8
  188. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.d.ts +9 -0
  189. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +139 -36
  190. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +3 -6
  191. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.js +64 -51
  192. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +49 -34
  193. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +21 -13
  194. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +1 -1
  195. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +125 -97
  196. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +91 -131
  197. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptLinkProvider.js +8 -5
  198. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +5 -0
  199. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +488 -222
  200. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +32 -12
  201. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +58 -13
  202. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +717 -200
  203. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +79 -18
  204. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +371 -130
  205. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.d.ts +0 -1
  206. package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.js +3 -7
  207. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +79 -61
  208. package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.js +27 -21
  209. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +7 -10
  210. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.d.ts +1 -1
  211. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +26 -32
  212. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +2 -2
  213. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +8 -60
  214. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +115 -426
  215. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.d.ts +15 -0
  216. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +127 -0
  217. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +1 -37
  218. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +16 -0
  219. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +21 -0
  220. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +51 -0
  221. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +334 -0
  222. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.d.ts +41 -0
  223. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +424 -0
  224. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +4 -0
  225. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +58 -0
  226. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts +7 -0
  227. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +195 -0
  228. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.d.ts +8 -0
  229. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +368 -0
  230. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.d.ts +2 -0
  231. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +7 -0
  232. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.d.ts +1 -1
  233. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.js +1 -1
  234. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +23 -25
  235. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.js +7 -8
  236. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +34 -38
  237. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibleView.js +8 -12
  238. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +103 -95
  239. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +28 -16
  240. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatEnabler.js +4 -5
  241. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +12 -8
  242. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +65 -54
  243. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +86 -60
  244. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.js +13 -26
  245. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/commandFileWriteParser.d.ts +24 -0
  246. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.d.ts +26 -0
  247. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.js +142 -0
  248. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +2 -1
  249. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +56 -46
  250. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +2 -2
  251. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +63 -31
  252. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +2 -1
  253. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +35 -30
  254. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +2 -1
  255. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +44 -37
  256. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +3 -4
  257. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +3 -3
  258. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +11 -0
  259. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +70 -50
  260. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +26 -394
  261. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +85 -49
  262. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +68 -27
  263. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +1 -0
  264. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +67 -45
  265. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.d.ts +12 -0
  266. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +106 -0
  267. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.d.ts +2 -2
  268. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js +177 -97
  269. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +136 -49
  270. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +2 -1
  271. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +128 -112
  272. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +51 -49
  273. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.d.ts +8 -0
  274. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +25 -0
  275. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/commandLinePresenter.d.ts +41 -0
  276. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.d.ts +19 -0
  277. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.js +37 -0
  278. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.d.ts +19 -0
  279. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.js +37 -0
  280. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.d.ts +19 -0
  281. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.js +44 -0
  282. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +12 -0
  283. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +21 -0
  284. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.js +5 -14
  285. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.js +2 -4
  286. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +1 -0
  287. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.d.ts +8 -0
  288. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +29 -0
  289. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +30 -31
  290. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +16 -17
  291. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +19 -20
  292. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.d.ts +11 -0
  293. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +58 -0
  294. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +31 -3
  295. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +325 -199
  296. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +1 -1
  297. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.js +1 -1
  298. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +33 -38
  299. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +45 -5
  300. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +746 -456
  301. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +145 -98
  302. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +88 -37
  303. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +120 -51
  304. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +25 -28
  305. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +5 -0
  306. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.js +58 -12
  307. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.d.ts +12 -0
  308. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.js +17 -0
  309. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +8 -1
  310. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +47 -28
  311. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +37 -0
  312. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +171 -0
  313. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +0 -58
  314. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +0 -213
  315. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +0 -39
  316. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +0 -243
  317. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.d.ts +0 -7
  318. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +0 -41
  319. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +0 -166
  320. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +0 -607
  321. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +0 -255
  322. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +0 -46
  323. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +0 -396
  324. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +0 -9
  325. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +0 -379
  326. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +0 -117
  327. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +0 -141
  328. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +0 -961
  329. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +0 -36
  330. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +0 -447
  331. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.d.ts +0 -6
  332. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.js +0 -251
  333. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.d.ts +0 -10
  334. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +0 -42
@@ -0,0 +1,120 @@
1
+ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
+ import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service";
3
+ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
4
+ import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
5
+ import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
6
+ import { ILayoutService } from "@codingame/monaco-vscode-api/vscode/vs/platform/layout/browser/layoutService.service";
7
+ import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
8
+ import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
9
+ /**
10
+ * Tab configuration for the unified quick access widget.
11
+ */
12
+ export interface IUnifiedQuickAccessTab {
13
+ /** Unique identifier for the tab */
14
+ readonly id: string;
15
+ /** Display label for the tab */
16
+ readonly label: string;
17
+ /** Quick access provider prefix (e.g., '' for files, '>' for commands, 'agent ' for sessions) */
18
+ readonly prefix: string;
19
+ /** Placeholder text when this tab is active */
20
+ readonly placeholder: string;
21
+ /** Tooltip for the tab */
22
+ readonly tooltip?: string;
23
+ /** Whether this is the special Send tab (no provider, just sends query) */
24
+ readonly isSendTab?: boolean;
25
+ }
26
+ /**
27
+ * Default tabs for the unified quick access widget.
28
+ */
29
+ export declare const DEFAULT_UNIFIED_QUICK_ACCESS_TABS: IUnifiedQuickAccessTab[];
30
+ /**
31
+ * Service for showing a unified quick access widget with multiple tabs.
32
+ * Combines multiple QuickAccessProviders into a single tabbed interface.
33
+ */
34
+ export declare class UnifiedQuickAccess extends Disposable {
35
+ private readonly quickInputService;
36
+ private readonly instantiationService;
37
+ private readonly contextKeyService;
38
+ private readonly layoutService;
39
+ private readonly commandService;
40
+ private readonly keybindingService;
41
+ private readonly hoverService;
42
+ private readonly registry;
43
+ private readonly mapProviderToDescriptor;
44
+ private _currentPicker;
45
+ private _currentDisposables;
46
+ private _providerDisposables;
47
+ private _currentTab;
48
+ private _providerCts;
49
+ private _tabBarContainer;
50
+ private _isInternalValueChange;
51
+ private _isUpdatingSendToAgent;
52
+ private _sendToAgentTimeout;
53
+ private _sendButton;
54
+ private _sendButtonLabel;
55
+ private _sendButtonIcon;
56
+ private _sendButtonHover;
57
+ private readonly _tabs;
58
+ constructor(tabs: IUnifiedQuickAccessTab[] | undefined, quickInputService: IQuickInputService, instantiationService: IInstantiationService, contextKeyService: IContextKeyService, layoutService: ILayoutService, commandService: ICommandService, keybindingService: IKeybindingService, hoverService: IHoverService);
59
+ /**
60
+ * Show the unified quick access widget.
61
+ * @param initialTabId Optional tab ID to start with. Defaults to first tab.
62
+ * @param initialValue Optional initial filter value.
63
+ */
64
+ show(initialTabId?: string, initialValue?: string): void;
65
+ /**
66
+ * Hide the unified quick access widget if visible.
67
+ */
68
+ hide(): void;
69
+ /**
70
+ * Check if the widget is currently visible.
71
+ */
72
+ get isVisible(): boolean;
73
+ /**
74
+ * Inject the custom tab bar into the picker's header area.
75
+ */
76
+ private _injectTabBar;
77
+ /**
78
+ * Create the send button.
79
+ */
80
+ private _createSendButton;
81
+ /**
82
+ * Update the send button label and tooltip based on input state.
83
+ */
84
+ private _updateSendButtonState;
85
+ /**
86
+ * Open chat without sending a message.
87
+ */
88
+ private _openChat;
89
+ /**
90
+ * Send the exact message to a new agent session (no prefix stripping).
91
+ */
92
+ private _sendMessageRaw;
93
+ /**
94
+ * Send the current message to a new agent session (strips prefix).
95
+ */
96
+ private _sendMessage;
97
+ /**
98
+ * Check if we should show the "send to agent" item.
99
+ * Always shows it as the first item when user has typed something.
100
+ */
101
+ private _maybeShowSendToAgent;
102
+ /**
103
+ * Switch to a different tab.
104
+ */
105
+ private _switchTab;
106
+ /**
107
+ * Detect which tab matches the current value based on prefix.
108
+ * Only switches away from current tab if user explicitly typed a different prefix.
109
+ */
110
+ private _detectTabFromValue;
111
+ /**
112
+ * Activate the provider for a given tab.
113
+ */
114
+ private _activateProvider;
115
+ /**
116
+ * Get or create a provider instance for the given prefix.
117
+ */
118
+ private _getOrInstantiateProvider;
119
+ dispose(): void;
120
+ }
@@ -0,0 +1,394 @@
1
+
2
+ import { registerCss } from '@codingame/monaco-vscode-api/css';
3
+ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
4
+ import * as unifiedQuickAccess from './media/unifiedQuickAccess.css';
5
+ import { $, addDisposableListener, EventType } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
6
+ import { Disposable, DisposableStore, isDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
7
+ import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
8
+ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
9
+ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
10
+ import { Radio } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/radio/radio';
11
+ import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
12
+ import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickAccess';
13
+ import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
14
+ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
15
+ import { createInstantHoverDelegate, getDefaultHoverDelegate } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
16
+ import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
17
+ import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
18
+ import { renderIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/iconLabel/iconLabels';
19
+ import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
20
+ import { ILayoutService } from '@codingame/monaco-vscode-api/vscode/vs/platform/layout/browser/layoutService.service';
21
+ import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
22
+ import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
23
+ import { CHAT_OPEN_ACTION_ID, ACTION_ID_NEW_CHAT } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
24
+
25
+ registerCss(unifiedQuickAccess);
26
+ const SEND_TO_AGENT_ID = "unified-quick-access-send-to-agent";
27
+ const DEFAULT_UNIFIED_QUICK_ACCESS_TABS = [{
28
+ id: "agentSessions",
29
+ label: ( localize(5042, "Sessions")),
30
+ prefix: "agent ",
31
+ placeholder: ( localize(5043, "Search sessions or type a message...")),
32
+ tooltip: ( localize(5044, "Search sessions or send a message to agent"))
33
+ }, {
34
+ id: "commands",
35
+ label: ( localize(5045, "Commands")),
36
+ prefix: ">",
37
+ placeholder: ( localize(5046, "Search commands...")),
38
+ tooltip: ( localize(5047, "Run commands"))
39
+ }, {
40
+ id: "files",
41
+ label: ( localize(5048, "Files")),
42
+ prefix: "",
43
+ placeholder: ( localize(5049, "Search files...")),
44
+ tooltip: ( localize(5050, "Go to files"))
45
+ }];
46
+ let UnifiedQuickAccess = class UnifiedQuickAccess extends Disposable {
47
+ constructor(
48
+ tabs,
49
+ quickInputService,
50
+ instantiationService,
51
+ contextKeyService,
52
+ layoutService,
53
+ commandService,
54
+ keybindingService,
55
+ hoverService
56
+ ) {
57
+ super();
58
+ this.quickInputService = quickInputService;
59
+ this.instantiationService = instantiationService;
60
+ this.contextKeyService = contextKeyService;
61
+ this.layoutService = layoutService;
62
+ this.commandService = commandService;
63
+ this.keybindingService = keybindingService;
64
+ this.hoverService = hoverService;
65
+ this.registry = ( Registry.as(Extensions.Quickaccess));
66
+ this.mapProviderToDescriptor = ( new Map());
67
+ this._currentDisposables = this._register(( new DisposableStore()));
68
+ this._providerDisposables = this._register(( new DisposableStore()));
69
+ this._isInternalValueChange = false;
70
+ this._isUpdatingSendToAgent = false;
71
+ this._tabs = tabs ?? DEFAULT_UNIFIED_QUICK_ACCESS_TABS;
72
+ }
73
+ show(initialTabId, initialValue) {
74
+ if (this._currentPicker) {
75
+ return;
76
+ }
77
+ this._currentDisposables.clear();
78
+ const picker = this._currentDisposables.add(this.quickInputService.createQuickPick({
79
+ useSeparators: true
80
+ }));
81
+ this._currentPicker = picker;
82
+ picker.ignoreFocusOut = false;
83
+ picker.matchOnDescription = true;
84
+ picker.matchOnDetail = true;
85
+ picker.sortByLabel = false;
86
+ const initialTab = initialTabId ? this._tabs.find(t => t.id === initialTabId) ?? this._tabs[0] : this._tabs[0];
87
+ this._currentTab = initialTab;
88
+ this._injectTabBar(picker);
89
+ this._isInternalValueChange = true;
90
+ picker.value = initialValue ?? "";
91
+ picker.placeholder = initialTab.placeholder;
92
+ this._isInternalValueChange = false;
93
+ this._activateProvider(initialTab, picker);
94
+ this._currentDisposables.add(picker.onDidChangeValue(value => {
95
+ if (this._isInternalValueChange) {
96
+ return;
97
+ }
98
+ const matchingTab = this._detectTabFromValue(value);
99
+ if (matchingTab && matchingTab !== this._currentTab) {
100
+ this._switchTab(matchingTab, picker, true);
101
+ }
102
+ this._updateSendButtonState(value);
103
+ if (this._sendToAgentTimeout) {
104
+ clearTimeout(this._sendToAgentTimeout);
105
+ }
106
+ this._sendToAgentTimeout = setTimeout(() => this._maybeShowSendToAgent(picker), 150);
107
+ }));
108
+ this._currentDisposables.add(picker.onDidAccept(() => {
109
+ const selectedItems = picker.selectedItems;
110
+ const activeItems = picker.activeItems;
111
+ const sendToAgentSelected = selectedItems.length > 0 && selectedItems[0].id === SEND_TO_AGENT_ID;
112
+ const hasRealActiveItem = ( activeItems.some(item => item.id !== SEND_TO_AGENT_ID));
113
+ const filterText = this._currentTab ? picker.value.substring(this._currentTab.prefix.length).trim() : picker.value.trim();
114
+ if (sendToAgentSelected || (!hasRealActiveItem && filterText)) {
115
+ this._sendMessage(picker.value);
116
+ }
117
+ }));
118
+ this._currentDisposables.add(picker.onDidHide(() => {
119
+ this._providerDisposables.clear();
120
+ this._providerCts?.cancel();
121
+ this._providerCts = undefined;
122
+ this._currentPicker = undefined;
123
+ this._currentTab = undefined;
124
+ if (this._sendToAgentTimeout) {
125
+ clearTimeout(this._sendToAgentTimeout);
126
+ this._sendToAgentTimeout = undefined;
127
+ }
128
+ this._tabBarContainer?.remove();
129
+ this._tabBarContainer = undefined;
130
+ this._sendButton = undefined;
131
+ this._sendButtonLabel = undefined;
132
+ this._sendButtonIcon = undefined;
133
+ this._sendButtonHover = undefined;
134
+ this._currentDisposables.clear();
135
+ }));
136
+ picker.show();
137
+ }
138
+ hide() {
139
+ this._currentPicker?.hide();
140
+ }
141
+ get isVisible() {
142
+ return !!this._currentPicker;
143
+ }
144
+ _injectTabBar(picker) {
145
+ const showDisposable = this._currentDisposables.add(Event.once(this.quickInputService.onShow)(() => {
146
+ this._currentDisposables.delete(showDisposable);
147
+ const quickInputWidget = this.layoutService.activeContainer.querySelector(".quick-input-widget");
148
+ if (!quickInputWidget) {
149
+ return;
150
+ }
151
+ const header = quickInputWidget.querySelector(".quick-input-header");
152
+ const list = quickInputWidget.querySelector(".quick-input-list");
153
+ if (!header || !list) {
154
+ return;
155
+ }
156
+ const tabBarContainer = $("div.unified-quick-access-tabs");
157
+ this._tabBarContainer = tabBarContainer;
158
+ const hoverDelegate = this._currentDisposables.add(createInstantHoverDelegate());
159
+ const radioItems = ( this._tabs.map(tab => ({
160
+ text: tab.label,
161
+ tooltip: tab.tooltip,
162
+ isActive: tab === this._currentTab
163
+ })));
164
+ const radio = this._currentDisposables.add(( new Radio({
165
+ items: radioItems,
166
+ hoverDelegate
167
+ })));
168
+ tabBarContainer.appendChild(radio.domNode);
169
+ this._currentDisposables.add(radio.onDidSelect(index => {
170
+ const selectedTab = this._tabs[index];
171
+ if (selectedTab && selectedTab !== this._currentTab) {
172
+ this._switchTab(selectedTab, picker, false);
173
+ }
174
+ }));
175
+ const sendButton = this._createSendButton(picker);
176
+ tabBarContainer.appendChild(sendButton);
177
+ list.parentElement?.insertBefore(tabBarContainer, list);
178
+ picker._unifiedRadio = radio;
179
+ }));
180
+ }
181
+ _createSendButton(picker) {
182
+ const container = $("div.unified-quick-access-send-container");
183
+ const button = $("button.unified-send-button");
184
+ button.setAttribute("type", "button");
185
+ this._sendButton = button;
186
+ const icon = renderIcon(Codicon.send);
187
+ icon.classList.add("unified-send-icon");
188
+ this._sendButtonIcon = icon;
189
+ button.appendChild(icon);
190
+ const labelSpan = $("span.unified-send-label");
191
+ this._sendButtonLabel = labelSpan;
192
+ button.appendChild(labelSpan);
193
+ container.appendChild(button);
194
+ this._sendButtonHover = this._currentDisposables.add(
195
+ this.hoverService.setupManagedHover(getDefaultHoverDelegate("mouse"), button, "")
196
+ );
197
+ this._updateSendButtonState(picker.value);
198
+ this._currentDisposables.add(addDisposableListener(button, EventType.CLICK, e => {
199
+ e.preventDefault();
200
+ e.stopPropagation();
201
+ const hasInput = picker.value.trim().length > 0;
202
+ if (hasInput) {
203
+ this._sendMessageRaw(picker.value);
204
+ } else {
205
+ this._openChat();
206
+ }
207
+ }));
208
+ return container;
209
+ }
210
+ _updateSendButtonState(value) {
211
+ if (!this._sendButton || !this._sendButtonLabel || !this._sendButtonIcon) {
212
+ return;
213
+ }
214
+ const hasInput = value.trim().length > 0;
215
+ if (hasInput) {
216
+ this._sendButtonLabel.textContent = ( localize(5051, "Send"));
217
+ this._sendButtonHover?.update(( localize(5052, "Send message to new agent session")));
218
+ this._sendButtonIcon.style.display = "";
219
+ } else {
220
+ const openChatKeybinding = this.keybindingService.lookupKeybinding(CHAT_OPEN_ACTION_ID);
221
+ const openChatLabel = openChatKeybinding?.getLabel() ?? "";
222
+ this._sendButtonLabel.textContent = ( localize(5053, "Open Chat"));
223
+ const tooltip = openChatLabel ? ( localize(5054, "Open chat ({0})", openChatLabel)) : ( localize(5055, "Open chat"));
224
+ this._sendButtonHover?.update(tooltip);
225
+ this._sendButtonIcon.style.display = "none";
226
+ }
227
+ }
228
+ _openChat() {
229
+ this.hide();
230
+ this.commandService.executeCommand(CHAT_OPEN_ACTION_ID);
231
+ }
232
+ async _sendMessageRaw(value) {
233
+ const message = value.trim();
234
+ if (!message) {
235
+ return;
236
+ }
237
+ this.hide();
238
+ await this.commandService.executeCommand(ACTION_ID_NEW_CHAT);
239
+ const options = {
240
+ query: message,
241
+ isPartialQuery: false
242
+ };
243
+ this.commandService.executeCommand(CHAT_OPEN_ACTION_ID, options);
244
+ }
245
+ async _sendMessage(value) {
246
+ let message = value;
247
+ if (this._currentTab) {
248
+ if (value.startsWith(this._currentTab.prefix)) {
249
+ message = value.substring(this._currentTab.prefix.length).trim();
250
+ }
251
+ }
252
+ if (!message) {
253
+ return;
254
+ }
255
+ this.hide();
256
+ await this.commandService.executeCommand(ACTION_ID_NEW_CHAT);
257
+ const options = {
258
+ query: message,
259
+ isPartialQuery: false
260
+ };
261
+ this.commandService.executeCommand(CHAT_OPEN_ACTION_ID, options);
262
+ }
263
+ _maybeShowSendToAgent(picker) {
264
+ if (this._isUpdatingSendToAgent) {
265
+ return;
266
+ }
267
+ const filterText = this._currentTab ? picker.value.substring(this._currentTab.prefix.length).trim() : picker.value.trim();
268
+ const fullInput = picker.value.trim();
269
+ const messageToSend = filterText || fullInput;
270
+ if (!messageToSend) {
271
+ return;
272
+ }
273
+ if (picker.busy) {
274
+ return;
275
+ }
276
+ const firstItem = picker.items[0];
277
+ if (firstItem?.id === SEND_TO_AGENT_ID && firstItem.description === fullInput) {
278
+ return;
279
+ }
280
+ const sendItem = {
281
+ id: SEND_TO_AGENT_ID,
282
+ label: `$(send) ${( localize(5056, "Send to agent"))}`,
283
+ description: fullInput,
284
+ alwaysShow: true,
285
+ ariaLabel: ( localize(5057, "Send message to agent: {0}", fullInput))
286
+ };
287
+ const currentItems = picker.items.filter(item => item.id !== SEND_TO_AGENT_ID);
288
+ const isSessionsTab = this._currentTab?.id === "agentSessions";
289
+ const hasOtherItems = currentItems.length > 0;
290
+ const showFirst = isSessionsTab || !hasOtherItems;
291
+ this._isUpdatingSendToAgent = true;
292
+ try {
293
+ if (showFirst) {
294
+ picker.items = [sendItem, ...currentItems];
295
+ } else {
296
+ picker.items = currentItems;
297
+ }
298
+ } finally {
299
+ this._isUpdatingSendToAgent = false;
300
+ }
301
+ }
302
+ _switchTab(tab, picker, preserveFilterText) {
303
+ if (tab === this._currentTab) {
304
+ return;
305
+ }
306
+ const previousTab = this._currentTab;
307
+ this._currentTab = tab;
308
+ const radio = picker._unifiedRadio;
309
+ if (radio) {
310
+ const index = this._tabs.indexOf(tab);
311
+ if (index >= 0) {
312
+ radio.setActiveItem(index);
313
+ }
314
+ }
315
+ this._isInternalValueChange = true;
316
+ if (preserveFilterText && previousTab) {
317
+ const filterText = picker.value.substring(previousTab.prefix.length);
318
+ picker.value = tab.prefix + filterText;
319
+ } else if (previousTab) {
320
+ const currentValue = picker.value;
321
+ if (currentValue.startsWith(previousTab.prefix)) {
322
+ picker.value = currentValue.substring(previousTab.prefix.length);
323
+ }
324
+ }
325
+ this._isInternalValueChange = false;
326
+ picker.placeholder = tab.placeholder;
327
+ this._activateProvider(tab, picker);
328
+ }
329
+ _detectTabFromValue(value) {
330
+ if (this._currentTab && value.startsWith(this._currentTab.prefix)) {
331
+ return this._currentTab;
332
+ }
333
+ const sortedTabs = [...this._tabs].filter(tab => tab.prefix.length > 0).sort((a, b) => b.prefix.length - a.prefix.length);
334
+ return sortedTabs.find(tab => value.startsWith(tab.prefix));
335
+ }
336
+ _activateProvider(tab, picker) {
337
+ this._providerDisposables.clear();
338
+ this._providerCts?.cancel();
339
+ this._providerCts = ( new CancellationTokenSource());
340
+ this._providerDisposables.add(this._providerCts);
341
+ if (tab.isSendTab) {
342
+ picker.busy = false;
343
+ picker.items = [{
344
+ label: ( localize(5058, "Press Enter or click Send to create a new agent session")),
345
+ alwaysShow: true
346
+ }];
347
+ return;
348
+ }
349
+ picker.items = [];
350
+ picker.busy = true;
351
+ const [provider] = this._getOrInstantiateProvider(tab.prefix);
352
+ if (provider) {
353
+ const tabPrefix = tab.prefix;
354
+ picker.filterValue = value => {
355
+ if (value.startsWith(tabPrefix)) {
356
+ return value.substring(tabPrefix.length);
357
+ }
358
+ return value;
359
+ };
360
+ const providerDisposable = provider.provide(picker, this._providerCts.token);
361
+ this._providerDisposables.add(providerDisposable);
362
+ } else {
363
+ picker.busy = false;
364
+ picker.items = [{
365
+ label: ( localize(5059, "No provider available for this tab")),
366
+ alwaysShow: true
367
+ }];
368
+ }
369
+ }
370
+ _getOrInstantiateProvider(prefix) {
371
+ const providerDescriptor = this.registry.getQuickAccessProvider(prefix, this.contextKeyService);
372
+ if (!providerDescriptor) {
373
+ return [undefined, undefined];
374
+ }
375
+ let provider = this.mapProviderToDescriptor.get(providerDescriptor);
376
+ if (!provider) {
377
+ provider = this.instantiationService.createInstance(providerDescriptor.ctor);
378
+ this.mapProviderToDescriptor.set(providerDescriptor, provider);
379
+ }
380
+ return [provider, providerDescriptor];
381
+ }
382
+ dispose() {
383
+ this._providerCts?.cancel();
384
+ for (const provider of ( this.mapProviderToDescriptor.values())) {
385
+ if (isDisposable(provider)) {
386
+ provider.dispose();
387
+ }
388
+ }
389
+ super.dispose();
390
+ }
391
+ };
392
+ UnifiedQuickAccess = ( __decorate([( __param(1, IQuickInputService)), ( __param(2, IInstantiationService)), ( __param(3, IContextKeyService)), ( __param(4, ILayoutService)), ( __param(5, ICommandService)), ( __param(6, IKeybindingService)), ( __param(7, IHoverService))], UnifiedQuickAccess));
393
+
394
+ export { DEFAULT_UNIFIED_QUICK_ACCESS_TABS, UnifiedQuickAccess };
@@ -0,0 +1,38 @@
1
+ import { Action2 } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
2
+ import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
3
+ /**
4
+ * Action ID for showing the unified quick access widget.
5
+ */
6
+ export declare const UNIFIED_QUICK_ACCESS_ACTION_ID = "workbench.action.unifiedQuickAccess";
7
+ /**
8
+ * Action to show the unified quick access widget with tabbed providers.
9
+ */
10
+ export declare class ShowUnifiedQuickAccessAction extends Action2 {
11
+ static readonly ID = "workbench.action.unifiedQuickAccess";
12
+ constructor();
13
+ run(accessor: ServicesAccessor, initialTabId?: string): void;
14
+ }
15
+ /**
16
+ * Action to show the unified quick access widget starting on the Agent Sessions tab.
17
+ */
18
+ export declare class ShowAgentSessionsQuickAccessAction extends Action2 {
19
+ static readonly ID = "workbench.action.showAgentSessionsQuickAccess";
20
+ constructor();
21
+ run(accessor: ServicesAccessor): void;
22
+ }
23
+ /**
24
+ * Action to show the unified quick access widget starting on the Commands tab.
25
+ */
26
+ export declare class ShowCommandsQuickAccessAction extends Action2 {
27
+ static readonly ID = "workbench.action.showCommandsQuickAccess";
28
+ constructor();
29
+ run(accessor: ServicesAccessor): void;
30
+ }
31
+ /**
32
+ * Action to show the unified quick access widget starting on the Files tab.
33
+ */
34
+ export declare class ShowFilesQuickAccessAction extends Action2 {
35
+ static readonly ID = "workbench.action.showFilesQuickAccess";
36
+ constructor();
37
+ run(accessor: ServicesAccessor): void;
38
+ }
@@ -0,0 +1,95 @@
1
+
2
+ import { Action2, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
3
+ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
4
+ import { localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
5
+ import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
6
+ import { ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
7
+ import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
8
+ import { UnifiedQuickAccess, DEFAULT_UNIFIED_QUICK_ACCESS_TABS } from './unifiedQuickAccess.js';
9
+
10
+ let unifiedQuickAccessInstance;
11
+ function getUnifiedQuickAccess(instantiationService) {
12
+ if (!unifiedQuickAccessInstance) {
13
+ unifiedQuickAccessInstance = instantiationService.createInstance(UnifiedQuickAccess, DEFAULT_UNIFIED_QUICK_ACCESS_TABS);
14
+ }
15
+ return unifiedQuickAccessInstance;
16
+ }
17
+ const UNIFIED_QUICK_ACCESS_ACTION_ID = "workbench.action.unifiedQuickAccess";
18
+ class ShowUnifiedQuickAccessAction extends Action2 {
19
+ static {
20
+ this.ID = UNIFIED_QUICK_ACCESS_ACTION_ID;
21
+ }
22
+ constructor() {
23
+ super({
24
+ id: ShowUnifiedQuickAccessAction.ID,
25
+ title: ( localize2(5060, "Show Agent Quick Access")),
26
+ f1: true,
27
+ precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.has(`config.${ChatConfiguration.UnifiedAgentsBar}`))))
28
+ });
29
+ }
30
+ run(accessor, initialTabId) {
31
+ const instantiationService = accessor.get(IInstantiationService);
32
+ const unifiedQuickAccess = getUnifiedQuickAccess(instantiationService);
33
+ unifiedQuickAccess.show(initialTabId);
34
+ }
35
+ }
36
+ class ShowAgentSessionsQuickAccessAction extends Action2 {
37
+ static {
38
+ this.ID = "workbench.action.showAgentSessionsQuickAccess";
39
+ }
40
+ constructor() {
41
+ super({
42
+ id: ShowAgentSessionsQuickAccessAction.ID,
43
+ title: ( localize2(5061, "Show Agent Sessions")),
44
+ f1: true,
45
+ precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.has(`config.${ChatConfiguration.UnifiedAgentsBar}`))))
46
+ });
47
+ }
48
+ run(accessor) {
49
+ const instantiationService = accessor.get(IInstantiationService);
50
+ const unifiedQuickAccess = getUnifiedQuickAccess(instantiationService);
51
+ unifiedQuickAccess.show("agentSessions");
52
+ }
53
+ }
54
+ class ShowCommandsQuickAccessAction extends Action2 {
55
+ static {
56
+ this.ID = "workbench.action.showCommandsQuickAccess";
57
+ }
58
+ constructor() {
59
+ super({
60
+ id: ShowCommandsQuickAccessAction.ID,
61
+ title: ( localize2(5062, "Show Commands (Unified)")),
62
+ f1: true,
63
+ precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.has(`config.${ChatConfiguration.UnifiedAgentsBar}`))))
64
+ });
65
+ }
66
+ run(accessor) {
67
+ const instantiationService = accessor.get(IInstantiationService);
68
+ const unifiedQuickAccess = getUnifiedQuickAccess(instantiationService);
69
+ unifiedQuickAccess.show("commands");
70
+ }
71
+ }
72
+ class ShowFilesQuickAccessAction extends Action2 {
73
+ static {
74
+ this.ID = "workbench.action.showFilesQuickAccess";
75
+ }
76
+ constructor() {
77
+ super({
78
+ id: ShowFilesQuickAccessAction.ID,
79
+ title: ( localize2(5063, "Show Files (Unified)")),
80
+ f1: true,
81
+ precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.has(`config.${ChatConfiguration.UnifiedAgentsBar}`))))
82
+ });
83
+ }
84
+ run(accessor) {
85
+ const instantiationService = accessor.get(IInstantiationService);
86
+ const unifiedQuickAccess = getUnifiedQuickAccess(instantiationService);
87
+ unifiedQuickAccess.show("files");
88
+ }
89
+ }
90
+ registerAction2(ShowUnifiedQuickAccessAction);
91
+ registerAction2(ShowAgentSessionsQuickAccessAction);
92
+ registerAction2(ShowCommandsQuickAccessAction);
93
+ registerAction2(ShowFilesQuickAccessAction);
94
+
95
+ export { ShowAgentSessionsQuickAccessAction, ShowCommandsQuickAccessAction, ShowFilesQuickAccessAction, ShowUnifiedQuickAccessAction, UNIFIED_QUICK_ACCESS_ACTION_ID };
@@ -5,16 +5,18 @@ import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/w
5
5
  import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
6
6
  import { IChatSessionItem, IChatSessionItemProvider } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService";
7
7
  import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
8
+ import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
8
9
  export declare class LocalAgentsSessionsProvider extends Disposable implements IChatSessionItemProvider, IWorkbenchContribution {
9
10
  private readonly chatService;
10
11
  private readonly chatSessionsService;
12
+ private readonly logService;
11
13
  static readonly ID = "workbench.contrib.localAgentsSessionsProvider";
12
14
  readonly chatSessionType = "local";
13
15
  private readonly _onDidChange;
14
16
  readonly onDidChange: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
15
17
  readonly _onDidChangeChatSessionItems: Emitter<void>;
16
18
  readonly onDidChangeChatSessionItems: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
17
- constructor(chatService: IChatService, chatSessionsService: IChatSessionsService);
19
+ constructor(chatService: IChatService, chatSessionsService: IChatSessionsService, logService: ILogService);
18
20
  private registerListeners;
19
21
  provideChatSessionItems(token: CancellationToken): Promise<IChatSessionItem[]>;
20
22
  private getHistoryItems;