@codingame/monaco-vscode-chat-service-override 11.1.2 → 12.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/index.d.ts +2 -1
  2. package/index.js +64 -1
  3. package/package.json +32 -13
  4. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.d.ts +21 -0
  5. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +73 -60
  6. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.d.ts +3 -0
  7. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +73 -81
  8. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.d.ts +9 -0
  9. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +73 -112
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.d.ts +12 -0
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +253 -101
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.d.ts +1 -0
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +8 -8
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.d.ts +1 -0
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +2 -1
  16. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.d.ts +1 -0
  17. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +16 -14
  18. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.d.ts +23 -0
  19. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +30 -11
  20. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.d.ts +1 -0
  21. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +12 -12
  22. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.d.ts +1 -0
  23. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +22 -20
  24. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.d.ts +2 -0
  25. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +23 -20
  26. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +52 -0
  27. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +50 -47
  28. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.d.ts +1 -0
  29. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +124 -95
  30. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.d.ts +17 -0
  31. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +6 -3
  32. package/vscode/src/vs/workbench/contrib/chat/browser/chatEdinputInputContentProvider.d.ts +12 -0
  33. package/vscode/src/vs/workbench/contrib/chat/browser/chatEdinputInputContentProvider.js +30 -0
  34. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingService.d.ts +69 -0
  35. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingService.js +203 -182
  36. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +103 -0
  37. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +458 -165
  38. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +42 -0
  39. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +14 -10
  40. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.d.ts +26 -0
  41. package/vscode/src/vs/workbench/contrib/chat/browser/{chatParticipantContributions.js → chatParticipant.contribution.js} +101 -92
  42. package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.d.ts +42 -0
  43. package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +164 -25
  44. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.d.ts +26 -0
  45. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +6 -5
  46. package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.d.ts +30 -0
  47. package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +10 -7
  48. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.d.ts +17 -0
  49. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +941 -0
  50. package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.d.ts +26 -0
  51. package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +9 -6
  52. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +54 -0
  53. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +32 -15
  54. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.d.ts +9 -0
  55. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.js +1 -0
  56. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.d.ts +1 -0
  57. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +8 -6
  58. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.d.ts +26 -0
  59. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +16 -19
  60. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.d.ts +15 -0
  61. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.js +108 -0
  62. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/editorHoverWrapper.d.ts +7 -0
  63. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/editorHoverWrapper.js +3 -8
  64. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/media/editorHoverWrapper.css.js +1 -1
  65. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +31 -0
  66. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +70 -49
  67. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewSetup.css.js +6 -0
  68. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.d.ts +7 -0
  69. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/{chatViewsWelcomeContributions.js → chatViewsWelcomeHandler.js} +13 -13
  70. package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.d.ts +44 -0
  71. package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.js +3 -1
  72. package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +22 -0
  73. package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +1 -0
  74. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +80 -0
  75. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +152 -104
  76. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.d.ts +8 -0
  77. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.js +2 -1
  78. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.d.ts +41 -0
  79. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +2 -1
  80. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.d.ts +31 -0
  81. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +6 -4
  82. package/vscode/src/vs/workbench/contrib/chat/common/ignoredFiles.d.ts +13 -0
  83. package/vscode/src/vs/workbench/contrib/chat/common/ignoredFiles.js +1 -0
  84. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +24 -0
  85. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +23 -21
  86. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.d.ts +1 -0
  87. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.js +1 -0
  88. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.d.ts +39 -0
  89. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +20 -19
  90. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.service.d.ts +7 -0
  91. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.d.ts +1 -0
  92. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +30 -33
  93. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.d.ts +10 -0
  94. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +6 -4
  95. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.d.ts +10 -0
  96. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +9 -7
  97. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.d.ts +44 -0
  98. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +247 -83
  99. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.d.ts +8 -0
  100. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +5 -4
  101. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.d.ts +29 -0
  102. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.js +35 -35
  103. package/chat.js +0 -59
  104. package/vscode/src/vs/editor/common/diff/documentDiffProvider.js +0 -8
  105. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +0 -326
  106. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +0 -76
  107. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorActions.js +0 -110
  108. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorController.js +0 -287
  109. package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +0 -130
  110. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +0 -172
