@codingame/monaco-vscode-chat-service-override 22.1.8 → 23.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 (276) hide show
  1. package/index.js +16 -7
  2. package/package.json +43 -41
  3. package/vscode/src/vs/editor/common/diff/documentDiffProvider.d.ts +1 -1
  4. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +6 -6
  5. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +57 -48
  6. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.d.ts +2 -2
  7. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +18 -18
  8. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.d.ts +1 -1
  9. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +26 -17
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +51 -5
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +2 -2
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +4 -4
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +2 -2
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +7 -7
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
  16. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +19 -19
  17. package/vscode/src/vs/workbench/contrib/chat/browser/actions/{chatClearActions.d.ts → chatNewActions.d.ts} +2 -1
  18. package/vscode/src/vs/workbench/contrib/chat/browser/actions/{chatClearActions.js → chatNewActions.js} +32 -32
  19. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +4 -4
  20. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
  21. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.d.ts +9 -9
  22. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.js +101 -98
  23. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +35 -24
  24. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +43 -25
  25. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +1 -1
  26. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +33 -32
  27. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionViewModel.d.ts +53 -0
  28. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionViewModel.js +154 -0
  29. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +7 -0
  30. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +13 -0
  31. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.d.ts +44 -0
  32. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.js +347 -0
  33. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +85 -0
  34. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +250 -0
  35. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsview.css +24 -0
  36. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +97 -0
  37. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +290 -231
  38. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.d.ts +2 -2
  39. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +7 -10
  40. package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.d.ts +1 -1
  41. package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.js +6 -6
  42. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.d.ts +1 -1
  43. package/vscode/src/vs/workbench/contrib/chat/browser/chatContextService.d.ts +24 -0
  44. package/vscode/src/vs/workbench/contrib/chat/browser/chatContextService.js +113 -0
  45. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimeline.d.ts +31 -0
  46. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.d.ts +102 -0
  47. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +646 -0
  48. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.d.ts +2 -3
  49. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +46 -26
  50. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +17 -4
  51. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +44 -34
  52. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +14 -14
  53. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +25 -6
  54. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +46 -10
  55. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +45 -6
  56. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +30 -10
  57. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +10 -3
  58. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +60 -9
  59. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.d.ts +117 -0
  60. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.js +12 -0
  61. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +6 -4
  62. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +60 -55
  63. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +29 -16
  64. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +365 -143
  65. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.d.ts +2 -3
  66. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +3 -30
  67. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.d.ts +7 -3
  68. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +58 -22
  69. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.d.ts +1 -1
  70. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +5 -4
  71. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.d.ts +3 -3
  72. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.js +1 -1
  73. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.d.ts +3 -3
  74. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.js +5 -5
  75. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +6 -18
  76. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.d.ts +1 -3
  77. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.js +7 -11
  78. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.d.ts +1 -1
  79. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.js +13 -1
  80. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js +38 -33
  81. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +11 -6
  82. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +83 -24
  83. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.d.ts +1 -0
  84. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +91 -0
  85. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +64 -0
  86. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +370 -0
  87. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.d.ts +25 -0
  88. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +56 -0
  89. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.d.ts +61 -0
  90. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +349 -0
  91. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +43 -0
  92. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +787 -0
  93. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.d.ts +17 -0
  94. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +109 -0
  95. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatManagementEditor.css +122 -0
  96. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +211 -0
  97. package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatUsageWidget.css +69 -0
  98. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.d.ts +1 -1
  99. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +21 -20
  100. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +54 -54
  101. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.d.ts +1 -1
  102. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +31 -22
  103. package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.d.ts +1 -1
  104. package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +16 -6
  105. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionTracker.d.ts +6 -3
  106. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionTracker.js +29 -21
  107. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/localChatSessionsProvider.d.ts +5 -2
  108. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/localChatSessionsProvider.js +37 -33
  109. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.d.ts +15 -12
  110. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.js +96 -131
  111. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.d.ts +12 -7
  112. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.js +66 -34
  113. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.d.ts +5 -3
  114. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.js +77 -71
  115. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.d.ts +91 -18
  116. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.js +458 -138
  117. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.d.ts +3 -1
  118. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +212 -150
  119. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.js +96 -89
  120. package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.d.ts +3 -2
  121. package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +5 -5
  122. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +3 -4
  123. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +15 -16
  124. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.d.ts +1 -1
  125. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +33 -17
  126. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.d.ts +1 -1
  127. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +3 -3
  128. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsConfirmationService.d.ts +27 -0
  129. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsConfirmationService.js +688 -0
  130. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +15 -10
  131. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +126 -135
  132. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditingEditorOverlay.css +6 -1
  133. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditorController.css +2 -1
  134. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatSessions.css +38 -1
  135. package/vscode/src/vs/workbench/contrib/chat/browser/media/simpleBrowserOverlay.css +14 -14
  136. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.d.ts +1 -1
  137. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +28 -26
  138. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionContribution.js +1 -1
  139. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +3 -3
  140. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileActions.js +9 -6
  141. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +24 -13
  142. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +15 -14
  143. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +25 -23
  144. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.d.ts +21 -0
  145. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +89 -0
  146. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +16 -16
  147. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +30 -29
  148. package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +10 -19
  149. package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +61 -43
  150. package/vscode/src/vs/workbench/contrib/chat/common/chatResponseResourceFileSystemProvider.js +7 -4
  151. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +28 -28
  152. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +254 -165
  153. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.d.ts +4 -4
  154. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.js +2 -2
  155. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.d.ts +1 -1
  156. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +4 -6
  157. package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.d.ts +10 -6
  158. package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.js +20 -12
  159. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +13 -17
  160. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +9 -8
  161. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.d.ts +1 -0
  162. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.js +51 -21
  163. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.d.ts +7 -3
  164. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +74 -20
  165. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +11 -6
  166. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +1 -2
  167. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +83 -53
  168. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +2 -1
  169. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +136 -78
  170. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptLinkProvider.js +4 -4
  171. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +18 -10
  172. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +357 -157
  173. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +1 -1
  174. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +55 -28
  175. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +235 -108
  176. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +12 -2
  177. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +50 -4
  178. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +27 -27
  179. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.d.ts +1 -1
  180. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +2 -2
  181. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.d.ts +3 -1
  182. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +11 -7
  183. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +12 -14
  184. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +1 -1
  185. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +1 -1
  186. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +18 -30
  187. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +62 -139
  188. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.d.ts +1 -1
  189. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +16 -15
  190. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.d.ts +1 -1
  191. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.js +2 -2
  192. package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
  193. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminal.chat.contribution.js +3 -0
  194. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
  195. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +119 -15
  196. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +6 -4
  197. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +47 -0
  198. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +192 -0
  199. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.d.ts +7 -5
  200. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +21 -16
  201. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandLineAutoApprover.js +8 -3
  202. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +2 -2
  203. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +18 -27
  204. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +5 -2
  205. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +3 -1
  206. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +1 -1
  207. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +4 -25
  208. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +2 -2
  209. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +18 -27
  210. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +12 -0
  211. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +31 -0
  212. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +3 -0
  213. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +24 -8
  214. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +8 -0
  215. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +1 -1
  216. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +33 -4
  217. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +42 -13
  218. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +14 -21
  219. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +23 -0
  220. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +18 -0
  221. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +227 -0
  222. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +17 -0
  223. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +133 -0
  224. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.d.ts +5 -0
  225. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.js +36 -0
  226. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.d.ts +8 -0
  227. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.js +33 -0
  228. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +17 -0
  229. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +4 -4
  230. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
  231. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
  232. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +5 -1
  233. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +75 -37
  234. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +1 -0
  235. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.d.ts +8 -0
  236. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +71 -0
  237. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +28 -15
  238. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +366 -363
  239. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +18 -18
  240. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +9 -9
  241. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +16 -16
  242. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
  243. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +19 -0
  244. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +123 -0
  245. package/vscode/src/vs/base/common/yaml.d.ts +0 -74
  246. package/vscode/src/vs/base/common/yaml.js +0 -597
  247. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContext.d.ts +0 -8
  248. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContext.js +0 -239
  249. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTimeline.d.ts +0 -102
  250. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTimeline.js +0 -435
  251. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookDiff.d.ts +0 -14
  252. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookDiff.js +0 -67
  253. package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.d.ts +0 -49
  254. package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +0 -380
  255. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.d.ts +0 -37
  256. package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.js +0 -137
  257. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/attachInstructionsAction.d.ts +0 -44
  258. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/attachInstructionsAction.js +0 -176
  259. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/newPromptFileActions.d.ts +0 -4
  260. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/newPromptFileActions.js +0 -206
  261. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptName.d.ts +0 -7
  262. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptName.js +0 -79
  263. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptSourceFolder.d.ts +0 -8
  264. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptSourceFolder.js +0 -145
  265. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/promptFilePickers.d.ts +0 -65
  266. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/promptFilePickers.js +0 -306
  267. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveToPromptAction.d.ts +0 -12
  268. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveToPromptAction.js +0 -102
  269. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/newPromptsParser.d.ts +0 -97
  270. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/newPromptsParser.js +0 -247
  271. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +0 -118
  272. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +0 -10
  273. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandSimplifier.d.ts +0 -10
  274. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandSimplifier.js +0 -55
  275. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/subCommands.d.ts +0 -2
  276. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/subCommands.js +0 -66
