@codingame/monaco-vscode-chat-service-override 16.1.0 → 17.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 (188) hide show
  1. package/index.js +6 -6
  2. package/package.json +30 -27
  3. package/vscode/src/vs/base/common/objectCache.d.ts +1 -1
  4. package/vscode/src/vs/base/common/objectCache.js +1 -1
  5. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +41 -41
  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 +16 -15
  8. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.d.ts +4 -6
  9. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +410 -443
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +6 -6
  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.d.ts +1 -7
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +3 -18
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +6 -6
  16. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +9 -12
  17. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
  18. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTransfer.js +1 -1
  19. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +4 -2
  20. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +32 -28
  21. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatAttachInstructionsAction.d.ts +10 -0
  22. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatAttachInstructionsAction.js +61 -0
  23. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatRunPromptAction.d.ts +4 -0
  24. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatRunPromptAction.js +159 -0
  25. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatSaveToPromptAction.d.ts +9 -0
  26. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatSaveToPromptAction.js +140 -0
  27. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/dialogs/askToSelectPrompt/promptFilePickers.d.ts +32 -0
  28. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/dialogs/askToSelectPrompt/promptFilePickers.js +244 -0
  29. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/dialogs/askToSelectPrompt/utils/attachInstructions.d.ts +12 -0
  30. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/dialogs/askToSelectPrompt/utils/attachInstructions.js +30 -0
  31. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/dialogs/askToSelectPrompt/utils/runPrompt.d.ts +15 -0
  32. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/dialogs/askToSelectPrompt/utils/runPrompt.js +12 -0
  33. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/index.d.ts +2 -0
  34. package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/index.js +13 -0
  35. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +171 -168
  36. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.d.ts +1 -1
  37. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.d.ts +1 -1
  38. package/vscode/src/vs/workbench/contrib/chat/browser/chatEdinputInputContentProvider.js +1 -1
  39. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.d.ts +5 -5
  40. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +48 -45
  41. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +5 -5
  42. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +46 -44
  43. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +118 -123
  44. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +5 -7
  45. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +45 -29
  46. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +12 -7
  47. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +48 -34
  48. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +3 -3
  49. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +53 -20
  50. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +2 -2
  51. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +32 -15
  52. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +9 -23
  53. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +80 -268
  54. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.d.ts +36 -0
  55. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +214 -0
  56. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookDiff.js +1 -1
  57. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.js +1 -1
  58. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.d.ts +7 -6
  59. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.js +26 -10
  60. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.d.ts +7 -7
  61. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +186 -106
  62. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.d.ts +19 -0
  63. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.js +129 -0
  64. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.d.ts +9 -0
  65. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js +313 -0
  66. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +4 -6
  67. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +12 -16
  68. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.d.ts +0 -4
  69. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +42 -181
  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 +3 -3
  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 +15 -1
  74. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.d.ts +2 -5
  75. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +484 -384
  76. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.d.ts +2 -2
  77. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.js +187 -101
  78. package/vscode/src/vs/workbench/contrib/chat/browser/chatStatusItemService.d.ts +4 -1
  79. package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.d.ts +3 -12
  80. package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +8 -52
  81. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +53 -0
  82. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +264 -0
  83. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.d.ts +1 -1
  84. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +28 -22
  85. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.d.ts +1 -1
  86. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +3 -3
  87. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +2 -1
  88. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +41 -45
  89. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditingEditorOverlay.css +8 -32
  90. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatSetup.css +2 -18
  91. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatStatus.css +20 -4
  92. package/vscode/src/vs/workbench/contrib/chat/browser/media/simpleBrowserOverlay.css +67 -0
  93. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/attachInstructionsCommand.d.ts +6 -0
  94. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/attachInstructionsCommand.js +73 -0
  95. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/createPromptCommand.d.ts +2 -1
  96. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/createPromptCommand.js +82 -67
  97. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptName.d.ts +4 -1
  98. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptName.js +44 -14
  99. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptSourceFolder.d.ts +5 -4
  100. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptSourceFolder.js +24 -14
  101. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/errors.js +2 -2
  102. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/utils/createPromptFile.js +2 -2
  103. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +6 -6
  104. package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.d.ts +2 -0
  105. package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +7 -1
  106. package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +14 -1
  107. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +8 -7
  108. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +84 -80
  109. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.d.ts +1 -1
  110. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +3 -3
  111. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.d.ts +1 -0
  112. package/vscode/src/vs/workbench/contrib/chat/common/chatTransferService.d.ts +5 -1
  113. package/vscode/src/vs/workbench/contrib/chat/common/chatTransferService.js +27 -3
  114. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/configMigration.d.ts +5 -0
  115. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/configMigration.js +62 -0
  116. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/index.d.ts +3 -0
  117. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/index.js +16 -0
  118. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/index.d.ts +2 -0
  119. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/index.js +17 -0
  120. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/frontMatterDecoration.d.ts +29 -0
  121. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/frontMatterDecoration.js +74 -0
  122. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/frontMatterMarkerDecoration.d.ts +14 -0
  123. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/frontMatterMarkerDecoration.js +40 -0
  124. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/decorationBase.d.ts +23 -0
  125. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/decorationBase.js +40 -0
  126. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/index.d.ts +5 -0
  127. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/index.js +9 -0
  128. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/reactiveDecorationBase.d.ts +23 -0
  129. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/reactiveDecorationBase.js +68 -0
  130. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/types.d.ts +13 -0
  131. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/promptDecorationsProvider.d.ts +19 -0
  132. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/promptDecorationsProvider.js +121 -0
  133. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/types.d.ts +13 -0
  134. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/types.js +13 -0
  135. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/promptHeaderDiagnosticsProvider.d.ts +15 -0
  136. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/promptHeaderDiagnosticsProvider.js +62 -0
  137. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/promptLinkDiagnosticsProvider.d.ts +15 -0
  138. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/promptLinkDiagnosticsProvider.js +65 -0
  139. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/{languageFeatures → contributions/languageFeatures/providers}/promptLinkProvider.js +3 -8
  140. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/{languageFeatures → contributions/languageFeatures/providers}/promptPathAutocompletion.d.ts +2 -2
  141. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/{languageFeatures → contributions/languageFeatures/providers}/promptPathAutocompletion.js +14 -19
  142. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/providerInstanceBase.d.ts +11 -0
  143. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/providerInstanceBase.js +22 -0
  144. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/providerInstanceManagerBase.d.ts +17 -0
  145. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/providerInstanceManagerBase.js +83 -0
  146. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/textModelPromptParser.d.ts +4 -3
  147. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/textModelPromptParser.js +8 -6
  148. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +17 -5
  149. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +223 -21
  150. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +5 -4
  151. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +28 -22
  152. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/treeUtils.d.ts +10 -0
  153. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/treeUtils.js +25 -0
  154. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +20 -31
  155. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.d.ts +1 -1
  156. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +2 -2
  157. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +15 -12
  158. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +1 -1
  159. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +2 -2
  160. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +12 -12
  161. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +3 -3
  162. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.d.ts +2 -2
  163. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.js +2 -2
  164. package/vscode/src/vs/workbench/services/workspaces/common/workspaceUtils.d.ts +0 -2
  165. package/vscode/src/vs/workbench/services/workspaces/common/workspaceUtils.js +1 -14
  166. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/chatAttachPromptAction.d.ts +0 -10
  167. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/chatAttachPromptAction.js +0 -54
  168. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/askToSelectPrompt.d.ts +0 -25
  169. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/askToSelectPrompt.js +0 -79
  170. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/constants.d.ts +0 -7
  171. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/constants.js +0 -27
  172. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/attachPrompts.d.ts +0 -5
  173. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/attachPrompts.js +0 -53
  174. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/createPlaceholderText.d.ts +0 -2
  175. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/createPlaceholderText.js +0 -19
  176. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/createPromptPickItem.d.ts +0 -5
  177. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/createPromptPickItem.js +0 -27
  178. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/handleButtonClick.d.ts +0 -13
  179. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/handleButtonClick.js +0 -49
  180. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/usePromptCommand.d.ts +0 -6
  181. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/usePromptCommand.js +0 -80
  182. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/constants.d.ts +0 -3
  183. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/constants.js +0 -13
  184. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/textModelContentsProvider.d.ts +0 -21
  185. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/textModelContentsProvider.js +0 -64
  186. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageFeatures/promptLinkDiagnosticsProvider.d.ts +0 -9
  187. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageFeatures/promptLinkDiagnosticsProvider.js +0 -117
  188. /package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/{languageFeatures → contributions/languageFeatures/providers}/promptLinkProvider.d.ts +0 -0
