@codingame/monaco-vscode-chat-service-override 11.1.2 → 12.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.
- package/index.d.ts +2 -1
- package/index.js +64 -1
- package/package.json +32 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +73 -60
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +73 -81
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +73 -112
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +253 -101
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +16 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +30 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +22 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +23 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +50 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +124 -95
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEdinputInputContentProvider.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEdinputInputContentProvider.js +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingService.d.ts +69 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingService.js +203 -182
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +103 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +458 -165
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +14 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatParticipantContributions.js → chatParticipant.contribution.js} +101 -92
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +164 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +10 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +941 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +9 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +32 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +8 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +16 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.js +108 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/editorHoverWrapper.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/editorHoverWrapper.js +3 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/media/editorHoverWrapper.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +70 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewSetup.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/{chatViewsWelcomeContributions.js → chatViewsWelcomeHandler.js} +13 -13
- package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.js +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +80 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +152 -104
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +6 -4
- package/vscode/src/vs/workbench/contrib/chat/common/ignoredFiles.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/ignoredFiles.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +23 -21
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +20 -19
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.service.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +30 -33
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +6 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +9 -7
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +247 -83
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +5 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.js +35 -35
- package/chat.js +0 -59
- package/vscode/src/vs/editor/common/diff/documentDiffProvider.js +0 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +0 -326
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +0 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorActions.js +0 -110
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorController.js +0 -287
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +0 -130
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +0 -172
package/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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": "
|
|
3
|
+
"version": "12.0.0",
|
|
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
|
-
"
|
|
16
|
-
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common": "12.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-1cc4ea0a-c5b6-54ed-bb60-078a99119b55-common": "12.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common": "12.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-42931eb9-e564-530c-bafc-fa23ab43a070-common": "12.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-47923ab1-c4c8-58b5-89ac-fa1b998eb5dd-common": "12.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-4a36e358-d94d-55e0-86ee-3bcd543d9d3f-common": "12.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-5108c2c9-4ada-52d8-8c4b-fe03b3160e71-common": "12.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-5945a5e2-a66c-5a82-bd2c-1965724b29eb-common": "12.0.0",
|
|
26
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "12.0.0",
|
|
27
|
+
"@codingame/monaco-vscode-9d05a43d-c330-5ff1-937e-fde4a3852931-common": "12.0.0",
|
|
28
|
+
"@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "12.0.0",
|
|
29
|
+
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "12.0.0",
|
|
30
|
+
"@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common": "12.0.0",
|
|
31
|
+
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "12.0.0",
|
|
32
|
+
"@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common": "12.0.0",
|
|
33
|
+
"@codingame/monaco-vscode-e571cbbb-526b-5d8b-92c5-a0437d2dabb3-common": "12.0.0",
|
|
34
|
+
"@codingame/monaco-vscode-ea14e352-8f1c-5569-b79a-8a96a53e8abe-common": "12.0.0",
|
|
35
|
+
"@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common": "12.0.0",
|
|
36
|
+
"vscode": "npm:@codingame/monaco-vscode-api@12.0.0"
|
|
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
|
-
|
|
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 =
|
|
17
|
-
this.when = (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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 =
|
|
33
|
-
this.when = (
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
()
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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;
|