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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/index.d.ts +2 -1
  2. package/index.js +64 -1
  3. package/package.json +32 -13
  4. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.d.ts +21 -0
  5. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +73 -60
  6. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.d.ts +3 -0
  7. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +73 -81
  8. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.d.ts +9 -0
  9. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +73 -112
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.d.ts +12 -0
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +253 -101
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.d.ts +1 -0
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +8 -8
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.d.ts +1 -0
  15. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +2 -1
  16. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.d.ts +1 -0
  17. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +16 -14
  18. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.d.ts +23 -0
  19. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +30 -11
  20. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.d.ts +1 -0
  21. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +12 -12
  22. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.d.ts +1 -0
  23. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +22 -20
  24. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.d.ts +2 -0
  25. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +23 -20
  26. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +52 -0
  27. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +50 -47
  28. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.d.ts +1 -0
  29. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +124 -95
  30. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.d.ts +17 -0
  31. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +6 -3
  32. package/vscode/src/vs/workbench/contrib/chat/browser/chatEdinputInputContentProvider.d.ts +12 -0
  33. package/vscode/src/vs/workbench/contrib/chat/browser/chatEdinputInputContentProvider.js +30 -0
  34. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingService.d.ts +69 -0
  35. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingService.js +203 -182
  36. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +103 -0
  37. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +458 -165
  38. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +42 -0
  39. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +14 -10
  40. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.d.ts +26 -0
  41. package/vscode/src/vs/workbench/contrib/chat/browser/{chatParticipantContributions.js → chatParticipant.contribution.js} +101 -92
  42. package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.d.ts +42 -0
  43. package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +164 -25
  44. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.d.ts +26 -0
  45. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +6 -5
  46. package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.d.ts +30 -0
  47. package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +10 -7
  48. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.d.ts +17 -0
  49. package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +941 -0
  50. package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.d.ts +26 -0
  51. package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +9 -6
  52. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +54 -0
  53. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +32 -15
  54. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.d.ts +9 -0
  55. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.js +1 -0
  56. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.d.ts +1 -0
  57. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +8 -6
  58. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.d.ts +26 -0
  59. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +16 -19
  60. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.d.ts +15 -0
  61. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.js +108 -0
  62. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/editorHoverWrapper.d.ts +7 -0
  63. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/editorHoverWrapper.js +3 -8
  64. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/media/editorHoverWrapper.css.js +1 -1
  65. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +31 -0
  66. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +70 -49
  67. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewSetup.css.js +6 -0
  68. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.d.ts +7 -0
  69. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/{chatViewsWelcomeContributions.js → chatViewsWelcomeHandler.js} +13 -13
  70. package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.d.ts +44 -0
  71. package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.js +3 -1
  72. package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +22 -0
  73. package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +1 -0
  74. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +80 -0
  75. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +152 -104
  76. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.d.ts +8 -0
  77. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.js +2 -1
  78. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.d.ts +41 -0
  79. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +2 -1
  80. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.d.ts +31 -0
  81. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +6 -4
  82. package/vscode/src/vs/workbench/contrib/chat/common/ignoredFiles.d.ts +13 -0
  83. package/vscode/src/vs/workbench/contrib/chat/common/ignoredFiles.js +1 -0
  84. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +24 -0
  85. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +23 -21
  86. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.d.ts +1 -0
  87. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.js +1 -0
  88. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.d.ts +39 -0
  89. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +20 -19
  90. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.service.d.ts +7 -0
  91. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.d.ts +1 -0
  92. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +30 -33
  93. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.d.ts +10 -0
  94. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +6 -4
  95. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.d.ts +10 -0
  96. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +9 -7
  97. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.d.ts +44 -0
  98. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +247 -83
  99. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.d.ts +8 -0
  100. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +5 -4
  101. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.d.ts +29 -0
  102. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.js +35 -35
  103. package/chat.js +0 -59
  104. package/vscode/src/vs/editor/common/diff/documentDiffProvider.js +0 -8
  105. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +0 -326
  106. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +0 -76
  107. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorActions.js +0 -110
  108. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorController.js +0 -287
  109. package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +0 -130
  110. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +0 -172
@@ -1,109 +1,117 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { timeout } from 'vscode/vscode/vs/base/common/async';
3
4
  import { isMarkdownString, MarkdownString } from 'vscode/vscode/vs/base/common/htmlContent';
4
5
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
5
6
  import { Schemas } from 'vscode/vscode/vs/base/common/network';
6
- import { isMacintosh } from 'vscode/vscode/vs/base/common/platform';
7
- import { registerEditorContribution } from 'vscode/vscode/vs/editor/browser/editorExtensions';
7
+ import { isMacintosh, isNative } from 'vscode/vscode/vs/base/common/platform';
8
+ import { registerEditorContribution, EditorContributionInstantiation } from 'vscode/vscode/vs/editor/browser/editorExtensions';
8
9
  import { registerEditorFeature } from 'vscode/vscode/vs/editor/common/editorFeatures';