@@ -8,41 +8,30 @@ import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/comm
8
8
  import { KeyMod, KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
9
9
  import { DisposableMap, DisposableStore, Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
10
10
  import { AmbiguousCharacters, InvisibleCharacters } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
11
- import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
12
11
  import { localize2, localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
13
- import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands';
14
- import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
15
- import { ContextKeyExpr, RawContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
12
+ import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
16
13
  import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
17
14
  import { ExtensionIdentifier } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
18
15
  import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
19
16
  import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
20
- import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
21
17
  import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
22
18
  import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
23
- import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
24
- import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
25
- import { ViewPane } from '@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane';
26
19
  import { ViewPaneContainer } from '@codingame/monaco-vscode-e67a0dae-5b2c-54e6-8d61-90102c78362d-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
27
- import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
28
20
  import { Extensions, ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
29
21
  import { Extensions as Extensions$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionFeatures';
30
22
  import { isProposedApiEnabled } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions';
31
23
  import { ExtensionsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
32
- import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
33
- import { showExtensionsWithIdsCommandId } from '@codingame/monaco-vscode-805e9c2f-56b6-5a43-8b5b-d2dc2d3805fc-common/vscode/vs/workbench/contrib/extensions/browser/extensionsActions';
24
+ import { showExtensionsWithIdsCommandId } from '@codingame/monaco-vscode-ecf3436d-6064-5fbd-a760-37a211ce79c7-common/vscode/vs/workbench/contrib/extensions/browser/extensionsActions';
34
25
  import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
35
26
  import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
36
27
  import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
37
- import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
38
- import { ChatAgentLocation, ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
39
- import { ChatViewId, showChatView } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chat';
40
- import { CHAT_SIDEBAR_PANEL_ID, ChatViewPane, CHAT_EDITING_SIDEBAR_PANEL_ID } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chatViewPane';
28
+ import { ChatAgentLocation, ChatMode } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
29
+ import { ChatViewId } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chat';
30
+ import { CHAT_SIDEBAR_PANEL_ID, ChatViewPane } from './chatViewPane.js';
41
31
 
42
- var EditsViewContribution_1;
43
32
  const chatViewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
44
33
  id: CHAT_SIDEBAR_PANEL_ID,
45
- title: ( localize2(4742, "Chat")),
34
+ title: ( localize2(4813, "Chat")),
46
35
  icon: Codicon.commentDiscussion,
47
36
  ctorDescriptor: ( new SyncDescriptor(
48
37
  ViewPaneContainer,
@@ -57,13 +46,13 @@ const chatViewDescriptor = [{
57
46
  containerIcon: chatViewContainer.icon,
58
47
  containerTitle: chatViewContainer.title.value,
59
48
  singleViewPaneContainerTitle: chatViewContainer.title.value,
60
- name: ( localize2(4742, "Chat")),
49
+ name: ( localize2(4813, "Chat")),
61
50
  canToggleVisibility: false,
62
51
  canMoveView: true,
63
52
  openCommandActionDescriptor: {
64
53
  id: CHAT_SIDEBAR_PANEL_ID,
65
54
  title: chatViewContainer.title,
66
- mnemonicTitle: ( localize(4743, "&&Chat")),
55
+ mnemonicTitle: ( localize(4814, "&&Chat")),
67
56
  keybindings: {
68
57
  primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyI,
69
58
  mac: {
@@ -73,25 +62,14 @@ const chatViewDescriptor = [{
73
62
  order: 1
74
63
  },
75
64
  ctorDescriptor: ( new SyncDescriptor(ChatViewPane, [{ location: ChatAgentLocation.Panel }])),
76
- when: ( ContextKeyExpr.or(( ChatContextKeys.Setup.hidden.negate()), ChatContextKeys.Setup.installed, ChatContextKeys.panelParticipantRegistered, ChatContextKeys.extensionInvalid))
65
+ when: ( ContextKeyExpr.or(( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), (
66
+ ChatContextKeys.Setup.disabled.negate()))), ChatContextKeys.Setup.installed, ChatContextKeys.panelParticipantRegistered, ChatContextKeys.extensionInvalid))
77
67
  }];
78
68
  ( Registry.as(Extensions.ViewsRegistry)).registerViews(chatViewDescriptor, chatViewContainer);
79
- const editsViewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
80
- id: CHAT_EDITING_SIDEBAR_PANEL_ID,
81
- title: ( localize2(4744, "Copilot Edits")),
82
- icon: Codicon.editSession,
83
- ctorDescriptor: ( new SyncDescriptor(
84
- ViewPaneContainer,
85
- [CHAT_EDITING_SIDEBAR_PANEL_ID, { mergeViewWithContainerWhenSingleView: true }]
86
- )),
87
- storageId: CHAT_EDITING_SIDEBAR_PANEL_ID,
88
- hideIfEmpty: true,
89
- order: 101,
90
- }, ViewContainerLocation.AuxiliaryBar, { doNotRegisterOpenCommand: true });
91
69
  const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
92
70
  extensionPoint: 'chatParticipants',
93
71
  jsonSchema: {
94
- description: ( localize(4745, 'Contributes a chat participant')),
72
+ description: ( localize(4815, 'Contributes a chat participant')),
95
73
  type: 'array',
96
74
  items: {
97
75
  additionalProperties: false,
@@ -100,12 +78,12 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
100
78
  required: ['name', 'id'],
101
79
  properties: {
102
80
  id: {
103
- description: ( localize(4746, "A unique id for this chat participant.")),
81
+ description: ( localize(4816, "A unique id for this chat participant.")),
104
82
  type: 'string'
105
83
  },
106
84
  name: {
107
85
  description: ( localize(
108
- 4747,
86
+ 4817,
109
87
  "User-facing name for this chat participant. The user will use '@' with this name to invoke the participant. Name must not contain whitespace."
110
88
  )),
111
89
  type: 'string',
@@ -113,37 +91,37 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
113
91
  },
114
92
  fullName: {
115
93
  markdownDescription: ( localize(
116
- 4748,
94
+ 4818,
117
95
  "The full name of this chat participant, which is shown as the label for responses coming from this participant. If not provided, {0} is used.",
118
96
  '`name`'
119
97
  )),
120
98
  type: 'string'
121
99
  },
122
100
  description: {
123
- description: ( localize(4749, "A description of this chat participant, shown in the UI.")),
101
+ description: ( localize(4819, "A description of this chat participant, shown in the UI.")),
124
102
  type: 'string'
125
103
  },
126
104
  isSticky: {
127
105
  description: ( localize(
128
- 4750,
106
+ 4820,
129
107
  "Whether invoking the command puts the chat into a persistent mode, where the command is automatically added to the chat input for the next message."
130
108
  )),
131
109
  type: 'boolean'
132
110
  },
133
111
  sampleRequest: {
134
112
  description: ( localize(
135
- 4751,
113
+ 4821,
136
114
  "When the user clicks this participant in `/help`, this text will be submitted to the participant."
137
115
  )),
138
116
  type: 'string'
139
117
  },
140
118
  when: {
141
- description: ( localize(4752, "A condition which must be true to enable this participant.")),
119
+ description: ( localize(4822, "A condition which must be true to enable this participant.")),
142
120
  type: 'string'
143
121
  },
144
122
  disambiguation: {
145
123
  description: ( localize(
146
- 4753,
124
+ 4823,
147
125
  "Metadata to help with automatically routing user questions to this chat participant."
148
126
  )),
149
127
  type: 'array',
@@ -155,21 +133,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
155
133
  properties: {
156
134
  category: {
157
135
  markdownDescription: ( localize(
158
- 4754,
136
+ 4824,
159
137
  "A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
160
138
  )),
161
139
  type: 'string'
162
140
  },
163
141
  description: {
164
142
  description: ( localize(
165
- 4755,
143
+ 4825,
166
144
  "A detailed description of the kinds of questions that are suitable for this chat participant."
167
145
  )),
168
146
  type: 'string'
169
147
  },
170
148
  examples: {
171
149
  description: ( localize(
172
- 4756,
150
+ 4826,
173
151
  "A list of representative example questions that are suitable for this chat participant."
174
152
  )),
175
153
  type: 'array'
@@ -179,7 +157,7 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
179
157
  },
180
158
  commands: {
181
159
  markdownDescription: ( localize(
182
- 4757,
160
+ 4827,
183
161
  "Commands available for this chat participant, which the user can invoke with a `/`."
184
162
  )),
185
163
  type: 'array',
@@ -191,36 +169,36 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
191
169
  properties: {
192
170
  name: {
193
171
  description: ( localize(
194
- 4758,
172
+ 4828,
195
173
  "A short name by which this command is referred to in the UI, e.g. `fix` or * `explain` for commands that fix an issue or explain code. The name should be unique among the commands provided by this participant."
196
174
  )),
197
175
  type: 'string'
198
176
  },
199
177
  description: {
200
- description: ( localize(4759, "A description of this command.")),
178
+ description: ( localize(4829, "A description of this command.")),
201
179
  type: 'string'
202
180
  },
203
181
  when: {
204
- description: ( localize(4760, "A condition which must be true to enable this command.")),
182
+ description: ( localize(4830, "A condition which must be true to enable this command.")),
205
183
  type: 'string'
206
184
  },
207
185
  sampleRequest: {
208
186
  description: ( localize(
209
- 4761,
187
+ 4831,
210
188
  "When the user clicks this command in `/help`, this text will be submitted to the participant."
211
189
  )),
212
190
  type: 'string'
213
191
  },
214
192
  isSticky: {
215
193
  description: ( localize(
216
- 4750,
194
+ 4820,
217
195
  "Whether invoking the command puts the chat into a persistent mode, where the command is automatically added to the chat input for the next message."
218
196
  )),
219
197
  type: 'boolean'
220
198
  },
221
199
  disambiguation: {
222
200
  description: ( localize(
223
- 4762,
201
+ 4832,
224
202
  "Metadata to help with automatically routing user questions to this chat command."
225
203
  )),
226
204
  type: 'array',
@@ -232,21 +210,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
232
210
  properties: {
233
211
  category: {
234
212
  markdownDescription: ( localize(
235
- 4763,
213
+ 4833,
236
214
  "A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
237
215
  )),
238
216
  type: 'string'
239
217
  },
240
218
  description: {
241
219
  description: ( localize(
242
- 4764,
220
+ 4834,
243
221
  "A detailed description of the kinds of questions that are suitable for this chat command."
244
222
  )),
245
223
  type: 'string'
246
224
  },
247
225
  examples: {
248
226
  description: ( localize(
249
- 4765,
227
+ 4835,
250
228
  "A list of representative example questions that are suitable for this chat command."
251
229
  )),
252
230
  type: 'array'
@@ -290,7 +268,7 @@ let ChatExtensionPointHandler = class ChatExtensionPointHandler {
290
268
  this.logService.error(`Extension '${extension.description.identifier.value}' CANNOT register participant with fullName that contains invisible characters: ${providerDescriptor.fullName}.`);
291
269
  continue;
292
270
  }
293
- if ((providerDescriptor.isDefault || providerDescriptor.isAgent) && !isProposedApiEnabled(extension.description, 'defaultChatParticipant')) {
271
+ if ((providerDescriptor.isDefault || providerDescriptor.modes) && !isProposedApiEnabled(extension.description, 'defaultChatParticipant')) {
294
272
  this.logService.error(`Extension '${extension.description.identifier.value}' CANNOT use API proposal: defaultChatParticipant.`);
295
273
  continue;
296
274
  }
@@ -325,10 +303,10 @@ let ChatExtensionPointHandler = class ChatExtensionPointHandler {
325
303
  name: providerDescriptor.name,
326
304
  fullName: providerDescriptor.fullName,
327
305
  isDefault: providerDescriptor.isDefault,
328
- isToolsAgent: providerDescriptor.isAgent,
329
306
  locations: isNonEmptyArray(providerDescriptor.locations) ?
330
307
  ( providerDescriptor.locations.map(ChatAgentLocation.fromRaw)) :
331
308
  [ChatAgentLocation.Panel],
309
+ modes: providerDescriptor.modes ?? [ChatMode.Ask],
332
310
  slashCommands: providerDescriptor.commands ?? [],
333
311
  disambiguation: coalesce(participantsDisambiguation.flat()),
334
312
  }));
@@ -378,9 +356,9 @@ let ChatCompatibilityNotifier = class ChatCompatibilityNotifier extends Disposab
378
356
  return;
379
357
  }
380
358
  this.registeredWelcomeView = true;
381
- const showExtensionLabel = ( localize(4766, "Show Extension"));
359
+ const showExtensionLabel = ( localize(4836, "Show Extension"));
382
360
  const mainMessage = ( localize(
383
- 4767,
361
+ 4837,
384
362
  "Chat failed to load because the installed version of the Copilot Chat extension is not compatible with this version of {0}. Please ensure that the Copilot Chat extension is up to date.",
385
363
  this.productService.nameLong
386
364
  ));
@@ -412,10 +390,10 @@ class ChatParticipantDataRenderer extends Disposable {
412
390
  return { data: { headers: [], rows: [] }, dispose: () => { } };
413
391
  }
414
392
  const headers = [
415
- ( localize(4768, "Name")),
416
- ( localize(4769, "Full Name")),
417
- ( localize(4770, "Description")),
418
- ( localize(4771, "Commands")),
393
+ ( localize(4838, "Name")),
394
+ ( localize(4839, "Full Name")),
395
+ ( localize(4840, "Description")),
396
+ ( localize(4841, "Commands")),
419
397
  ];
420
398
  const rows = ( nonDefaultContributions.map(d => {
421
399
  return [
@@ -436,128 +414,11 @@ class ChatParticipantDataRenderer extends Disposable {
436
414
  }
437
415
  ( Registry.as(Extensions$1.ExtensionFeaturesRegistry)).registerExtensionFeature({
438
416
  id: 'chatParticipants',
439
- label: ( localize(4772, "Chat Participants")),
417
+ label: ( localize(4842, "Chat Participants")),
440
418
  access: {
441
419
  canToggle: false
442
420
  },
443
421
  renderer: ( new SyncDescriptor(ChatParticipantDataRenderer)),
444
422
  });
445
- class MovedChatEditsViewPane extends ViewPane {
446
- shouldShowWelcome() {
447
- return true;
448
- }
449
- }
450
- const editsViewId = 'workbench.panel.chat.view.edits';
451
- const baseEditsViewDescriptor = {
452
- id: editsViewId,
453
- containerIcon: editsViewContainer.icon,
454
- containerTitle: editsViewContainer.title.value,
455
- singleViewPaneContainerTitle: editsViewContainer.title.value,
456
- name: editsViewContainer.title,
457
- canToggleVisibility: false,
458
- canMoveView: true,
459
- openCommandActionDescriptor: {
460
- id: CHAT_EDITING_SIDEBAR_PANEL_ID,
461
- title: editsViewContainer.title,
462
- mnemonicTitle: ( localize(4773, "Copilot Ed&&its")),
463
- keybindings: {
464
- primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyI,
465
- linux: {
466
- primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyMod.Shift | KeyCode.KeyI
467
- }
468
- },
469
- order: 2
470
- },
471
- ctorDescriptor: ( new SyncDescriptor(ChatViewPane, [{ location: ChatAgentLocation.EditingSession }])),
472
- when: ( ContextKeyExpr.and(( ( ContextKeyExpr.has(`config.${ChatConfiguration.UnifiedChatView}`)).negate()), ( ContextKeyExpr.or(( ChatContextKeys.Setup.hidden.negate()), ChatContextKeys.Setup.installed, ChatContextKeys.editingParticipantRegistered))))
473
- };
474
- const ShowMovedChatEditsView = ( new RawContextKey(
475
- 'showMovedChatEditsView',
476
- true,
477
- { type: 'boolean', description: ( localize(4774, "True when the moved chat edits view should be hidden.")) }
478
- ));
479
- let EditsViewContribution = class EditsViewContribution extends Disposable {
480
- static { EditsViewContribution_1 = this; }
481
- static { this.ID = 'workbench.contrib.chatEditsView'; }
482
- static { this.HideMovedEditsViewKey = 'chatEditsView.hideMovedEditsView'; }
483
- constructor(configurationService, storageService, contextKeyService, chatService) {
484
- super();
485
- this.configurationService = configurationService;
486
- this.storageService = storageService;
487
- this.contextKeyService = contextKeyService;
488
- this.chatService = chatService;
489
- this.showWelcomeViewCtx = ShowMovedChatEditsView.bindTo(this.contextKeyService);
490
- const unifiedViewEnabled = this.configurationService.getValue(ChatConfiguration.UnifiedChatView);
491
- const movedEditsViewDescriptor = {
492
- ...baseEditsViewDescriptor,
493
- ctorDescriptor: ( new SyncDescriptor(MovedChatEditsViewPane)),
494
- when: ( ContextKeyExpr.and(( ContextKeyExpr.has(`config.${ChatConfiguration.UnifiedChatView}`)), ShowMovedChatEditsView, ( ContextKeyExpr.or(( ChatContextKeys.Setup.hidden.negate()), ChatContextKeys.Setup.installed, ChatContextKeys.editingParticipantRegistered))))
495
- };
496
- const editsViewToRegister = unifiedViewEnabled ?
497
- movedEditsViewDescriptor : baseEditsViewDescriptor;
498
- if (unifiedViewEnabled) {
499
- this.init();
500
- this.updateContextKey();
501
- this.registerWelcomeView();
502
- this.registerCommands();
503
- }
504
- ( Registry.as(Extensions.ViewsRegistry)).registerViews([editsViewToRegister], editsViewContainer);
505
- }
506
- registerWelcomeView() {
507
- const welcomeViewMainMessage = ( localize(
508
- 4775,
509
- "Copilot Edits has been moved to the [main Chat view](command:workbench.action.chat.open). You can switch between modes by using the dropdown in the Chat input box."
510
- ));
511
- const okButton = `[${( localize(4776, "Got it"))}](command:_movedEditsView.ok)`;
512
- const welcomeViewFooterMessage = ( localize(
513
- 4777,
514
- "[Learn more](command:_movedEditsView.learnMore) about the Chat view."
515
- ));
516
- const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
517
- this._register(viewsRegistry.registerViewWelcomeContent(editsViewId, {
518
- content: [welcomeViewMainMessage, okButton, welcomeViewFooterMessage].join('\n\n'),
519
- renderSecondaryButtons: true,
520
- when: ShowMovedChatEditsView
521
- }));
522
- }
523
- markViewToHide() {
524
- this.storageService.store(EditsViewContribution_1.HideMovedEditsViewKey, true, StorageScope.APPLICATION, StorageTarget.USER);
525
- this.updateContextKey();
526
- }
527
- init() {
528
- const hasChats = this.chatService.hasSessions();
529
- if (!hasChats) {
530
- this.markViewToHide();
531
- }
532
- }
533
- updateContextKey() {
534
- const hidden = this.storageService.getBoolean(EditsViewContribution_1.HideMovedEditsViewKey, StorageScope.APPLICATION, false);
535
- const hasChats = this.chatService.hasSessions();
536
- this.showWelcomeViewCtx.set(!hidden && hasChats);
537
- }
538
- registerCommands() {
539
- this._register(CommandsRegistry.registerCommand({
540
- id: '_movedEditsView.ok',
541
- handler: async (accessor) => {
542
- showChatView(accessor.get(IViewsService));
543
- this.markViewToHide();
544
- }
545
- }));
546
- this._register(CommandsRegistry.registerCommand({
547
- id: '_movedEditsView.learnMore',
548
- handler: async (accessor) => {
549
- const openerService = accessor.get(IOpenerService);
550
- openerService.open(( URI.parse('https://aka.ms/vscode-chat-modes')));
551
- }
552
- }));
553
- }
554
- };
555
- EditsViewContribution = EditsViewContribution_1 = ( __decorate([
556
- ( __param(0, IConfigurationService)),
557
- ( __param(1, IStorageService)),
558
- ( __param(2, IContextKeyService)),
559
- ( __param(3, IChatService))
560
- ], EditsViewContribution));
561
- registerWorkbenchContribution2(EditsViewContribution.ID, EditsViewContribution, WorkbenchPhase.BlockRestore);
562
423
 
563
- export { ChatCompatibilityNotifier, ChatExtensionPointHandler, MovedChatEditsViewPane };
424
+ export { ChatCompatibilityNotifier, ChatExtensionPointHandler };
@@ -2,7 +2,7 @@ import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event"
2
2
  import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
3
3
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
4
4
  import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service";
5
- import { IQuickChatOpenOptions } from "@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chat";
5
+ import { IQuickChatOpenOptions } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chat";
6
6
  import { IQuickChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
7
7
  import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
8
8
  export declare class QuickChatService extends Disposable implements IQuickChatService {
@@ -23,9 +23,9 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/mini
23
23
  import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/miscColors';
24
24
  import { quickInputBackground, quickInputForeground } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
25
25
  import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
26
- import { showChatView } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chat';
27
- import { ChatWidget } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
28
- import { isCellTextEditOperation } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/common/chatModel';
26
+ import { showChatView } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chat';
27
+ import { ChatWidget } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
28
+ import { isCellTextEditOperation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModel';
29
29
  import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
30
30
  import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
31
31
  import { EDITOR_DRAG_AND_DROP_BACKGROUND } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/theme';
@@ -3,7 +3,7 @@ import { AccessibleViewProviderId, AccessibleViewType, IAccessibleViewContentPro
3
3
  import { IAccessibleViewImplementation } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleViewRegistry";
4
4
  import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
5
5
  import { AccessibilityVerbositySettingId } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration";
6
- import { ChatTreeItem, IChatWidget } from "@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chat";
6
+ import { ChatTreeItem, IChatWidget } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chat";
7
7
  export declare class ChatResponseAccessibleView implements IAccessibleViewImplementation {
8
8
  readonly priority = 100;
9
9
  readonly name = "panelChat";
@@ -1,11 +1,12 @@
1
1
 
2
2
  import { renderMarkdownAsPlaintext } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer';
3
3
  import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
4
+ import { stripIcons } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iconLabels';
4
5
  import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
5
6
  import { AccessibleViewType, AccessibleViewProviderId } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView';
6
7
  import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
7
8
  import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
8
- import { isResponseVM } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/common/chatViewModel';
9
+ import { isResponseVM } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/chatViewModel';
9
10
  import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
10
11
 
11
12
  class ChatResponseAccessibleView {
@@ -51,6 +52,19 @@ class ChatResponseAccessibleProvider extends Disposable {
51
52
  if (!responseContent && 'errorDetails' in item && item.errorDetails) {
52
53
  responseContent = item.errorDetails.message;
53
54
  }
55
+ if (isResponseVM(item)) {
56
+ const toolInvocation = item.response.value.find(item => item.kind === 'toolInvocation');
57
+ if (toolInvocation?.confirmationMessages) {
58
+ const title = toolInvocation.confirmationMessages.title;
59
+ const message = typeof toolInvocation.confirmationMessages.message === 'string' ? toolInvocation.confirmationMessages.message : stripIcons(renderMarkdownAsPlaintext(toolInvocation.confirmationMessages.message));
60
+ const terminalCommand = toolInvocation.toolSpecificData && 'command' in toolInvocation.toolSpecificData ? toolInvocation.toolSpecificData.command : undefined;
61
+ responseContent += `${title}`;
62
+ if (terminalCommand) {
63
+ responseContent += `: ${terminalCommand}`;
64
+ }
65
+ responseContent += `\n${message}`;
66
+ }
67
+ }
54
68
  return renderMarkdownAsPlaintext(( new MarkdownString(responseContent)), true);
55
69
  }
56
70
  onClose() {
@@ -1,23 +1,20 @@
1
1
  import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
2
  import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
3
- import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
4
3
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
5
4
  import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
6
5
  import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
7
6
  import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
8
7
  import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
9
- import { ChatEntitlementService } from "@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/common/chatEntitlementService";
8
+ import { ChatEntitlementService } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/chatEntitlementService";
10
9
  export declare class ChatSetupContribution extends Disposable implements IWorkbenchContribution {
11
10
  private readonly productService;
12
11
  private readonly instantiationService;
13
12
  private readonly commandService;
14
13
  private readonly telemetryService;
15
- private readonly configurationService;
16
14
  private readonly logService;
17
15
  static readonly ID = "workbench.contrib.chatSetup";
18
- constructor(productService: IProductService, instantiationService: IInstantiationService, commandService: ICommandService, telemetryService: ITelemetryService, chatEntitlementService: ChatEntitlementService, configurationService: IConfigurationService, logService: ILogService);
16
+ constructor(productService: IProductService, instantiationService: IInstantiationService, commandService: ICommandService, telemetryService: ITelemetryService, chatEntitlementService: ChatEntitlementService, logService: ILogService);
19
17
  private registerSetupAgents;
20
- private registerChatWelcome;
21
18
  private registerActions;
22
19
  private registerUrlLinkHandler;
23
20
  }