@codingame/monaco-vscode-chat-service-override 17.2.1 → 18.0.1

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 (159) hide show
  1. package/index.js +7 -4
  2. package/package.json +36 -30
  3. package/vscode/src/vs/base/common/objectCache.d.ts +2 -2
  4. package/vscode/src/vs/base/common/objectCache.js +3 -3
  5. package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +10 -0
  6. package/vscode/src/vs/platform/browserElements/common/browserElements.js +9 -0
  7. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +40 -40
  8. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.d.ts +6 -0
  9. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +158 -0
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.d.ts +1 -1
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +13 -13
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContext.d.ts +8 -0
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContext.js +256 -0
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.d.ts +3 -4
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +234 -572
  16. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +4 -4
  17. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +4 -3
  18. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +4 -4
  19. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +1 -1
  20. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +5 -5
  21. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +29 -19
  22. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.d.ts +1 -1
  23. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +11 -11
  24. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.d.ts +1 -0
  25. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +107 -0
  26. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.d.ts +3 -0
  27. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +344 -0
  28. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +4 -3
  29. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +84 -37
  30. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatAttachInstructionsAction.d.ts +18 -3
  31. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatAttachInstructionsAction.js +137 -14
  32. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatModeActions.d.ts +1 -0
  33. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatModeActions.js +54 -0
  34. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatRunPromptAction.js +40 -10
  35. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatSaveToPromptAction.d.ts +1 -1
  36. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatSaveToPromptAction.js +3 -3
  37. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/dialogs/askToSelectPrompt/promptFilePickers.d.ts +15 -5
  38. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/dialogs/askToSelectPrompt/promptFilePickers.js +171 -101
  39. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/dialogs/askToSelectPrompt/utils/attachInstructions.d.ts +2 -2
  40. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/dialogs/askToSelectPrompt/utils/attachInstructions.js +2 -2
  41. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/dialogs/askToSelectPrompt/utils/runPrompt.d.ts +1 -1
  42. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/index.d.ts +0 -1
  43. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/index.js +2 -1
  44. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +176 -69
  45. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.d.ts +1 -1
  46. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +15 -29
  47. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorAccessibility.js +2 -2
  48. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +22 -22
  49. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +35 -29
  50. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +1 -0
  51. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +80 -32
  52. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +5 -3
  53. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +11 -9
  54. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +12 -11
  55. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +13 -11
  56. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +2 -2
  57. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +15 -13
  58. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +3 -5
  59. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.js +10 -9
  60. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +18 -8
  61. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.d.ts +1 -1
  62. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.js +1 -1
  63. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js +118 -33
  64. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +2 -2
  65. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +5 -5
  66. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.d.ts +1 -3
  67. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +46 -48
  68. package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.d.ts +49 -0
  69. package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +379 -0
  70. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.d.ts +1 -1
  71. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +1 -1
  72. package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.d.ts +1 -1
  73. package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +31 -10
  74. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.d.ts +2 -1
  75. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +382 -152
  76. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.d.ts +1 -1
  77. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.js +99 -56
  78. package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.d.ts +2 -1
  79. package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +11 -1
  80. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +1 -3
  81. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +9 -21
  82. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.d.ts +1 -1
  83. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +10 -6
  84. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +1 -1
  85. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +18 -5
  86. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +95 -24
  87. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatSetup.css +92 -5
  88. package/vscode/src/vs/workbench/contrib/chat/browser/media/github.svg +1 -0
  89. package/vscode/src/vs/workbench/contrib/chat/browser/media/google.svg +6 -0
  90. package/vscode/src/vs/workbench/contrib/chat/browser/media/simpleBrowserOverlay.css +10 -4
  91. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/createPromptCommand.d.ts +1 -0
  92. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/createPromptCommand.js +111 -111
  93. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptName.d.ts +3 -4
  94. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptName.js +36 -10
  95. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptSourceFolder.d.ts +5 -17
  96. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptSourceFolder.js +91 -17
  97. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/errors.js +2 -2
  98. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/utils/createPromptFile.d.ts +1 -4
  99. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/utils/createPromptFile.js +4 -5
  100. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.d.ts +1 -0
  101. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +95 -0
  102. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.d.ts +24 -0
  103. package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +348 -0
  104. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
  105. package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +2 -2
  106. package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +2 -2
  107. package/vscode/src/vs/workbench/contrib/chat/common/chatResponseResourceFileSystemProvider.d.ts +30 -0
  108. package/vscode/src/vs/workbench/contrib/chat/common/chatResponseResourceFileSystemProvider.js +93 -0
  109. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +5 -2
  110. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +46 -36
  111. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +2 -2
  112. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/configMigration.d.ts +5 -1
  113. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/configMigration.js +21 -11
  114. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/index.js +6 -1
  115. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/index.js +3 -2
  116. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/promptHeaderDiagnosticsProvider.d.ts +4 -3
  117. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/promptHeaderDiagnosticsProvider.js +12 -8
  118. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/promptLinkDiagnosticsProvider.d.ts +3 -3
  119. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/promptLinkDiagnosticsProvider.js +1 -2
  120. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/promptLinkProvider.js +3 -3
  121. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/promptPathAutocompletion.js +5 -5
  122. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/providerInstanceBase.d.ts +2 -1
  123. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/providerInstanceBase.js +9 -5
  124. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/providerInstanceManagerBase.d.ts +3 -2
  125. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/providerInstanceManagerBase.js +12 -8
  126. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/textModelPromptParser.d.ts +1 -1
  127. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/textModelPromptParser.js +3 -3
  128. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +21 -10
  129. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +111 -124
  130. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +22 -8
  131. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +159 -97
  132. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/treeUtils.d.ts +15 -3
  133. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/treeUtils.js +2 -14
  134. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +8 -2
  135. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +198 -33
  136. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
  137. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +7 -7
  138. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +1 -1
  139. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +28 -18
  140. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +1 -1
  141. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.d.ts +1 -1
  142. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.js +2 -2
  143. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/attachInstructionsCommand.d.ts +0 -6
  144. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/attachInstructionsCommand.js +0 -73
  145. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/frontMatterDecoration.d.ts +0 -29
  146. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/frontMatterDecoration.js +0 -74
  147. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/frontMatterMarkerDecoration.d.ts +0 -14
  148. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/frontMatterMarkerDecoration.js +0 -40
  149. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/decorationBase.d.ts +0 -23
  150. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/decorationBase.js +0 -40
  151. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/index.d.ts +0 -5
  152. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/index.js +0 -9
  153. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/reactiveDecorationBase.d.ts +0 -23
  154. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/reactiveDecorationBase.js +0 -68
  155. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/types.d.ts +0 -13
  156. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/promptDecorationsProvider.d.ts +0 -19
  157. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/promptDecorationsProvider.js +0 -121
  158. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/types.d.ts +0 -13
  159. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/types.js +0 -13
