@codingame/monaco-vscode-chat-service-override 14.0.6 → 15.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.js +14 -8
- package/package.json +20 -20
- package/vscode/src/vs/base/common/objectCache.d.ts +1 -1
- package/vscode/src/vs/base/common/objectCache.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +43 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/chatAttachPromptAction.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/chatAttachPromptAction.js +40 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt.js +142 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +252 -260
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +8 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +12 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +7 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +31 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +151 -69
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEdinputInputContentProvider.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEdinputInputContentProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorAccessibility.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorAccessibility.js +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +379 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/{chatEditingService.d.ts → chatEditingServiceImpl.d.ts} +12 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +423 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +6 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +38 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.d.ts +16 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +93 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +21 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.d.ts +101 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +146 -126
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.js +386 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.d.ts +4 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +8 -91
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +7 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.js +45 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/editorHoverWrapper.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +11 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditingEditorOverlay.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatStatus.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/createPromptCommand.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/createPromptCommand.js +82 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptName.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptName.js +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptSourceFolder.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptSourceFolder.js +67 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/errors.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/errors.js +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/utils/createPromptFile.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/utils/createPromptFile.js +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/usePromptCommand.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/usePromptCommand.js +78 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementsService.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementsService.js +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +12 -10
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +26 -13
- package/vscode/src/vs/workbench/contrib/chat/common/chatQuotasService.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatQuotasService.js +85 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +33 -27
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.js +0 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/constants.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/constants.js +9 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/textModelContentsProvider.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/textModelContentsProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageFeatures/promptLinkProvider.d.ts +4 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageFeatures/promptLinkProvider.js +15 -23
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageFeatures/promptPathAutocompletion.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageFeatures/promptPathAutocompletion.js +175 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/textModelPromptParser.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/textModelPromptParser.js +6 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +62 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +101 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +31 -36
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingService.js +0 -505
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +0 -104
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +0 -871
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +0 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +0 -245
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController2.d.ts +0 -39
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController2.js +0 -314
|
@@ -5,114 +5,124 @@ import { isMarkdownString, MarkdownString } from '@codingame/monaco-vscode-api/v
|
|
|
5
5
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
6
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
7
7
|
import { isMacintosh } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
8
|
-
import { registerEditorContribution, EditorContributionInstantiation } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions';
|
|
9
8
|
import { registerEditorFeature } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorFeatures';
|
|
10
9
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
11
10
|
import { AccessibleViewRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
|
|
12
11
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
13
12
|
import { Extensions, ConfigurationScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
13
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
14
14
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
15
15
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
16
16
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
17
|
+
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
17
18
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
18
|
-
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-
|
|
19
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common/vscode/vs/workbench/browser/editor';
|
|
20
|
+
import { Extensions as Extensions$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/configuration';
|
|
19
21
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
20
22
|
import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
23
|
+
import { IWorkbenchAssignmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/assignment/common/assignmentService.service';
|
|
21
24
|
import { RegisteredEditorPriority } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
22
25
|
import { IEditorResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service';
|
|
23
26
|
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
24
27
|
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
25
|
-
import '@codingame/monaco-vscode-
|
|
26
|
-
import {
|
|
28
|
+
import '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/common/chatColors';
|
|
29
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
30
|
+
import { chatVariableLeader } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
|
|
27
31
|
import '../common/chatServiceImpl.js';
|
|
28
32
|
import '../common/chatSlashCommands.js';
|
|
29
33
|
import { IChatSlashCommandService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSlashCommands.service';
|
|
30
34
|
import { IChatVariablesService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatVariables.service';
|
|
31
|
-
import '@codingame/monaco-vscode-
|
|
35
|
+
import '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/common/chatWidgetHistoryService';
|
|
32
36
|
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels';
|
|
33
|
-
import '@codingame/monaco-vscode-
|
|
37
|
+
import '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/common/languageModelStats';
|
|
38
|
+
import '../common/promptSyntax/languageFeatures/promptLinkProvider.js';
|
|
39
|
+
import '../common/promptSyntax/languageFeatures/promptPathAutocompletion.js';
|
|
40
|
+
import '../common/promptSyntax/service/promptsService.js';
|
|
41
|
+
import './promptSyntax/contributions/usePromptCommand.js';
|
|
42
|
+
import './promptSyntax/contributions/createPromptCommand/createPromptCommand.js';
|
|
34
43
|
import { LanguageModelToolsExtensionPointHandler } from '../common/tools/languageModelToolsContribution.js';
|
|
44
|
+
import { BuiltinToolsContribution } from '../common/tools/tools.js';
|
|
35
45
|
import '../common/voiceChatService.js';
|
|
36
46
|
import { PanelChatAccessibilityHelp, QuickChatAccessibilityHelp, EditsChatAccessibilityHelp } from './actions/chatAccessibilityHelp.js';
|
|
37
|
-
import {
|
|
38
|
-
import { ACTION_ID_NEW_CHAT, registerNewChatActions } from '@codingame/monaco-vscode-
|
|
47
|
+
import { CopilotTitleBarMenuRendering, registerChatActions } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
48
|
+
import { ACTION_ID_NEW_CHAT, registerNewChatActions } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/actions/chatClearActions';
|
|
39
49
|
import { CodeBlockActionRendering, registerChatCodeBlockActions, registerChatCodeCompareBlockActions } from './actions/chatCodeblockActions.js';
|
|
40
50
|
import { registerChatContextActions } from './actions/chatContextActions.js';
|
|
41
51
|
import { registerChatCopyActions } from './actions/chatCopyActions.js';
|
|
42
52
|
import { registerChatDeveloperActions } from './actions/chatDeveloperActions.js';
|
|
43
|
-
import { ChatSubmitAction, registerChatExecuteActions } from '@codingame/monaco-vscode-
|
|
53
|
+
import { ChatSubmitAction, registerChatExecuteActions } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/actions/chatExecuteActions';
|
|
44
54
|
import { registerChatFileTreeActions } from './actions/chatFileTreeActions.js';
|
|
55
|
+
import { ChatGettingStartedContribution } from './actions/chatGettingStarted.js';
|
|
45
56
|
import { registerChatExportActions } from './actions/chatImportExport.js';
|
|
46
57
|
import { registerMoveActions } from './actions/chatMoveActions.js';
|
|
47
58
|
import { registerQuickChatActions } from './actions/chatQuickInputActions.js';
|
|
48
|
-
import { registerChatTitleActions } from '@codingame/monaco-vscode-
|
|
59
|
+
import { registerChatTitleActions } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/actions/chatTitleActions';
|
|
49
60
|
import './chatAccessibilityService.js';
|
|
50
|
-
import '@codingame/monaco-vscode-
|
|
61
|
+
import '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chatAttachmentModel';
|
|
51
62
|
import '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
52
|
-
import './chatEditing/chatEditingService.js';
|
|
53
|
-
import { ChatEditor } from './chatEditor.js';
|
|
54
|
-
import { registerChatEditorActions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditorActions';
|
|
55
|
-
import { ChatEditorController } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditorController';
|
|
56
|
-
import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
57
63
|
import { ChatInputBoxContentProvider } from './chatEdinputInputContentProvider.js';
|
|
58
|
-
import {
|
|
64
|
+
import { ChatEditingEditorAccessibility } from './chatEditing/chatEditingEditorAccessibility.js';
|
|
65
|
+
import { registerChatEditorActions } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions';
|
|
66
|
+
import { ChatEditingEditorOverlay } from './chatEditing/chatEditingEditorOverlay.js';
|
|
67
|
+
import './chatEditing/chatEditingServiceImpl.js';
|
|
68
|
+
import { ChatEditor } from './chatEditor.js';
|
|
69
|
+
import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
70
|
+
import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer';
|
|
59
71
|
import { ChatExtensionPointHandler, ChatCompatibilityNotifier } from './chatParticipant.contribution.js';
|
|
60
72
|
import { ChatPasteProvidersFeature } from './chatPasteProviders.js';
|
|
61
73
|
import './chatQuick.js';
|
|
74
|
+
import '../common/chatQuotasService.js';
|
|
62
75
|
import { ChatResponseAccessibleView } from './chatResponseAccessibleView.js';
|
|
76
|
+
import { ChatSetupContribution } from './chatSetup.js';
|
|
63
77
|
import './chatVariables.js';
|
|
64
|
-
import '@codingame/monaco-vscode-
|
|
78
|
+
import '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
|
|
79
|
+
import { ChatImplicitContextContribution } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatImplicitContext';
|
|
65
80
|
import '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions';
|
|
66
81
|
import './contrib/chatInputEditorContrib.js';
|
|
67
82
|
import './contrib/chatInputEditorHover.js';
|
|
68
|
-
import {
|
|
83
|
+
import { ChatRelatedFilesContribution } from './contrib/chatInputRelatedFilesContrib.js';
|
|
69
84
|
import './languageModelToolsService.js';
|
|
70
85
|
import { ChatViewsWelcomeHandler } from './viewsWelcome/chatViewsWelcomeHandler.js';
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import '
|
|
78
|
-
import {
|
|
79
|
-
import { BuiltinToolsContribution } from '../common/tools/tools.js';
|
|
80
|
-
import { IWorkbenchAssignmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/assignment/common/assignmentService.service';
|
|
81
|
-
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
82
|
-
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
83
|
-
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
86
|
+
import { ChatEditingEditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys';
|
|
87
|
+
import { PromptsConfig } from '@codingame/monaco-vscode-52bb4d5b-ba1a-57fd-9bee-b28824214eac-common/vscode/vs/platform/prompts/common/config';
|
|
88
|
+
import { PROMPT_FILE_EXTENSION } from '@codingame/monaco-vscode-52bb4d5b-ba1a-57fd-9bee-b28824214eac-common/vscode/vs/platform/prompts/common/constants';
|
|
89
|
+
import { DOCUMENTATION_URL } from '../common/promptSyntax/constants.js';
|
|
90
|
+
import { registerChatToolActions } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/actions/chatToolActions';
|
|
91
|
+
import { ChatStatusBarEntry } from './chatStatus.js';
|
|
92
|
+
import product from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/product';
|
|
93
|
+
import { ChatEditingNotebookFileSystemProviderContrib } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/chat/browser/chatEditing/chatEditingNotebookFileSystemProvider';
|
|
84
94
|
|
|
85
95
|
const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
86
96
|
configurationRegistry.registerConfiguration({
|
|
87
97
|
id: 'chatSidebar',
|
|
88
|
-
title: ( localize(
|
|
98
|
+
title: ( localize(4416, "Chat")),
|
|
89
99
|
type: 'object',
|
|
90
100
|
properties: {
|
|
91
101
|
'chat.editor.fontSize': {
|
|
92
102
|
type: 'number',
|
|
93
|
-
description: ( localize(
|
|
103
|
+
description: ( localize(4417, "Controls the font size in pixels in chat codeblocks.")),
|
|
94
104
|
default: isMacintosh ? 12 : 14,
|
|
95
105
|
},
|
|
96
106
|
'chat.editor.fontFamily': {
|
|
97
107
|
type: 'string',
|
|
98
|
-
description: ( localize(
|
|
108
|
+
description: ( localize(4418, "Controls the font family in chat codeblocks.")),
|
|
99
109
|
default: 'default'
|
|
100
110
|
},
|
|
101
111
|
'chat.editor.fontWeight': {
|
|
102
112
|
type: 'string',
|
|
103
|
-
description: ( localize(
|
|
113
|
+
description: ( localize(4419, "Controls the font weight in chat codeblocks.")),
|
|
104
114
|
default: 'default'
|
|
105
115
|
},
|
|
106
116
|
'chat.editor.wordWrap': {
|
|
107
117
|
type: 'string',
|
|
108
|
-
description: ( localize(
|
|
118
|
+
description: ( localize(4420, "Controls whether lines should wrap in chat codeblocks.")),
|
|
109
119
|
default: 'off',
|
|
110
120
|
enum: ['on', 'off']
|
|
111
121
|
},
|
|
112
122
|
'chat.editor.lineHeight': {
|
|
113
123
|
type: 'number',
|
|
114
124
|
description: ( localize(
|
|
115
|
-
|
|
125
|
+
4421,
|
|
116
126
|
"Controls the line height in pixels in chat codeblocks. Use 0 to compute the line height from the font size."
|
|
117
127
|
)),
|
|
118
128
|
default: 0
|
|
@@ -120,16 +130,38 @@ configurationRegistry.registerConfiguration({
|
|
|
120
130
|
'chat.commandCenter.enabled': {
|
|
121
131
|
type: 'boolean',
|
|
122
132
|
markdownDescription: ( localize(
|
|
123
|
-
|
|
133
|
+
4422,
|
|
124
134
|
"Controls whether the command center shows a menu for actions to control Copilot (requires {0}).",
|
|
125
135
|
'`#window.commandCenter#`'
|
|
126
136
|
)),
|
|
127
137
|
default: true
|
|
128
138
|
},
|
|
139
|
+
'chat.implicitContext.enabled': {
|
|
140
|
+
type: 'object',
|
|
141
|
+
tags: ['experimental'],
|
|
142
|
+
description: ( localize(
|
|
143
|
+
4423,
|
|
144
|
+
"Enables automatically using the active editor as chat context for specified chat locations."
|
|
145
|
+
)),
|
|
146
|
+
additionalProperties: {
|
|
147
|
+
type: 'string',
|
|
148
|
+
enum: ['never', 'first', 'always'],
|
|
149
|
+
description: ( localize(4424, "The value for the implicit context.")),
|
|
150
|
+
enumDescriptions: [
|
|
151
|
+
( localize(4425, "Implicit context is never enabled.")),
|
|
152
|
+
( localize(4426, "Implicit context is enabled for the first interaction.")),
|
|
153
|
+
( localize(4427, "Implicit context is always enabled."))
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
default: {
|
|
157
|
+
'panel': 'always',
|
|
158
|
+
'editing-session': 'first'
|
|
159
|
+
}
|
|
160
|
+
},
|
|
129
161
|
'chat.editing.autoAcceptDelay': {
|
|
130
162
|
type: 'number',
|
|
131
163
|
markdownDescription: ( localize(
|
|
132
|
-
|
|
164
|
+
4428,
|
|
133
165
|
"Delay after which changes made by chat are automatically accepted. Values are in seconds, `0` means disabled and `100` seconds is the maximum."
|
|
134
166
|
)),
|
|
135
167
|
default: 0,
|
|
@@ -140,7 +172,7 @@ configurationRegistry.registerConfiguration({
|
|
|
140
172
|
type: 'boolean',
|
|
141
173
|
scope: ConfigurationScope.APPLICATION,
|
|
142
174
|
markdownDescription: ( localize(
|
|
143
|
-
|
|
175
|
+
4429,
|
|
144
176
|
"Whether to show a confirmation before removing a request and its associated edits."
|
|
145
177
|
)),
|
|
146
178
|
default: true,
|
|
@@ -149,7 +181,7 @@ configurationRegistry.registerConfiguration({
|
|
|
149
181
|
type: 'boolean',
|
|
150
182
|
scope: ConfigurationScope.APPLICATION,
|
|
151
183
|
markdownDescription: ( localize(
|
|
152
|
-
|
|
184
|
+
4430,
|
|
153
185
|
"Whether to show a confirmation before retrying a request and its associated edits."
|
|
154
186
|
)),
|
|
155
187
|
default: true,
|
|
@@ -157,32 +189,79 @@ configurationRegistry.registerConfiguration({
|
|
|
157
189
|
'chat.experimental.detectParticipant.enabled': {
|
|
158
190
|
type: 'boolean',
|
|
159
191
|
deprecationMessage: ( localize(
|
|
160
|
-
|
|
192
|
+
4431,
|
|
161
193
|
"This setting is deprecated. Please use `chat.detectParticipant.enabled` instead."
|
|
162
194
|
)),
|
|
163
|
-
description: ( localize(
|
|
195
|
+
description: ( localize(4432, "Enables chat participant autodetection for panel chat.")),
|
|
164
196
|
default: null
|
|
165
197
|
},
|
|
166
198
|
'chat.detectParticipant.enabled': {
|
|
167
199
|
type: 'boolean',
|
|
168
|
-
description: ( localize(
|
|
200
|
+
description: ( localize(4433, "Enables chat participant autodetection for panel chat.")),
|
|
169
201
|
default: true
|
|
170
202
|
},
|
|
171
|
-
|
|
172
|
-
type:
|
|
173
|
-
|
|
203
|
+
'chat.renderRelatedFiles': {
|
|
204
|
+
type: 'boolean',
|
|
205
|
+
description: ( localize(
|
|
206
|
+
4434,
|
|
207
|
+
"Controls whether related files should be rendered in the chat input."
|
|
208
|
+
)),
|
|
209
|
+
default: false
|
|
210
|
+
},
|
|
211
|
+
'chat.experimental.statusIndicator.enabled': {
|
|
212
|
+
type: 'boolean',
|
|
213
|
+
description: ( localize(
|
|
214
|
+
4435,
|
|
215
|
+
"Controls whether a Copilot related status indicator appears in the lower right corner."
|
|
216
|
+
)),
|
|
217
|
+
default: product.quality !== 'stable',
|
|
218
|
+
tags: ['experimental', 'onExp']
|
|
219
|
+
},
|
|
220
|
+
[PromptsConfig.CONFIG_KEY]: {
|
|
221
|
+
type: 'boolean',
|
|
222
|
+
title: ( localize(4436, "Prompt Files")),
|
|
174
223
|
markdownDescription: ( localize(
|
|
175
|
-
|
|
176
|
-
"Enable
|
|
177
|
-
|
|
178
|
-
|
|
224
|
+
4437,
|
|
225
|
+
"Enable reusable prompt files (`*{0}`) in Chat, Edits, and Inline Chat sessions. [Learn More]({1}).",
|
|
226
|
+
PROMPT_FILE_EXTENSION,
|
|
227
|
+
DOCUMENTATION_URL
|
|
179
228
|
)),
|
|
180
|
-
default:
|
|
181
|
-
|
|
229
|
+
default: true,
|
|
230
|
+
restricted: true,
|
|
231
|
+
disallowConfigurationDefault: true,
|
|
232
|
+
tags: ['experimental', 'prompts', 'reusable prompts', 'prompt snippets', 'instructions'],
|
|
233
|
+
},
|
|
234
|
+
[PromptsConfig.LOCATIONS_CONFIG_KEY]: {
|
|
235
|
+
type: 'object',
|
|
236
|
+
title: ( localize(4438, "Prompt File Locations")),
|
|
237
|
+
markdownDescription: ( localize(
|
|
238
|
+
4439,
|
|
239
|
+
"Specify location(s) of reusable prompt files (`*{0}`) that can be attached in Chat, Edits, and Inline Chat sessions. [Learn More]({1}).\n\nRelative paths are resolved from the root folder(s) of your workspace.",
|
|
240
|
+
PROMPT_FILE_EXTENSION,
|
|
241
|
+
DOCUMENTATION_URL
|
|
242
|
+
)),
|
|
243
|
+
default: {
|
|
244
|
+
[PromptsConfig.DEFAULT_SOURCE_FOLDER]: true,
|
|
245
|
+
},
|
|
246
|
+
required: [PromptsConfig.DEFAULT_SOURCE_FOLDER],
|
|
247
|
+
additionalProperties: { type: 'boolean' },
|
|
248
|
+
unevaluatedProperties: { type: 'boolean' },
|
|
249
|
+
restricted: true,
|
|
250
|
+
disallowConfigurationDefault: true,
|
|
251
|
+
tags: ['experimental', 'prompts', 'reusable prompts', 'prompt snippets', 'instructions'],
|
|
252
|
+
examples: [
|
|
253
|
+
{
|
|
254
|
+
[PromptsConfig.DEFAULT_SOURCE_FOLDER]: true,
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
[PromptsConfig.DEFAULT_SOURCE_FOLDER]: true,
|
|
258
|
+
'/Users/vscode/repos/prompts': true,
|
|
259
|
+
},
|
|
260
|
+
],
|
|
182
261
|
},
|
|
183
262
|
}
|
|
184
263
|
});
|
|
185
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(
|
|
264
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(4440, "Chat"))), [
|
|
186
265
|
( new SyncDescriptor(ChatEditorInput))
|
|
187
266
|
]);
|
|
188
267
|
( Registry.as(Extensions$1.ConfigurationMigration)).registerConfigurationMigrations([
|
|
@@ -200,7 +279,7 @@ let ChatResolverContribution = class ChatResolverContribution extends Disposable
|
|
|
200
279
|
super();
|
|
201
280
|
this._register(editorResolverService.registerEditor(`${Schemas.vscodeChatSesssion}:**/**`, {
|
|
202
281
|
id: ChatEditorInput.EditorID,
|
|
203
|
-
label: ( localize(
|
|
282
|
+
label: ( localize(4440, "Chat")),
|
|
204
283
|
priority: RegisteredEditorPriority.builtin
|
|
205
284
|
}, {
|
|
206
285
|
singlePerResource: true,
|
|
@@ -224,14 +303,15 @@ let ChatAgentSettingContribution = class ChatAgentSettingContribution {
|
|
|
224
303
|
this.registerSetting();
|
|
225
304
|
}
|
|
226
305
|
const expDisabledKey = ChatContextKeys.Editing.agentModeDisallowed.bindTo(contextKeyService);
|
|
227
|
-
experimentService.getTreatment('chatAgentEnabled').then(
|
|
228
|
-
if (
|
|
306
|
+
experimentService.getTreatment('chatAgentEnabled').then(enabled => {
|
|
307
|
+
if (enabled) {
|
|
229
308
|
this.registerSetting();
|
|
309
|
+
expDisabledKey.set(false);
|
|
230
310
|
}
|
|
231
|
-
else if (
|
|
311
|
+
else if (enabled === false) {
|
|
232
312
|
this.deregisterSetting();
|
|
313
|
+
expDisabledKey.set(true);
|
|
233
314
|
}
|
|
234
|
-
expDisabledKey.set(!value);
|
|
235
315
|
});
|
|
236
316
|
}
|
|
237
317
|
registerSetting() {
|
|
@@ -240,13 +320,13 @@ let ChatAgentSettingContribution = class ChatAgentSettingContribution {
|
|
|
240
320
|
}
|
|
241
321
|
this.registeredNode = {
|
|
242
322
|
id: 'chatAgent',
|
|
243
|
-
title: ( localize(
|
|
323
|
+
title: ( localize(4416, "Chat")),
|
|
244
324
|
type: 'object',
|
|
245
325
|
properties: {
|
|
246
326
|
'chat.agent.enabled': {
|
|
247
327
|
type: 'boolean',
|
|
248
328
|
description: ( localize(
|
|
249
|
-
|
|
329
|
+
4441,
|
|
250
330
|
"Enable agent mode for {0}. When this is enabled, a dropdown appears in the {0} view to toggle agent mode.",
|
|
251
331
|
'Copilot Edits'
|
|
252
332
|
)),
|
|
@@ -280,7 +360,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
280
360
|
super();
|
|
281
361
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
282
362
|
command: 'clear',
|
|
283
|
-
detail: ( localize(
|
|
363
|
+
detail: ( localize(4442, "Start a new chat")),
|
|
284
364
|
sortText: 'z2_clear',
|
|
285
365
|
executeImmediately: true,
|
|
286
366
|
locations: [ChatAgentLocation.Panel]
|
|
@@ -328,8 +408,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
328
408
|
progress.report({ content: ( new MarkdownString(defaultAgent.metadata.helpTextVariablesPrefix)), kind: 'markdownContent' });
|
|
329
409
|
}
|
|
330
410
|
const variables = [
|
|
331
|
-
|
|
332
|
-
{ name: 'file', description: ( localize(4404, "Choose a file in the workspace")) }
|
|
411
|
+
{ name: 'file', description: ( localize(4443, "Choose a file in the workspace")) }
|
|
333
412
|
];
|
|
334
413
|
const variableText = ( variables
|
|
335
414
|
.map(v => `* \`${chatVariableLeader}${v.name}\` - ${v.description}`))
|
|
@@ -362,16 +441,19 @@ registerWorkbenchContribution2(ChatSlashStaticSlashCommandsContribution.ID, Chat
|
|
|
362
441
|
registerWorkbenchContribution2(ChatExtensionPointHandler.ID, ChatExtensionPointHandler, WorkbenchPhase.BlockStartup);
|
|
363
442
|
registerWorkbenchContribution2(LanguageModelToolsExtensionPointHandler.ID, LanguageModelToolsExtensionPointHandler, WorkbenchPhase.BlockRestore);
|
|
364
443
|
registerWorkbenchContribution2(ChatCompatibilityNotifier.ID, ChatCompatibilityNotifier, WorkbenchPhase.Eventually);
|
|
365
|
-
registerWorkbenchContribution2(
|
|
444
|
+
registerWorkbenchContribution2(CopilotTitleBarMenuRendering.ID, CopilotTitleBarMenuRendering, WorkbenchPhase.BlockRestore);
|
|
366
445
|
registerWorkbenchContribution2(CodeBlockActionRendering.ID, CodeBlockActionRendering, WorkbenchPhase.BlockRestore);
|
|
367
446
|
registerWorkbenchContribution2(ChatImplicitContextContribution.ID, ChatImplicitContextContribution, WorkbenchPhase.Eventually);
|
|
368
447
|
registerWorkbenchContribution2(ChatRelatedFilesContribution.ID, ChatRelatedFilesContribution, WorkbenchPhase.Eventually);
|
|
369
448
|
registerWorkbenchContribution2(ChatViewsWelcomeHandler.ID, ChatViewsWelcomeHandler, WorkbenchPhase.BlockStartup);
|
|
370
449
|
registerWorkbenchContribution2(ChatGettingStartedContribution.ID, ChatGettingStartedContribution, WorkbenchPhase.Eventually);
|
|
371
450
|
registerWorkbenchContribution2(ChatSetupContribution.ID, ChatSetupContribution, WorkbenchPhase.BlockRestore);
|
|
372
|
-
registerWorkbenchContribution2(
|
|
451
|
+
registerWorkbenchContribution2(ChatStatusBarEntry.ID, ChatStatusBarEntry, WorkbenchPhase.BlockRestore);
|
|
373
452
|
registerWorkbenchContribution2(BuiltinToolsContribution.ID, BuiltinToolsContribution, WorkbenchPhase.Eventually);
|
|
374
453
|
registerWorkbenchContribution2(ChatAgentSettingContribution.ID, ChatAgentSettingContribution, WorkbenchPhase.BlockRestore);
|
|
454
|
+
registerWorkbenchContribution2(ChatEditingEditorAccessibility.ID, ChatEditingEditorAccessibility, WorkbenchPhase.AfterRestored);
|
|
455
|
+
registerWorkbenchContribution2(ChatEditingEditorOverlay.ID, ChatEditingEditorOverlay, WorkbenchPhase.AfterRestored);
|
|
456
|
+
registerWorkbenchContribution2(ChatEditingEditorContextKeys.ID, ChatEditingEditorContextKeys, WorkbenchPhase.AfterRestored);
|
|
375
457
|
registerChatActions();
|
|
376
458
|
registerChatCopyActions();
|
|
377
459
|
registerChatCodeBlockActions();
|
|
@@ -386,6 +468,6 @@ registerNewChatActions();
|
|
|
386
468
|
registerChatContextActions();
|
|
387
469
|
registerChatDeveloperActions();
|
|
388
470
|
registerChatEditorActions();
|
|
471
|
+
registerChatToolActions();
|
|
389
472
|
registerEditorFeature(ChatPasteProvidersFeature);
|
|
390
|
-
|
|
391
|
-
registerEditorContribution(ChatEditorController.ID, ChatEditorController, EditorContributionInstantiation.Eventually);
|
|
473
|
+
registerWorkbenchContribution2(ChatEditingNotebookFileSystemProviderContrib.ID, ChatEditingNotebookFileSystemProviderContrib, WorkbenchPhase.BlockStartup);
|
|
@@ -2,7 +2,7 @@ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/l
|
|
|
2
2
|
import { IAccessibilitySignalService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service";
|
|
3
3
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
4
|
import { IChatAccessibilityService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
5
|
-
import { IChatResponseViewModel } from "@codingame/monaco-vscode-
|
|
5
|
+
import { IChatResponseViewModel } from "@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
6
6
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
7
7
|
export declare class ChatAccessibilityService extends Disposable implements IChatAccessibilityService {
|
|
8
8
|
private readonly _accessibilitySignalService;
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { InlineAnchorWidget } from "@codingame/monaco-vscode-
|
|
2
|
+
import { InlineAnchorWidget } from "@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chatInlineAnchorWidget";
|
|
3
3
|
import { IChatMarkdownAnchorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service";
|
|
4
4
|
export declare class ChatMarkdownAnchorService extends Disposable implements IChatMarkdownAnchorService {
|
|
5
5
|
readonly _serviceBrand: undefined;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
|
-
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language";
|
|
3
|
+
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service";
|
|
4
4
|
import { ITextModel } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/model";
|
|
5
|
-
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model";
|
|
6
|
-
import { ITextModelContentProvider
|
|
5
|
+
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service";
|
|
6
|
+
import { ITextModelContentProvider } from "@codingame/monaco-vscode-model-service-override/vscode/vs/editor/common/services/resolverService";
|
|
7
|
+
import { ITextModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service";
|
|
7
8
|
export declare class ChatInputBoxContentProvider extends Disposable implements ITextModelContentProvider {
|
|
8
9
|
private readonly modelService;
|
|
9
10
|
private readonly languageService;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
-
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language';
|
|
5
|
-
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model';
|
|
6
|
-
import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService';
|
|
7
|
-
import { ChatInputPart } from '@codingame/monaco-vscode-
|
|
4
|
+
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service';
|
|
5
|
+
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service';
|
|
6
|
+
import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service';
|
|
7
|
+
import { ChatInputPart } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chatInputPart';
|
|
8
8
|
|
|
9
9
|
let ChatInputBoxContentProvider = class ChatInputBoxContentProvider extends Disposable {
|
|
10
10
|
constructor(textModelService, modelService, languageService) {
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorAccessibility.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IAccessibilitySignalService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service";
|
|
2
|
+
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
3
|
+
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
4
|
+
import { IChatEditingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService.service";
|
|
5
|
+
export declare class ChatEditingEditorAccessibility implements IWorkbenchContribution {
|
|
6
|
+
static readonly ID = "chat.edits.accessibilty";
|
|
7
|
+
private readonly _store;
|
|
8
|
+
constructor(chatEditingService: IChatEditingService, editorService: IEditorService, accessibilityService: IAccessibilitySignalService);
|
|
9
|
+
dispose(): void;
|
|
10
|
+
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorAccessibility.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
5
|
+
import { AccessibilitySignal } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService';
|
|
6
|
+
import { IAccessibilitySignalService } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service';
|
|
7
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
8
|
+
import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService.service';
|
|
9
|
+
import { observableFromEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/utils';
|
|
10
|
+
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/autorun';
|
|
11
|
+
|
|
12
|
+
let ChatEditingEditorAccessibility = class ChatEditingEditorAccessibility {
|
|
13
|
+
static { this.ID = 'chat.edits.accessibilty'; }
|
|
14
|
+
constructor(chatEditingService, editorService, accessibilityService) {
|
|
15
|
+
this._store = ( new DisposableStore());
|
|
16
|
+
const activeUri = observableFromEvent(this, editorService.onDidActiveEditorChange, () => editorService.activeEditorPane?.input.resource);
|
|
17
|
+
this._store.add(autorun(r => {
|
|
18
|
+
const editor = activeUri.read(r);
|
|
19
|
+
if (!editor) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const entry = chatEditingService.editingSessionsObs.read(r).find(session => session.readEntry(editor, r));
|
|
23
|
+
if (entry) {
|
|
24
|
+
accessibilityService.playSignal(AccessibilitySignal.chatEditModifiedFile);
|
|
25
|
+
}
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
dispose() {
|
|
29
|
+
this._store.dispose();
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
ChatEditingEditorAccessibility = ( __decorate([
|
|
33
|
+
( __param(0, IChatEditingService)),
|
|
34
|
+
( __param(1, IEditorService)),
|
|
35
|
+
( __param(2, IAccessibilitySignalService))
|
|
36
|
+
], ChatEditingEditorAccessibility));
|
|
37
|
+
|
|
38
|
+
export { ChatEditingEditorAccessibility };
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
2
|
+
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
3
|
+
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
4
|
+
export declare class ChatEditingEditorOverlay implements IWorkbenchContribution {
|
|
5
|
+
static readonly ID = "chat.edits.editorOverlay";
|
|
6
|
+
private readonly _store;
|
|
7
|
+
constructor(editorGroupsService: IEditorGroupsService, instantiationService: IInstantiationService);
|
|
8
|
+
dispose(): void;
|
|
9
|
+
}
|