9
10
  import { localize } from 'vscode/vscode/vs/nls';
10
11
  import { AccessibleViewRegistry } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
11
12
  import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
12
- import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
13
+ import { Extensions, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
13
14
  import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
15
+ import 'vscode/vscode/vs/platform/instantiation/common/extensions';
14
16
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
15
17
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
16
- import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
17
- import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
18
+ import { EditorPaneDescriptor } from '@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/editor';
19
+ import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
18
20
  import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
19
21
  import { RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
20
22
  import { IEditorResolverService } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService.service';
21
23
  import { ChatAgentLocation } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
22
24
  import { IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
25
+ import 'vscode/vscode/vs/base/common/charCode';
23
26
  import 'vscode/vscode/vs/base/common/map';
24
27
  import 'vscode/vscode/vs/base/common/strings';
28
+ import 'vscode/vscode/vs/base/common/marshallingIds';
25
29
  import 'vscode/vscode/vs/base/common/path';
26
30
  import 'vscode/vscode/vs/editor/common/languages';
27
- import '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatColors';
28
- import { chatVariableLeader } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
31
+ import '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/chat/common/chatColors';
32
+ import { chatVariableLeader } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
29
33
  import '../common/chatServiceImpl.js';
30
34
  import '../common/chatSlashCommands.js';
31
35
  import { IChatSlashCommandService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatSlashCommands.service';
32
36
  import { IChatVariablesService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatVariables.service';
33
37
  import '../common/chatWidgetHistoryService.js';
34
- import '../common/languageModels.js';
35
- import '../common/languageModelStats.js';
38
+ import 'vscode/vscode/vs/workbench/contrib/chat/common/languageModels';
39
+ import '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/languageModelStats';
36
40
  import { LanguageModelToolsExtensionPointHandler } from '../common/tools/languageModelToolsContribution.js';
37
41
  import '../common/voiceChatService.js';
38
42
  import { PanelChatAccessibilityHelp, QuickChatAccessibilityHelp } from './actions/chatAccessibilityHelp.js';
39
- import { ChatCommandCenterRendering, registerChatActions } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
43
+ import { ChatCommandCenterRendering, registerChatActions } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
40
44
  import { ACTION_ID_NEW_CHAT, registerNewChatActions } from './actions/chatClearActions.js';
41
45
  import { registerChatCodeBlockActions, registerChatCodeCompareBlockActions } from './actions/chatCodeblockActions.js';
42
46
  import { registerChatContextActions } from './actions/chatContextActions.js';
43
47
  import { registerChatCopyActions } from './actions/chatCopyActions.js';
44
48
  import { registerChatDeveloperActions } from './actions/chatDeveloperActions.js';
45
- import { SubmitAction, registerChatExecuteActions } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/actions/chatExecuteActions';
49
+ import { ChatSubmitAction, registerChatExecuteActions } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/actions/chatExecuteActions';
46
50
  import { registerChatFileTreeActions } from './actions/chatFileTreeActions.js';
47
51
  import { registerChatExportActions } from './actions/chatImportExport.js';
48
52
  import { registerMoveActions } from './actions/chatMoveActions.js';
49
53
  import { registerQuickChatActions } from './actions/chatQuickInputActions.js';
50
- import { registerChatTitleActions } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatTitleActions';
54
+ import { registerChatTitleActions } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/chat/browser/actions/chatTitleActions';
51
55
  import './chatAccessibilityService.js';
52
- import 'vscode/vscode/vs/base/common/event';
53
- import 'vscode/vscode/vs/base/common/resources';
56
+ import '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chatAttachmentModel';
54
57
  import 'vscode/vscode/vs/base/browser/dom';
55
58
  import './chatEditing/chatEditingService.js';
56
59
  import { ChatEditor } from './chatEditor.js';
57
- import { registerChatEditorActions } from './chatEditorActions.js';
58
- import { ChatEditorController } from './chatEditorController.js';
59
- import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
60
- import { ChatEditorSaving } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatEditorSaving';
61
- import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer';
62
- import { ChatExtensionPointHandler, ChatCompatibilityNotifier } from './chatParticipantContributions.js';
60
+ import { registerChatEditorActions } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/chat/browser/chatEditorActions';
61
+ import { ChatEditorController } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/chat/browser/chatEditorController';
62
+ import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
63
+ import { ChatInputBoxContentProvider } from './chatEdinputInputContentProvider.js';
64
+ import { ChatEditorSaving, ChatEditorAutoSaveDisabler } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chatEditorSaving';
65
+ import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer';
66
+ import { ChatExtensionPointHandler, ChatCompatibilityNotifier } from './chatParticipant.contribution.js';
63
67
  import { ChatPasteProvidersFeature } from './chatPasteProviders.js';
64
68
  import './chatQuick.js';
65
69
  import { ChatResponseAccessibleView } from './chatResponseAccessibleView.js';
66
70
  import './chatVariables.js';
67
- import '@codingame/monaco-vscode-chat-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
68
- import '@codingame/monaco-vscode-chat-notebook-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions';
71
+ import '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
72
+ import '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions';
69
73
  import './contrib/chatInputEditorContrib.js';
70
74
  import './contrib/chatInputEditorHover.js';
71
- import { ChatImplicitContextContribution } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatImplicitContext';
75
+ import { ChatImplicitContextContribution } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatImplicitContext';
72
76
  import './languageModelToolsService.js';
73
- import { ChatViewsWelcomeHandler } from './viewsWelcome/chatViewsWelcomeContributions.js';
77
+ import { ChatViewsWelcomeHandler } from './viewsWelcome/chatViewsWelcomeHandler.js';
74
78
  import { ChatGettingStartedContribution } from './actions/chatGettingStarted.js';
79
+ import { Extensions as Extensions$1 } from 'vscode/vscode/vs/workbench/common/configuration';
80
+ import { ChatEditorOverlayController } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/chat/browser/chatEditorOverlay';
81
+ import { ChatRelatedFilesContribution } from './contrib/chatInputRelatedFilesContrib.js';
82
+ import { ChatQuotasStatusBarEntry } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chatQuotasService';
75
83
 
76
- const configurationRegistry = ( (Registry.as(Extensions.Configuration)));
84
+ const configurationRegistry = ( Registry.as(Extensions.Configuration));
77
85
  configurationRegistry.registerConfiguration({
78
86
  id: 'chatSidebar',
79
- title: ( localize(3196, "Chat")),
87
+ title: ( localize(4277, "Chat")),
80
88
  type: 'object',
81
89
  properties: {
82
90
  'chat.editor.fontSize': {
83
91
  type: 'number',
84
- description: ( localize(3197, "Controls the font size in pixels in chat codeblocks.")),
92
+ description: ( localize(4278, "Controls the font size in pixels in chat codeblocks.")),
85
93
  default: isMacintosh ? 12 : 14,
86
94
  },
87
95
  'chat.editor.fontFamily': {
88
96
  type: 'string',
89
- description: ( localize(3198, "Controls the font family in chat codeblocks.")),
97
+ description: ( localize(4279, "Controls the font family in chat codeblocks.")),
90
98
  default: 'default'
91
99
  },
92
100
  'chat.editor.fontWeight': {
93
101
  type: 'string',
94
- description: ( localize(3199, "Controls the font weight in chat codeblocks.")),
102
+ description: ( localize(4280, "Controls the font weight in chat codeblocks.")),
95
103
  default: 'default'
96
104
  },
97
105
  'chat.editor.wordWrap': {
98
106
  type: 'string',
99
- description: ( localize(3200, "Controls whether lines should wrap in chat codeblocks.")),
107
+ description: ( localize(4281, "Controls whether lines should wrap in chat codeblocks.")),
100
108
  default: 'off',
101
109
  enum: ['on', 'off']
102
110
  },
103
111
  'chat.editor.lineHeight': {
104
112
  type: 'number',
105
113
  description: ( localize(
106
- 3201,
114
+ 4282,
107
115
  "Controls the line height in pixels in chat codeblocks. Use 0 to compute the line height from the font size."
108
116
  )),
109
117
  default: 0
@@ -112,57 +120,73 @@ configurationRegistry.registerConfiguration({
112
120
  type: 'boolean',
113
121
  tags: ['preview'],
114
122
  markdownDescription: ( localize(
115
- 3202,
116
- "Controls whether the command center shows a menu for chat actions (requires {0}).",
123
+ 4283,
124
+ "Controls whether the command center shows a menu for actions to control Copilot (requires {0}).",
117
125
  '`#window.commandCenter#`'
118
126
  )),
119
127
  default: true
120
128
  },
129
+ 'chat.experimental.offerSetup': {
130
+ type: 'boolean',
131
+ default: isNative,
132
+ scope: ConfigurationScope.APPLICATION,
133
+ markdownDescription: ( localize(4284, "Controls whether setup is offered for Chat if not done already.")),
134
+ tags: ['experimental', 'onExP']
135
+ },
121
136
  'chat.editing.alwaysSaveWithGeneratedChanges': {
122
137
  type: 'boolean',
123
- scope: 1 ,
138
+ scope: ConfigurationScope.APPLICATION,
124
139
  markdownDescription: ( localize(
125
- 3203,
126
- "Whether to always ask before saving files with changes made by chat."
140
+ 4285,
141
+ "Whether files that have changes made by chat can be saved without confirmation."
127
142
  )),
128
143
  default: false,
129
144
  },
130
145
  'chat.editing.confirmEditRequestRemoval': {
131
146
  type: 'boolean',
132
- scope: 1 ,
147
+ scope: ConfigurationScope.APPLICATION,
133
148
  markdownDescription: ( localize(
134
- 3204,
149
+ 4286,
135
150
  "Whether to show a confirmation before removing a request and its associated edits."
136
151
  )),
137
152
  default: true,
138
153
  },
139
154
  'chat.editing.confirmEditRequestRetry': {
140
155
  type: 'boolean',
141
- scope: 1 ,
156
+ scope: ConfigurationScope.APPLICATION,
142
157
  markdownDescription: ( localize(
143
- 3205,
158
+ 4287,
144
159
  "Whether to show a confirmation before retrying a request and its associated edits."
145
160
  )),
146
161
  default: true,
147
162
  },
148
- 'chat.editing.experimental.enableRestoreFile': {
163
+ 'chat.experimental.detectParticipant.enabled': {
149
164
  type: 'boolean',
150
- scope: 1 ,
151
- markdownDescription: ( localize(
152
- 3206,
153
- "Whether to show a toggle to restore an earlier version of a file that was edited in a chat editing session request."
165
+ deprecationMessage: ( localize(
166
+ 4288,
167
+ "This setting is deprecated. Please use `chat.detectParticipant.enabled` instead."
154
168
  )),
155
- default: false,
169
+ description: ( localize(4289, "Enables chat participant autodetection for panel chat.")),
170
+ default: null
156
171
  },
157
- 'chat.experimental.detectParticipant.enabled': {
172
+ 'chat.detectParticipant.enabled': {
158
173
  type: 'boolean',
159
- description: ( localize(3207, "Enables chat participant autodetection for panel chat.")),
160
- default: null
174
+ description: ( localize(4290, "Enables chat participant autodetection for panel chat.")),
175
+ default: true
161
176
  },
162
177
  }
163
178
  });
164
- ( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(3208, "Chat"))), [
165
- ( (new SyncDescriptor(ChatEditorInput)))
179
+ ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(4291, "Chat"))), [
180
+ ( new SyncDescriptor(ChatEditorInput))
181
+ ]);
182
+ ( Registry.as(Extensions$1.ConfigurationMigration)).registerConfigurationMigrations([
183
+ {
184
+ key: 'chat.experimental.detectParticipant.enabled',
185
+ migrateFn: (value, _accessor) => ([
186
+ ['chat.experimental.detectParticipant.enabled', { value: undefined }],
187
+ ['chat.detectParticipant.enabled', { value: value !== false }]
188
+ ])
189
+ }
166
190
  ]);
167
191
  let ChatResolverContribution = class ChatResolverContribution extends Disposable {
168
192
  static { this.ID = 'workbench.contrib.chatResolver'; }
@@ -170,7 +194,7 @@ let ChatResolverContribution = class ChatResolverContribution extends Disposable
170
194
  super();
171
195
  this._register(editorResolverService.registerEditor(`${Schemas.vscodeChatSesssion}:**/**`, {
172
196
  id: ChatEditorInput.EditorID,
173
- label: ( localize(3208, "Chat")),
197
+ label: ( localize(4291, "Chat")),
174
198
  priority: RegisteredEditorPriority.builtin
175
199
  }, {
176
200
  singlePerResource: true,
@@ -182,20 +206,21 @@ let ChatResolverContribution = class ChatResolverContribution extends Disposable
182
206
  }));
183
207
  }
184
208
  };
185
- ChatResolverContribution = ( (__decorate([
186
- ( (__param(0, IEditorResolverService))),
187
- ( (__param(1, IInstantiationService)))
188
- ], ChatResolverContribution)));
189
- AccessibleViewRegistry.register(( (new ChatResponseAccessibleView())));
190
- AccessibleViewRegistry.register(( (new PanelChatAccessibilityHelp())));
191
- AccessibleViewRegistry.register(( (new QuickChatAccessibilityHelp())));
209
+ ChatResolverContribution = ( __decorate([
210
+ ( __param(0, IEditorResolverService)),
211
+ ( __param(1, IInstantiationService))
212
+ ], ChatResolverContribution));
213
+ AccessibleViewRegistry.register(( new ChatResponseAccessibleView()));
214
+ AccessibleViewRegistry.register(( new PanelChatAccessibilityHelp()));
215
+ AccessibleViewRegistry.register(( new QuickChatAccessibilityHelp()));
216
+ registerEditorFeature(ChatInputBoxContentProvider);
192
217
  let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommandsContribution extends Disposable {
193
218
  static { this.ID = 'workbench.contrib.chatSlashStaticSlashCommands'; }
194
219
  constructor(slashCommandService, commandService, chatAgentService, chatVariablesService, instantiationService) {
195
220
  super();
196
221
  this._store.add(slashCommandService.registerSlashCommand({
197
222
  command: 'clear',
198
- detail: ( localize(3209, "Start a new chat")),
223
+ detail: ( localize(4292, "Start a new chat")),
199
224
  sortText: 'z2_clear',
200
225
  executeImmediately: true,
201
226
  locations: [ChatAgentLocation.Panel]
@@ -216,72 +241,75 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
216
241
  progress.report({ content: defaultAgent.metadata.helpTextPrefix, kind: 'markdownContent' });
217
242
  }
218
243
  else {
219
- progress.report({ content: ( (new MarkdownString(defaultAgent.metadata.helpTextPrefix))), kind: 'markdownContent' });
244
+ progress.report({ content: ( new MarkdownString(defaultAgent.metadata.helpTextPrefix)), kind: 'markdownContent' });
220
245
  }
221
- progress.report({ content: ( (new MarkdownString('\n\n'))), kind: 'markdownContent' });
246
+ progress.report({ content: ( new MarkdownString('\n\n')), kind: 'markdownContent' });
222
247
  }
223
- const agentText = (await Promise.all(( (agents
248
+ const agentText = (await Promise.all(( agents
224
249
  .filter(a => a.id !== defaultAgent?.id)
225
250
  .filter(a => a.locations.includes(ChatAgentLocation.Panel))
226
251
  .map(async (a) => {
227
252
  const description = a.description ? `- ${a.description}` : '';
228
253
  const agentMarkdown = instantiationService.invokeFunction(accessor => agentToMarkdown(a, true, accessor));
229
254
  const agentLine = `- ${agentMarkdown} ${description}`;
230
- const commandText = ( (a.slashCommands.map(c => {
255
+ const commandText = ( a.slashCommands.map(c => {
231
256
  const description = c.description ? `- ${c.description}` : '';
232
257
  return `\t* ${agentSlashCommandToMarkdown(a, c)} ${description}`;
233
- }))).join('\n');
258
+ })).join('\n');
234
259
  return (agentLine + '\n' + commandText).trim();
235
- }))))).join('\n');
236
- progress.report({ content: ( (new MarkdownString(agentText, { isTrusted: { enabledCommands: [SubmitAction.ID] } }))), kind: 'markdownContent' });
260
+ })))).join('\n');
261
+ progress.report({ content: ( new MarkdownString(agentText, { isTrusted: { enabledCommands: [ChatSubmitAction.ID] } })), kind: 'markdownContent' });
237
262
  if (defaultAgent?.metadata.helpTextVariablesPrefix) {
238
- progress.report({ content: ( (new MarkdownString('\n\n'))), kind: 'markdownContent' });
263
+ progress.report({ content: ( new MarkdownString('\n\n')), kind: 'markdownContent' });
239
264
  if (isMarkdownString(defaultAgent.metadata.helpTextVariablesPrefix)) {
240
265
  progress.report({ content: defaultAgent.metadata.helpTextVariablesPrefix, kind: 'markdownContent' });
241
266
  }
242
267
  else {
243
- progress.report({ content: ( (new MarkdownString(defaultAgent.metadata.helpTextVariablesPrefix))), kind: 'markdownContent' });
268
+ progress.report({ content: ( new MarkdownString(defaultAgent.metadata.helpTextVariablesPrefix)), kind: 'markdownContent' });
244
269
  }
245
270
  const variables = [
246
271
  ...chatVariablesService.getVariables(ChatAgentLocation.Panel),
247
- { name: 'file', description: ( localize(3210, "Choose a file in the workspace")) }
272
+ { name: 'file', description: ( localize(4293, "Choose a file in the workspace")) }
248
273
  ];
249
- const variableText = ( (variables
250
- .map(v => `* \`${chatVariableLeader}${v.name}\` - ${v.description}`)))
274
+ const variableText = ( variables
275
+ .map(v => `* \`${chatVariableLeader}${v.name}\` - ${v.description}`))
251
276
  .join('\n');
252
- progress.report({ content: ( (new MarkdownString('\n' + variableText))), kind: 'markdownContent' });
277
+ progress.report({ content: ( new MarkdownString('\n' + variableText)), kind: 'markdownContent' });
253
278
  }
254
279
  if (defaultAgent?.metadata.helpTextPostfix) {
255
- progress.report({ content: ( (new MarkdownString('\n\n'))), kind: 'markdownContent' });
280
+ progress.report({ content: ( new MarkdownString('\n\n')), kind: 'markdownContent' });
256
281
  if (isMarkdownString(defaultAgent.metadata.helpTextPostfix)) {
257
282
  progress.report({ content: defaultAgent.metadata.helpTextPostfix, kind: 'markdownContent' });
258
283
  }
259
284
  else {
260
- progress.report({ content: ( (new MarkdownString(defaultAgent.metadata.helpTextPostfix))), kind: 'markdownContent' });
285
+ progress.report({ content: ( new MarkdownString(defaultAgent.metadata.helpTextPostfix)), kind: 'markdownContent' });
261
286
  }
262
287
  }
263
288
  await timeout(200);
264
289
  }));
265
290
  }
266
291
  };
267
- ChatSlashStaticSlashCommandsContribution = ( (__decorate([
268
- ( (__param(0, IChatSlashCommandService))),
269
- ( (__param(1, ICommandService))),
270
- ( (__param(2, IChatAgentService))),
271
- ( (__param(3, IChatVariablesService))),
272
- ( (__param(4, IInstantiationService)))
273
- ], ChatSlashStaticSlashCommandsContribution)));
274
- ( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(ChatEditorInput.TypeID, ChatEditorInputSerializer);
275
- registerWorkbenchContribution2(ChatResolverContribution.ID, ChatResolverContribution, 1 );
276
- registerWorkbenchContribution2(ChatSlashStaticSlashCommandsContribution.ID, ChatSlashStaticSlashCommandsContribution, 4 );
277
- registerWorkbenchContribution2(ChatExtensionPointHandler.ID, ChatExtensionPointHandler, 1 );
278
- registerWorkbenchContribution2(LanguageModelToolsExtensionPointHandler.ID, LanguageModelToolsExtensionPointHandler, 2 );
279
- registerWorkbenchContribution2(ChatCompatibilityNotifier.ID, ChatCompatibilityNotifier, 4 );
280
- registerWorkbenchContribution2(ChatCommandCenterRendering.ID, ChatCommandCenterRendering, 3 );
281
- registerWorkbenchContribution2(ChatImplicitContextContribution.ID, ChatImplicitContextContribution, 4 );
282
- registerWorkbenchContribution2(ChatEditorSaving.ID, ChatEditorSaving, 3 );
283
- registerWorkbenchContribution2(ChatViewsWelcomeHandler.ID, ChatViewsWelcomeHandler, 1 );
284
- registerWorkbenchContribution2(ChatGettingStartedContribution.ID, ChatGettingStartedContribution, 4 );
292
+ ChatSlashStaticSlashCommandsContribution = ( __decorate([
293
+ ( __param(0, IChatSlashCommandService)),
294
+ ( __param(1, ICommandService)),
295
+ ( __param(2, IChatAgentService)),
296
+ ( __param(3, IChatVariablesService)),
297
+ ( __param(4, IInstantiationService))
298
+ ], ChatSlashStaticSlashCommandsContribution));
299
+ ( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(ChatEditorInput.TypeID, ChatEditorInputSerializer);
300
+ registerWorkbenchContribution2(ChatResolverContribution.ID, ChatResolverContribution, WorkbenchPhase.BlockStartup);
301
+ registerWorkbenchContribution2(ChatSlashStaticSlashCommandsContribution.ID, ChatSlashStaticSlashCommandsContribution, WorkbenchPhase.Eventually);
302
+ registerWorkbenchContribution2(ChatExtensionPointHandler.ID, ChatExtensionPointHandler, WorkbenchPhase.BlockStartup);
303
+ registerWorkbenchContribution2(LanguageModelToolsExtensionPointHandler.ID, LanguageModelToolsExtensionPointHandler, WorkbenchPhase.BlockRestore);
304
+ registerWorkbenchContribution2(ChatCompatibilityNotifier.ID, ChatCompatibilityNotifier, WorkbenchPhase.Eventually);
305
+ registerWorkbenchContribution2(ChatCommandCenterRendering.ID, ChatCommandCenterRendering, WorkbenchPhase.BlockRestore);
306
+ registerWorkbenchContribution2(ChatImplicitContextContribution.ID, ChatImplicitContextContribution, WorkbenchPhase.Eventually);
307
+ registerWorkbenchContribution2(ChatRelatedFilesContribution.ID, ChatRelatedFilesContribution, WorkbenchPhase.Eventually);
308
+ registerWorkbenchContribution2(ChatEditorSaving.ID, ChatEditorSaving, WorkbenchPhase.AfterRestored);
309
+ registerWorkbenchContribution2(ChatEditorAutoSaveDisabler.ID, ChatEditorAutoSaveDisabler, WorkbenchPhase.BlockRestore);
310
+ registerWorkbenchContribution2(ChatViewsWelcomeHandler.ID, ChatViewsWelcomeHandler, WorkbenchPhase.BlockStartup);
311
+ registerWorkbenchContribution2(ChatGettingStartedContribution.ID, ChatGettingStartedContribution, WorkbenchPhase.Eventually);
312
+ registerWorkbenchContribution2(ChatQuotasStatusBarEntry.ID, ChatQuotasStatusBarEntry, WorkbenchPhase.Eventually);
285
313
  registerChatActions();
286
314
  registerChatCopyActions();
287
315
  registerChatCodeBlockActions();
@@ -297,4 +325,5 @@ registerChatContextActions();
297
325
  registerChatDeveloperActions();
298
326
  registerChatEditorActions();
299
327
  registerEditorFeature(ChatPasteProvidersFeature);
300
- registerEditorContribution(ChatEditorController.ID, ChatEditorController, 3 );
328
+ registerEditorContribution(ChatEditorController.ID, ChatEditorController, EditorContributionInstantiation.Eventually);
329
+ registerEditorContribution(ChatEditorOverlayController.ID, ChatEditorOverlayController, EditorContributionInstantiation.Eventually);
@@ -0,0 +1,17 @@
1
+ import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
2
+ import { IAccessibilitySignalService } from "vscode/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service";
3
+ import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
4
+ import { IChatAccessibilityService } from "vscode/vscode/vs/workbench/contrib/chat/browser/chat.service";
5
+ import { IChatResponseViewModel } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/chatViewModel";
6
+ import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
7
+ export declare class ChatAccessibilityService extends Disposable implements IChatAccessibilityService {
8
+ private readonly _accessibilitySignalService;
9
+ private readonly _instantiationService;
10
+ private readonly _configurationService;
11
+ readonly _serviceBrand: undefined;
12
+ private _pendingSignalMap;
13
+ private _requestId;
14
+ constructor(_accessibilitySignalService: IAccessibilitySignalService, _instantiationService: IInstantiationService, _configurationService: IConfigurationService);
15
+ acceptRequest(): number;
16
+ acceptResponse(response: IChatResponseViewModel | string | undefined, requestId: number, isVoiceInput?: boolean): void;
17
+ }
@@ -1,13 +1,16 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { status } from 'vscode/vscode/vs/base/browser/ui/aria/aria';
3
4
  import { Disposable, DisposableMap } from 'vscode/vscode/vs/base/common/lifecycle';
4
5
  import { AccessibilitySignal } from 'vscode/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService';
5
6
  import { IAccessibilitySignalService } from 'vscode/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service';
6
7
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
7
- import { AccessibilityProgressSignalScheduler } from 'vscode/vscode/vs/platform/accessibilitySignal/browser/progressAccessibilitySignalScheduler';
8
+ import { AccessibilityProgressSignalScheduler } from '@codingame/monaco-vscode-1021b67c-93e5-5c78-a270-cbdb2574d980-common/vscode/vs/platform/accessibilitySignal/browser/progressAccessibilitySignalScheduler';
8
9
  import { renderStringAsPlaintext } from 'vscode/vscode/vs/base/browser/markdownRenderer';
9
10
  import { MarkdownString } from 'vscode/vscode/vs/base/common/htmlContent';
10
11
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
12
+ import 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
13
+ import { AccessibilityVoiceSettingId } from 'vscode/vscode/vs/workbench/contrib/speech/common/speechService';
11
14
 
12
15
  const CHAT_RESPONSE_PENDING_ALLOWANCE_MS = 4000;
13
16
  let ChatAccessibilityService = class ChatAccessibilityService extends Disposable {
@@ -35,7 +38,7 @@ let ChatAccessibilityService = class ChatAccessibilityService extends Disposable
35
38
  }
36
39
  const errorDetails = isPanelChat && response.errorDetails ? ` ${response.errorDetails.message}` : '';
37
40
  const plainTextResponse = renderStringAsPlaintext(( new MarkdownString(responseContent)));
38
- if (!isVoiceInput || this._configurationService.getValue("accessibility.voice.autoSynthesize" ) !== 'on') {
41
+ if (!isVoiceInput || this._configurationService.getValue(AccessibilityVoiceSettingId.AutoSynthesize) !== 'on') {
39
42
  status(plainTextResponse + errorDetails);
40
43
  }
41
44
  }
@@ -0,0 +1,12 @@
1
+ import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
2
+ import { URI } from "vscode/vscode/vs/base/common/uri";
3
+ import { ILanguageService } from "vscode/vscode/vs/editor/common/languages/language";
4
+ import { ITextModel } from "vscode/vscode/vs/editor/common/model";
5
+ import { IModelService } from "vscode/vscode/vs/editor/common/services/model";
6
+ import { ITextModelContentProvider, ITextModelService } from "vscode/vscode/vs/editor/common/services/resolverService";
7
+ export declare class ChatInputBoxContentProvider extends Disposable implements ITextModelContentProvider {
8
+ private readonly modelService;
9
+ private readonly languageService;
10
+ constructor(textModelService: ITextModelService, modelService: IModelService, languageService: ILanguageService);
11
+ provideTextContent(resource: URI): Promise<ITextModel | null>;
12
+ }
@@ -0,0 +1,30 @@
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
3
+ import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
4
+ import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
5
+ import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
6
+ import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
7
+ import { ChatInputPart } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chatInputPart';
8
+
9
+ let ChatInputBoxContentProvider = class ChatInputBoxContentProvider extends Disposable {
10
+ constructor(textModelService, modelService, languageService) {
11
+ super();
12
+ this.modelService = modelService;
13
+ this.languageService = languageService;
14
+ this._register(textModelService.registerTextModelContentProvider(ChatInputPart.INPUT_SCHEME, this));
15
+ }
16
+ async provideTextContent(resource) {
17
+ const existing = this.modelService.getModel(resource);
18
+ if (existing) {
19
+ return existing;
20
+ }
21
+ return this.modelService.createModel('', this.languageService.createById('chatinput'), resource);
22
+ }
23
+ };
24
+ ChatInputBoxContentProvider = ( __decorate([
25
+ ( __param(0, ITextModelService)),
26
+ ( __param(1, IModelService)),
27
+ ( __param(2, ILanguageService))
28
+ ], ChatInputBoxContentProvider));
29
+
30
+ export { ChatInputBoxContentProvider };
@@ -0,0 +1,69 @@
1
+ import { CancellationToken, CancellationTokenSource } from "vscode/vscode/vs/base/common/cancellation";
2
+ import { Event } from "vscode/vscode/vs/base/common/event";
3
+ import { Disposable, IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
4
+ import { IObservable } from "vscode/vscode/vs/base/common/observable";
5
+ import { URI } from "vscode/vscode/vs/base/common/uri";
6
+ import { ITextModelService } from "vscode/vscode/vs/editor/common/services/resolverService";
7
+ import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
8
+ import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
9
+ import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
10
+ import { IProgressService } from "vscode/vscode/vs/platform/progress/common/progress.service";
11
+ import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
12
+ import { IWorkbenchAssignmentService } from "vscode/vscode/vs/workbench/services/assignment/common/assignmentService.service";
13
+ import { IDecorationsService } from "vscode/vscode/vs/workbench/services/decorations/common/decorations.service";
14
+ import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
15
+ import { ILifecycleService } from "vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
16
+ import { IMultiDiffSourceResolver, IResolvedMultiDiffSource } from "@codingame/monaco-vscode-9d05a43d-c330-5ff1-937e-fde4a3852931-common/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService";
17
+ import { IMultiDiffSourceResolverService } from "vscode/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service";
18
+ import { IChatEditingSession, IChatRelatedFile, IChatRelatedFilesProvider } from "vscode/vscode/vs/workbench/contrib/chat/common/chatEditingService";
19
+ import { IChatEditingService } from "vscode/vscode/vs/workbench/contrib/chat/common/chatEditingService.service";
20
+ import { IChatService } from "vscode/vscode/vs/workbench/contrib/chat/common/chatService.service";
21
+ import { ChatEditingSession } from "./chatEditingSession.js";
22
+ export declare class ChatEditingService extends Disposable implements IChatEditingService {
23
+ private readonly _instantiationService;
24
+ private readonly _chatService;
25
+ private readonly _progressService;
26
+ private readonly _editorService;
27
+ private readonly _fileService;
28
+ private readonly lifecycleService;
29
+ private readonly _workbenchAssignmentService;
30
+ _serviceBrand: undefined;
31
+ private readonly _currentSessionObs;
32
+ private readonly _currentSessionDisposables;
33
+ private readonly _currentAutoApplyOperationObs;
34
+ get currentAutoApplyOperation(): CancellationTokenSource | null;
35
+ get currentEditingSession(): IChatEditingSession | null;
36
+ get currentEditingSessionObs(): IObservable<IChatEditingSession | null>;
37
+ private readonly _onDidCreateEditingSession;
38
+ get onDidCreateEditingSession(): Event<IChatEditingSession>;
39
+ private readonly _onDidChangeEditingSession;
40
+ readonly onDidChangeEditingSession: Event<void>;
41
+ private _editingSessionFileLimitPromise;
42
+ private _editingSessionFileLimit;
43
+ get editingSessionFileLimit(): number;
44
+ private _restoringEditingSession;
45
+ private _applyingChatEditsFailedContextKey;
46
+ private _chatRelatedFilesProviders;
47
+ constructor(_instantiationService: IInstantiationService, multiDiffSourceResolverService: IMultiDiffSourceResolverService, textModelService: ITextModelService, contextKeyService: IContextKeyService, _chatService: IChatService, _progressService: IProgressService, _editorService: IEditorService, decorationsService: IDecorationsService, _fileService: IFileService, lifecycleService: ILifecycleService, _workbenchAssignmentService: IWorkbenchAssignmentService, storageService: IStorageService);
48
+ getOrRestoreEditingSession(): Promise<IChatEditingSession | null>;
49
+ dispose(): void;
50
+ startOrContinueEditingSession(chatSessionId: string): Promise<IChatEditingSession>;
51
+ private _createEditingSession;
52
+ private installAutoApplyObserver;
53
+ private _continueEditingSession;
54
+ hasRelatedFilesProviders(): boolean;
55
+ registerRelatedFilesProvider(handle: number, provider: IChatRelatedFilesProvider): IDisposable;
56
+ getRelatedFiles(chatSessionId: string, prompt: string, token: CancellationToken): Promise<{
57
+ group: string;
58
+ files: IChatRelatedFile[];
59
+ }[] | undefined>;
60
+ }
61
+ export declare class ChatEditingMultiDiffSourceResolver implements IMultiDiffSourceResolver {
62
+ private readonly _currentSession;
63
+ private readonly _instantiationService;
64
+ static readonly scheme = "chat-editing-multi-diff-source";
65
+ static getMultiDiffSourceUri(): URI;
66
+ constructor(_currentSession: IObservable<ChatEditingSession | null>, _instantiationService: IInstantiationService);
67
+ canHandleUri(uri: URI): boolean;
68
+ resolveDiffSource(uri: URI): Promise<IResolvedMultiDiffSource>;
69
+ }