@@ -1,11 +1,12 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
+ import './promptSyntax/promptToolsCodeLensProvider.js';
3
4
  import { timeout } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
4
5
  import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
5
6
  import { isMarkdownString, MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
6
7
  import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
7
8
  import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
8
- import { isMacintosh } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
9
+ import { isLinux, isMacintosh } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
9
10
  import { assertDefined } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
10
11
  import { registerEditorFeature } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorFeatures';
11
12
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
@@ -15,22 +16,23 @@ import { Extensions, ConfigurationScope } from '@codingame/monaco-vscode-api/vsc
15
16
  import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
16
17
  import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
17
18
  import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
18
- import { PromptsConfig } from '@codingame/monaco-vscode-51fed910-d648-5620-9b80-9232cd79d116-common/vscode/vs/platform/prompts/common/config';
19
- import { PROMPT_DEFAULT_SOURCE_FOLDER, PROMPT_FILE_EXTENSION, INSTRUCTIONS_DEFAULT_SOURCE_FOLDER, INSTRUCTION_FILE_EXTENSION } from '@codingame/monaco-vscode-51fed910-d648-5620-9b80-9232cd79d116-common/vscode/vs/platform/prompts/common/constants';
19
+ import { mcpGalleryServiceUrlConfig } from '@codingame/monaco-vscode-aa9ead53-dfd3-59da-b9e7-f163d201de8d-common/vscode/vs/platform/mcp/common/mcpManagement';
20
+ import { PromptsConfig } from '@codingame/monaco-vscode-47472025-cc45-5680-86cd-09ceaba921a1-common/vscode/vs/platform/prompts/common/config';
21
+ 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-47472025-cc45-5680-86cd-09ceaba921a1-common/vscode/vs/platform/prompts/common/prompts';
20
22
  import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
21
- import { EditorPaneDescriptor } from '@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/workbench/browser/editor';
23
+ import { EditorPaneDescriptor } from '@codingame/monaco-vscode-dcfc2191-2da1-54c7-8fb7-e92c5d11ecef-common/vscode/vs/workbench/browser/editor';
22
24
  import { Extensions as Extensions$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/configuration';
23
25
  import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
24
26
  import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
25
27
  import { IWorkbenchAssignmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/assignment/common/assignmentService.service';
26
- import { mcpSchemaId } from '@codingame/monaco-vscode-4a0e04a7-c3bd-5fb7-9d3b-4fd047cc9e59-common/vscode/vs/workbench/services/configuration/common/configuration';
28
+ import { mcpSchemaId } from '@codingame/monaco-vscode-ce7c734f-7712-563c-9335-d7acb43306af-common/vscode/vs/workbench/services/configuration/common/configuration';
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
- import { mcpDiscoverySection, allDiscoverySources, discoverySourceLabel, mcpConfigurationSection, mcpSchemaExampleServers, mcpEnabledSection } from '@codingame/monaco-vscode-1cb11a73-359e-5a2f-9e95-6989cc9858ee-common/vscode/vs/workbench/contrib/mcp/common/mcpConfiguration';
31
+ import { mcpDiscoverySection, allDiscoverySources, discoverySourceLabel, mcpConfigurationSection, mcpSchemaExampleServers, mcpServerSamplingSection, mcpEnabledSection } from '@codingame/monaco-vscode-aa9ead53-dfd3-59da-b9e7-f163d201de8d-common/vscode/vs/workbench/contrib/mcp/common/mcpConfiguration';
30
32
  import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents';
31
33
  import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
32
34
  import '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/chat/common/chatColors';
33
- import { ChatEntitlement } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/chatEntitlementService';
35
+ import { ChatEntitlement } from '@codingame/monaco-vscode-3a35f433-1297-5707-ab58-c261b8180e6d-common/vscode/vs/workbench/contrib/chat/common/chatEntitlementService';
34
36
  import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEntitlementService.service';
35
37
  import { chatVariableLeader } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
36
38
  import '../common/chatServiceImpl.js';
@@ -40,17 +42,19 @@ import '../common/chatTransferService.js';
40
42
  import '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/chatWidgetHistoryService';
41
43
  import { ChatConfiguration, ChatAgentLocation, ChatMode } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
42
44
  import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels';
43
- import '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/languageModelStats';
44
- import { PROMPT_DOCUMENTATION_URL, INSTRUCTIONS_DOCUMENTATION_URL } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/constants';
45
+ import '@codingame/monaco-vscode-3a35f433-1297-5707-ab58-c261b8180e6d-common/vscode/vs/workbench/contrib/chat/common/languageModelStats';
46
+ import { MODE_DOCUMENTATION_URL, PROMPT_DOCUMENTATION_URL, INSTRUCTIONS_DOCUMENTATION_URL } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/constants';
45
47
  import { registerPromptFileContributions } from '../common/promptSyntax/contributions/index.js';
46
48
  import '../common/promptSyntax/service/promptsService.js';
47
49
  import { LanguageModelToolsExtensionPointHandler } from '../common/tools/languageModelToolsContribution.js';
48
50
  import { BuiltinToolsContribution } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/tools';
51
+ import { UserToolSetsContributions, ConfigureToolSets } from './tools/toolSetsContribution.js';
49
52
  import '../common/voiceChatService.js';
50
53
  import { PanelChatAccessibilityHelp, QuickChatAccessibilityHelp, EditsChatAccessibilityHelp, AgentChatAccessibilityHelp } from './actions/chatAccessibilityHelp.js';
51
- import { CopilotTitleBarMenuRendering, registerChatActions } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
52
- import { ACTION_ID_NEW_CHAT, registerNewChatActions } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/actions/chatClearActions';
54
+ import { ACTION_ID_NEW_CHAT, CopilotTitleBarMenuRendering, registerChatActions } from '@codingame/monaco-vscode-3a35f433-1297-5707-ab58-c261b8180e6d-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
55
+ import { registerNewChatActions } from './actions/chatClearActions.js';
53
56
  import { CodeBlockActionRendering, registerChatCodeBlockActions, registerChatCodeCompareBlockActions } from './actions/chatCodeblockActions.js';
57
+ import { ChatContextContributions } from './actions/chatContext.js';
54
58
  import { registerChatContextActions } from './actions/chatContextActions.js';
55
59
  import { registerChatCopyActions } from './actions/chatCopyActions.js';
56
60
  import { registerChatDeveloperActions } from './actions/chatDeveloperActions.js';
@@ -61,13 +65,16 @@ import { registerChatExportActions } from './actions/chatImportExport.js';
61
65
  import { registerMoveActions } from './actions/chatMoveActions.js';
62
66
  import { registerQuickChatActions } from './actions/chatQuickInputActions.js';
63
67
  import { registerChatTitleActions } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/chat/browser/actions/chatTitleActions';
64
- import { registerChatToolActions } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/actions/chatToolActions';
68
+ import { registerChatToolActions } from './actions/chatToolActions.js';
65
69
  import { ChatTransferContribution } from './actions/chatTransfer.js';
66
70
  import { SAVE_TO_PROMPT_SLASH_COMMAND_NAME, runSaveToPromptAction } from './actions/promptActions/chatSaveToPromptAction.js';
67
71
  import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
68
72
  import './chatAccessibilityService.js';
69
73
  import '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chatAttachmentModel';
70
74
  import '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
75
+ import '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
76
+ import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
77
+ import '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
71
78
  import { ChatInputBoxContentProvider } from './chatEdinputInputContentProvider.js';
72
79
  import { ChatEditingEditorAccessibility } from './chatEditing/chatEditingEditorAccessibility.js';
73
80
  import { registerChatEditorActions } from './chatEditing/chatEditingEditorActions.js';
@@ -77,10 +84,10 @@ import './chatEditing/chatEditingServiceImpl.js';
77
84
  import { ChatEditingNotebookFileSystemProviderContrib } from './chatEditing/notebook/chatEditingNotebookFileSystemProvider.js';
78
85
  import { SimpleBrowserOverlay } from './chatEditing/simpleBrowserEditorOverlay.js';
79
86
  import { ChatEditor } from './chatEditor.js';
80
- import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
87
+ import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-3a35f433-1297-5707-ab58-c261b8180e6d-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
81
88
  import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer';
82
89
  import { ChatExtensionPointHandler, ChatCompatibilityNotifier } from './chatParticipant.contribution.js';
83
- import { ChatPasteProvidersFeature } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chatPasteProviders';
90
+ import { ChatPasteProvidersFeature } from './chatPasteProviders.js';
84
91
  import './chatQuick.js';
85
92
  import { ChatResponseAccessibleView } from './chatResponseAccessibleView.js';
86
93
  import { ChatSetupContribution } from './chatSetup.js';
@@ -93,41 +100,44 @@ import './contrib/chatInputEditorContrib.js';
93
100
  import './contrib/chatInputEditorHover.js';
94
101
  import { ChatRelatedFilesContribution } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib';
95
102
  import './languageModelToolsService.js';
96
- import './promptSyntax/contributions/attachInstructionsCommand.js';
97
103
  import './promptSyntax/contributions/createPromptCommand/createPromptCommand.js';
98
104
  import { ChatViewsWelcomeHandler } from './viewsWelcome/chatViewsWelcomeHandler.js';
105
+ import { registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
106
+ import product from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/product';
107
+ import '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/chatModes';
108
+ import { ChatResponseResourceFileSystemProvider } from '../common/chatResponseResourceFileSystemProvider.js';
99
109
 
100
110
  const configurationRegistry = ( Registry.as(Extensions.Configuration));
101
111
  configurationRegistry.registerConfiguration({
102
112
  id: 'chatSidebar',
103
- title: ( localize(4531, "Chat")),
113
+ title: ( localize(4570, "Chat")),
104
114
  type: 'object',
105
115
  properties: {
106
116
  'chat.editor.fontSize': {
107
117
  type: 'number',
108
- description: ( localize(4532, "Controls the font size in pixels in chat codeblocks.")),
118
+ description: ( localize(4571, "Controls the font size in pixels in chat codeblocks.")),
109
119
  default: isMacintosh ? 12 : 14,
110
120
  },
111
121
  'chat.editor.fontFamily': {
112
122
  type: 'string',
113
- description: ( localize(4533, "Controls the font family in chat codeblocks.")),
123
+ description: ( localize(4572, "Controls the font family in chat codeblocks.")),
114
124
  default: 'default'
115
125
  },
116
126
  'chat.editor.fontWeight': {
117
127
  type: 'string',
118
- description: ( localize(4534, "Controls the font weight in chat codeblocks.")),
128
+ description: ( localize(4573, "Controls the font weight in chat codeblocks.")),
119
129
  default: 'default'
120
130
  },
121
131
  'chat.editor.wordWrap': {
122
132
  type: 'string',
123
- description: ( localize(4535, "Controls whether lines should wrap in chat codeblocks.")),
133
+ description: ( localize(4574, "Controls whether lines should wrap in chat codeblocks.")),
124
134
  default: 'off',
125
135
  enum: ['on', 'off']
126
136
  },
127
137
  'chat.editor.lineHeight': {
128
138
  type: 'number',
129
139
  description: ( localize(
130
- 4536,
140
+ 4575,
131
141
  "Controls the line height in pixels in chat codeblocks. Use 0 to compute the line height from the font size."
132
142
  )),
133
143
  default: 0
@@ -135,7 +145,7 @@ configurationRegistry.registerConfiguration({
135
145
  'chat.commandCenter.enabled': {
136
146
  type: 'boolean',
137
147
  markdownDescription: ( localize(
138
- 4537,
148
+ 4576,
139
149
  "Controls whether the command center shows a menu for actions to control Copilot (requires {0}).",
140
150
  '`#window.commandCenter#`'
141
151
  )),
@@ -145,17 +155,17 @@ configurationRegistry.registerConfiguration({
145
155
  type: 'object',
146
156
  tags: ['experimental'],
147
157
  description: ( localize(
148
- 4538,
158
+ 4577,
149
159
  "Enables automatically using the active editor as chat context for specified chat locations."
150
160
  )),
151
161
  additionalProperties: {
152
162
  type: 'string',
153
163
  enum: ['never', 'first', 'always'],
154
- description: ( localize(4539, "The value for the implicit context.")),
164
+ description: ( localize(4578, "The value for the implicit context.")),
155
165
  enumDescriptions: [
156
- ( localize(4540, "Implicit context is never enabled.")),
157
- ( localize(4541, "Implicit context is enabled for the first interaction.")),
158
- ( localize(4542, "Implicit context is always enabled."))
166
+ ( localize(4579, "Implicit context is never enabled.")),
167
+ ( localize(4580, "Implicit context is enabled for the first interaction.")),
168
+ ( localize(4581, "Implicit context is always enabled."))
159
169
  ]
160
170
  },
161
171
  default: {
@@ -165,7 +175,7 @@ configurationRegistry.registerConfiguration({
165
175
  'chat.editing.autoAcceptDelay': {
166
176
  type: 'number',
167
177
  markdownDescription: ( localize(
168
- 4543,
178
+ 4582,
169
179
  "Delay after which changes made by chat are automatically accepted. Values are in seconds, `0` means disabled and `100` seconds is the maximum."
170
180
  )),
171
181
  default: 0,
@@ -176,7 +186,7 @@ configurationRegistry.registerConfiguration({
176
186
  type: 'boolean',
177
187
  scope: ConfigurationScope.APPLICATION,
178
188
  markdownDescription: ( localize(
179
- 4544,
189
+ 4583,
180
190
  "Whether to show a confirmation before removing a request and its associated edits."
181
191
  )),
182
192
  default: true,
@@ -185,7 +195,7 @@ configurationRegistry.registerConfiguration({
185
195
  type: 'boolean',
186
196
  scope: ConfigurationScope.APPLICATION,
187
197
  markdownDescription: ( localize(
188
- 4545,
198
+ 4584,
189
199
  "Whether to show a confirmation before retrying a request and its associated edits."
190
200
  )),
191
201
  default: true,
@@ -193,36 +203,37 @@ configurationRegistry.registerConfiguration({
193
203
  'chat.experimental.detectParticipant.enabled': {
194
204
  type: 'boolean',
195
205
  deprecationMessage: ( localize(
196
- 4546,
206
+ 4585,
197
207
  "This setting is deprecated. Please use `chat.detectParticipant.enabled` instead."
198
208
  )),
199
- description: ( localize(4547, "Enables chat participant autodetection for panel chat.")),
209
+ description: ( localize(4586, "Enables chat participant autodetection for panel chat.")),
200
210
  default: null
201
211
  },
202
212
  'chat.detectParticipant.enabled': {
203
213
  type: 'boolean',
204
- description: ( localize(4548, "Enables chat participant autodetection for panel chat.")),
214
+ description: ( localize(4587, "Enables chat participant autodetection for panel chat.")),
205
215
  default: true
206
216
  },
207
217
  'chat.renderRelatedFiles': {
208
218
  type: 'boolean',
209
219
  description: ( localize(
210
- 4549,
220
+ 4588,
211
221
  "Controls whether related files should be rendered in the chat input."
212
222
  )),
213
223
  default: false
214
224
  },
215
- 'chat.focusWindowOnConfirmation': {
225
+ 'chat.notifyWindowOnConfirmation': {
216
226
  type: 'boolean',
227
+ included: !isLinux,
217
228
  description: ( localize(
218
- 4550,
219
- "Controls whether the Copilot window should be focused when a confirmation is needed."
229
+ 4589,
230
+ "Controls whether the Copilot window should notify the user when a confirmation is needed."
220
231
  )),
221
232
  default: true,
222
233
  },
223
234
  'chat.tools.autoApprove': {
224
235
  default: false,
225
- description: ( localize(4551, "Controls whether tool use should be automatically approved.")),
236
+ description: ( localize(4590, "Controls whether tool use should be automatically approved.")),
226
237
  type: 'boolean',
227
238
  tags: ['experimental'],
228
239
  policy: {
@@ -235,7 +246,7 @@ configurationRegistry.registerConfiguration({
235
246
  'chat.sendElementsToChat.enabled': {
236
247
  default: true,
237
248
  description: ( localize(
238
- 4552,
249
+ 4591,
239
250
  "Controls whether elements can be sent to chat from the Simple Browser."
240
251
  )),
241
252
  type: 'boolean',
@@ -244,7 +255,7 @@ configurationRegistry.registerConfiguration({
244
255
  'chat.sendElementsToChat.attachCSS': {
245
256
  default: true,
246
257
  markdownDescription: ( localize(
247
- 4553,
258
+ 4592,
248
259
  "Controls whether CSS of the selected element will be added to the chat. {0} must be enabled.",
249
260
  '`#chat.sendElementsToChat.enabled#`'
250
261
  )),
@@ -254,7 +265,7 @@ configurationRegistry.registerConfiguration({
254
265
  'chat.sendElementsToChat.attachImages': {
255
266
  default: true,
256
267
  markdownDescription: ( localize(
257
- 4554,
268
+ 4593,
258
269
  "Controls whether a screenshot of the selected element will be added to the chat. {0} must be enabled.",
259
270
  '`#chat.sendElementsToChat.enabled#`'
260
271
  )),
@@ -264,7 +275,7 @@ configurationRegistry.registerConfiguration({
264
275
  [mcpEnabledSection]: {
265
276
  type: 'boolean',
266
277
  description: ( localize(
267
- 4555,
278
+ 4594,
268
279
  "Enables integration with Model Context Protocol servers to provide additional tools and functionality."
269
280
  )),
270
281
  default: true,
@@ -276,19 +287,56 @@ configurationRegistry.registerConfiguration({
276
287
  defaultValue: false
277
288
  }
278
289
  },
290
+ [mcpServerSamplingSection]: {
291
+ type: 'object',
292
+ description: ( localize(
293
+ 4595,
294
+ "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.",
295
+ 'MCP: ' + ( localize(4596, 'List Servers'))
296
+ )),
297
+ scope: ConfigurationScope.RESOURCE,
298
+ additionalProperties: {
299
+ type: 'object',
300
+ properties: {
301
+ allowedDuringChat: {
302
+ type: 'boolean',
303
+ description: ( localize(
304
+ 4597,
305
+ "Whether this server is make sampling requests during its tool calls in a chat session."
306
+ )),
307
+ default: true,
308
+ },
309
+ allowedOutsideChat: {
310
+ type: 'boolean',
311
+ description: ( localize(
312
+ 4598,
313
+ "Whether this server is allowed to make sampling requests outside of a chat session."
314
+ )),
315
+ default: false,
316
+ },
317
+ allowedModels: {
318
+ type: 'array',
319
+ items: {
320
+ type: 'string',
321
+ description: ( localize(4599, "A model the MCP server has access to.")),
322
+ },
323
+ }
324
+ }
325
+ },
326
+ },
279
327
  [mcpConfigurationSection]: {
280
328
  type: 'object',
281
329
  default: {
282
330
  inputs: [],
283
331
  servers: mcpSchemaExampleServers,
284
332
  },
285
- description: ( localize(4556, "Model Context Protocol server configurations")),
333
+ description: ( localize(4600, "Model Context Protocol server configurations")),
286
334
  $ref: mcpSchemaId
287
335
  },
288
336
  [ChatConfiguration.UseFileStorage]: {
289
337
  type: 'boolean',
290
338
  description: ( localize(
291
- 4557,
339
+ 4601,
292
340
  "Enables storing chat sessions on disk instead of in the storage service. Enabling this does a one-time per-workspace migration of existing sessions to the new format."
293
341
  )),
294
342
  default: true,
@@ -297,7 +345,7 @@ configurationRegistry.registerConfiguration({
297
345
  [ChatConfiguration.Edits2Enabled]: {
298
346
  type: 'boolean',
299
347
  description: ( localize(
300
- 4558,
348
+ 4602,
301
349
  "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."
302
350
  )),
303
351
  default: true,
@@ -305,20 +353,18 @@ configurationRegistry.registerConfiguration({
305
353
  },
306
354
  [ChatConfiguration.ExtensionToolsEnabled]: {
307
355
  type: 'boolean',
308
- description: ( localize(4559, "Enable using tools contributed by third-party extensions.")),
356
+ description: ( localize(4603, "Enable using tools contributed by third-party extensions.")),
309
357
  default: true,
310
358
  policy: {
311
359
  name: 'ChatAgentExtensionTools',
312
360
  minimumVersion: '1.99',
313
- description: ( localize(4560, "Enable using tools contributed by third-party extensions.")),
314
- previewFeature: true,
315
- defaultValue: false
361
+ description: ( localize(4604, "Enable using tools contributed by third-party extensions.")),
316
362
  }
317
363
  },
318
364
  [ChatConfiguration.AgentEnabled]: {
319
365
  type: 'boolean',
320
366
  description: ( localize(
321
- 4561,
367
+ 4605,
322
368
  "Enable agent mode for {0}. When this is enabled, agent mode can be activated via the dropdown in the view.",
323
369
  'Copilot Chat'
324
370
  )),
@@ -339,21 +385,33 @@ configurationRegistry.registerConfiguration({
339
385
  default: Object.fromEntries(( allDiscoverySources.map(k => [k, true]))),
340
386
  properties: Object.fromEntries(( allDiscoverySources.map(k => [
341
387
  k,
342
- { type: 'boolean', description: ( localize(4562, "Enables discovery of {0} servers", discoverySourceLabel[k])) }
388
+ { type: 'boolean', description: ( localize(4606, "Enables discovery of {0} servers", discoverySourceLabel[k])) }
343
389
  ]))),
344
390
  }
345
391
  ],
346
392
  default: true,
347
393
  markdownDescription: ( localize(
348
- 4563,
394
+ 4607,
349
395
  "Configures discovery of Model Context Protocol servers on the machine. It may be set to `true` or `false` to disable or enable all sources, and an mapping sources you wish to enable."
350
396
  )),
351
397
  },
398
+ [mcpGalleryServiceUrlConfig]: {
399
+ type: 'string',
400
+ description: ( localize(4608, "Configure the MCP Gallery service URL to connect to")),
401
+ default: '',
402
+ scope: ConfigurationScope.APPLICATION,
403
+ tags: ['usesOnlineServices'],
404
+ included: false,
405
+ policy: {
406
+ name: 'McpGalleryServiceUrl',
407
+ minimumVersion: '1.101',
408
+ },
409
+ },
352
410
  [PromptsConfig.KEY]: {
353
411
  type: 'boolean',
354
- title: ( localize(4564, "Prompt Files")),
412
+ title: ( localize(4609, "Prompt Files")),
355
413
  markdownDescription: ( localize(
356
- 4565,
414
+ 4610,
357
415
  "Enable reusable prompt (`*{0}`) and instruction files in Chat, Edits, and Inline Chat sessions. [Learn More]({1}).",
358
416
  PROMPT_FILE_EXTENSION,
359
417
  INSTRUCTION_FILE_EXTENSION,
@@ -367,7 +425,7 @@ configurationRegistry.registerConfiguration({
367
425
  name: 'ChatPromptFiles',
368
426
  minimumVersion: '1.99',
369
427
  description: ( localize(
370
- 4566,
428
+ 4611,
371
429
  "Enables reusable prompt and instruction files in Chat, Edits, and Inline Chat sessions."
372
430
  )),
373
431
  previewFeature: true,
@@ -376,9 +434,9 @@ configurationRegistry.registerConfiguration({
376
434
  },
377
435
  [PromptsConfig.INSTRUCTIONS_LOCATION_KEY]: {
378
436
  type: 'object',
379
- title: ( localize(4567, "Instructions File Locations")),
437
+ title: ( localize(4612, "Instructions File Locations")),
380
438
  markdownDescription: ( localize(
381
- 4568,
439
+ 4613,
382
440
  "Specify location(s) of instructions files (`*{0}`) that can be attached in Chat, Edits, and Inline Chat sessions. [Learn More]({1}).\n\nRelative paths are resolved from the root folder(s) of your workspace.",
383
441
  INSTRUCTION_FILE_EXTENSION,
384
442
  INSTRUCTIONS_DOCUMENTATION_URL
@@ -401,9 +459,9 @@ configurationRegistry.registerConfiguration({
401
459
  },
402
460
  [PromptsConfig.PROMPT_LOCATIONS_KEY]: {
403
461
  type: 'object',
404
- title: ( localize(4569, "Prompt File Locations")),
462
+ title: ( localize(4614, "Prompt File Locations")),
405
463
  markdownDescription: ( localize(
406
- 4570,
464
+ 4615,
407
465
  "Specify location(s) of reusable prompt files (`*{0}`) that can be run in Chat, Edits, and Inline Chat sessions. [Learn More]({1}).\n\nRelative paths are resolved from the root folder(s) of your workspace.",
408
466
  PROMPT_FILE_EXTENSION,
409
467
  PROMPT_DOCUMENTATION_URL
@@ -425,9 +483,54 @@ configurationRegistry.registerConfiguration({
425
483
  },
426
484
  ],
427
485
  },
486
+ [PromptsConfig.MODE_LOCATION_KEY]: {
487
+ type: 'object',
488
+ title: ( localize(4616, "Mode File Locations")),
489
+ markdownDescription: ( localize(
490
+ 4617,
491
+ "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.",
492
+ MODE_FILE_EXTENSION,
493
+ MODE_DOCUMENTATION_URL
494
+ )),
495
+ default: {
496
+ [MODE_DEFAULT_SOURCE_FOLDER]: true,
497
+ },
498
+ additionalProperties: { type: 'boolean' },
499
+ unevaluatedProperties: { type: 'boolean' },
500
+ restricted: true,
501
+ tags: ['experimental', 'prompts', 'reusable prompts', 'prompt snippets', 'instructions'],
502
+ examples: [
503
+ {
504
+ [MODE_DEFAULT_SOURCE_FOLDER]: true,
505
+ },
506
+ {
507
+ [MODE_DEFAULT_SOURCE_FOLDER]: true,
508
+ '/Users/vscode/repos/chatmodes': true,
509
+ },
510
+ ],
511
+ },
512
+ 'chat.setup.signInWithAlternateProvider': {
513
+ type: 'boolean',
514
+ description: ( localize(4618, "Enable alternative sign-in provider.")),
515
+ default: false,
516
+ tags: ['onExp', 'experimental'],
517
+ },
518
+ 'chat.setup.signInDialogVariant': {
519
+ type: 'string',
520
+ enum: ['default', 'modern', 'brand-gh', 'brand-vsc', 'style-glow', 'alt-first', 'input-email', 'account-create'],
521
+ description: ( localize(4619, "Control variations of the sign-in dialog.")),
522
+ default: product.quality !== 'stable' ? 'modern' : 'default',
523
+ tags: ['onExp', 'experimental']
524
+ },
525
+ 'chat.setup.continueLaterIndicator': {
526
+ type: 'boolean',
527
+ description: ( localize(4620, "Enable indicator in the status bar to finish chat setup.")),
528
+ default: false,
529
+ tags: ['onExp', 'experimental'],
530
+ },
428
531
  }
429
532
  });
430
- ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(4571, "Chat"))), [
533
+ ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(4621, "Chat"))), [
431
534
  ( new SyncDescriptor(ChatEditorInput))
432
535
  ]);
433
536
  ( Registry.as(Extensions$1.ConfigurationMigration)).registerConfigurationMigrations([
@@ -445,7 +548,7 @@ let ChatResolverContribution = class ChatResolverContribution extends Disposable
445
548
  super();
446
549
  this._register(editorResolverService.registerEditor(`${Schemas.vscodeChatSesssion}:**/**`, {
447
550
  id: ChatEditorInput.EditorID,
448
- label: ( localize(4571, "Chat")),
551
+ label: ( localize(4621, "Chat")),
449
552
  priority: RegisteredEditorPriority.builtin
450
553
  }, {
451
554
  singlePerResource: true,
@@ -472,21 +575,21 @@ let ChatAgentSettingContribution = class ChatAgentSettingContribution extends Di
472
575
  registerMaxRequestsSetting() {
473
576
  let lastNode;
474
577
  const registerMaxRequestsSetting = () => {
475
- const treatmentId = this.entitlementService.entitlement === ChatEntitlement.Limited ?
578
+ const treatmentId = this.entitlementService.entitlement === ChatEntitlement.Free ?
476
579
  'chatAgentMaxRequestsFree' :
477
580
  'chatAgentMaxRequestsPro';
478
581
  this.experimentService.getTreatment(treatmentId).then(value => {
479
- const defaultValue = value ?? (this.entitlementService.entitlement === ChatEntitlement.Limited ? 5 : 15);
582
+ const defaultValue = value ?? (this.entitlementService.entitlement === ChatEntitlement.Free ? 25 : 25);
480
583
  const node = {
481
584
  id: 'chatSidebar',
482
- title: ( localize(4531, "Chat")),
585
+ title: ( localize(4570, "Chat")),
483
586
  type: 'object',
484
587
  properties: {
485
588
  'chat.agent.maxRequests': {
486
589
  type: 'number',
487
590
  markdownDescription: ( localize(
488
- 4572,
489
- "The maximum number of requests to allow Copilot Edits to use per-turn in agent mode. When the limit is reached, Copilot will ask the user to confirm that it should keep working."
591
+ 4622,
592
+ "The maximum number of requests to allow Copilot to use per-turn in agent mode. When the limit is reached, Copilot will ask the user to confirm that it should continue."
490
593
  )),
491
594
  default: defaultValue,
492
595
  },
@@ -515,7 +618,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
515
618
  super();
516
619
  this._store.add(slashCommandService.registerSlashCommand({
517
620
  command: 'clear',
518
- detail: ( localize(4573, "Start a new chat")),
621
+ detail: ( localize(4623, "Start a new chat")),
519
622
  sortText: 'z2_clear',
520
623
  executeImmediately: true,
521
624
  locations: [ChatAgentLocation.Panel]
@@ -524,7 +627,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
524
627
  }));
525
628
  this._store.add(slashCommandService.registerSlashCommand({
526
629
  command: SAVE_TO_PROMPT_SLASH_COMMAND_NAME,
527
- detail: ( localize(4574, "Save chat to a prompt file")),
630
+ detail: ( localize(4624, "Save chat to a prompt file")),
528
631
  sortText: `z3_${SAVE_TO_PROMPT_SLASH_COMMAND_NAME}`,
529
632
  executeImmediately: true,
530
633
  silent: true,
@@ -576,7 +679,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
576
679
  progress.report({ content: ( new MarkdownString(defaultAgent.metadata.helpTextVariablesPrefix)), kind: 'markdownContent' });
577
680
  }
578
681
  const variables = [
579
- { name: 'file', description: ( localize(4575, "Choose a file in the workspace")) }
682
+ { name: 'file', description: ( localize(4625, "Choose a file in the workspace")) }
580
683
  ];
581
684
  const variableText = ( variables
582
685
  .map(v => `* \`${chatVariableLeader}${v.name}\` - ${v.description}`))
@@ -624,6 +727,8 @@ registerWorkbenchContribution2(ChatEditingEditorOverlay.ID, ChatEditingEditorOve
624
727
  registerWorkbenchContribution2(SimpleBrowserOverlay.ID, SimpleBrowserOverlay, WorkbenchPhase.AfterRestored);
625
728
  registerWorkbenchContribution2(ChatEditingEditorContextKeys.ID, ChatEditingEditorContextKeys, WorkbenchPhase.AfterRestored);
626
729
  registerWorkbenchContribution2(ChatTransferContribution.ID, ChatTransferContribution, WorkbenchPhase.BlockRestore);
730
+ registerWorkbenchContribution2(ChatContextContributions.ID, ChatContextContributions, WorkbenchPhase.AfterRestored);
731
+ registerWorkbenchContribution2(ChatResponseResourceFileSystemProvider.ID, ChatResponseResourceFileSystemProvider, WorkbenchPhase.AfterRestored);
627
732
  registerChatActions();
628
733
  registerChatCopyActions();
629
734
  registerChatCodeBlockActions();
@@ -642,3 +747,5 @@ registerChatToolActions();
642
747
  registerEditorFeature(ChatPasteProvidersFeature);
643
748
  registerWorkbenchContribution2(ChatEditingNotebookFileSystemProviderContrib.ID, ChatEditingNotebookFileSystemProviderContrib, WorkbenchPhase.BlockStartup);
644
749
  registerPromptFileContributions();
750
+ registerWorkbenchContribution2(UserToolSetsContributions.ID, UserToolSetsContributions, WorkbenchPhase.Eventually);
751
+ registerAction2(ConfigureToolSets);
@@ -2,7 +2,7 @@ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/l
2
2
  import { IAccessibilitySignalService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service";
3
3
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
4
4
  import { IChatAccessibilityService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
5
- import { IChatResponseViewModel } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/chatViewModel";
5
+ import { IChatResponseViewModel } from "@codingame/monaco-vscode-3a35f433-1297-5707-ab58-c261b8180e6d-common/vscode/vs/workbench/contrib/chat/common/chatViewModel";
6
6
  import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
7
7
  export declare class ChatAccessibilityService extends Disposable implements IChatAccessibilityService {
8
8
  private readonly _accessibilitySignalService;