package/index.d.ts CHANGED
@@ -1 +1,2 @@
1
- export { default } from 'vscode/service-override/chat';
1
+ import { type IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
2
+ export default function getServiceOverride(): IEditorOverrideServices;
package/index.js CHANGED
@@ -1 +1,64 @@
1
- export { default } from './chat.js';
1
+
2
+ import 'vscode/vscode/vs/editor/standalone/browser/standaloneServices';
3
+ import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
4
+ import { IChatWidgetService, IQuickChatService, IChatAccessibilityService, IChatCodeBlockContextProviderService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
5
+ import { ChatAccessibilityService } from './vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js';
6
+ import { QuickChatService } from './vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js';
7
+ import { ChatVariablesService } from './vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js';
8
+ import { ChatWidgetService } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
9
+ import { ChatCodeBlockContextProviderService } from './vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.js';
10
+ import { ChatAgentService, ChatAgentNameService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
11
+ import { IChatAgentService, IChatAgentNameService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
12
+ import { IChatService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatService.service';
13
+ import { ChatService } from './vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js';
14
+ import { ChatSlashCommandService } from './vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js';
15
+ import { IChatSlashCommandService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatSlashCommands.service';
16
+ import { IChatVariablesService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatVariables.service';
17
+ import { ChatWidgetHistoryService } from './vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js';
18
+ import { IChatWidgetHistoryService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service';
19
+ import { ILanguageModelStatsService } from 'vscode/vscode/vs/workbench/contrib/chat/common/languageModelStats.service';
20
+ import { LanguageModelsService } from 'vscode/vscode/vs/workbench/contrib/chat/common/languageModels';
21
+ import { ILanguageModelsService } from 'vscode/vscode/vs/workbench/contrib/chat/common/languageModels.service';
22
+ import { IInlineChatSavingService } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSavingService.service';
23
+ import { InlineChatSavingServiceImpl } from './vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.js';
24
+ import { IInlineChatSessionService } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service';
25
+ import { InlineChatSessionServiceImpl } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl';
26
+ import { LanguageModelStatsService } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/languageModelStats';
27
+ import './vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js';
28
+ import './vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js';
29
+ import { ILanguageModelToolsService } from 'vscode/vscode/vs/workbench/contrib/chat/common/languageModelToolsService.service';
30
+ import { LanguageModelToolsService } from './vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js';
31
+ import { ICodeMapperService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatCodeMapperService.service';
32
+ import { CodeMapperService } from './vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.js';
33
+ import { IChatEditingService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatEditingService.service';
34
+ import { ChatEditingService } from './vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingService.js';
35
+ import { LanguageModelIgnoredFilesService } from './vscode/src/vs/workbench/contrib/chat/common/ignoredFiles.js';
36
+ import { ILanguageModelIgnoredFilesService } from 'vscode/vscode/vs/workbench/contrib/chat/common/ignoredFiles.service';
37
+ import { IChatQuotasService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chatQuotasService.service';
38
+ import { ChatQuotasService } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chatQuotasService';
39
+
40
+ function getServiceOverride() {
41
+ return {
42
+ [IChatService.toString()]: new SyncDescriptor(ChatService, [], true),
43
+ [IChatWidgetService.toString()]: new SyncDescriptor(ChatWidgetService, [], true),
44
+ [IQuickChatService.toString()]: new SyncDescriptor(QuickChatService, [], true),
45
+ [IChatAccessibilityService.toString()]: new SyncDescriptor(ChatAccessibilityService, [], true),
46
+ [IChatWidgetHistoryService.toString()]: new SyncDescriptor(ChatWidgetHistoryService, [], true),
47
+ [ILanguageModelsService.toString()]: new SyncDescriptor(LanguageModelsService, [], true),
48
+ [IChatSlashCommandService.toString()]: new SyncDescriptor(ChatSlashCommandService, [], true),
49
+ [IChatAgentService.toString()]: new SyncDescriptor(ChatAgentService, [], true),
50
+ [IChatVariablesService.toString()]: new SyncDescriptor(ChatVariablesService, [], true),
51
+ [IInlineChatSessionService.toString()]: new SyncDescriptor(InlineChatSessionServiceImpl, [], true),
52
+ [IInlineChatSavingService.toString()]: new SyncDescriptor(InlineChatSavingServiceImpl, [], true),
53
+ [IChatCodeBlockContextProviderService.toString()]: new SyncDescriptor(ChatCodeBlockContextProviderService, [], true),
54
+ [ILanguageModelStatsService.toString()]: new SyncDescriptor(LanguageModelStatsService, [], true),
55
+ [ILanguageModelIgnoredFilesService.toString()]: new SyncDescriptor(LanguageModelIgnoredFilesService, [], true),
56
+ [IChatAgentNameService.toString()]: new SyncDescriptor(ChatAgentNameService, [], true),
57
+ [ILanguageModelToolsService.toString()]: new SyncDescriptor(LanguageModelToolsService, [], true),
58
+ [ICodeMapperService.toString()]: new SyncDescriptor(CodeMapperService, [], true),
59
+ [IChatEditingService.toString()]: new SyncDescriptor(ChatEditingService, [], true),
60
+ [IChatQuotasService.toString()]: new SyncDescriptor(ChatQuotasService, [], true)
61
+ };
62
+ }
63
+
64
+ export { getServiceOverride as default };
package/package.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-chat-service-override",
3
- "version": "11.1.2",
3
+ "version": "12.0.1",
4
+ "private": false,
5
+ "description": "VSCode public API plugged on the monaco editor - chat service-override",
4
6
  "keywords": [],
5
7
  "author": {
6
8
  "name": "CodinGame",
@@ -12,8 +14,29 @@
12
14
  "url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
13
15
  },
14
16
  "type": "module",
15
- "private": false,
16
- "description": "VSCode public API plugged on the monaco editor - chat service-override",
17
+ "dependencies": {
18
+ "@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common": "12.0.1",
19
+ "@codingame/monaco-vscode-1cc4ea0a-c5b6-54ed-bb60-078a99119b55-common": "12.0.1",
20
+ "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common": "12.0.1",
21
+ "@codingame/monaco-vscode-42931eb9-e564-530c-bafc-fa23ab43a070-common": "12.0.1",
22
+ "@codingame/monaco-vscode-47923ab1-c4c8-58b5-89ac-fa1b998eb5dd-common": "12.0.1",
23
+ "@codingame/monaco-vscode-4a36e358-d94d-55e0-86ee-3bcd543d9d3f-common": "12.0.1",
24
+ "@codingame/monaco-vscode-5108c2c9-4ada-52d8-8c4b-fe03b3160e71-common": "12.0.1",
25
+ "@codingame/monaco-vscode-5945a5e2-a66c-5a82-bd2c-1965724b29eb-common": "12.0.1",
26
+ "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "12.0.1",
27
+ "@codingame/monaco-vscode-9d05a43d-c330-5ff1-937e-fde4a3852931-common": "12.0.1",
28
+ "@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "12.0.1",
29
+ "@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "12.0.1",
30
+ "@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common": "12.0.1",
31
+ "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "12.0.1",
32
+ "@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common": "12.0.1",
33
+ "@codingame/monaco-vscode-e571cbbb-526b-5d8b-92c5-a0437d2dabb3-common": "12.0.1",
34
+ "@codingame/monaco-vscode-ea14e352-8f1c-5569-b79a-8a96a53e8abe-common": "12.0.1",
35
+ "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common": "12.0.1",
36
+ "vscode": "npm:@codingame/monaco-vscode-api@12.0.1"
37
+ },
38
+ "peerDependencies": {},
39
+ "peerDependenciesMeta": {},
17
40
  "main": "index.js",
18
41
  "module": "index.js",
19
42
  "types": "index.d.ts",
@@ -22,16 +45,12 @@
22
45
  "default": "./index.js"
23
46
  },
24
47
  "./vscode/*": {
25
- "default": "./vscode/src/*.js"
48
+ "default": "./vscode/src/*.js",
49
+ "types": "./vscode/src/*.d.ts"
50
+ },
51
+ "./*": {
52
+ "default": "./*.js",
53
+ "types": "./*.d.ts"
26
54
  }
27
- },
28
- "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@11.1.2",
30
- "@codingame/monaco-vscode-chat-notebook-common": "11.1.2",
31
- "@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common": "11.1.2",
32
- "@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common": "11.1.2",
33
- "@codingame/monaco-vscode-chat-extensions-notebook-common": "11.1.2",
34
- "@codingame/monaco-vscode-chat-notebook-terminal-common": "11.1.2",
35
- "@codingame/monaco-vscode-chat-interactive-notebook-search-common": "11.1.2"
36
55
  }
37
56
  }
@@ -0,0 +1,21 @@
1
+ import { ICodeEditor } from "vscode/vscode/vs/editor/browser/editorBrowser";
2
+ import { ServicesAccessor } from "vscode/vscode/vs/editor/browser/editorExtensions";
3
+ import { AccessibleContentProvider, AccessibleViewType } from "vscode/vscode/vs/platform/accessibility/browser/accessibleView";
4
+ import { IAccessibleViewImplentation } from "vscode/vscode/vs/platform/accessibility/browser/accessibleViewRegistry";
5
+ import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
6
+ export declare class PanelChatAccessibilityHelp implements IAccessibleViewImplentation {
7
+ readonly priority = 107;
8
+ readonly name = "panelChat";
9
+ readonly type = AccessibleViewType.Help;
10
+ readonly when: import("vscode/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
11
+ getProvider(accessor: ServicesAccessor): AccessibleContentProvider | undefined;
12
+ }
13
+ export declare class QuickChatAccessibilityHelp implements IAccessibleViewImplentation {
14
+ readonly priority = 107;
15
+ readonly name = "quickChat";
16
+ readonly type = AccessibleViewType.Help;
17
+ readonly when: import("vscode/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
18
+ getProvider(accessor: ServicesAccessor): AccessibleContentProvider | undefined;
19
+ }
20
+ export declare function getAccessibilityHelpText(type: "panelChat" | "inlineChat" | "quickChat", keybindingService: IKeybindingService): string;
21
+ export declare function getChatAccessibilityHelpProvider(accessor: ServicesAccessor, editor: ICodeEditor | undefined, type: "panelChat" | "inlineChat" | "quickChat"): AccessibleContentProvider | undefined;
@@ -1,24 +1,26 @@
1
- import { localize } from 'vscode/vscode/vs/nls';
2
- import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
3
- import { AccessibleContentProvider } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleView';
4
- import { AccessibleDiffViewerNext } from 'vscode/vscode/vs/editor/browser/widget/diffEditor/commands';
5
- import { INLINE_CHAT_ID } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
1
+
6
2
  import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
3
+ import { AccessibleDiffViewerNext } from 'vscode/vscode/vs/editor/browser/widget/diffEditor/commands';
4
+ import { localize } from 'vscode/vscode/vs/nls';
5
+ import { AccessibleViewType, AccessibleContentProvider, AccessibleViewProviderId } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleView';
7
6
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
8
- import { CONTEXT_CHAT_LOCATION, CONTEXT_IN_QUICK_CHAT, CONTEXT_IN_CHAT_SESSION, CONTEXT_RESPONSE, CONTEXT_REQUEST } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
9
- import { ChatAgentLocation } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
10
7
  import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
8
+ import { AccessibilityVerbositySettingId } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
9
+ import { INLINE_CHAT_ID } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
10
+ import { ChatAgentLocation } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
11
+ import { ChatContextKeys } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
12
+ import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
11
13
 
12
14
  class PanelChatAccessibilityHelp {
13
15
  constructor() {
14
16
  this.priority = 107;
15
17
  this.name = 'panelChat';
16
- this.type = "help" ;
17
- this.when = ( (ContextKeyExpr.and(
18
- (CONTEXT_CHAT_LOCATION.isEqualTo(ChatAgentLocation.Panel)),
19
- (CONTEXT_IN_QUICK_CHAT.negate()),
20
- (ContextKeyExpr.or(CONTEXT_IN_CHAT_SESSION, CONTEXT_RESPONSE, CONTEXT_REQUEST))
21
- )));
18
+ this.type = AccessibleViewType.Help;
19
+ this.when = ( ContextKeyExpr.and(( ChatContextKeys.location.isEqualTo(ChatAgentLocation.Panel)), ( ChatContextKeys.inQuickChat.negate()), ( ContextKeyExpr.or(
20
+ ChatContextKeys.inChatSession,
21
+ ChatContextKeys.isResponse,
22
+ ChatContextKeys.isRequest
23
+ ))));
22
24
  }
23
25
  getProvider(accessor) {
24
26
  const codeEditor = accessor.get(ICodeEditorService).getActiveCodeEditor() || accessor.get(ICodeEditorService).getFocusedCodeEditor();
@@ -29,11 +31,12 @@ class QuickChatAccessibilityHelp {
29
31
  constructor() {
30
32
  this.priority = 107;
31
33
  this.name = 'quickChat';
32
- this.type = "help" ;
33
- this.when = ( (ContextKeyExpr.and(
34
- CONTEXT_IN_QUICK_CHAT,
35
- (ContextKeyExpr.or(CONTEXT_IN_CHAT_SESSION, CONTEXT_RESPONSE, CONTEXT_REQUEST))
36
- )));
34
+ this.type = AccessibleViewType.Help;
35
+ this.when = ( ContextKeyExpr.and(ChatContextKeys.inQuickChat, ( ContextKeyExpr.or(
36
+ ChatContextKeys.inChatSession,
37
+ ChatContextKeys.isResponse,
38
+ ChatContextKeys.isRequest
39
+ ))));
37
40
  }
38
41
  getProvider(accessor) {
39
42
  const codeEditor = accessor.get(ICodeEditorService).getActiveCodeEditor() || accessor.get(ICodeEditorService).getFocusedCodeEditor();
@@ -43,45 +46,57 @@ class QuickChatAccessibilityHelp {
43
46
  function getAccessibilityHelpText(type, keybindingService) {
44
47
  const content = [];
45
48
  if (type === 'panelChat' || type === 'quickChat') {
49
+ if (type === 'quickChat') {
50
+ content.push(( localize(
51
+ 4131,
52
+ 'The quick chat view is comprised of an input box and a request/response list. The input box is used to make requests and the list is used to display responses.'
53
+ )));
54
+ content.push(( localize(
55
+ 4132,
56
+ 'The quick chat view is a transient interface for making and viewing requests, while the panel chat view is a persistent interface that also supports navigating suggested follow-up questions.'
57
+ )));
58
+ }
59
+ if (type === 'panelChat') {
60
+ content.push(( localize(
61
+ 4133,
62
+ 'The panel chat view is a persistent interface that also supports navigating suggested follow-up questions, while the quick chat view is a transient interface for making and viewing requests.'
63
+ )));
64
+ content.push(( localize(
65
+ 4134,
66
+ 'In the input box, navigate to the suggested follow up question (Shift+Tab) and press Enter to run it.'
67
+ )));
68
+ }
46
69
  content.push(( localize(
47
- 7501,
48
- 'The chat view is comprised of an input box and a request/response list. The input box is used to make requests and the list is used to display responses.'
49
- )));
50
- content.push(( localize(
51
- 7502,
70
+ 4135,
52
71
  'In the input box, use up and down arrows to navigate your request history. Edit input and use enter or the submit button to run a new request.'
53
72
  )));
54
73
  content.push(( localize(
55
- 7503,
74
+ 4136,
56
75
  'In the input box, inspect the last response in the accessible view{0}.',
57
76
  '<keybinding:editor.action.accessibleView>'
58
77
  )));
59
78
  content.push(( localize(
60
- 7504,
61
- 'In the input box, navigate to the suggested follow up question (Shift+Tab) and press Enter to run it.'
62
- )));
63
- content.push(( localize(
64
- 7505,
79
+ 4137,
65
80
  'Chat responses will be announced as they come in. A response will indicate the number of code blocks, if any, and then the rest of the response.'
66
81
  )));
67
82
  content.push(( localize(
68
- 7506,
83
+ 4138,
69
84
  'To focus the chat request/response list, which can be navigated with up and down arrows, invoke the Focus Chat command{0}.',
70
85
  getChatFocusKeybindingLabel(keybindingService, type, false)
71
86
  )));
72
87
  content.push(( localize(
73
- 7507,
88
+ 4139,
74
89
  'To focus the input box for chat requests, invoke the Focus Chat Input command{0}.',
75
90
  getChatFocusKeybindingLabel(keybindingService, type, true)
76
91
  )));
77
92
  content.push(( localize(
78
- 7508,
93
+ 4140,
79
94
  'To focus the next code block within a response, invoke the Chat: Next Code Block command{0}.',
80
95
  '<keybinding:workbench.action.chat.nextCodeBlock>'
81
96
  )));
82
97
  if (type === 'panelChat') {
83
98
  content.push(( localize(
84
- 7509,
99
+ 4141,
85
100
  'To create a new chat session, invoke the New Chat command{0}.',
86
101
  '<keybinding:workbench.action.chat.new>'
87
102
  )));
@@ -89,45 +104,45 @@ function getAccessibilityHelpText(type, keybindingService) {
89
104
  }
90
105
  else {
91
106
  content.push(( localize(
92
- 7510,
107
+ 4142,
93
108
  "Inline chat occurs within a code editor and takes into account the current selection. It is useful for making changes to the current editor. For example, fixing diagnostics, documenting or refactoring code. Keep in mind that AI generated code may be incorrect."
94
109
  )));
95
110
  content.push(( localize(
96
- 7511,
111
+ 4143,
97
112
  "It can be activated via code actions or directly using the command: Inline Chat: Start Inline Chat{0}.",
98
113
  '<keybinding:inlineChat.start>'
99
114
  )));
100
115
  content.push(( localize(
101
- 7512,
116
+ 4144,
102
117
  'In the input box, use Show Previous{0} and Show Next{1} to navigate your request history. Edit input and use enter or the submit button to run a new request.',
103
118
  '<keybinding:history.showPrevious>',
104
119
  '<keybinding:history.showNext>'
105
120
  )));
106
121
  content.push(( localize(
107
- 7513,
122
+ 4145,
108
123
  'In the input box, inspect the response in the accessible view{0}.',
109
124
  '<keybinding:editor.action.accessibleView>'
110
125
  )));
111
126
  content.push(( localize(
112
- 7514,
127
+ 4146,
113
128
  "Context menu actions may run a request prefixed with a /. Type / to discover such ready-made commands."
114
129
  )));
115
130
  content.push(( localize(
116
- 7515,
131
+ 4147,
117
132
  "If a fix action is invoked, a response will indicate the problem with the current code. A diff editor will be rendered and can be reached by tabbing."
118
133
  )));
119
134
  content.push(( localize(
120
- 7516,
135
+ 4148,
121
136
  "Once in the diff editor, enter review mode with{0}. Use up and down arrows to navigate lines with the proposed changes.",
122
137
  AccessibleDiffViewerNext.id
123
138
  )));
124
139
  content.push(( localize(
125
- 7517,
140
+ 4149,
126
141
  "Use tab to reach conditional parts like commands, status, message responses and more."
127
142
  )));
128
143
  }
129
144
  content.push(( localize(
130
- 7518,
145
+ 4150,
131
146
  "Accessibility Signals can be changed via settings with a prefix of signals.chat. By default, if a request takes more than 4 seconds, you will hear a sound indicating that progress is still occurring."
132
147
  )));
133
148
  return content.join('\n');
@@ -146,24 +161,22 @@ function getChatAccessibilityHelpProvider(accessor, editor, type) {
146
161
  const cachedPosition = inputEditor.getPosition();
147
162
  inputEditor.getSupportedActions();
148
163
  const helpText = getAccessibilityHelpText(type, keybindingService);
149
- return (
150
- (new AccessibleContentProvider(
151
- type === 'panelChat' ? "panelChat" : type === 'inlineChat' ? "inlineChat" : "quickChat" ,
152
- { type: "help" },
153
- () => helpText,
154
- () => {
155
- if (type === 'panelChat' && cachedPosition) {
156
- inputEditor.setPosition(cachedPosition);
157
- inputEditor.focus();
158
- }
159
- else if (type === 'inlineChat') {
160
- const ctrl = editor?.getContribution(INLINE_CHAT_ID);
161
- ctrl?.focus();
162
- }
163
- },
164
- type === 'panelChat' ? "accessibility.verbosity.panelChat" : "accessibility.verbosity.inlineChat"
165
- ))
166
- );
164
+ return ( new AccessibleContentProvider(
165
+ type === 'panelChat' ? AccessibleViewProviderId.PanelChat : type === 'inlineChat' ? AccessibleViewProviderId.InlineChat : AccessibleViewProviderId.QuickChat,
166
+ { type: AccessibleViewType.Help },
167
+ () => helpText,
168
+ () => {
169
+ if (type === 'panelChat' && cachedPosition) {
170
+ inputEditor.setPosition(cachedPosition);
171
+ inputEditor.focus();
172
+ }
173
+ else if (type === 'inlineChat') {
174
+ const ctrl = editor?.getContribution(INLINE_CHAT_ID);
175
+ ctrl?.focus();
176
+ }
177
+ },
178
+ type === 'panelChat' ? AccessibilityVerbositySettingId.Chat : AccessibilityVerbositySettingId.InlineChat
179
+ ));
167
180
  }
168
181
  function getChatFocusKeybindingLabel(keybindingService, type, focusInput) {
169
182
  let kbs;
@@ -0,0 +1,3 @@
1
+ export declare const ACTION_ID_NEW_CHAT = "workbench.action.chat.newChat";
2
+ export declare const ACTION_ID_NEW_EDIT_SESSION = "workbench.action.chat.newEditSession";
3
+ export declare function registerNewChatActions(): void;