@codingame/monaco-vscode-chat-service-override 17.2.0 → 18.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 (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
@@ -13,25 +13,24 @@ import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/
13
13
  import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
14
14
  import { ExtensionIdentifier } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
15
15
  import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
16
- import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
17
16
  import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
18
17
  import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
19
- import { ViewPaneContainer } from '@codingame/monaco-vscode-e67a0dae-5b2c-54e6-8d61-90102c78362d-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
18
+ import { ViewPaneContainer } from '@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
20
19
  import { Extensions, ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
21
20
  import { Extensions as Extensions$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionFeatures';
22
21
  import { isProposedApiEnabled } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions';
23
22
  import { ExtensionsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
24
- import { showExtensionsWithIdsCommandId } from '@codingame/monaco-vscode-ecf3436d-6064-5fbd-a760-37a211ce79c7-common/vscode/vs/workbench/contrib/extensions/browser/extensionsActions';
23
+ import { showExtensionsWithIdsCommandId } from '@codingame/monaco-vscode-9ed6fe06-a052-57c2-a234-5d9b94d2e7e0-common/vscode/vs/workbench/contrib/extensions/browser/extensionsActions';
25
24
  import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
26
25
  import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
27
26
  import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
28
27
  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';
28
+ import { ChatViewId } from '@codingame/monaco-vscode-7adbeffb-8051-54a9-8c9b-b62ce9e5836f-common/vscode/vs/workbench/contrib/chat/browser/chat';
30
29
  import { CHAT_SIDEBAR_PANEL_ID, ChatViewPane } from './chatViewPane.js';
31
30
 
32
31
  const chatViewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
33
32
  id: CHAT_SIDEBAR_PANEL_ID,
34
- title: ( localize2(4813, "Chat")),
33
+ title: ( localize2(4862, "Chat")),
35
34
  icon: Codicon.commentDiscussion,
36
35
  ctorDescriptor: ( new SyncDescriptor(
37
36
  ViewPaneContainer,
@@ -46,13 +45,13 @@ const chatViewDescriptor = [{
46
45
  containerIcon: chatViewContainer.icon,
47
46
  containerTitle: chatViewContainer.title.value,
48
47
  singleViewPaneContainerTitle: chatViewContainer.title.value,
49
- name: ( localize2(4813, "Chat")),
48
+ name: ( localize2(4862, "Chat")),
50
49
  canToggleVisibility: false,
51
50
  canMoveView: true,
52
51
  openCommandActionDescriptor: {
53
52
  id: CHAT_SIDEBAR_PANEL_ID,
54
53
  title: chatViewContainer.title,
55
- mnemonicTitle: ( localize(4814, "&&Chat")),
54
+ mnemonicTitle: ( localize(4863, "&&Chat")),
56
55
  keybindings: {
57
56
  primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyI,
58
57
  mac: {
@@ -63,13 +62,14 @@ const chatViewDescriptor = [{
63
62
  },
64
63
  ctorDescriptor: ( new SyncDescriptor(ChatViewPane, [{ location: ChatAgentLocation.Panel }])),
65
64
  when: ( ContextKeyExpr.or(( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), (
66
- ChatContextKeys.Setup.disabled.negate()))), ChatContextKeys.Setup.installed, ChatContextKeys.panelParticipantRegistered, ChatContextKeys.extensionInvalid))
65
+ ChatContextKeys.Setup.disabled.negate()))), ( ContextKeyExpr.and(ChatContextKeys.Setup.installed, (
66
+ ChatContextKeys.Setup.disabled.negate()))), ChatContextKeys.panelParticipantRegistered, ChatContextKeys.extensionInvalid))
67
67
  }];
68
68
  ( Registry.as(Extensions.ViewsRegistry)).registerViews(chatViewDescriptor, chatViewContainer);
69
69
  const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
70
70
  extensionPoint: 'chatParticipants',
71
71
  jsonSchema: {
72
- description: ( localize(4815, 'Contributes a chat participant')),
72
+ description: ( localize(4864, 'Contributes a chat participant')),
73
73
  type: 'array',
74
74
  items: {
75
75
  additionalProperties: false,
@@ -78,12 +78,12 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
78
78
  required: ['name', 'id'],
79
79
  properties: {
80
80
  id: {
81
- description: ( localize(4816, "A unique id for this chat participant.")),
81
+ description: ( localize(4865, "A unique id for this chat participant.")),
82
82
  type: 'string'
83
83
  },
84
84
  name: {
85
85
  description: ( localize(
86
- 4817,
86
+ 4866,
87
87
  "User-facing name for this chat participant. The user will use '@' with this name to invoke the participant. Name must not contain whitespace."
88
88
  )),
89
89
  type: 'string',
@@ -91,37 +91,37 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
91
91
  },
92
92
  fullName: {
93
93
  markdownDescription: ( localize(
94
- 4818,
94
+ 4867,
95
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.",
96
96
  '`name`'
97
97
  )),
98
98
  type: 'string'
99
99
  },
100
100
  description: {
101
- description: ( localize(4819, "A description of this chat participant, shown in the UI.")),
101
+ description: ( localize(4868, "A description of this chat participant, shown in the UI.")),
102
102
  type: 'string'
103
103
  },
104
104
  isSticky: {
105
105
  description: ( localize(
106
- 4820,
106
+ 4869,
107
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."
108
108
  )),
109
109
  type: 'boolean'
110
110
  },
111
111
  sampleRequest: {
112
112
  description: ( localize(
113
- 4821,
113
+ 4870,
114
114
  "When the user clicks this participant in `/help`, this text will be submitted to the participant."
115
115
  )),
116
116
  type: 'string'
117
117
  },
118
118
  when: {
119
- description: ( localize(4822, "A condition which must be true to enable this participant.")),
119
+ description: ( localize(4871, "A condition which must be true to enable this participant.")),
120
120
  type: 'string'
121
121
  },
122
122
  disambiguation: {
123
123
  description: ( localize(
124
- 4823,
124
+ 4872,
125
125
  "Metadata to help with automatically routing user questions to this chat participant."
126
126
  )),
127
127
  type: 'array',
@@ -133,21 +133,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
133
133
  properties: {
134
134
  category: {
135
135
  markdownDescription: ( localize(
136
- 4824,
136
+ 4873,
137
137
  "A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
138
138
  )),
139
139
  type: 'string'
140
140
  },
141
141
  description: {
142
142
  description: ( localize(
143
- 4825,
143
+ 4874,
144
144
  "A detailed description of the kinds of questions that are suitable for this chat participant."
145
145
  )),
146
146
  type: 'string'
147
147
  },
148
148
  examples: {
149
149
  description: ( localize(
150
- 4826,
150
+ 4875,
151
151
  "A list of representative example questions that are suitable for this chat participant."
152
152
  )),
153
153
  type: 'array'
@@ -157,7 +157,7 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
157
157
  },
158
158
  commands: {
159
159
  markdownDescription: ( localize(
160
- 4827,
160
+ 4876,
161
161
  "Commands available for this chat participant, which the user can invoke with a `/`."
162
162
  )),
163
163
  type: 'array',
@@ -169,36 +169,36 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
169
169
  properties: {
170
170
  name: {
171
171
  description: ( localize(
172
- 4828,
172
+ 4877,
173
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."
174
174
  )),
175
175
  type: 'string'
176
176
  },
177
177
  description: {
178
- description: ( localize(4829, "A description of this command.")),
178
+ description: ( localize(4878, "A description of this command.")),
179
179
  type: 'string'
180
180
  },
181
181
  when: {
182
- description: ( localize(4830, "A condition which must be true to enable this command.")),
182
+ description: ( localize(4879, "A condition which must be true to enable this command.")),
183
183
  type: 'string'
184
184
  },
185
185
  sampleRequest: {
186
186
  description: ( localize(
187
- 4831,
187
+ 4880,
188
188
  "When the user clicks this command in `/help`, this text will be submitted to the participant."
189
189
  )),
190
190
  type: 'string'
191
191
  },
192
192
  isSticky: {
193
193
  description: ( localize(
194
- 4820,
194
+ 4869,
195
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."
196
196
  )),
197
197
  type: 'boolean'
198
198
  },
199
199
  disambiguation: {
200
200
  description: ( localize(
201
- 4832,
201
+ 4881,
202
202
  "Metadata to help with automatically routing user questions to this chat command."
203
203
  )),
204
204
  type: 'array',
@@ -210,21 +210,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
210
210
  properties: {
211
211
  category: {
212
212
  markdownDescription: ( localize(
213
- 4833,
213
+ 4882,
214
214
  "A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
215
215
  )),
216
216
  type: 'string'
217
217
  },
218
218
  description: {
219
219
  description: ( localize(
220
- 4834,
220
+ 4883,
221
221
  "A detailed description of the kinds of questions that are suitable for this chat command."
222
222
  )),
223
223
  type: 'string'
224
224
  },
225
225
  examples: {
226
226
  description: ( localize(
227
- 4835,
227
+ 4884,
228
228
  "A list of representative example questions that are suitable for this chat command."
229
229
  )),
230
230
  type: 'array'
@@ -246,9 +246,8 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
246
246
  });
247
247
  let ChatExtensionPointHandler = class ChatExtensionPointHandler {
248
248
  static { this.ID = 'workbench.contrib.chatExtensionPointHandler'; }
249
- constructor(_chatAgentService, logService) {
249
+ constructor(_chatAgentService) {
250
250
  this._chatAgentService = _chatAgentService;
251
- this.logService = logService;
252
251
  this._participantRegistrationDisposables = ( new DisposableMap());
253
252
  this.handleAndRegisterChatExtensions();
254
253
  }
@@ -257,27 +256,27 @@ let ChatExtensionPointHandler = class ChatExtensionPointHandler {
257
256
  for (const extension of delta.added) {
258
257
  for (const providerDescriptor of extension.value) {
259
258
  if (!providerDescriptor.name?.match(/^[\w-]+$/)) {
260
- this.logService.error(`Extension '${extension.description.identifier.value}' CANNOT register participant with invalid name: ${providerDescriptor.name}. Name must match /^[\\w-]+$/.`);
259
+ extension.collector.error(`Extension '${extension.description.identifier.value}' CANNOT register participant with invalid name: ${providerDescriptor.name}. Name must match /^[\\w-]+$/.`);
261
260
  continue;
262
261
  }
263
262
  if (providerDescriptor.fullName && AmbiguousCharacters.getInstance(( new Set())).containsAmbiguousCharacter(providerDescriptor.fullName)) {
264
- this.logService.error(`Extension '${extension.description.identifier.value}' CANNOT register participant with fullName that contains ambiguous characters: ${providerDescriptor.fullName}.`);
263
+ extension.collector.error(`Extension '${extension.description.identifier.value}' CANNOT register participant with fullName that contains ambiguous characters: ${providerDescriptor.fullName}.`);
265
264
  continue;
266
265
  }
267
266
  if (providerDescriptor.fullName && InvisibleCharacters.containsInvisibleCharacter(providerDescriptor.fullName.replace(/ /g, ''))) {
268
- this.logService.error(`Extension '${extension.description.identifier.value}' CANNOT register participant with fullName that contains invisible characters: ${providerDescriptor.fullName}.`);
267
+ extension.collector.error(`Extension '${extension.description.identifier.value}' CANNOT register participant with fullName that contains invisible characters: ${providerDescriptor.fullName}.`);
269
268
  continue;
270
269
  }
271
270
  if ((providerDescriptor.isDefault || providerDescriptor.modes) && !isProposedApiEnabled(extension.description, 'defaultChatParticipant')) {
272
- this.logService.error(`Extension '${extension.description.identifier.value}' CANNOT use API proposal: defaultChatParticipant.`);
271
+ extension.collector.error(`Extension '${extension.description.identifier.value}' CANNOT use API proposal: defaultChatParticipant.`);
273
272
  continue;
274
273
  }
275
274
  if (providerDescriptor.locations && !isProposedApiEnabled(extension.description, 'chatParticipantAdditions')) {
276
- this.logService.error(`Extension '${extension.description.identifier.value}' CANNOT use API proposal: chatParticipantAdditions.`);
275
+ extension.collector.error(`Extension '${extension.description.identifier.value}' CANNOT use API proposal: chatParticipantAdditions.`);
277
276
  continue;
278
277
  }
279
278
  if (!providerDescriptor.id || !providerDescriptor.name) {
280
- this.logService.error(`Extension '${extension.description.identifier.value}' CANNOT register participant without both id and name.`);
279
+ extension.collector.error(`Extension '${extension.description.identifier.value}' CANNOT register participant without both id and name.`);
281
280
  continue;
282
281
  }
283
282
  const participantsDisambiguation = [];
@@ -313,7 +312,7 @@ let ChatExtensionPointHandler = class ChatExtensionPointHandler {
313
312
  this._participantRegistrationDisposables.set(getParticipantKey(extension.description.identifier, providerDescriptor.id), store);
314
313
  }
315
314
  catch (e) {
316
- this.logService.error(`Failed to register participant ${providerDescriptor.id}: ${toErrorMessage(e, true)}`);
315
+ extension.collector.error(`Failed to register participant ${providerDescriptor.id}: ${toErrorMessage(e, true)}`);
317
316
  }
318
317
  }
319
318
  }
@@ -326,8 +325,7 @@ let ChatExtensionPointHandler = class ChatExtensionPointHandler {
326
325
  }
327
326
  };
328
327
  ChatExtensionPointHandler = ( __decorate([
329
- ( __param(0, IChatAgentService)),
330
- ( __param(1, ILogService))
328
+ ( __param(0, IChatAgentService))
331
329
  ], ChatExtensionPointHandler));
332
330
  function getParticipantKey(extensionId, participantName) {
333
331
  return `${extensionId.value}_${participantName}`;
@@ -356,9 +354,9 @@ let ChatCompatibilityNotifier = class ChatCompatibilityNotifier extends Disposab
356
354
  return;
357
355
  }
358
356
  this.registeredWelcomeView = true;
359
- const showExtensionLabel = ( localize(4836, "Show Extension"));
357
+ const showExtensionLabel = ( localize(4885, "Show Extension"));
360
358
  const mainMessage = ( localize(
361
- 4837,
359
+ 4886,
362
360
  "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.",
363
361
  this.productService.nameLong
364
362
  ));
@@ -390,10 +388,10 @@ class ChatParticipantDataRenderer extends Disposable {
390
388
  return { data: { headers: [], rows: [] }, dispose: () => { } };
391
389
  }
392
390
  const headers = [
393
- ( localize(4838, "Name")),
394
- ( localize(4839, "Full Name")),
395
- ( localize(4840, "Description")),
396
- ( localize(4841, "Commands")),
391
+ ( localize(4887, "Name")),
392
+ ( localize(4888, "Full Name")),
393
+ ( localize(4889, "Description")),
394
+ ( localize(4890, "Commands")),
397
395
  ];
398
396
  const rows = ( nonDefaultContributions.map(d => {
399
397
  return [
@@ -414,7 +412,7 @@ class ChatParticipantDataRenderer extends Disposable {
414
412
  }
415
413
  ( Registry.as(Extensions$1.ExtensionFeaturesRegistry)).registerExtensionFeature({
416
414
  id: 'chatParticipants',
417
- label: ( localize(4842, "Chat Participants")),
415
+ label: ( localize(4891, "Chat Participants")),
418
416
  access: {
419
417
  canToggle: false
420
418
  },
@@ -0,0 +1,49 @@
1
+ import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
2
+ import { IReadonlyVSDataTransfer } from "@codingame/monaco-vscode-api/vscode/vs/base/common/dataTransfer";
3
+ import { HierarchicalKind } from "@codingame/monaco-vscode-api/vscode/vs/base/common/hierarchicalKind";
4
+ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
5
+ import { IRange } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range";
6
+ import { DocumentPasteContext, DocumentPasteEditProvider, DocumentPasteEditsSession } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages";
7
+ import { ITextModel } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/model";
8
+ import { ILanguageFeaturesService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/languageFeatures.service";
9
+ import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service";
10
+ import { IEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/platform/environment/common/environment.service";
11
+ import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
12
+ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
13
+ import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
14
+ import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
15
+ import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
16
+ export declare class PasteImageProvider implements DocumentPasteEditProvider {
17
+ private readonly chatWidgetService;
18
+ private readonly extensionService;
19
+ private readonly fileService;
20
+ private readonly environmentService;
21
+ private readonly logService;
22
+ private readonly imagesFolder;
23
+ readonly kind: HierarchicalKind;
24
+ readonly providedPasteEditKinds: HierarchicalKind[];
25
+ readonly copyMimeTypes: never[];
26
+ readonly pasteMimeTypes: string[];
27
+ constructor(chatWidgetService: IChatWidgetService, extensionService: IExtensionService, fileService: IFileService, environmentService: IEnvironmentService, logService: ILogService);
28
+ provideDocumentPasteEdits(model: ITextModel, ranges: readonly IRange[], dataTransfer: IReadonlyVSDataTransfer, context: DocumentPasteContext, token: CancellationToken): Promise<DocumentPasteEditsSession | undefined>;
29
+ }
30
+ export declare function isImage(array: Uint8Array): boolean;
31
+ export declare class CopyTextProvider implements DocumentPasteEditProvider {
32
+ readonly providedPasteEditKinds: never[];
33
+ readonly copyMimeTypes: string[];
34
+ readonly pasteMimeTypes: never[];
35
+ prepareDocumentPaste(model: ITextModel, ranges: readonly IRange[], dataTransfer: IReadonlyVSDataTransfer, token: CancellationToken): Promise<undefined | IReadonlyVSDataTransfer>;
36
+ }
37
+ export declare class PasteTextProvider implements DocumentPasteEditProvider {
38
+ private readonly chatWidgetService;
39
+ private readonly modelService;
40
+ readonly kind: HierarchicalKind;
41
+ readonly providedPasteEditKinds: HierarchicalKind[];
42
+ readonly copyMimeTypes: never[];
43
+ readonly pasteMimeTypes: string[];
44
+ constructor(chatWidgetService: IChatWidgetService, modelService: IModelService);
45
+ provideDocumentPasteEdits(model: ITextModel, ranges: readonly IRange[], dataTransfer: IReadonlyVSDataTransfer, _context: DocumentPasteContext, token: CancellationToken): Promise<DocumentPasteEditsSession | undefined>;
46
+ }
47
+ export declare class ChatPasteProvidersFeature extends Disposable {
48
+ constructor(instaService: IInstantiationService, languageFeaturesService: ILanguageFeaturesService, chatWidgetService: IChatWidgetService, extensionService: IExtensionService, fileService: IFileService, modelService: IModelService, environmentService: IEnvironmentService, logService: ILogService);
49
+ }