@@ -3,11 +3,10 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
3
3
  import { timeout } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
4
4
  import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
5
5
  import { isMarkdownString, MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
6
- import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
6
+ import { Disposable, DisposableMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
7
7
  import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
8
8
  import { isMacintosh } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
9
- import { assertDefined } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
10
- import product from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/product';
9
+ import { PolicyCategory } from '@codingame/monaco-vscode-api/vscode/vs/base/common/policy';
11
10
  import { registerEditorFeature } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorFeatures';
12
11
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
13
12
  import { AccessibleViewRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
@@ -18,70 +17,74 @@ import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/
18
17
  import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
19
18
  import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
20
19
  import { mcpGalleryServiceUrlConfig, mcpGalleryServiceEnablementConfig, mcpAutoStartConfig, McpAutoStartValue, mcpAccessConfig, McpAccessValue } from '@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/platform/mcp/common/mcpManagement';
20
+ import product from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/product';
21
21
  import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
22
22
  import { EditorPaneDescriptor } from '@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/editor';
23
23
  import { Extensions as Extensions$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/configuration';
24
24
  import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
25
25
  import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
26
26
  import { IWorkbenchAssignmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/assignment/common/assignmentService.service';
27
+ import { ChatEntitlement } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService';
28
+ import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
27
29
  import { RegisteredEditorPriority } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService';
28
30
  import { IEditorResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service';
29
31
  import { AssistedTypes, AddConfigurationType } from '@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration';
30
32
  import { mcpDiscoverySection, allDiscoverySources, discoverySourceSettingsLabel, mcpServerSamplingSection } from '@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/workbench/contrib/mcp/common/mcpConfiguration';
31
- import '@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/common/chatAgents';
33
+ import '@codingame/monaco-vscode-aac7027b-326c-513a-95a9-e4eedd151b38-common/vscode/vs/workbench/contrib/chat/common/chatAgents';
32
34
  import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
33
- import '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/common/chatColors';
34
- import { ChatEntitlement } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService';
35
- import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
36
- import '@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/chatModes';
35
+ import '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/common/chatColors';
36
+ import '@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-81911735d1c7-common/vscode/vs/workbench/contrib/chat/common/chatModes';
37
37
  import { ChatResponseResourceFileSystemProvider } from '../common/chatResponseResourceFileSystemProvider.js';
38
38
  import '../common/chatServiceImpl.js';
39
+ import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
39
40
  import '../common/chatSlashCommands.js';
40
41
  import { IChatSlashCommandService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSlashCommands.service';
41
42
  import '../common/chatTodoListService.js';
42
43
  import '../common/chatTransferService.js';
43
- import '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/common/chatWidgetHistoryService';
44
+ import '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/common/chatWidgetHistoryService';
44
45
  import { ChatConfiguration, ChatAgentLocation, ChatModeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
45
46
  import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels';
46
- import '@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/languageModelStats';
47
- import { PromptsConfig } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/config/config';
48
- import { MODE_DEFAULT_SOURCE_FOLDER, MODE_FILE_EXTENSION, PROMPT_DEFAULT_SOURCE_FOLDER, PROMPT_FILE_EXTENSION, INSTRUCTIONS_DEFAULT_SOURCE_FOLDER, INSTRUCTION_FILE_EXTENSION } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations';
47
+ import '@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-81911735d1c7-common/vscode/vs/workbench/contrib/chat/common/languageModelStats';
48
+ import { ChatPromptFilesExtensionPointHandler } from '../common/promptSyntax/chatPromptFilesContribution.js';
49
+ import { PromptsConfig } from '@codingame/monaco-vscode-8d4ef243-d8c1-540d-9f11-38df46f54c9f-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/config/config';
50
+ import { LEGACY_MODE_DEFAULT_SOURCE_FOLDER, LEGACY_MODE_FILE_EXTENSION, PROMPT_DEFAULT_SOURCE_FOLDER, PROMPT_FILE_EXTENSION, INSTRUCTIONS_DEFAULT_SOURCE_FOLDER, INSTRUCTION_FILE_EXTENSION } from '@codingame/monaco-vscode-8d4ef243-d8c1-540d-9f11-38df46f54c9f-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations';
49
51
  import { PromptLanguageFeaturesProvider } from '../common/promptSyntax/promptFileContributions.js';
50
- import { MODE_DOCUMENTATION_URL, PROMPT_DOCUMENTATION_URL, INSTRUCTIONS_DOCUMENTATION_URL } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/promptTypes';
52
+ import { AGENT_DOCUMENTATION_URL, PROMPT_DOCUMENTATION_URL, INSTRUCTIONS_DOCUMENTATION_URL } from '@codingame/monaco-vscode-8d4ef243-d8c1-540d-9f11-38df46f54c9f-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/promptTypes';
51
53
  import '../common/promptSyntax/service/promptsServiceImpl.js';
52
54
  import { LanguageModelToolsExtensionPointHandler } from '../common/tools/languageModelToolsContribution.js';
53
- import { ChatPromptFilesExtensionPointHandler } from '../common/promptSyntax/chatPromptFilesContribution.js';
54
55
  import { BuiltinToolsContribution } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/tools';
55
56
  import '../common/voiceChatService.js';
56
57
  import { registerChatAccessibilityActions } from './actions/chatAccessibilityActions.js';
57
58
  import { PanelChatAccessibilityHelp, QuickChatAccessibilityHelp, EditsChatAccessibilityHelp, AgentChatAccessibilityHelp } from './actions/chatAccessibilityHelp.js';
58
- import { ACTION_ID_NEW_CHAT, CopilotTitleBarMenuRendering, registerChatActions } from '@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
59
- import { registerNewChatActions } from './actions/chatClearActions.js';
59
+ import { ACTION_ID_NEW_CHAT, CopilotTitleBarMenuRendering, registerChatActions } from '@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-81911735d1c7-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
60
60
  import { CodeBlockActionRendering, registerChatCodeBlockActions, registerChatCodeCompareBlockActions } from './actions/chatCodeblockActions.js';
61
- import { ChatContextContributions } from './actions/chatContext.js';
61
+ import { ChatContextContributions } from '@codingame/monaco-vscode-88141f48-1af9-57ef-a278-f4b2ff6128fa-common/vscode/vs/workbench/contrib/chat/browser/actions/chatContext';
62
62
  import { registerChatContextActions } from './actions/chatContextActions.js';
63
63
  import { registerChatCopyActions } from './actions/chatCopyActions.js';
64
64
  import { registerChatDeveloperActions } from './actions/chatDeveloperActions.js';
65
- import { ChatSubmitAction, registerChatExecuteActions } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/actions/chatExecuteActions';
65
+ import { ChatSubmitAction, registerChatExecuteActions } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/browser/actions/chatExecuteActions';
66
66
  import { registerChatFileTreeActions } from './actions/chatFileTreeActions.js';
67
67
  import { ChatGettingStartedContribution } from './actions/chatGettingStarted.js';
68
- import { registerChatPromptNavigationActions } from './actions/chatPromptNavigationActions.js';
69
68
  import { registerChatExportActions } from './actions/chatImportExport.js';
70
69
  import { registerLanguageModelActions } from './actions/chatLanguageModelActions.js';
71
70
  import { registerMoveActions } from './actions/chatMoveActions.js';
71
+ import { registerNewChatActions } from './actions/chatNewActions.js';
72
+ import { registerChatPromptNavigationActions } from './actions/chatPromptNavigationActions.js';
72
73
  import { registerQuickChatActions } from './actions/chatQuickInputActions.js';
73
- import { RenameChatSessionAction, DeleteChatSessionAction, OpenChatSessionInNewWindowAction, OpenChatSessionInNewEditorGroupAction, OpenChatSessionInSidebarAction, ToggleChatSessionsDescriptionDisplayAction, ChatSessionsGettingStartedAction } from './actions/chatSessionActions.js';
74
- import { registerChatTitleActions } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/actions/chatTitleActions';
74
+ import { RenameChatSessionAction, DeleteChatSessionAction, OpenChatSessionInNewWindowAction, OpenChatSessionInNewEditorGroupAction, OpenChatSessionInSidebarAction, ToggleChatSessionsDescriptionDisplayAction, ChatSessionsGettingStartedAction, ToggleAgentSessionsViewLocationAction } from './actions/chatSessionActions.js';
75
+ import { registerChatTitleActions } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/browser/actions/chatTitleActions';
75
76
  import { registerChatToolActions } from './actions/chatToolActions.js';
76
77
  import { ChatTransferContribution } from './actions/chatTransfer.js';
78
+ import './agentSessions/agentSessionsView.js';
77
79
  import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
78
80
  import './chatAccessibilityService.js';
79
- import '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/chatAttachmentModel';
81
+ import '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/browser/chatAttachmentModel';
80
82
  import './chatAttachmentResolveService.js';
81
83
  import '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
82
84
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
83
85
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
84
86
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
87
+ import '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
85
88
  import { ChatInputBoxContentProvider } from './chatEdinputInputContentProvider.js';
86
89
  import { ChatEditingEditorAccessibility } from './chatEditing/chatEditingEditorAccessibility.js';
87
90
  import { registerChatEditorActions } from './chatEditing/chatEditingEditorActions.js';
@@ -91,76 +94,78 @@ import './chatEditing/chatEditingServiceImpl.js';
91
94
  import { ChatEditingNotebookFileSystemProviderContrib } from './chatEditing/notebook/chatEditingNotebookFileSystemProvider.js';
92
95
  import { SimpleBrowserOverlay } from './chatEditing/simpleBrowserEditorOverlay.js';
93
96
  import { ChatEditor } from './chatEditor.js';
94
- import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
97
+ import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-aac7027b-326c-513a-95a9-e4eedd151b38-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
95
98
  import './chatLayoutService.js';
96
- import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer';
99
+ import './chatManagement/chatManagement.contribution.js';
100
+ import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer';
97
101
  import './chatOutputItemRenderer.js';
98
102
  import { ChatExtensionPointHandler, ChatCompatibilityNotifier } from './chatParticipant.contribution.js';
99
- import { ChatPasteProvidersFeature } from './chatPasteProviders.js';
103
+ import { ChatPasteProvidersFeature } from '@codingame/monaco-vscode-88141f48-1af9-57ef-a278-f4b2ff6128fa-common/vscode/vs/workbench/contrib/chat/browser/chatPasteProviders';
100
104
  import './chatQuick.js';
101
105
  import { ChatResponseAccessibleView } from './chatResponseAccessibleView.js';
106
+ import { LocalChatSessionsProvider } from './chatSessions/localChatSessionsProvider.js';
107
+ import { ChatSessionsViewContrib, ChatSessionsView } from './chatSessions/view/chatSessionsView.js';
102
108
  import { ChatSetupContribution, ChatTeardownContribution } from './chatSetup.js';
103
109
  import { ChatStatusBarEntry } from './chatStatus.js';
104
110
  import './chatVariables.js';
105
- import { ChatWidget } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
106
- import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables';
107
- import { ChatImplicitContextContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatImplicitContext';
111
+ import { ChatWidget } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
112
+ import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables';
113
+ import { ChatImplicitContextContribution } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatImplicitContext';
108
114
  import '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions';
109
115
  import './contrib/chatInputEditorContrib.js';
110
116
  import './contrib/chatInputEditorHover.js';
111
- import { ChatRelatedFilesContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib';
117
+ import { ChatRelatedFilesContribution } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib';
118
+ import './languageModelToolsConfirmationService.js';
112
119
  import { globalAutoApproveDescription } from './languageModelToolsService.js';
113
120
  import './promptSyntax/promptCodingAgentActionContribution.js';
114
121
  import './promptSyntax/promptToolsCodeLensProvider.js';
115
122
  import { PromptUrlHandler } from './promptSyntax/promptUrlHandler.js';
116
- import { SAVE_TO_PROMPT_SLASH_COMMAND_NAME, SAVE_TO_PROMPT_ACTION_ID } from './promptSyntax/saveToPromptAction.js';
117
123
  import { UserToolSetsContributions, ConfigureToolSets } from './tools/toolSetsContribution.js';
118
124
  import { ChatViewsWelcomeHandler } from './viewsWelcome/chatViewsWelcomeHandler.js';
119
- import { ChatSessionsView } from './chatSessions/view/chatSessionsView.js';
120
125
 
121
126
  const configurationRegistry = ( Registry.as(Extensions.Configuration));
122
127
  configurationRegistry.registerConfiguration({
123
128
  id: 'chatSidebar',
124
- title: ( localize(4782, "Chat")),
129
+ title: ( localize(4831, "Chat")),
125
130
  type: 'object',
126
131
  properties: {
127
132
  'chat.fontSize': {
128
133
  type: 'number',
129
- description: ( localize(4783, "Controls the font size in pixels in chat messages.")),
134
+ description: ( localize(4832, "Controls the font size in pixels in chat messages.")),
130
135
  default: 13,
131
136
  minimum: 6,
132
137
  maximum: 100
133
138
  },
134
139
  'chat.fontFamily': {
135
140
  type: 'string',
136
- description: ( localize(4784, "Controls the font family in chat messages.")),
141
+ description: ( localize(4833, "Controls the font family in chat messages.")),
137
142
  default: 'default'
138
143
  },
139
144
  'chat.editor.fontSize': {
140
145
  type: 'number',
141
- description: ( localize(4785, "Controls the font size in pixels in chat codeblocks.")),
146
+ description: ( localize(4834, "Controls the font size in pixels in chat codeblocks.")),
142
147
  default: isMacintosh ? 12 : 14,
143
148
  },
144
149
  'chat.editor.fontFamily': {
145
150
  type: 'string',
146
- description: ( localize(4786, "Controls the font family in chat codeblocks.")),
151
+ description: ( localize(4835, "Controls the font family in chat codeblocks.")),
147
152
  default: 'default'
148
153
  },
149
154
  'chat.editor.fontWeight': {
150
155
  type: 'string',
151
- description: ( localize(4787, "Controls the font weight in chat codeblocks.")),
156
+ description: ( localize(4836, "Controls the font weight in chat codeblocks.")),
152
157
  default: 'default'
153
158
  },
154
159
  'chat.editor.wordWrap': {
155
160
  type: 'string',
156
- description: ( localize(4788, "Controls whether lines should wrap in chat codeblocks.")),
161
+ description: ( localize(4837, "Controls whether lines should wrap in chat codeblocks.")),
157
162
  default: 'off',
158
163
  enum: ['on', 'off']
159
164
  },
160
165
  'chat.editor.lineHeight': {
161
166
  type: 'number',
162
167
  description: ( localize(
163
- 4789,
168
+ 4838,
164
169
  "Controls the line height in pixels in chat codeblocks. Use 0 to compute the line height from the font size."
165
170
  )),
166
171
  default: 0
@@ -168,7 +173,7 @@ configurationRegistry.registerConfiguration({
168
173
  'chat.commandCenter.enabled': {
169
174
  type: 'boolean',
170
175
  markdownDescription: ( localize(
171
- 4790,
176
+ 4839,
172
177
  "Controls whether the command center shows a menu for actions to control chat (requires {0}).",
173
178
  '`#window.commandCenter#`'
174
179
  )),
@@ -178,17 +183,17 @@ configurationRegistry.registerConfiguration({
178
183
  type: 'object',
179
184
  tags: ['experimental'],
180
185
  description: ( localize(
181
- 4791,
186
+ 4840,
182
187
  "Enables automatically using the active editor as chat context for specified chat locations."
183
188
  )),
184
189
  additionalProperties: {
185
190
  type: 'string',
186
191
  enum: ['never', 'first', 'always'],
187
- description: ( localize(4792, "The value for the implicit context.")),
192
+ description: ( localize(4841, "The value for the implicit context.")),
188
193
  enumDescriptions: [
189
- ( localize(4793, "Implicit context is never enabled.")),
190
- ( localize(4794, "Implicit context is enabled for the first interaction.")),
191
- ( localize(4795, "Implicit context is always enabled."))
194
+ ( localize(4842, "Implicit context is never enabled.")),
195
+ ( localize(4843, "Implicit context is enabled for the first interaction.")),
196
+ ( localize(4844, "Implicit context is always enabled."))
192
197
  ]
193
198
  },
194
199
  default: {
@@ -199,15 +204,15 @@ configurationRegistry.registerConfiguration({
199
204
  type: 'boolean',
200
205
  tags: ['experimental'],
201
206
  markdownDescription: ( localize(
202
- 4796,
203
- "Controls whether the new implicit context flow is shown. In Ask and Edit modes, the context will automatically be included. In Agent mode context will be suggested as an attachment. Selections are always included as context."
207
+ 4845,
208
+ "Controls whether the new implicit context flow is shown. In Ask and Edit modes, the context will automatically be included. When using an agent, context will be suggested as an attachment. Selections are always included as context."
204
209
  )),
205
210
  default: true,
206
211
  },
207
212
  'chat.editing.autoAcceptDelay': {
208
213
  type: 'number',
209
214
  markdownDescription: ( localize(
210
- 4797,
215
+ 4846,
211
216
  "Delay after which changes made by chat are automatically accepted. Values are in seconds, `0` means disabled and `100` seconds is the maximum."
212
217
  )),
213
218
  default: 0,
@@ -218,7 +223,7 @@ configurationRegistry.registerConfiguration({
218
223
  type: 'boolean',
219
224
  scope: ConfigurationScope.APPLICATION,
220
225
  markdownDescription: ( localize(
221
- 4798,
226
+ 4847,
222
227
  "Whether to show a confirmation before removing a request and its associated edits."
223
228
  )),
224
229
  default: true,
@@ -227,7 +232,7 @@ configurationRegistry.registerConfiguration({
227
232
  type: 'boolean',
228
233
  scope: ConfigurationScope.APPLICATION,
229
234
  markdownDescription: ( localize(
230
- 4799,
235
+ 4848,
231
236
  "Whether to show a confirmation before retrying a request and its associated edits."
232
237
  )),
233
238
  default: true,
@@ -235,21 +240,21 @@ configurationRegistry.registerConfiguration({
235
240
  'chat.experimental.detectParticipant.enabled': {
236
241
  type: 'boolean',
237
242
  deprecationMessage: ( localize(
238
- 4800,
243
+ 4849,
239
244
  "This setting is deprecated. Please use `chat.detectParticipant.enabled` instead."
240
245
  )),
241
- description: ( localize(4801, "Enables chat participant autodetection for panel chat.")),
246
+ description: ( localize(4850, "Enables chat participant autodetection for panel chat.")),
242
247
  default: null
243
248
  },
244
249
  'chat.detectParticipant.enabled': {
245
250
  type: 'boolean',
246
- description: ( localize(4802, "Enables chat participant autodetection for panel chat.")),
251
+ description: ( localize(4851, "Enables chat participant autodetection for panel chat.")),
247
252
  default: true
248
253
  },
249
254
  'chat.renderRelatedFiles': {
250
255
  type: 'boolean',
251
256
  description: ( localize(
252
- 4803,
257
+ 4852,
253
258
  "Controls whether related files should be rendered in the chat input."
254
259
  )),
255
260
  default: false
@@ -257,25 +262,31 @@ configurationRegistry.registerConfiguration({
257
262
  'chat.notifyWindowOnConfirmation': {
258
263
  type: 'boolean',
259
264
  description: ( localize(
260
- 4804,
265
+ 4853,
261
266
  "Controls whether a chat session should present the user with an OS notification when a confirmation is needed while the window is not in focus. This includes a window badge as well as notification toast."
262
267
  )),
263
268
  default: true,
264
269
  },
265
270
  [ChatConfiguration.GlobalAutoApprove]: {
266
271
  default: false,
267
- description: ( localize(
268
- 4805,
269
- 'Global auto approve also known as "YOLO mode" disables manual approval completely for all tools in all workspaces, allowing the agent to act fully autonomously. This is extremely dangerous and is *never* recommended, even containerized environments like Codespaces and Dev Containers have user keys forwarded into the container that could be compromised.\n\nThis feature disables critical security protections and makes it much easier for an attacker to compromise the machine.'
270
- )),
271
272
  markdownDescription: globalAutoApproveDescription.value,
272
273
  type: 'boolean',
273
274
  scope: ConfigurationScope.APPLICATION_MACHINE,
274
275
  tags: ['experimental'],
275
276
  policy: {
276
277
  name: 'ChatToolsAutoApprove',
278
+ category: PolicyCategory.InteractiveSession,
277
279
  minimumVersion: '1.99',
278
280
  value: (account) => account.chat_preview_features_enabled === false ? false : undefined,
281
+ localization: {
282
+ description: {
283
+ key: 'autoApprove2.description',
284
+ value: ( localize(
285
+ 4854,
286
+ 'Global auto approve also known as "YOLO mode" disables manual approval completely for all tools in all workspaces, allowing the agent to act fully autonomously. This is extremely dangerous and is *never* recommended, even containerized environments like Codespaces and Dev Containers have user keys forwarded into the container that could be compromised.\n\nThis feature disables critical security protections and makes it much easier for an attacker to compromise the machine.'
287
+ ))
288
+ }
289
+ },
279
290
  }
280
291
  },
281
292
  [ChatConfiguration.AutoApproveEdits]: {
@@ -284,10 +295,10 @@ configurationRegistry.registerConfiguration({
284
295
  '**/.vscode/*.json': false,
285
296
  '**/.git/**': false,
286
297
  '**/{package.json,package-lock.json,server.xml,build.rs,web.config,.gitattributes,.env}': false,
287
- '**/*.{csproj,fsproj,vbproj}': false,
298
+ '**/*.{csproj,fsproj,vbproj,vcxproj,proj,targets,props}': false,
288
299
  },
289
300
  markdownDescription: ( localize(
290
- 4806,
301
+ 4855,
291
302
  "Controls whether edits made by chat are automatically approved. The default is to approve all edits except those made to certain files which have the potential to cause immediate unintended side-effects, such as `**/.vscode/*.json`.\n\nSet to `true` to automatically approve edits to matching files, `false` to always require explicit approval. The last pattern matching a given file will determine whether the edit is automatically approved."
292
303
  )),
293
304
  type: 'object',
@@ -298,7 +309,7 @@ configurationRegistry.registerConfiguration({
298
309
  'chat.sendElementsToChat.enabled': {
299
310
  default: true,
300
311
  description: ( localize(
301
- 4807,
312
+ 4856,
302
313
  "Controls whether elements can be sent to chat from the Simple Browser."
303
314
  )),
304
315
  type: 'boolean',
@@ -307,7 +318,7 @@ configurationRegistry.registerConfiguration({
307
318
  'chat.sendElementsToChat.attachCSS': {
308
319
  default: true,
309
320
  markdownDescription: ( localize(
310
- 4808,
321
+ 4857,
311
322
  "Controls whether CSS of the selected element will be added to the chat. {0} must be enabled.",
312
323
  '`#chat.sendElementsToChat.enabled#`'
313
324
  )),
@@ -317,7 +328,7 @@ configurationRegistry.registerConfiguration({
317
328
  'chat.sendElementsToChat.attachImages': {
318
329
  default: true,
319
330
  markdownDescription: ( localize(
320
- 4809,
331
+ 4858,
321
332
  "Controls whether a screenshot of the selected element will be added to the chat. {0} must be enabled.",
322
333
  '`#chat.sendElementsToChat.enabled#`'
323
334
  )),
@@ -327,7 +338,7 @@ configurationRegistry.registerConfiguration({
327
338
  'chat.undoRequests.restoreInput': {
328
339
  default: true,
329
340
  markdownDescription: ( localize(
330
- 4810,
341
+ 4859,
331
342
  "Controls whether the input of the chat should be restored when an undo request is made. The input will be filled with the text of the request that was restored."
332
343
  )),
333
344
  type: 'boolean',
@@ -335,36 +346,24 @@ configurationRegistry.registerConfiguration({
335
346
  },
336
347
  'chat.editRequests': {
337
348
  markdownDescription: ( localize(
338
- 4811,
349
+ 4860,
339
350
  "Enables editing of requests in the chat. This allows you to change the request content and resubmit it to the model."
340
351
  )),
341
352
  type: 'string',
342
353
  enum: ['inline', 'hover', 'input', 'none'],
343
354
  default: 'inline',
344
355
  },
345
- 'chat.emptyChatState.enabled': {
346
- type: 'boolean',
347
- default: true,
348
- description: ( localize(
349
- 4812,
350
- "Shows a modified empty chat state with hints in the input placeholder text."
351
- )),
352
- tags: ['experimental'],
353
- experiment: {
354
- mode: 'startup'
355
- }
356
- },
357
356
  [ChatConfiguration.EmptyStateHistoryEnabled]: {
358
357
  type: 'boolean',
359
358
  default: product.quality === 'insiders',
360
- description: ( localize(4813, "Show recent chat history on the empty chat state.")),
359
+ description: ( localize(4861, "Show recent chat history on the empty chat state.")),
361
360
  tags: ['experimental']
362
361
  },
363
362
  [ChatConfiguration.NotifyWindowOnResponseReceived]: {
364
363
  type: 'boolean',
365
364
  default: true,
366
365
  description: ( localize(
367
- 4814,
366
+ 4862,
368
367
  "Controls whether a chat session should present the user with an OS notification when a response is received while the window is not in focus. This includes a window badge as well as notification toast."
369
368
  )),
370
369
  },
@@ -372,34 +371,35 @@ configurationRegistry.registerConfiguration({
372
371
  type: 'boolean',
373
372
  default: true,
374
373
  description: ( localize(
375
- 4815,
374
+ 4863,
376
375
  "Enables checkpoints in chat. Checkpoints allow you to restore the chat to a previous state."
377
376
  )),
378
377
  },
379
378
  'chat.checkpoints.showFileChanges': {
380
379
  type: 'boolean',
381
- description: ( localize(4816, "Controls whether to show chat checkpoint file changes.")),
380
+ description: ( localize(4864, "Controls whether to show chat checkpoint file changes.")),
382
381
  default: false
383
382
  },
384
383
  [mcpAccessConfig]: {
385
384
  type: 'string',
386
- description: ( localize(4817, "Controls access to installed Model Context Protocol servers.")),
385
+ description: ( localize(4865, "Controls access to installed Model Context Protocol servers.")),
387
386
  enum: [
388
387
  McpAccessValue.None,
389
388
  McpAccessValue.Registry,
390
389
  McpAccessValue.All
391
390
  ],
392
391
  enumDescriptions: [
393
- ( localize(4818, "No access to MCP servers.")),
392
+ ( localize(4866, "No access to MCP servers.")),
394
393
  ( localize(
395
- 4819,
394
+ 4867,
396
395
  "Allows access to MCP servers installed from the registry that VS Code is connected to."
397
396
  )),
398
- ( localize(4820, "Allow access to any installed MCP server."))
397
+ ( localize(4868, "Allow access to any installed MCP server."))
399
398
  ],
400
399
  default: McpAccessValue.All,
401
400
  policy: {
402
401
  name: 'ChatMCP',
402
+ category: PolicyCategory.InteractiveSession,
403
403
  minimumVersion: '1.99',
404
404
  value: (account) => {
405
405
  if (account.mcp === false) {
@@ -410,12 +410,32 @@ configurationRegistry.registerConfiguration({
410
410
  }
411
411
  return undefined;
412
412
  },
413
+ localization: {
414
+ description: {
415
+ key: 'chat.mcp.access',
416
+ value: ( localize(4865, "Controls access to installed Model Context Protocol servers."))
417
+ },
418
+ enumDescriptions: [
419
+ {
420
+ key: 'chat.mcp.access.none', value: ( localize(4866, "No access to MCP servers.")),
421
+ },
422
+ {
423
+ key: 'chat.mcp.access.registry', value: ( localize(
424
+ 4867,
425
+ "Allows access to MCP servers installed from the registry that VS Code is connected to."
426
+ )),
427
+ },
428
+ {
429
+ key: 'chat.mcp.access.any', value: ( localize(4868, "Allow access to any installed MCP server."))
430
+ }
431
+ ]
432
+ },
413
433
  }
414
434
  },
415
435
  [mcpAutoStartConfig]: {
416
436
  type: 'string',
417
437
  description: ( localize(
418
- 4821,
438
+ 4869,
419
439
  "Controls whether MCP servers should be automatically started when the chat messages are submitted."
420
440
  )),
421
441
  default: McpAutoStartValue.NewAndOutdated,
@@ -425,10 +445,10 @@ configurationRegistry.registerConfiguration({
425
445
  McpAutoStartValue.NewAndOutdated
426
446
  ],
427
447
  enumDescriptions: [
428
- ( localize(4822, "Never automatically start MCP servers.")),
429
- ( localize(4823, "Only automatically start new MCP servers that have never been run.")),
448
+ ( localize(4870, "Never automatically start MCP servers.")),
449
+ ( localize(4871, "Only automatically start new MCP servers that have never been run.")),
430
450
  ( localize(
431
- 4824,
451
+ 4872,
432
452
  "Automatically start new and outdated MCP servers that are not yet running."
433
453
  ))
434
454
  ],
@@ -437,9 +457,9 @@ configurationRegistry.registerConfiguration({
437
457
  [mcpServerSamplingSection]: {
438
458
  type: 'object',
439
459
  description: ( localize(
440
- 4825,
460
+ 4873,
441
461
  "Configures which models are exposed to MCP servers for sampling (making model requests in the background). This setting can be edited in a graphical way under the `{0}` command.",
442
- 'MCP: ' + ( localize(4826, 'List Servers'))
462
+ 'MCP: ' + ( localize(4874, 'List Servers'))
443
463
  )),
444
464
  scope: ConfigurationScope.RESOURCE,
445
465
  additionalProperties: {
@@ -448,7 +468,7 @@ configurationRegistry.registerConfiguration({
448
468
  allowedDuringChat: {
449
469
  type: 'boolean',
450
470
  description: ( localize(
451
- 4827,
471
+ 4875,
452
472
  "Whether this server is make sampling requests during its tool calls in a chat session."
453
473
  )),
454
474
  default: true,
@@ -456,7 +476,7 @@ configurationRegistry.registerConfiguration({
456
476
  allowedOutsideChat: {
457
477
  type: 'boolean',
458
478
  description: ( localize(
459
- 4828,
479
+ 4876,
460
480
  "Whether this server is allowed to make sampling requests outside of a chat session."
461
481
  )),
462
482
  default: false,
@@ -465,7 +485,7 @@ configurationRegistry.registerConfiguration({
465
485
  type: 'array',
466
486
  items: {
467
487
  type: 'string',
468
- description: ( localize(4829, "A model the MCP server has access to.")),
488
+ description: ( localize(4877, "A model the MCP server has access to.")),
469
489
  },
470
490
  }
471
491
  }
@@ -474,7 +494,7 @@ configurationRegistry.registerConfiguration({
474
494
  [AssistedTypes[AddConfigurationType.NuGetPackage].enabledConfigKey]: {
475
495
  type: 'boolean',
476
496
  description: ( localize(
477
- 4830,
497
+ 4878,
478
498
  "Enables NuGet packages for AI-assisted MCP server installation. Used to install MCP servers by name from the central registry for .NET packages (NuGet.org)."
479
499
  )),
480
500
  default: false,
@@ -486,45 +506,61 @@ configurationRegistry.registerConfiguration({
486
506
  [ChatConfiguration.Edits2Enabled]: {
487
507
  type: 'boolean',
488
508
  description: ( localize(
489
- 4831,
509
+ 4879,
490
510
  "Enable the new Edits mode that is based on tool-calling. When this is enabled, models that don't support tool-calling are unavailable for Edits mode."
491
511
  )),
492
512
  default: false,
493
513
  },
494
514
  [ChatConfiguration.ExtensionToolsEnabled]: {
495
515
  type: 'boolean',
496
- description: ( localize(4832, "Enable using tools contributed by third-party extensions.")),
516
+ description: ( localize(4880, "Enable using tools contributed by third-party extensions.")),
497
517
  default: true,
498
518
  policy: {
499
519
  name: 'ChatAgentExtensionTools',
520
+ category: PolicyCategory.InteractiveSession,
500
521
  minimumVersion: '1.99',
501
- description: ( localize(4833, "Enable using tools contributed by third-party extensions.")),
522
+ localization: {
523
+ description: {
524
+ key: 'chat.extensionToolsEnabled',
525
+ value: ( localize(4880, "Enable using tools contributed by third-party extensions."))
526
+ }
527
+ },
502
528
  }
503
529
  },
504
530
  [ChatConfiguration.AgentEnabled]: {
505
531
  type: 'boolean',
506
532
  description: ( localize(
507
- 4834,
533
+ 4881,
508
534
  "Enable agent mode for chat. When this is enabled, agent mode can be activated via the dropdown in the view."
509
535
  )),
510
536
  default: true,
511
537
  policy: {
512
538
  name: 'ChatAgentMode',
539
+ category: PolicyCategory.InteractiveSession,
513
540
  minimumVersion: '1.99',
514
541
  value: (account) => account.chat_agent_enabled === false ? false : undefined,
542
+ localization: {
543
+ description: {
544
+ key: 'chat.agent.enabled.description',
545
+ value: ( localize(
546
+ 4881,
547
+ "Enable agent mode for chat. When this is enabled, agent mode can be activated via the dropdown in the view."
548
+ )),
549
+ }
550
+ }
515
551
  }
516
552
  },
517
553
  [ChatConfiguration.EnableMath]: {
518
554
  type: 'boolean',
519
- description: ( localize(4835, "Enable math rendering in chat responses using KaTeX.")),
555
+ description: ( localize(4882, "Enable math rendering in chat responses using KaTeX.")),
520
556
  default: true,
521
557
  tags: ['preview'],
522
558
  },
523
559
  [ChatConfiguration.AgentSessionsViewLocation]: {
524
560
  type: 'string',
525
- enum: ['disabled', 'view'],
526
- description: ( localize(4836, "Controls where to show the agent sessions menu.")),
527
- default: 'disabled',
561
+ enum: ['disabled', 'view', 'single-view'],
562
+ description: ( localize(4883, "Controls where to show the agent sessions menu.")),
563
+ default: 'view',
528
564
  tags: ['experimental'],
529
565
  experiment: {
530
566
  mode: 'auto'
@@ -538,7 +574,7 @@ configurationRegistry.registerConfiguration({
538
574
  additionalProperties: false,
539
575
  default: Object.fromEntries(( allDiscoverySources.map(k => [k, false]))),
540
576
  markdownDescription: ( localize(
541
- 4837,
577
+ 4884,
542
578
  "Configures discovery of Model Context Protocol servers from configuration from various other applications."
543
579
  )),
544
580
  },
@@ -547,49 +583,36 @@ configurationRegistry.registerConfiguration({
547
583
  default: false,
548
584
  tags: ['preview'],
549
585
  description: ( localize(
550
- 4838,
586
+ 4885,
551
587
  "Enables the default Marketplace for Model Context Protocol (MCP) servers."
552
588
  )),
553
589
  included: product.quality === 'stable'
554
590
  },
555
591
  [mcpGalleryServiceUrlConfig]: {
556
592
  type: 'string',
557
- description: ( localize(4839, "Configure the MCP Gallery service URL to connect to")),
593
+ description: ( localize(4886, "Configure the MCP Gallery service URL to connect to")),
558
594
  default: '',
559
595
  scope: ConfigurationScope.APPLICATION,
560
- tags: ['usesOnlineServices'],
596
+ tags: ['usesOnlineServices', 'advanced'],
561
597
  included: false,
562
598
  policy: {
563
599
  name: 'McpGalleryServiceUrl',
600
+ category: PolicyCategory.InteractiveSession,
564
601
  minimumVersion: '1.101',
565
- value: (account) => account.mcpRegistryUrl
602
+ value: (account) => account.mcpRegistryUrl,
603
+ localization: {
604
+ description: {
605
+ key: 'mcp.gallery.serviceUrl',
606
+ value: ( localize(4886, "Configure the MCP Gallery service URL to connect to")),
607
+ }
608
+ }
566
609
  },
567
610
  },
568
- [PromptsConfig.KEY]: {
569
- type: 'boolean',
570
- title: ( localize(4840, "Prompt Files")),
571
- markdownDescription: ( localize(
572
- 4841,
573
- "Enable reusable prompt (`*{0}`) and instruction files (`*{1}`) in Chat sessions. [Learn More]({2}).",
574
- PROMPT_FILE_EXTENSION,
575
- INSTRUCTION_FILE_EXTENSION,
576
- PROMPT_DOCUMENTATION_URL
577
- )),
578
- default: true,
579
- restricted: true,
580
- disallowConfigurationDefault: true,
581
- tags: ['experimental', 'prompts', 'reusable prompts', 'prompt snippets', 'instructions'],
582
- policy: {
583
- name: 'ChatPromptFiles',
584
- minimumVersion: '1.99',
585
- description: ( localize(4842, "Enables reusable prompt and instruction files in Chat sessions."))
586
- }
587
- },
588
611
  [PromptsConfig.INSTRUCTIONS_LOCATION_KEY]: {
589
612
  type: 'object',
590
- title: ( localize(4843, "Instructions File Locations")),
613
+ title: ( localize(4887, "Instructions File Locations")),
591
614
  markdownDescription: ( localize(
592
- 4844,
615
+ 4888,
593
616
  "Specify location(s) of instructions files (`*{0}`) that can be attached in Chat sessions. [Learn More]({1}).\n\nRelative paths are resolved from the root folder(s) of your workspace.",
594
617
  INSTRUCTION_FILE_EXTENSION,
595
618
  INSTRUCTIONS_DOCUMENTATION_URL
@@ -599,7 +622,7 @@ configurationRegistry.registerConfiguration({
599
622
  },
600
623
  additionalProperties: { type: 'boolean' },
601
624
  restricted: true,
602
- tags: ['experimental', 'prompts', 'reusable prompts', 'prompt snippets', 'instructions'],
625
+ tags: ['prompts', 'reusable prompts', 'prompt snippets', 'instructions'],
603
626
  examples: [
604
627
  {
605
628
  [INSTRUCTIONS_DEFAULT_SOURCE_FOLDER]: true,
@@ -612,9 +635,9 @@ configurationRegistry.registerConfiguration({
612
635
  },
613
636
  [PromptsConfig.PROMPT_LOCATIONS_KEY]: {
614
637
  type: 'object',
615
- title: ( localize(4845, "Prompt File Locations")),
638
+ title: ( localize(4889, "Prompt File Locations")),
616
639
  markdownDescription: ( localize(
617
- 4846,
640
+ 4890,
618
641
  "Specify location(s) of reusable prompt files (`*{0}`) that can be run in Chat sessions. [Learn More]({1}).\n\nRelative paths are resolved from the root folder(s) of your workspace.",
619
642
  PROMPT_FILE_EXTENSION,
620
643
  PROMPT_DOCUMENTATION_URL
@@ -625,7 +648,7 @@ configurationRegistry.registerConfiguration({
625
648
  additionalProperties: { type: 'boolean' },
626
649
  unevaluatedProperties: { type: 'boolean' },
627
650
  restricted: true,
628
- tags: ['experimental', 'prompts', 'reusable prompts', 'prompt snippets', 'instructions'],
651
+ tags: ['prompts', 'reusable prompts', 'prompt snippets', 'instructions'],
629
652
  examples: [
630
653
  {
631
654
  [PROMPT_DEFAULT_SOURCE_FOLDER]: true,
@@ -638,35 +661,39 @@ configurationRegistry.registerConfiguration({
638
661
  },
639
662
  [PromptsConfig.MODE_LOCATION_KEY]: {
640
663
  type: 'object',
641
- title: ( localize(4847, "Mode File Locations")),
664
+ title: ( localize(4891, "Mode File Locations")),
642
665
  markdownDescription: ( localize(
643
- 4848,
666
+ 4892,
644
667
  "Specify location(s) of custom chat mode files (`*{0}`). [Learn More]({1}).\n\nRelative paths are resolved from the root folder(s) of your workspace.",
645
- MODE_FILE_EXTENSION,
646
- MODE_DOCUMENTATION_URL
668
+ LEGACY_MODE_FILE_EXTENSION,
669
+ AGENT_DOCUMENTATION_URL
647
670
  )),
648
671
  default: {
649
- [MODE_DEFAULT_SOURCE_FOLDER]: true,
672
+ [LEGACY_MODE_DEFAULT_SOURCE_FOLDER]: true,
650
673
  },
674
+ deprecationMessage: ( localize(
675
+ 4893,
676
+ "This setting is deprecated and will be removed in future releases. Chat modes are now called custom agents and are located in `.github/agents`"
677
+ )),
651
678
  additionalProperties: { type: 'boolean' },
652
679
  unevaluatedProperties: { type: 'boolean' },
653
680
  restricted: true,
654
681
  tags: ['experimental', 'prompts', 'reusable prompts', 'prompt snippets', 'instructions'],
655
682
  examples: [
656
683
  {
657
- [MODE_DEFAULT_SOURCE_FOLDER]: true,
684
+ [LEGACY_MODE_DEFAULT_SOURCE_FOLDER]: true,
658
685
  },
659
686
  {
660
- [MODE_DEFAULT_SOURCE_FOLDER]: true,
687
+ [LEGACY_MODE_DEFAULT_SOURCE_FOLDER]: true,
661
688
  '/Users/vscode/repos/chatmodes': true,
662
689
  },
663
690
  ],
664
691
  },
665
692
  [PromptsConfig.USE_AGENT_MD]: {
666
693
  type: 'boolean',
667
- title: ( localize(4849, "Use AGENTS.MD file")),
694
+ title: ( localize(4894, "Use AGENTS.MD file")),
668
695
  markdownDescription: ( localize(
669
- 4850,
696
+ 4895,
670
697
  "Controls whether instructions from `AGENTS.MD` file found in a workspace roots are added to all chat requests."
671
698
  )),
672
699
  default: true,
@@ -676,9 +703,9 @@ configurationRegistry.registerConfiguration({
676
703
  },
677
704
  [PromptsConfig.USE_NESTED_AGENT_MD]: {
678
705
  type: 'boolean',
679
- title: ( localize(4851, "Use nested AGENTS.MD files")),
706
+ title: ( localize(4896, "Use nested AGENTS.MD files")),
680
707
  markdownDescription: ( localize(
681
- 4852,
708
+ 4897,
682
709
  "Controls whether instructions `AGENTS.MD` files found in the workspace are listed in all chat requests."
683
710
  )),
684
711
  default: false,
@@ -689,9 +716,9 @@ configurationRegistry.registerConfiguration({
689
716
  [PromptsConfig.PROMPT_FILES_SUGGEST_KEY]: {
690
717
  type: 'object',
691
718
  scope: ConfigurationScope.RESOURCE,
692
- title: ( localize(4853, "Prompt File Recommendations")),
719
+ title: ( localize(4898, "Prompt File Recommendations")),
693
720
  markdownDescription: ( localize(
694
- 4854,
721
+ 4899,
695
722
  "Configure which prompt files to recommend in the chat welcome view. Each key is a prompt file name, and the value can be `true` to always recommend, `false` to never recommend, or a [when clause](https://aka.ms/vscode-when-clause) expression like `resourceExtname == .js` or `resourceLangId == markdown`."
696
723
  )),
697
724
  default: {},
@@ -701,7 +728,7 @@ configurationRegistry.registerConfiguration({
701
728
  { type: 'string' }
702
729
  ]
703
730
  },
704
- tags: ['experimental'],
731
+ tags: ['prompts', 'reusable prompts', 'prompt snippets', 'instructions'],
705
732
  examples: [
706
733
  {
707
734
  'plan': true,
@@ -710,41 +737,13 @@ configurationRegistry.registerConfiguration({
710
737
  }
711
738
  ],
712
739
  },
713
- 'chat.setup.signInDialogVariant': {
714
- type: 'string',
715
- enum: ['default', 'apple'],
716
- description: ( localize(4855, "Control variations of the sign-in dialog.")),
717
- default: 'default',
718
- tags: ['experimental'],
719
- experiment: {
720
- mode: 'auto'
721
- }
722
- },
723
- [ChatConfiguration.TodoList]: {
724
- type: 'object',
725
- description: ( localize(4856, "Configures the todo list widget in chat.")),
726
- properties: {
727
- position: {
728
- type: 'string',
729
- default: 'default',
730
- enum: ['default', 'off', 'chat-input'],
731
- enumDescriptions: [
732
- ( localize(4857, "Show todo list in the top of the chat panel.")),
733
- ( localize(
734
- 4858,
735
- "Hide the todo list (still shows the tool calls for tracking todo progress)."
736
- )),
737
- ( localize(4859, "Show todo list above the chat input."))
738
- ],
739
- description: ( localize(
740
- 4860,
741
- "Controls the position of the todo list in the chat view, which opens when the agent has created todo items and updates as it makes progress."
742
- ))
743
- }
744
- },
745
- default: {
746
- position: 'default'
747
- },
740
+ [ChatConfiguration.TodosShowWidget]: {
741
+ type: 'boolean',
742
+ default: true,
743
+ description: ( localize(
744
+ 4900,
745
+ "Controls whether to show the todo list widget above the chat input. When enabled, the widget displays todo items created by the agent and updates as progress is made."
746
+ )),
748
747
  tags: ['experimental'],
749
748
  experiment: {
750
749
  mode: 'auto'
@@ -754,79 +753,127 @@ configurationRegistry.registerConfiguration({
754
753
  type: 'boolean',
755
754
  default: false,
756
755
  description: ( localize(
757
- 4861,
756
+ 4901,
758
757
  "When enabled, the todo tool operates in write-only mode, requiring the agent to remember todos in context."
759
758
  )),
760
- tags: ['experimental']
759
+ tags: ['experimental'],
760
+ experiment: {
761
+ mode: 'auto'
762
+ }
761
763
  },
762
764
  'chat.todoListTool.descriptionField': {
763
765
  type: 'boolean',
764
766
  default: true,
765
767
  description: ( localize(
766
- 4862,
768
+ 4902,
767
769
  "When enabled, todo items include detailed descriptions for implementation context. This provides more information but uses additional tokens and may slow down responses."
768
770
  )),
769
- tags: ['experimental']
771
+ tags: ['experimental'],
772
+ experiment: {
773
+ mode: 'auto'
774
+ }
770
775
  },
771
776
  [ChatConfiguration.ThinkingStyle]: {
772
777
  type: 'string',
773
- default: product.quality === 'insider' ? 'fixedScrolling' : 'collapsed',
774
- enum: ['collapsed', 'collapsedPreview', 'expanded', 'none', 'collapsedPerItem', 'fixedScrolling'],
778
+ default: 'fixedScrolling',
779
+ enum: ['collapsed', 'collapsedPreview', 'fixedScrolling'],
775
780
  enumDescriptions: [
776
- ( localize(4863, "Thinking parts will be collapsed by default.")),
781
+ ( localize(4903, "Thinking parts will be collapsed by default.")),
777
782
  ( localize(
778
- 4864,
783
+ 4904,
779
784
  "Thinking parts will be expanded first, then collapse once we reach a part that is not thinking."
780
785
  )),
781
- ( localize(4865, "Thinking parts will be expanded by default.")),
782
- ( localize(4866, "Do not show the thinking")),
783
786
  ( localize(
784
- 4867,
785
- "Each thinking subsection is individually collapsible and collapsed by default inside the thinking block."
787
+ 4905,
788
+ "Show thinking in a fixed-height streaming panel that auto-scrolls; click header to expand to full height."
786
789
  )),
790
+ ],
791
+ description: ( localize(4906, "Controls how thinking is rendered.")),
792
+ tags: ['experimental'],
793
+ },
794
+ 'chat.agent.thinking.collapsedTools': {
795
+ type: 'string',
796
+ default: 'readOnly',
797
+ enum: ['none', 'all', 'readOnly'],
798
+ enumDescriptions: [
799
+ ( localize(4907, "No tool calls are added into the collapsible thinking section.")),
800
+ ( localize(4908, "All tool calls are added into the collapsible thinking section.")),
787
801
  ( localize(
788
- 4868,
789
- "Show thinking in a fixed-height streaming panel that auto-scrolls; click header to expand to full height."
802
+ 4909,
803
+ "Only read-only tool calls are added into the collapsible thinking section."
790
804
  )),
791
805
  ],
792
- description: ( localize(4869, "Controls how thinking is rendered.")),
806
+ markdownDescription: ( localize(
807
+ 4910,
808
+ "When enabled, tool calls are added into the collapsible thinking section according to the selected mode."
809
+ )),
793
810
  tags: ['experimental'],
794
811
  },
795
812
  'chat.disableAIFeatures': {
796
813
  type: 'boolean',
797
814
  description: ( localize(
798
- 4870,
799
- "Disable and hide built-in AI features provided by GitHub Copilot, including chat, code completions and next edit suggestions."
815
+ 4911,
816
+ "Disable and hide built-in AI features provided by GitHub Copilot, including chat and inline suggestions."
800
817
  )),
801
818
  default: false,
802
819
  scope: ConfigurationScope.WINDOW
803
820
  },
804
821
  [ChatConfiguration.UseCloudButtonV2]: {
805
822
  type: 'boolean',
806
- description: ( localize(4871, "Experimental implementation of 'cloud button'")),
807
- default: false,
823
+ description: ( localize(4912, "Experimental implementation of 'cloud button'")),
824
+ default: true,
808
825
  tags: ['experimental'],
809
826
  },
810
827
  [ChatConfiguration.ShowAgentSessionsViewDescription]: {
811
828
  type: 'boolean',
812
829
  description: ( localize(
813
- 4872,
830
+ 4913,
814
831
  "Controls whether session descriptions are displayed on a second row in the Chat Sessions view."
815
832
  )),
816
833
  default: true,
817
834
  },
818
835
  'chat.allowAnonymousAccess': {
819
836
  type: 'boolean',
820
- description: ( localize(4873, "Controls whether anonymous access is allowed in chat.")),
837
+ description: ( localize(4914, "Controls whether anonymous access is allowed in chat.")),
838
+ default: false,
839
+ tags: ['experimental'],
840
+ experiment: {
841
+ mode: 'auto'
842
+ }
843
+ },
844
+ 'chat.signInWithAlternateScopes': {
845
+ type: 'boolean',
846
+ description: ( localize(4915, "Controls whether sign-in with alternate scopes is used.")),
847
+ default: false,
848
+ tags: ['experimental'],
849
+ experiment: {
850
+ mode: 'auto'
851
+ }
852
+ },
853
+ 'chat.extensionUnification.enabled': {
854
+ type: 'boolean',
855
+ description: ( localize(
856
+ 4916,
857
+ "Enables the unification of GitHub Copilot extensions. When enabled, all GitHub Copilot functionality is served from the GitHub Copilot Chat extension. When disabled, the GitHub Copilot and GitHub Copilot Chat extensions operate independently."
858
+ )),
821
859
  default: false,
822
860
  tags: ['experimental'],
823
861
  experiment: {
824
862
  mode: 'auto'
825
863
  }
826
864
  },
865
+ [ChatConfiguration.SubagentToolCustomAgents]: {
866
+ type: 'boolean',
867
+ description: ( localize(
868
+ 4917,
869
+ "Whether the runSubagent tool is able to use custom agents. When enabled, the tool can take the name of a custom agent, but it must be given the exact name of the agent."
870
+ )),
871
+ default: false,
872
+ tags: ['experimental'],
873
+ }
827
874
  }
828
875
  });
829
- ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(4874, "Chat"))), [
876
+ ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(4918, "Chat"))), [
830
877
  ( new SyncDescriptor(ChatEditorInput))
831
878
  ]);
832
879
  ( Registry.as(Extensions$1.ConfigurationMigration)).registerConfigurationMigrations([
@@ -849,25 +896,47 @@ configurationRegistry.registerConfiguration({
849
896
  ]);
850
897
  let ChatResolverContribution = class ChatResolverContribution extends Disposable {
851
898
  static { this.ID = 'workbench.contrib.chatResolver'; }
852
- constructor(editorResolverService, instantiationService) {
899
+ constructor(chatSessionsService, editorResolverService, instantiationService) {
853
900
  super();
854
- this._register(editorResolverService.registerEditor(`{${Schemas.vscodeChatEditor},${Schemas.vscodeChatSession}}:**/**`, {
901
+ this.editorResolverService = editorResolverService;
902
+ this.instantiationService = instantiationService;
903
+ this._editorRegistrations = this._register(( new DisposableMap()));
904
+ this._registerEditor(Schemas.vscodeChatEditor);
905
+ this._registerEditor(Schemas.vscodeLocalChatSession);
906
+ this._register(chatSessionsService.onDidChangeContentProviderSchemes((e) => {
907
+ for (const scheme of e.added) {
908
+ this._registerEditor(scheme);
909
+ }
910
+ for (const scheme of e.removed) {
911
+ this._editorRegistrations.deleteAndDispose(scheme);
912
+ }
913
+ }));
914
+ for (const scheme of chatSessionsService.getContentProviderSchemes()) {
915
+ this._registerEditor(scheme);
916
+ }
917
+ }
918
+ _registerEditor(scheme) {
919
+ this._editorRegistrations.set(scheme, this.editorResolverService.registerEditor(`${scheme}:**/**`, {
855
920
  id: ChatEditorInput.EditorID,
856
- label: ( localize(4874, "Chat")),
921
+ label: ( localize(4918, "Chat")),
857
922
  priority: RegisteredEditorPriority.builtin
858
923
  }, {
859
924
  singlePerResource: true,
860
- canSupportResource: resource => resource.scheme === Schemas.vscodeChatEditor || resource.scheme === Schemas.vscodeChatSession,
925
+ canSupportResource: resource => resource.scheme === scheme,
861
926
  }, {
862
927
  createEditorInput: ({ resource, options }) => {
863
- return { editor: instantiationService.createInstance(ChatEditorInput, resource, options), options };
928
+ return {
929
+ editor: this.instantiationService.createInstance(ChatEditorInput, resource, options),
930
+ options
931
+ };
864
932
  }
865
933
  }));
866
934
  }
867
935
  };
868
936
  ChatResolverContribution = ( __decorate([
869
- ( __param(0, IEditorResolverService)),
870
- ( __param(1, IInstantiationService))
937
+ ( __param(0, IChatSessionsService)),
938
+ ( __param(1, IEditorResolverService)),
939
+ ( __param(2, IInstantiationService))
871
940
  ], ChatResolverContribution));
872
941
  let ChatAgentSettingContribution = class ChatAgentSettingContribution extends Disposable {
873
942
  static { this.ID = 'workbench.contrib.chatAgentSetting'; }
@@ -887,14 +956,14 @@ let ChatAgentSettingContribution = class ChatAgentSettingContribution extends Di
887
956
  const defaultValue = value ?? (this.entitlementService.entitlement === ChatEntitlement.Free ? 25 : 25);
888
957
  const node = {
889
958
  id: 'chatSidebar',
890
- title: ( localize(4782, "Chat")),
959
+ title: ( localize(4831, "Chat")),
891
960
  type: 'object',
892
961
  properties: {
893
962
  'chat.agent.maxRequests': {
894
963
  type: 'number',
895
964
  markdownDescription: ( localize(
896
- 4875,
897
- "The maximum number of requests to allow per-turn in agent mode. When the limit is reached, will ask to confirm to continue."
965
+ 4919,
966
+ "The maximum number of requests to allow per-turn when using an agent. When the limit is reached, will ask to confirm to continue."
898
967
  )),
899
968
  default: defaultValue,
900
969
  },
@@ -923,26 +992,13 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
923
992
  super();
924
993
  this._store.add(slashCommandService.registerSlashCommand({
925
994
  command: 'clear',
926
- detail: ( localize(4876, "Start a new chat")),
995
+ detail: ( localize(4920, "Start a new chat")),
927
996
  sortText: 'z2_clear',
928
997
  executeImmediately: true,
929
998
  locations: [ChatAgentLocation.Chat]
930
999
  }, async () => {
931
1000
  commandService.executeCommand(ACTION_ID_NEW_CHAT);
932
1001
  }));
933
- this._store.add(slashCommandService.registerSlashCommand({
934
- command: SAVE_TO_PROMPT_SLASH_COMMAND_NAME,
935
- detail: ( localize(4877, "Save chat to a prompt file")),
936
- sortText: `z3_${SAVE_TO_PROMPT_SLASH_COMMAND_NAME}`,
937
- executeImmediately: true,
938
- silent: true,
939
- locations: [ChatAgentLocation.Chat]
940
- }, async () => {
941
- const { lastFocusedWidget } = chatWidgetService;
942
- assertDefined(lastFocusedWidget, 'No currently active chat widget found.');
943
- const options = { chat: lastFocusedWidget };
944
- return commandService.executeCommand(SAVE_TO_PROMPT_ACTION_ID, options);
945
- }));
946
1002
  this._store.add(slashCommandService.registerSlashCommand({
947
1003
  command: 'help',
948
1004
  detail: '',
@@ -1022,7 +1078,9 @@ registerWorkbenchContribution2(ChatTransferContribution.ID, ChatTransferContribu
1022
1078
  registerWorkbenchContribution2(ChatContextContributions.ID, ChatContextContributions, WorkbenchPhase.AfterRestored);
1023
1079
  registerWorkbenchContribution2(ChatResponseResourceFileSystemProvider.ID, ChatResponseResourceFileSystemProvider, WorkbenchPhase.AfterRestored);
1024
1080
  registerWorkbenchContribution2(PromptUrlHandler.ID, PromptUrlHandler, WorkbenchPhase.BlockRestore);
1025
- registerWorkbenchContribution2(ChatSessionsView.ID, ChatSessionsView, WorkbenchPhase.AfterRestored);
1081
+ registerWorkbenchContribution2(LocalChatSessionsProvider.ID, LocalChatSessionsProvider, WorkbenchPhase.AfterRestored);
1082
+ registerWorkbenchContribution2(ChatSessionsViewContrib.ID, ChatSessionsViewContrib, WorkbenchPhase.AfterRestored);
1083
+ registerWorkbenchContribution2(ChatSessionsView.ID, ChatSessionsView, WorkbenchPhase.BlockRestore);
1026
1084
  registerWorkbenchContribution2(ChatEditingNotebookFileSystemProviderContrib.ID, ChatEditingNotebookFileSystemProviderContrib, WorkbenchPhase.BlockStartup);
1027
1085
  registerWorkbenchContribution2(UserToolSetsContributions.ID, UserToolSetsContributions, WorkbenchPhase.Eventually);
1028
1086
  registerWorkbenchContribution2(PromptLanguageFeaturesProvider.ID, PromptLanguageFeaturesProvider, WorkbenchPhase.Eventually);
@@ -1053,4 +1111,5 @@ registerAction2(OpenChatSessionInNewEditorGroupAction);
1053
1111
  registerAction2(OpenChatSessionInSidebarAction);
1054
1112
  registerAction2(ToggleChatSessionsDescriptionDisplayAction);
1055
1113
  registerAction2(ChatSessionsGettingStartedAction);
1114
+ registerAction2(ToggleAgentSessionsViewLocationAction);
1056
1115
  ChatWidget.CONTRIBS.push(ChatDynamicVariableModel);