@codingame/monaco-vscode-chat-service-override 15.0.3 → 16.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.
- package/index.js +11 -8
- package/package.json +29 -20
- package/vscode/src/vs/editor/common/diff/documentDiffProvider.d.ts +22 -0
- package/vscode/src/vs/editor/common/diff/documentDiffProvider.js +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.d.ts +9 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +80 -55
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/chatAttachPromptAction.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/chatAttachPromptAction.js +17 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/{askToSelectPrompt.d.ts → askToSelectPrompt/askToSelectPrompt.d.ts} +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/askToSelectPrompt.js +79 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/constants.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/constants.js +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/attachPrompts.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/attachPrompts.js +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/createPlaceholderText.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/createPlaceholderText.js +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/createPromptPickItem.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/createPromptPickItem.js +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/handleButtonClick.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/handleButtonClick.js +49 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +163 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +22 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTransfer.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTransfer.js +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +242 -74
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.js +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +688 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +355 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +395 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +98 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +216 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +97 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +831 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +7 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +32 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +110 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +985 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +69 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookDiff.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookDiff.js +67 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.js +147 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.js +284 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +578 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.js +122 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/helpers.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/helpers.js +320 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/notebookCellChanges.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/notebookCellChanges.js +50 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +22 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +166 -62
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.d.ts +6 -104
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +704 -732
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.d.ts +10 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.js +329 -236
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatusItemService.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatusItemService.js +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +14 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/editorHoverWrapper.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/editorHoverWrapper.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/media/editorHoverWrapper.css +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +17 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +217 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditingEditorOverlay.css +114 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditorController.css +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatSetup.css +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatStatus.css +90 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/createPromptCommand.js +65 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptName.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptSourceFolder.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/errors.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/utils/createPromptFile.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/utils/createPromptFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/usePromptCommand.js +14 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +16 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +175 -57
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +313 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +4 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatTransferService.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatTransferService.js +30 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/constants.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/constants.js +6 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/textModelContentsProvider.d.ts +10 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/textModelContentsProvider.js +18 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageFeatures/promptLinkDiagnosticsProvider.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageFeatures/promptLinkDiagnosticsProvider.js +117 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageFeatures/promptPathAutocompletion.js +3 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/textModelPromptParser.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +157 -65
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +39 -21
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +2 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +11 -10
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.js +47 -0
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceUtils.d.ts +5 -0
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceUtils.js +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt.js +0 -142
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.d.ts +0 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +0 -331
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.d.ts +0 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.js +0 -110
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/media/editorHoverWrapper.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditingEditorOverlay.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatStatus.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewSetup.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementsService.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementsService.js +0 -13
- package/vscode/src/vs/workbench/contrib/chat/common/chatQuotasService.d.ts +0 -31
- package/vscode/src/vs/workbench/contrib/chat/common/chatQuotasService.js +0 -85
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.d.ts +0 -11
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.js +0 -22
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { QuickChatService } from './vscode/src/vs/workbench/contrib/chat/browser
|
|
|
7
7
|
import { ChatVariablesService } from './vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js';
|
|
8
8
|
import { ChatWidgetService } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
|
|
9
9
|
import { ChatCodeBlockContextProviderService } from './vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.js';
|
|
10
|
-
import { ChatAgentNameService, ChatAgentService } from '@codingame/monaco-vscode-
|
|
10
|
+
import { ChatAgentNameService, ChatAgentService } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
11
11
|
import { IChatAgentNameService, IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
12
12
|
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
13
13
|
import { ChatService } from './vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js';
|
|
@@ -31,13 +31,15 @@ import { LanguageModelIgnoredFilesService } from './vscode/src/vs/workbench/cont
|
|
|
31
31
|
import { ILanguageModelIgnoredFilesService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/ignoredFiles.service';
|
|
32
32
|
import { IChatMarkdownAnchorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service';
|
|
33
33
|
import { ChatMarkdownAnchorService } from './vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.js';
|
|
34
|
-
import { IChatQuotasService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatQuotasService.service';
|
|
35
|
-
import { ChatQuotasService } from './vscode/src/vs/workbench/contrib/chat/common/chatQuotasService.js';
|
|
36
34
|
import { ChatEditingService } from './vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js';
|
|
37
|
-
import {
|
|
35
|
+
import { ChatEntitlementService } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/common/chatEntitlementService';
|
|
38
36
|
import { PromptsService } from './vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js';
|
|
39
|
-
import {
|
|
37
|
+
import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEntitlementService.service';
|
|
40
38
|
import { IPromptsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/types.service';
|
|
39
|
+
import { IChatTransferService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatTransferService.service';
|
|
40
|
+
import { ChatTransferService } from './vscode/src/vs/workbench/contrib/chat/common/chatTransferService.js';
|
|
41
|
+
import { IChatStatusItemService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatStatusItemService.service';
|
|
42
|
+
import { ChatStatusItemService } from './vscode/src/vs/workbench/contrib/chat/browser/chatStatusItemService.js';
|
|
41
43
|
import './vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js';
|
|
42
44
|
import './vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js';
|
|
43
45
|
|
|
@@ -60,10 +62,11 @@ function getServiceOverride() {
|
|
|
60
62
|
[ILanguageModelToolsService.toString()]: new SyncDescriptor(LanguageModelToolsService, [], true),
|
|
61
63
|
[ICodeMapperService.toString()]: new SyncDescriptor(CodeMapperService, [], true),
|
|
62
64
|
[IChatEditingService.toString()]: new SyncDescriptor(ChatEditingService, [], true),
|
|
63
|
-
[
|
|
65
|
+
[IChatTransferService.toString()]: new SyncDescriptor(ChatTransferService, [], true),
|
|
64
66
|
[IChatMarkdownAnchorService.toString()]: new SyncDescriptor(ChatMarkdownAnchorService, [], true),
|
|
65
|
-
[
|
|
66
|
-
[IPromptsService.toString()]: new SyncDescriptor(PromptsService, [], true)
|
|
67
|
+
[IChatEntitlementService.toString()]: new SyncDescriptor(ChatEntitlementService, [], true),
|
|
68
|
+
[IPromptsService.toString()]: new SyncDescriptor(PromptsService, [], true),
|
|
69
|
+
[IChatStatusItemService.toString()]: new SyncDescriptor(ChatStatusItemService, [], true)
|
|
67
70
|
};
|
|
68
71
|
}
|
|
69
72
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-chat-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - chat service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,25 +15,31 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common": "
|
|
19
|
-
"@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-29bc1406-2925-5b8f-b25e-d04a7772d896-common": "
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
23
|
-
"@codingame/monaco-vscode-
|
|
24
|
-
"@codingame/monaco-vscode-
|
|
25
|
-
"@codingame/monaco-vscode-
|
|
26
|
-
"@codingame/monaco-vscode-
|
|
27
|
-
"@codingame/monaco-vscode-
|
|
28
|
-
"@codingame/monaco-vscode-
|
|
29
|
-
"@codingame/monaco-vscode-
|
|
30
|
-
"@codingame/monaco-vscode-
|
|
31
|
-
"@codingame/monaco-vscode-
|
|
32
|
-
"@codingame/monaco-vscode-
|
|
33
|
-
"@codingame/monaco-vscode-
|
|
34
|
-
"@codingame/monaco-vscode-
|
|
35
|
-
"@codingame/monaco-vscode-
|
|
36
|
-
"@codingame/monaco-vscode-
|
|
18
|
+
"@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common": "16.0.1",
|
|
19
|
+
"@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "16.0.1",
|
|
20
|
+
"@codingame/monaco-vscode-1cc4ea0a-c5b6-54ed-bb60-078a99119b55-common": "16.0.1",
|
|
21
|
+
"@codingame/monaco-vscode-29bc1406-2925-5b8f-b25e-d04a7772d896-common": "16.0.1",
|
|
22
|
+
"@codingame/monaco-vscode-2b1a9082-790f-527f-b013-d1b29d6265a3-common": "16.0.1",
|
|
23
|
+
"@codingame/monaco-vscode-42931eb9-e564-530c-bafc-fa23ab43a070-common": "16.0.1",
|
|
24
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "16.0.1",
|
|
25
|
+
"@codingame/monaco-vscode-68b3311c-eb96-5711-8f72-f5f4b2e31932-common": "16.0.1",
|
|
26
|
+
"@codingame/monaco-vscode-805e9c2f-56b6-5a43-8b5b-d2dc2d3805fc-common": "16.0.1",
|
|
27
|
+
"@codingame/monaco-vscode-8c844347-a703-5de1-9eeb-5e0c7f503a58-common": "16.0.1",
|
|
28
|
+
"@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common": "16.0.1",
|
|
29
|
+
"@codingame/monaco-vscode-9b5a5e82-d649-5455-b4bf-ef90d6afd294-common": "16.0.1",
|
|
30
|
+
"@codingame/monaco-vscode-a1eb43d5-da63-5f76-8ad4-acf0d6c3b749-common": "16.0.1",
|
|
31
|
+
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "16.0.1",
|
|
32
|
+
"@codingame/monaco-vscode-ad89fae6-94f0-5ac2-a185-22dea4b68ee0-common": "16.0.1",
|
|
33
|
+
"@codingame/monaco-vscode-ae8a8ca1-f243-508b-9c37-c88ebbd295fa-common": "16.0.1",
|
|
34
|
+
"@codingame/monaco-vscode-aff8bc9b-c6f8-578f-9c8a-f70d14f9c13c-common": "16.0.1",
|
|
35
|
+
"@codingame/monaco-vscode-api": "16.0.1",
|
|
36
|
+
"@codingame/monaco-vscode-b1110435-a331-5549-ab1e-aa3d763c3a1f-common": "16.0.1",
|
|
37
|
+
"@codingame/monaco-vscode-bba55be6-41a2-50cd-a3cc-8bafa35bfa89-common": "16.0.1",
|
|
38
|
+
"@codingame/monaco-vscode-c4e2825a-b5b1-5f0e-b547-068c32e06d50-common": "16.0.1",
|
|
39
|
+
"@codingame/monaco-vscode-ea14e352-8f1c-5569-b79a-8a96a53e8abe-common": "16.0.1",
|
|
40
|
+
"@codingame/monaco-vscode-ec21d4de-4d65-574c-8715-bb1a6bbad376-common": "16.0.1",
|
|
41
|
+
"@codingame/monaco-vscode-f1bbc6d3-6129-583c-a2ba-c80b832993d2-common": "16.0.1",
|
|
42
|
+
"@codingame/monaco-vscode-fdf643f9-94dd-5510-b97a-408abf26ad92-common": "16.0.1"
|
|
37
43
|
},
|
|
38
44
|
"main": "index.js",
|
|
39
45
|
"module": "index.js",
|
|
@@ -42,6 +48,9 @@
|
|
|
42
48
|
".": {
|
|
43
49
|
"default": "./index.js"
|
|
44
50
|
},
|
|
51
|
+
"./vscode/*.css": {
|
|
52
|
+
"default": "./vscode/src/*.css"
|
|
53
|
+
},
|
|
45
54
|
"./vscode/*": {
|
|
46
55
|
"types": "./vscode/src/*.d.ts",
|
|
47
56
|
"default": "./vscode/src/*.js"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
3
|
+
import { MovedText } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/diff/linesDiffComputer";
|
|
4
|
+
import { DetailedLineRangeMapping } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/diff/rangeMapping";
|
|
5
|
+
import { ITextModel } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/model";
|
|
6
|
+
export interface IDocumentDiffProvider {
|
|
7
|
+
computeDiff(original: ITextModel, modified: ITextModel, options: IDocumentDiffProviderOptions, cancellationToken: CancellationToken): Promise<IDocumentDiff>;
|
|
8
|
+
onDidChange: Event<void>;
|
|
9
|
+
}
|
|
10
|
+
export interface IDocumentDiffProviderOptions {
|
|
11
|
+
ignoreTrimWhitespace: boolean;
|
|
12
|
+
maxComputationTimeMs: number;
|
|
13
|
+
computeMoves: boolean;
|
|
14
|
+
extendToSubwords?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface IDocumentDiff {
|
|
17
|
+
readonly identical: boolean;
|
|
18
|
+
readonly quitEarly: boolean;
|
|
19
|
+
readonly changes: readonly DetailedLineRangeMapping[];
|
|
20
|
+
readonly moves: readonly MovedText[];
|
|
21
|
+
}
|
|
22
|
+
export declare const nullDocumentDiff: IDocumentDiff;
|
|
@@ -24,5 +24,12 @@ export declare class EditsChatAccessibilityHelp implements IAccessibleViewImplem
|
|
|
24
24
|
readonly when: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|
|
25
25
|
getProvider(accessor: ServicesAccessor): AccessibleContentProvider | undefined;
|
|
26
26
|
}
|
|
27
|
-
export declare
|
|
28
|
-
|
|
27
|
+
export declare class AgentChatAccessibilityHelp implements IAccessibleViewImplementation {
|
|
28
|
+
readonly priority = 120;
|
|
29
|
+
readonly name = "agentView";
|
|
30
|
+
readonly type = AccessibleViewType.Help;
|
|
31
|
+
readonly when: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|
|
32
|
+
getProvider(accessor: ServicesAccessor): AccessibleContentProvider | undefined;
|
|
33
|
+
}
|
|
34
|
+
export declare function getAccessibilityHelpText(type: "panelChat" | "inlineChat" | "quickChat" | "editsView" | "agentView", keybindingService: IKeybindingService): string;
|
|
35
|
+
export declare function getChatAccessibilityHelpProvider(accessor: ServicesAccessor, editor: ICodeEditor | undefined, type: "panelChat" | "inlineChat" | "quickChat" | "editsView" | "agentView"): AccessibleContentProvider | undefined;
|
|
@@ -5,11 +5,10 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
|
5
5
|
import { AccessibleViewType, AccessibleContentProvider, AccessibleViewProviderId } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView';
|
|
6
6
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
7
7
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
8
|
-
import { ActiveAuxiliaryContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
9
8
|
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
10
9
|
import { INLINE_CHAT_ID } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
10
|
+
import { ChatContextKeys, ChatContextKeyExprs } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
11
|
+
import { ChatAgentLocation, ChatMode } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
13
12
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
14
13
|
|
|
15
14
|
class PanelChatAccessibilityHelp {
|
|
@@ -17,7 +16,7 @@ class PanelChatAccessibilityHelp {
|
|
|
17
16
|
this.priority = 107;
|
|
18
17
|
this.name = 'panelChat';
|
|
19
18
|
this.type = AccessibleViewType.Help;
|
|
20
|
-
this.when = ( ContextKeyExpr.and(( ChatContextKeys.location.isEqualTo(ChatAgentLocation.Panel)), ( ChatContextKeys.inQuickChat.negate()), (
|
|
19
|
+
this.when = ( ContextKeyExpr.and(( ChatContextKeys.location.isEqualTo(ChatAgentLocation.Panel)), ( ChatContextKeys.inQuickChat.negate()), ( ChatContextKeys.chatMode.isEqualTo(ChatMode.Ask)), ( ContextKeyExpr.or(
|
|
21
20
|
ChatContextKeys.inChatSession,
|
|
22
21
|
ChatContextKeys.isResponse,
|
|
23
22
|
ChatContextKeys.isRequest
|
|
@@ -49,173 +48,199 @@ class EditsChatAccessibilityHelp {
|
|
|
49
48
|
this.priority = 119;
|
|
50
49
|
this.name = 'editsView';
|
|
51
50
|
this.type = AccessibleViewType.Help;
|
|
52
|
-
this.when = ( ContextKeyExpr.and(
|
|
51
|
+
this.when = ( ContextKeyExpr.and(ChatContextKeyExprs.inEditingMode, ChatContextKeys.inChatInput));
|
|
53
52
|
}
|
|
54
53
|
getProvider(accessor) {
|
|
55
54
|
const codeEditor = accessor.get(ICodeEditorService).getActiveCodeEditor() || accessor.get(ICodeEditorService).getFocusedCodeEditor();
|
|
56
55
|
return getChatAccessibilityHelpProvider(accessor, codeEditor ?? undefined, 'editsView');
|
|
57
56
|
}
|
|
58
57
|
}
|
|
58
|
+
class AgentChatAccessibilityHelp {
|
|
59
|
+
constructor() {
|
|
60
|
+
this.priority = 120;
|
|
61
|
+
this.name = 'agentView';
|
|
62
|
+
this.type = AccessibleViewType.Help;
|
|
63
|
+
this.when = ( ContextKeyExpr.and(( ChatContextKeys.chatMode.isEqualTo(ChatMode.Agent)), ChatContextKeys.inChatInput));
|
|
64
|
+
}
|
|
65
|
+
getProvider(accessor) {
|
|
66
|
+
const codeEditor = accessor.get(ICodeEditorService).getActiveCodeEditor() || accessor.get(ICodeEditorService).getFocusedCodeEditor();
|
|
67
|
+
return getChatAccessibilityHelpProvider(accessor, codeEditor ?? undefined, 'agentView');
|
|
68
|
+
}
|
|
69
|
+
}
|
|
59
70
|
function getAccessibilityHelpText(type, keybindingService) {
|
|
60
71
|
const content = [];
|
|
61
72
|
if (type === 'panelChat' || type === 'quickChat') {
|
|
62
73
|
if (type === 'quickChat') {
|
|
63
74
|
content.push(( localize(
|
|
64
|
-
|
|
75
|
+
4272,
|
|
65
76
|
'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.'
|
|
66
77
|
)));
|
|
67
78
|
content.push(( localize(
|
|
68
|
-
|
|
79
|
+
4273,
|
|
69
80
|
'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.'
|
|
70
81
|
)));
|
|
71
82
|
}
|
|
72
83
|
if (type === 'panelChat') {
|
|
73
84
|
content.push(( localize(
|
|
74
|
-
|
|
85
|
+
4274,
|
|
75
86
|
'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.'
|
|
76
87
|
)));
|
|
77
88
|
content.push(( localize(
|
|
78
|
-
|
|
89
|
+
4275,
|
|
79
90
|
'In the input box, navigate to the suggested follow up question (Shift+Tab) and press Enter to run it.'
|
|
80
91
|
)));
|
|
81
92
|
}
|
|
82
93
|
content.push(( localize(
|
|
83
|
-
|
|
94
|
+
4276,
|
|
84
95
|
'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.'
|
|
85
96
|
)));
|
|
86
97
|
content.push(( localize(
|
|
87
|
-
|
|
98
|
+
4277,
|
|
88
99
|
'In the input box, inspect the last response in the accessible view{0}.',
|
|
89
100
|
'<keybinding:editor.action.accessibleView>'
|
|
90
101
|
)));
|
|
91
102
|
content.push(( localize(
|
|
92
|
-
|
|
103
|
+
4278,
|
|
93
104
|
'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.'
|
|
94
105
|
)));
|
|
95
106
|
content.push(( localize(
|
|
96
|
-
|
|
107
|
+
4279,
|
|
97
108
|
'To focus the chat request/response list, which can be navigated with up and down arrows, invoke the Focus Chat command{0}.',
|
|
98
109
|
getChatFocusKeybindingLabel(keybindingService, type, false)
|
|
99
110
|
)));
|
|
100
111
|
content.push(( localize(
|
|
101
|
-
|
|
112
|
+
4280,
|
|
102
113
|
'To focus the input box for chat requests, invoke the Focus Chat Input command{0}.',
|
|
103
114
|
getChatFocusKeybindingLabel(keybindingService, type, true)
|
|
104
115
|
)));
|
|
105
116
|
content.push(( localize(
|
|
106
|
-
|
|
117
|
+
4281,
|
|
107
118
|
'To focus the next code block within a response, invoke the Chat: Next Code Block command{0}.',
|
|
108
119
|
'<keybinding:workbench.action.chat.nextCodeBlock>'
|
|
109
120
|
)));
|
|
110
121
|
if (type === 'panelChat') {
|
|
111
122
|
content.push(( localize(
|
|
112
|
-
|
|
123
|
+
4282,
|
|
113
124
|
'To create a new chat session, invoke the New Chat command{0}.',
|
|
114
125
|
'<keybinding:workbench.action.chat.new>'
|
|
115
126
|
)));
|
|
116
127
|
}
|
|
117
128
|
}
|
|
118
|
-
if (type === 'editsView') {
|
|
119
|
-
|
|
129
|
+
if (type === 'editsView' || type === 'agentView') {
|
|
130
|
+
if (type === 'agentView') {
|
|
131
|
+
content.push(( localize(
|
|
132
|
+
4283,
|
|
133
|
+
'The chat agent view is used to apply edits across files in your workspace, enable running commands in the terminal, and more.'
|
|
134
|
+
)));
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
content.push(( localize(4284, 'The chat editing view is used to apply edits across files.')));
|
|
138
|
+
}
|
|
120
139
|
content.push(( localize(
|
|
121
|
-
|
|
140
|
+
4285,
|
|
122
141
|
'It is comprised of an input box and a file working set (Shift+Tab).'
|
|
123
142
|
)));
|
|
124
143
|
content.push(( localize(
|
|
125
|
-
|
|
144
|
+
4286,
|
|
126
145
|
'When a request is made, a progress indicator will play while the edits are being applied.'
|
|
127
146
|
)));
|
|
128
147
|
content.push(( localize(
|
|
129
|
-
|
|
148
|
+
4287,
|
|
130
149
|
'Once the edits are applied, a sound will play to indicate the document has been opened and is ready for review. The sound can be disabled with accessibility.signals.chatEditModifiedFile.'
|
|
131
150
|
)));
|
|
132
151
|
content.push(( localize(
|
|
133
|
-
|
|
152
|
+
4288,
|
|
134
153
|
'Navigate between edits in the editor with navigate previous{0} and next{1}',
|
|
135
154
|
'<keybinding:chatEditor.action.navigatePrevious>',
|
|
136
155
|
'<keybinding:chatEditor.action.navigateNext>'
|
|
137
156
|
)));
|
|
138
157
|
content.push(( localize(
|
|
139
|
-
|
|
140
|
-
'In the editor,
|
|
158
|
+
4289,
|
|
159
|
+
'In the editor, Keep{0}, Undo{1}, or Toggle the Diff{2} for the current Change.',
|
|
141
160
|
'<keybinding:chatEditor.action.acceptHunk>',
|
|
142
161
|
'<keybinding:chatEditor.action.undoHunk>',
|
|
143
162
|
'<keybinding:chatEditor.action.toggleDiff>'
|
|
144
163
|
)));
|
|
145
|
-
content.push(( localize(4242, 'When in the edits view, some helpful commands include:')));
|
|
146
|
-
content.push(( localize(4243, '- Undo Edits{0}.', '<keybinding:workbench.action.chat.undoEdits>')));
|
|
147
164
|
content.push(( localize(
|
|
148
|
-
|
|
165
|
+
4290,
|
|
166
|
+
'Sounds will play when a change is accepted or undone. The sounds can be disabled with accessibility.signals.editsKept and accessibility.signals.editsUndone.'
|
|
167
|
+
)));
|
|
168
|
+
if (type === 'agentView') {
|
|
169
|
+
content.push(( localize(
|
|
170
|
+
4291,
|
|
171
|
+
'An alert will indicate when user action is required. For example, if the agent wants to run something in the terminal, you will hear Action Required: Run Command in Terminal.'
|
|
172
|
+
)));
|
|
173
|
+
content.push(( localize(
|
|
174
|
+
4292,
|
|
175
|
+
'To take the action, use the accept tool command{0}.',
|
|
176
|
+
'<keybinding:workbench.action.chat.acceptTool>'
|
|
177
|
+
)));
|
|
178
|
+
}
|
|
179
|
+
content.push(( localize(4293, 'Some helpful commands include:')));
|
|
180
|
+
content.push(( localize(4294, '- Undo Edits{0}.', '<keybinding:workbench.action.chat.undoEdits>')));
|
|
181
|
+
content.push(( localize(
|
|
182
|
+
4295,
|
|
149
183
|
'- Attach Files{0}.',
|
|
150
184
|
'<keybinding:workbench.action.chat.editing.attachFiles>'
|
|
151
185
|
)));
|
|
152
186
|
content.push(( localize(
|
|
153
|
-
|
|
187
|
+
4296,
|
|
154
188
|
'- Remove File from Working Set{0}.',
|
|
155
189
|
'<keybinding:chatEditing.removeFileFromWorkingSet>'
|
|
156
190
|
)));
|
|
157
191
|
content.push(( localize(
|
|
158
|
-
|
|
159
|
-
'-
|
|
192
|
+
4297,
|
|
193
|
+
'- Keep{0} and Undo File{1}.',
|
|
160
194
|
'<keybinding:chatEditing.acceptFile>',
|
|
161
195
|
'<keybinding:chatEditing.discardFile>'
|
|
162
196
|
)));
|
|
163
|
-
content.push(( localize(
|
|
164
|
-
content.push(( localize(
|
|
165
|
-
content.push(( localize(
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
'<keybinding:chatEditing.discardAllFiles>'
|
|
169
|
-
)));
|
|
170
|
-
content.push(( localize(4250, '- Open File in Diff{0}.', '<keybinding:chatEditing.openFileInDiff>')));
|
|
171
|
-
content.push(( localize(
|
|
172
|
-
4251,
|
|
173
|
-
'- Add File to Working Set{0}.',
|
|
174
|
-
'<keybinding:chatEditing.addFileToWorkingSet>'
|
|
175
|
-
)));
|
|
176
|
-
content.push(( localize(4252, '- View Changes{0}.', '<keybinding:chatEditing.viewChanges>')));
|
|
197
|
+
content.push(( localize(4298, '- Save All Files{0}.', '<keybinding:chatEditing.saveAllFiles>')));
|
|
198
|
+
content.push(( localize(4299, '- Keep All Edits{0}.', '<keybinding:chatEditing.acceptAllFiles>')));
|
|
199
|
+
content.push(( localize(4300, '- Undo All Edits{0}.', '<keybinding:chatEditing.discardAllFiles>')));
|
|
200
|
+
content.push(( localize(4301, '- Open File in Diff{0}.', '<keybinding:chatEditing.openFileInDiff>')));
|
|
201
|
+
content.push(( localize(4302, '- View Changes{0}.', '<keybinding:chatEditing.viewChanges>')));
|
|
177
202
|
}
|
|
178
203
|
else {
|
|
179
204
|
content.push(( localize(
|
|
180
|
-
|
|
205
|
+
4303,
|
|
181
206
|
"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."
|
|
182
207
|
)));
|
|
183
208
|
content.push(( localize(
|
|
184
|
-
|
|
209
|
+
4304,
|
|
185
210
|
"It can be activated via code actions or directly using the command: Inline Chat: Start Inline Chat{0}.",
|
|
186
211
|
'<keybinding:inlineChat.start>'
|
|
187
212
|
)));
|
|
188
213
|
content.push(( localize(
|
|
189
|
-
|
|
214
|
+
4305,
|
|
190
215
|
'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.',
|
|
191
216
|
'<keybinding:history.showPrevious>',
|
|
192
217
|
'<keybinding:history.showNext>'
|
|
193
218
|
)));
|
|
194
219
|
content.push(( localize(
|
|
195
|
-
|
|
220
|
+
4306,
|
|
196
221
|
'In the input box, inspect the response in the accessible view{0}.',
|
|
197
222
|
'<keybinding:editor.action.accessibleView>'
|
|
198
223
|
)));
|
|
199
224
|
content.push(( localize(
|
|
200
|
-
|
|
225
|
+
4307,
|
|
201
226
|
"Context menu actions may run a request prefixed with a /. Type / to discover such ready-made commands."
|
|
202
227
|
)));
|
|
203
228
|
content.push(( localize(
|
|
204
|
-
|
|
229
|
+
4308,
|
|
205
230
|
"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."
|
|
206
231
|
)));
|
|
207
232
|
content.push(( localize(
|
|
208
|
-
|
|
233
|
+
4309,
|
|
209
234
|
"Once in the diff editor, enter review mode with{0}. Use up and down arrows to navigate lines with the proposed changes.",
|
|
210
235
|
AccessibleDiffViewerNext.id
|
|
211
236
|
)));
|
|
212
237
|
content.push(( localize(
|
|
213
|
-
|
|
238
|
+
4310,
|
|
214
239
|
"Use tab to reach conditional parts like commands, status, message responses and more."
|
|
215
240
|
)));
|
|
216
241
|
}
|
|
217
242
|
content.push(( localize(
|
|
218
|
-
|
|
243
|
+
4311,
|
|
219
244
|
"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."
|
|
220
245
|
)));
|
|
221
246
|
return content.join('\n');
|
|
@@ -235,7 +260,7 @@ function getChatAccessibilityHelpProvider(accessor, editor, type) {
|
|
|
235
260
|
inputEditor.getSupportedActions();
|
|
236
261
|
const helpText = getAccessibilityHelpText(type, keybindingService);
|
|
237
262
|
return ( new AccessibleContentProvider(
|
|
238
|
-
type === 'panelChat' ? AccessibleViewProviderId.PanelChat : type === 'inlineChat' ? AccessibleViewProviderId.InlineChat : AccessibleViewProviderId.QuickChat,
|
|
263
|
+
type === 'panelChat' ? AccessibleViewProviderId.PanelChat : type === 'inlineChat' ? AccessibleViewProviderId.InlineChat : type === 'agentView' ? AccessibleViewProviderId.AgentChat : AccessibleViewProviderId.QuickChat,
|
|
239
264
|
{ type: AccessibleViewType.Help },
|
|
240
265
|
() => helpText,
|
|
241
266
|
() => {
|
|
@@ -283,4 +308,4 @@ function getChatFocusKeybindingLabel(keybindingService, type, focusInput) {
|
|
|
283
308
|
return !!kb ? ` (${kb})` : fallback;
|
|
284
309
|
}
|
|
285
310
|
|
|
286
|
-
export { EditsChatAccessibilityHelp, PanelChatAccessibilityHelp, QuickChatAccessibilityHelp, getAccessibilityHelpText, getChatAccessibilityHelpProvider };
|
|
311
|
+
export { AgentChatAccessibilityHelp, EditsChatAccessibilityHelp, PanelChatAccessibilityHelp, QuickChatAccessibilityHelp, getAccessibilityHelpText, getChatAccessibilityHelpProvider };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Action2 } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
|
|
2
2
|
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions";
|
|
3
|
-
import { ISelectPromptOptions } from "./dialogs/askToSelectPrompt.js";
|
|
3
|
+
import { ISelectPromptOptions } from "./dialogs/askToSelectPrompt/askToSelectPrompt.js";
|
|
4
4
|
export declare const ATTACH_PROMPT_ACTION_ID = "workbench.action.chat.attach.prompt";
|
|
5
|
-
export interface IChatAttachPromptActionOptions extends Pick<ISelectPromptOptions, "resource" | "widget"
|
|
5
|
+
export interface IChatAttachPromptActionOptions extends Pick<ISelectPromptOptions, "resource" | "widget"> {
|
|
6
6
|
}
|
|
7
7
|
export declare class AttachPromptAction extends Action2 {
|
|
8
8
|
constructor();
|
|
@@ -1,37 +1,51 @@
|
|
|
1
1
|
|
|
2
2
|
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
3
3
|
import { localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
5
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
4
6
|
import { Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
5
7
|
import { IPromptsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/types.service';
|
|
8
|
+
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
6
9
|
import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
|
|
7
10
|
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
8
11
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
9
|
-
import {
|
|
12
|
+
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
13
|
+
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
10
14
|
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
15
|
+
import { askToSelectPrompt } from './dialogs/askToSelectPrompt/askToSelectPrompt.js';
|
|
11
16
|
|
|
12
17
|
const ATTACH_PROMPT_ACTION_ID = 'workbench.action.chat.attach.prompt';
|
|
13
18
|
class AttachPromptAction extends Action2 {
|
|
14
19
|
constructor() {
|
|
15
20
|
super({
|
|
16
21
|
id: ATTACH_PROMPT_ACTION_ID,
|
|
17
|
-
title: ( localize2(
|
|
22
|
+
title: ( localize2(4356, "Use Prompt")),
|
|
18
23
|
f1: false,
|
|
24
|
+
precondition: ChatContextKeys.enabled,
|
|
19
25
|
category: CHAT_CATEGORY,
|
|
20
26
|
});
|
|
21
27
|
}
|
|
22
28
|
async run(accessor, options) {
|
|
29
|
+
const fileService = accessor.get(IFileService);
|
|
30
|
+
const chatService = accessor.get(IChatService);
|
|
23
31
|
const labelService = accessor.get(ILabelService);
|
|
24
32
|
const viewsService = accessor.get(IViewsService);
|
|
25
33
|
const openerService = accessor.get(IOpenerService);
|
|
34
|
+
const dialogService = accessor.get(IDialogService);
|
|
26
35
|
const promptsService = accessor.get(IPromptsService);
|
|
36
|
+
const commandService = accessor.get(ICommandService);
|
|
27
37
|
const quickInputService = accessor.get(IQuickInputService);
|
|
28
38
|
const promptFiles = await promptsService.listPromptFiles();
|
|
29
39
|
await askToSelectPrompt({
|
|
30
40
|
...options,
|
|
31
41
|
promptFiles,
|
|
32
|
-
|
|
42
|
+
chatService,
|
|
43
|
+
fileService,
|
|
33
44
|
viewsService,
|
|
45
|
+
labelService,
|
|
46
|
+
dialogService,
|
|
34
47
|
openerService,
|
|
48
|
+
commandService,
|
|
35
49
|
quickInputService,
|
|
36
50
|
});
|
|
37
51
|
}
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
1
|
import { IChatWidget } from "@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
2
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
|
+
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
|
|
3
4
|
import { IPromptPath } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/types";
|
|
5
|
+
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
4
6
|
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
5
7
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
6
8
|
import { IViewsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service";
|
|
9
|
+
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
10
|
+
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
7
11
|
import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service";
|
|
8
12
|
export interface ISelectPromptOptions {
|
|
9
13
|
readonly resource?: URI;
|
|
10
14
|
readonly widget?: IChatWidget;
|
|
11
15
|
readonly promptFiles: readonly IPromptPath[];
|
|
16
|
+
readonly fileService: IFileService;
|
|
17
|
+
readonly chatService: IChatService;
|
|
12
18
|
readonly labelService: ILabelService;
|
|
13
19
|
readonly viewsService: IViewsService;
|
|
14
20
|
readonly openerService: IOpenerService;
|
|
21
|
+
readonly dialogService: IDialogService;
|
|
22
|
+
readonly commandService: ICommandService;
|
|
15
23
|
readonly quickInputService: IQuickInputService;
|
|
16
24
|
}
|
|
17
25
|
export declare const askToSelectPrompt: (options: ISelectPromptOptions) => Promise<void>;
|