@codingame/monaco-vscode-chat-service-override 3.2.3 → 4.1.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 (32) hide show
  1. package/chat.js +16 -14
  2. package/package.json +2 -2
  3. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.js +16 -0
  4. package/external/tslib/tslib.es6.js +0 -11
  5. package/external/vscode-marked/lib/marked.esm.js +0 -2200
  6. package/override/vs/platform/dialogs/common/dialogs.js +0 -8
  7. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +0 -17
  8. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +0 -115
  9. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +0 -501
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +0 -82
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +0 -77
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +0 -110
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +0 -171
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +0 -271
  15. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +0 -299
  16. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +0 -60
  17. package/vscode/src/vs/workbench/contrib/chat/browser/chatContributionServiceImpl.js +0 -179
  18. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +0 -87
  19. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +0 -271
  20. package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +0 -74
  21. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +0 -174
  22. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatHistoryVariables.js +0 -26
  23. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +0 -580
  24. package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +0 -36
  25. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +0 -601
  26. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +0 -43
  27. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +0 -41
  28. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +0 -814
  29. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +0 -72
  30. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.js +0 -236
  31. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +0 -223
  32. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChatServiceImpl.js +0 -33
package/chat.js CHANGED
@@ -1,26 +1,27 @@
1
1
  import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
2
2
  import { IChatService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatService';
3
3
  import { IChatContributionService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContributionService';
4
- import { IChatWidgetService, IQuickChatService, IChatAccessibilityService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat';
5
- import { ChatContributionService } from './vscode/src/vs/workbench/contrib/chat/browser/chatContributionServiceImpl.js';
4
+ import { IChatWidgetService, IQuickChatService, IChatAccessibilityService, IChatCodeBlockContextProviderService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat';
5
+ import { ChatContributionService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chatContributionServiceImpl';
6
6
  import { ChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chatWidget';
7
- import { ChatService } from './vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js';
7
+ import { ChatService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatServiceImpl';
8
8
  import { IChatWidgetHistoryService, ChatWidgetHistoryService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatWidgetHistoryService';
9
- import { ChatAccessibilityService } from './vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js';
10
- import { IChatProviderService, ChatProviderService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatProvider';
9
+ import { ChatAccessibilityService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chatAccessibilityService';
11
10
  import { IChatSlashCommandService, ChatSlashCommandService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatSlashCommands';
12
11
  import { IChatVariablesService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatVariables';
13
- import { ChatVariablesService } from './vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js';
14
- import { QuickChatService } from './vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js';
12
+ import { ChatVariablesService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chatVariables';
13
+ import { QuickChatService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chatQuick';
15
14
  import { IChatAgentService, ChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
16
- import { InlineChatServiceImpl } from './vscode/src/vs/workbench/contrib/inlineChat/common/inlineChatServiceImpl.js';
15
+ import { InlineChatServiceImpl } from 'vscode/vscode/vs/workbench/contrib/inlineChat/common/inlineChatServiceImpl';
17
16
  import { IInlineChatService } from 'vscode/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
18
17
  import { IInlineChatSessionService } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService';
19
- import { InlineChatSessionServiceImpl } from './vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js';
18
+ import { InlineChatSessionServiceImpl } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl';
20
19
  import { IInlineChatSavingService } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSavingService';
21
- import { InlineChatSavingServiceImpl } from './vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.js';
22
- import './vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js';
23
- import './vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js';
20
+ import { InlineChatSavingServiceImpl } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl';
21
+ import { ILanguageModelsService, LanguageModelsService } from 'vscode/vscode/vs/workbench/contrib/chat/common/languageModels';
22
+ import { ChatCodeBlockContextProviderService } from './vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.js';
23
+ import 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.contribution';
24
+ import 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution';
24
25
 
25
26
  function getServiceOverride() {
26
27
  return {
@@ -30,13 +31,14 @@ function getServiceOverride() {
30
31
  [( IQuickChatService.toString())]: new SyncDescriptor(QuickChatService, [], true),
31
32
  [( IChatAccessibilityService.toString())]: new SyncDescriptor(ChatAccessibilityService, [], true),
32
33
  [( IChatWidgetHistoryService.toString())]: new SyncDescriptor(ChatWidgetHistoryService, [], true),
33
- [( IChatProviderService.toString())]: new SyncDescriptor(ChatProviderService, [], true),
34
+ [( ILanguageModelsService.toString())]: new SyncDescriptor(LanguageModelsService, [], true),
34
35
  [( IChatSlashCommandService.toString())]: new SyncDescriptor(ChatSlashCommandService, [], true),
35
36
  [( IChatAgentService.toString())]: new SyncDescriptor(ChatAgentService, [], true),
36
37
  [( IChatVariablesService.toString())]: new SyncDescriptor(ChatVariablesService, [], true),
37
38
  [( IInlineChatService.toString())]: new SyncDescriptor(InlineChatServiceImpl, [], true),
38
39
  [( IInlineChatSessionService.toString())]: new SyncDescriptor(InlineChatSessionServiceImpl, [], true),
39
- [( IInlineChatSavingService.toString())]: new SyncDescriptor(InlineChatSavingServiceImpl, [], true)
40
+ [( IInlineChatSavingService.toString())]: new SyncDescriptor(InlineChatSavingServiceImpl, [], true),
41
+ [( IChatCodeBlockContextProviderService.toString())]: new SyncDescriptor(ChatCodeBlockContextProviderService, [], true)
40
42
  };
41
43
  }
42
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-chat-service-override",
3
- "version": "3.2.3",
3
+ "version": "4.1.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -18,6 +18,6 @@
18
18
  "module": "index.js",
19
19
  "types": "index.d.ts",
20
20
  "dependencies": {
21
- "vscode": "npm:@codingame/monaco-vscode-api@3.2.3"
21
+ "vscode": "npm:@codingame/monaco-vscode-api@4.1.0"
22
22
  }
23
23
  }
@@ -0,0 +1,16 @@
1
+ import { toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
2
+
3
+ class ChatCodeBlockContextProviderService {
4
+ constructor() {
5
+ this._providers = ( new Map());
6
+ }
7
+ get providers() {
8
+ return [...( this._providers.values())];
9
+ }
10
+ registerProvider(provider, id) {
11
+ this._providers.set(id, provider);
12
+ return toDisposable(() => this._providers.delete(id));
13
+ }
14
+ }
15
+
16
+ export { ChatCodeBlockContextProviderService };
@@ -1,11 +0,0 @@
1
- function __decorate(decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- }
7
- function __param(paramIndex, decorator) {
8
- return function (target, key) { decorator(target, key, paramIndex); }
9
- }
10
-
11
- export { __decorate, __param };