@codingame/monaco-vscode-chat-service-override 1.85.6 → 2.0.0-v2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chat.js +1 -1
- package/package.json +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +21 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContributionServiceImpl.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatHistoryVariables.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +17 -17
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +16 -16
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDecorations.js +15 -15
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChatServiceImpl.js +4 -4
package/chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SyncDescriptor } from '
|
|
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
4
|
import { IChatWidgetService, IQuickChatService, IChatAccessibilityService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-chat-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-v2.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git
|
|
12
|
+
"url": "git@github.com:CodinGame/monaco-vscode-api.git"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"private": false,
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
22
|
-
"
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@2.0.0-v2.1",
|
|
22
|
+
"vscode-marked": "npm:marked@=3.0.2"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Codicon } from '
|
|
2
|
-
import { localize2WithPath } from '
|
|
3
|
-
import { IAccessibleNotificationService } from '
|
|
4
|
-
import { registerAction2, Action2, MenuId } from '
|
|
5
|
-
import { ContextKeyExpr } from '
|
|
1
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
2
|
+
import { localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
+
import { IAccessibleNotificationService } from 'vscode/vscode/vs/platform/accessibility/common/accessibility';
|
|
4
|
+
import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
5
|
+
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
6
6
|
import { ViewAction } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
7
7
|
import { ActiveEditorContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
8
8
|
import { CHAT_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { CancellationTokenSource } from '
|
|
2
|
-
import { Codicon } from '
|
|
3
|
-
import { isDiffEditor, isCodeEditor } from '
|
|
4
|
-
import { IBulkEditService, ResourceTextEdit } from '
|
|
5
|
-
import { ICodeEditorService } from '
|
|
6
|
-
import { Range } from '
|
|
7
|
-
import { EditorContextKeys } from '
|
|
8
|
-
import { ILanguageService } from '
|
|
9
|
-
import { ILanguageFeaturesService } from '
|
|
10
|
-
import { CopyAction } from '
|
|
11
|
-
import { localizeWithPath } from '
|
|
12
|
-
import { registerAction2, Action2, MenuId } from '
|
|
13
|
-
import { IClipboardService } from '
|
|
14
|
-
import { ContextKeyExpr } from '
|
|
1
|
+
import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
|
|
2
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
3
|
+
import { isDiffEditor, isCodeEditor } from 'vscode/vscode/vs/editor/browser/editorBrowser';
|
|
4
|
+
import { IBulkEditService, ResourceTextEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
5
|
+
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
6
|
+
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
7
|
+
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
8
|
+
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
9
|
+
import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/services/languageFeatures';
|
|
10
|
+
import { CopyAction } from 'vscode/vscode/vs/editor/contrib/clipboard/browser/clipboard';
|
|
11
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
12
|
+
import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
13
|
+
import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService';
|
|
14
|
+
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
15
15
|
import { TerminalLocation } from 'vscode/vscode/vs/platform/terminal/common/terminal';
|
|
16
16
|
import { CHAT_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
17
17
|
import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { localizeWithPath } from '
|
|
2
|
-
import { registerAction2, Action2, MenuId } from '
|
|
3
|
-
import { IClipboardService } from '
|
|
1
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
2
|
+
import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
3
|
+
import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService';
|
|
4
4
|
import { CHAT_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
5
5
|
import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
6
6
|
import { CONTEXT_RESPONSE_FILTERED } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { localizeWithPath } from '
|
|
2
|
-
import { registerAction2, Action2 } from '
|
|
1
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
2
|
+
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
3
3
|
import { CHAT_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
4
4
|
import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
5
5
|
import { CONTEXT_IN_CHAT_SESSION, CONTEXT_PROVIDER_EXISTS } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { VSBuffer } from '
|
|
2
|
-
import { joinPath } from '
|
|
3
|
-
import { localizeWithPath } from '
|
|
4
|
-
import { registerAction2, Action2 } from '
|
|
1
|
+
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
2
|
+
import { joinPath } from 'vscode/vscode/vs/base/common/resources';
|
|
3
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
4
|
+
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
5
5
|
import '../../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
6
|
-
import { IFileService } from '
|
|
6
|
+
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
7
7
|
import { CHAT_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
8
8
|
import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
9
9
|
import { ChatEditorInput } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { localizeWithPath } from '
|
|
2
|
-
import { registerAction2, Action2, MenuId } from '
|
|
3
|
-
import { ContextKeyExpr } from '
|
|
4
|
-
import { IInstantiationService } from '
|
|
1
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
2
|
+
import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
3
|
+
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
4
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
5
5
|
import { ViewAction } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
6
6
|
import { ActiveEditorContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
7
7
|
import { IViewsService } from 'vscode/vscode/vs/workbench/common/views';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Codicon } from '
|
|
2
|
-
import
|
|
3
|
-
import { IBulkEditService } from '
|
|
4
|
-
import { localizeWithPath } from '
|
|
5
|
-
import { registerAction2, Action2, MenuId } from '
|
|
6
|
-
import { ContextKeyExpr } from '
|
|
1
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
2
|
+
import marked from 'vscode-marked';
|
|
3
|
+
import { IBulkEditService } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
4
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
5
|
+
import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
6
|
+
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
7
7
|
import { ResourceNotebookCellEdit } from 'vscode/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits';
|
|
8
8
|
import { CHAT_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
9
9
|
import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Disposable } from '
|
|
3
|
-
import { Schemas } from '
|
|
4
|
-
import { isMacintosh } from '
|
|
5
|
-
import
|
|
6
|
-
import { Extensions } from '
|
|
7
|
-
import { SyncDescriptor } from '
|
|
8
|
-
import { IInstantiationService } from '
|
|
9
|
-
import { Registry } from '
|
|
2
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
4
|
+
import { isMacintosh } from 'vscode/vscode/vs/base/common/platform';
|
|
5
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
6
|
+
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
7
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
8
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
9
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
10
10
|
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
11
11
|
import { Extensions as Extensions$1 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
12
12
|
import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
|
|
@@ -28,22 +28,22 @@ import { registerClearActions, ACTION_ID_CLEAR_CHAT } from './actions/chatClearA
|
|
|
28
28
|
import { IAccessibleViewService } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibleView';
|
|
29
29
|
import { isResponseVM } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatViewModel';
|
|
30
30
|
import { CONTEXT_IN_CHAT_SESSION } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
31
|
-
import { ICodeEditorService } from '
|
|
31
|
+
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
32
32
|
import { ChatWelcomeMessageModel } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatModel';
|
|
33
|
-
import { isMarkdownString, MarkdownString } from '
|
|
33
|
+
import { isMarkdownString, MarkdownString } from 'vscode/vscode/vs/base/common/htmlContent';
|
|
34
34
|
import { IChatSlashCommandService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatSlashCommands';
|
|
35
35
|
import { alertFocusChange } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibilityContributions';
|
|
36
36
|
import { AccessibleViewAction } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibleViewActions';
|
|
37
|
-
import { ICommandService } from '
|
|
37
|
+
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
38
38
|
import { registerChatFileTreeActions } from './actions/chatFileTreeActions.js';
|
|
39
39
|
import { IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
40
40
|
import { chatAgentLeader, chatSubcommandLeader } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
|
|
41
|
-
import { CancellationToken } from '
|
|
41
|
+
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
42
42
|
|
|
43
43
|
const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
44
44
|
configurationRegistry.registerConfiguration({
|
|
45
45
|
id: 'chatSidebar',
|
|
46
|
-
title: (
|
|
46
|
+
title: ( localizeWithPath(
|
|
47
47
|
'vs/workbench/contrib/chat/browser/chat.contribution',
|
|
48
48
|
'interactiveSessionConfigurationTitle',
|
|
49
49
|
"Chat"
|
|
@@ -52,7 +52,7 @@ configurationRegistry.registerConfiguration({
|
|
|
52
52
|
properties: {
|
|
53
53
|
'chat.editor.fontSize': {
|
|
54
54
|
type: 'number',
|
|
55
|
-
description: (
|
|
55
|
+
description: ( localizeWithPath(
|
|
56
56
|
'vs/workbench/contrib/chat/browser/chat.contribution',
|
|
57
57
|
'interactiveSession.editor.fontSize',
|
|
58
58
|
"Controls the font size in pixels in chat codeblocks."
|
|
@@ -61,7 +61,7 @@ configurationRegistry.registerConfiguration({
|
|
|
61
61
|
},
|
|
62
62
|
'chat.editor.fontFamily': {
|
|
63
63
|
type: 'string',
|
|
64
|
-
description: (
|
|
64
|
+
description: ( localizeWithPath(
|
|
65
65
|
'vs/workbench/contrib/chat/browser/chat.contribution',
|
|
66
66
|
'interactiveSession.editor.fontFamily',
|
|
67
67
|
"Controls the font family in chat codeblocks."
|
|
@@ -70,7 +70,7 @@ configurationRegistry.registerConfiguration({
|
|
|
70
70
|
},
|
|
71
71
|
'chat.editor.fontWeight': {
|
|
72
72
|
type: 'string',
|
|
73
|
-
description: (
|
|
73
|
+
description: ( localizeWithPath(
|
|
74
74
|
'vs/workbench/contrib/chat/browser/chat.contribution',
|
|
75
75
|
'interactiveSession.editor.fontWeight',
|
|
76
76
|
"Controls the font weight in chat codeblocks."
|
|
@@ -79,7 +79,7 @@ configurationRegistry.registerConfiguration({
|
|
|
79
79
|
},
|
|
80
80
|
'chat.editor.wordWrap': {
|
|
81
81
|
type: 'string',
|
|
82
|
-
description: (
|
|
82
|
+
description: ( localizeWithPath(
|
|
83
83
|
'vs/workbench/contrib/chat/browser/chat.contribution',
|
|
84
84
|
'interactiveSession.editor.wordWrap',
|
|
85
85
|
"Controls whether lines should wrap in chat codeblocks."
|
|
@@ -89,7 +89,7 @@ configurationRegistry.registerConfiguration({
|
|
|
89
89
|
},
|
|
90
90
|
'chat.editor.lineHeight': {
|
|
91
91
|
type: 'number',
|
|
92
|
-
description: (
|
|
92
|
+
description: ( localizeWithPath(
|
|
93
93
|
'vs/workbench/contrib/chat/browser/chat.contribution',
|
|
94
94
|
'interactiveSession.editor.lineHeight',
|
|
95
95
|
"Controls the line height in pixels in chat codeblocks. Use 0 to compute the line height from the font size."
|
|
@@ -98,7 +98,7 @@ configurationRegistry.registerConfiguration({
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, (
|
|
101
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localizeWithPath('vs/workbench/contrib/chat/browser/chat.contribution', 'chat', "Chat"))), [
|
|
102
102
|
( new SyncDescriptor(ChatEditorInput))
|
|
103
103
|
]);
|
|
104
104
|
let ChatResolverContribution = class ChatResolverContribution extends Disposable {
|
|
@@ -106,7 +106,7 @@ let ChatResolverContribution = class ChatResolverContribution extends Disposable
|
|
|
106
106
|
super();
|
|
107
107
|
this._register(editorResolverService.registerEditor(`${Schemas.vscodeChatSesssion}:**/**`, {
|
|
108
108
|
id: ChatEditorInput.EditorID,
|
|
109
|
-
label: (
|
|
109
|
+
label: ( localizeWithPath('vs/workbench/contrib/chat/browser/chat.contribution', 'chat', "Chat")),
|
|
110
110
|
priority: RegisteredEditorPriority.builtin
|
|
111
111
|
}, {
|
|
112
112
|
singlePerResource: true,
|
|
@@ -206,7 +206,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
206
206
|
super();
|
|
207
207
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
208
208
|
command: 'clear',
|
|
209
|
-
detail: (
|
|
209
|
+
detail: ( localizeWithPath(
|
|
210
210
|
'vs/workbench/contrib/chat/browser/chat.contribution',
|
|
211
211
|
'clear',
|
|
212
212
|
"Clear the session"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { status } from '
|
|
3
|
-
import { RunOnceScheduler } from '
|
|
4
|
-
import { Disposable } from '
|
|
5
|
-
import { AudioCue, IAudioCueService } from '
|
|
6
|
-
import { IInstantiationService } from '
|
|
2
|
+
import { status } from 'vscode/vscode/vs/base/browser/ui/aria/aria';
|
|
3
|
+
import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
4
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { AudioCue, IAudioCueService } from 'vscode/vscode/vs/platform/audioCues/browser/audioCueService';
|
|
6
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
7
|
|
|
8
8
|
let ChatAccessibilityService = class ChatAccessibilityService extends Disposable {
|
|
9
9
|
constructor(_audioCueService, _instantiationService) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Codicon } from '
|
|
3
|
-
import { DisposableStore } from '
|
|
4
|
-
import { localizeWithPath, localize2WithPath } from '
|
|
5
|
-
import { registerAction2 } from '
|
|
6
|
-
import { ContextKeyExpr } from '
|
|
7
|
-
import { SyncDescriptor } from '
|
|
8
|
-
import { Registry } from '
|
|
2
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
3
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
5
|
+
import { registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
6
|
+
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
7
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
8
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
9
9
|
import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
10
10
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
11
11
|
import { Extensions as Extensions$1 } from 'vscode/vscode/vs/workbench/common/views';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import './media/chatEditor.css.js';
|
|
3
|
-
import { IContextKeyService } from '
|
|
4
|
-
import { IInstantiationService } from '
|
|
5
|
-
import { ServiceCollection } from '
|
|
6
|
-
import { IStorageService } from '
|
|
7
|
-
import { ITelemetryService } from '
|
|
8
|
-
import { editorForeground, editorBackground, inputBackground } from '
|
|
9
|
-
import { IThemeService } from '
|
|
3
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
4
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
5
|
+
import { ServiceCollection } from 'vscode/vscode/vs/platform/instantiation/common/serviceCollection';
|
|
6
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
7
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
8
|
+
import { editorForeground, editorBackground, inputBackground } from 'vscode/vscode/vs/platform/theme/common/colorRegistry';
|
|
9
|
+
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
10
10
|
import { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
11
11
|
import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
|
|
12
12
|
import { ChatEditorInput } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
3
|
-
import { Sash } from '
|
|
4
|
-
import { disposableTimeout } from '
|
|
5
|
-
import { CancellationToken } from '
|
|
6
|
-
import { Emitter, Event } from '
|
|
7
|
-
import { Disposable, MutableDisposable, DisposableStore } from '
|
|
8
|
-
import { IContextKeyService } from '
|
|
9
|
-
import { IInstantiationService } from '
|
|
10
|
-
import { ServiceCollection } from '
|
|
11
|
-
import { ILayoutService } from '
|
|
12
|
-
import { IQuickInputService } from '
|
|
13
|
-
import { quickInputForeground, quickInputBackground, inputBackground, editorBackground } from '
|
|
2
|
+
import { isAncestorOfActiveElement, $ } from 'vscode/vscode/vs/base/browser/dom';
|
|
3
|
+
import { Sash } from 'vscode/vscode/vs/base/browser/ui/sash/sash';
|
|
4
|
+
import { disposableTimeout } from 'vscode/vscode/vs/base/common/async';
|
|
5
|
+
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
6
|
+
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
7
|
+
import { Disposable, MutableDisposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
8
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
9
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
10
|
+
import { ServiceCollection } from 'vscode/vscode/vs/platform/instantiation/common/serviceCollection';
|
|
11
|
+
import { ILayoutService } from 'vscode/vscode/vs/platform/layout/browser/layoutService';
|
|
12
|
+
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
13
|
+
import { quickInputForeground, quickInputBackground, inputBackground, editorBackground } from 'vscode/vscode/vs/platform/theme/common/colorRegistry';
|
|
14
14
|
import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
15
15
|
import { ChatWidget } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chatWidget';
|
|
16
16
|
import { IChatService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatService';
|
|
@@ -33,7 +33,7 @@ let QuickChatService = class QuickChatService extends Disposable {
|
|
|
33
33
|
if (!widget) {
|
|
34
34
|
return false;
|
|
35
35
|
}
|
|
36
|
-
return
|
|
36
|
+
return isAncestorOfActiveElement(widget);
|
|
37
37
|
}
|
|
38
38
|
toggle(providerId, options) {
|
|
39
39
|
if (this.focused && !options?.query) {
|
|
@@ -70,7 +70,7 @@ let QuickChatService = class QuickChatService extends Disposable {
|
|
|
70
70
|
this._input.contextKey = 'chatInputVisible';
|
|
71
71
|
this._input.ignoreFocusOut = true;
|
|
72
72
|
disposableStore.add(this._input);
|
|
73
|
-
this._container ??=
|
|
73
|
+
this._container ??= $('.interactive-session');
|
|
74
74
|
this._input.widget = this._container;
|
|
75
75
|
this._input.show();
|
|
76
76
|
if (!this._currentChat) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { onUnexpectedExternalError } from '
|
|
3
|
-
import { Iterable } from '
|
|
4
|
-
import { toDisposable } from '
|
|
2
|
+
import { onUnexpectedExternalError } from 'vscode/vscode/vs/base/common/errors';
|
|
3
|
+
import { Iterable } from 'vscode/vscode/vs/base/common/iterator';
|
|
4
|
+
import { toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
5
|
import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
6
6
|
import { ChatDynamicVariableModel } from 'vscode/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables';
|
|
7
7
|
import { ChatRequestVariablePart, ChatRequestDynamicVariablePart } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { CancellationToken } from '
|
|
3
|
-
import { DisposableStore } from '
|
|
4
|
-
import { IConfigurationService } from '
|
|
5
|
-
import { IContextKeyService } from '
|
|
6
|
-
import { IContextMenuService } from '
|
|
7
|
-
import { IInstantiationService } from '
|
|
8
|
-
import { ServiceCollection } from '
|
|
9
|
-
import { IKeybindingService } from '
|
|
10
|
-
import { ILogService } from '
|
|
11
|
-
import { IOpenerService } from '
|
|
12
|
-
import { IStorageService } from '
|
|
13
|
-
import { ITelemetryService } from '
|
|
14
|
-
import { editorBackground } from '
|
|
15
|
-
import { IThemeService } from '
|
|
2
|
+
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
3
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
5
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
6
|
+
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView';
|
|
7
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
|
+
import { ServiceCollection } from 'vscode/vscode/vs/platform/instantiation/common/serviceCollection';
|
|
9
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
10
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
11
|
+
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener';
|
|
12
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
13
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
14
|
+
import { editorBackground } from 'vscode/vscode/vs/platform/theme/common/colorRegistry';
|
|
15
|
+
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
16
16
|
import { ViewPane } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
17
17
|
import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
|
|
18
18
|
import { SIDE_BAR_FOREGROUND } from 'vscode/vscode/vs/workbench/common/theme';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Disposable } from '
|
|
3
|
-
import { Registry } from '
|
|
2
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
4
4
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
5
5
|
import { IChatVariablesService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatVariables';
|
|
6
6
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { raceCancellation } from '
|
|
3
|
-
import { Disposable, MutableDisposable } from '
|
|
4
|
-
import { ICodeEditorService } from '
|
|
5
|
-
import { Range } from '
|
|
6
|
-
import { getWordAtText } from '
|
|
7
|
-
import { ILanguageFeaturesService } from '
|
|
8
|
-
import { localizeWithPath } from '
|
|
9
|
-
import { IConfigurationService } from '
|
|
10
|
-
import { IInstantiationService } from '
|
|
11
|
-
import { IProductService } from '
|
|
12
|
-
import { Registry } from '
|
|
13
|
-
import { inputPlaceholderForeground } from '
|
|
14
|
-
import { IThemeService } from '
|
|
2
|
+
import { raceCancellation } from 'vscode/vscode/vs/base/common/async';
|
|
3
|
+
import { Disposable, MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
5
|
+
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
6
|
+
import { getWordAtText } from 'vscode/vscode/vs/editor/common/core/wordHelper';
|
|
7
|
+
import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/services/languageFeatures';
|
|
8
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
9
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
10
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
11
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
12
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
13
|
+
import { inputPlaceholderForeground } from 'vscode/vscode/vs/platform/theme/common/colorRegistry';
|
|
14
|
+
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
15
15
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
16
16
|
import { SubmitAction } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatExecuteActions';
|
|
17
17
|
import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Color, RGBA } from '
|
|
2
|
-
import { localizeWithPath } from '
|
|
3
|
-
import { registerColor, contrastBorder, badgeBackground, badgeForeground, foreground } from '
|
|
1
|
+
import { Color, RGBA } from 'vscode/vscode/vs/base/common/color';
|
|
2
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
+
import { registerColor, contrastBorder, badgeBackground, badgeForeground, foreground } from 'vscode/vscode/vs/platform/theme/common/colorRegistry';
|
|
4
4
|
|
|
5
5
|
registerColor('chat.requestBorder', { dark: ( new Color(( new RGBA(255, 255, 255, 0.10)))), light: ( new Color(( new RGBA(0, 0, 0, 0.10)))), hcDark: contrastBorder, hcLight: contrastBorder, }, ( localizeWithPath(
|
|
6
6
|
'vs/workbench/contrib/chat/common/chatColors',
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { CancellationToken, CancellationTokenSource } from '
|
|
3
|
-
import { Emitter } from '
|
|
4
|
-
import { MarkdownString } from '
|
|
5
|
-
import { Iterable } from '
|
|
6
|
-
import { Disposable, DisposableMap, toDisposable } from '
|
|
7
|
-
import { revive } from '
|
|
8
|
-
import { StopWatch } from '
|
|
9
|
-
import { URI } from '
|
|
10
|
-
import { localizeWithPath } from '
|
|
11
|
-
import { CommandsRegistry } from '
|
|
12
|
-
import { IContextKeyService } from '
|
|
13
|
-
import { IInstantiationService } from '
|
|
14
|
-
import { ILogService } from '
|
|
15
|
-
import { Progress } from '
|
|
16
|
-
import { IStorageService } from '
|
|
17
|
-
import { ITelemetryService } from '
|
|
18
|
-
import { IWorkspaceContextService } from '
|
|
2
|
+
import { CancellationToken, CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
|
|
3
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
4
|
+
import { MarkdownString } from 'vscode/vscode/vs/base/common/htmlContent';
|
|
5
|
+
import { Iterable } from 'vscode/vscode/vs/base/common/iterator';
|
|
6
|
+
import { Disposable, DisposableMap, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
7
|
+
import { revive } from 'vscode/vscode/vs/base/common/marshalling';
|
|
8
|
+
import { StopWatch } from 'vscode/vscode/vs/base/common/stopwatch';
|
|
9
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
10
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
11
|
+
import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
12
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
13
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
14
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
15
|
+
import { Progress } from 'vscode/vscode/vs/platform/progress/common/progress';
|
|
16
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
17
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
18
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
19
19
|
import { IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
20
20
|
import { CONTEXT_PROVIDER_EXISTS } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
21
21
|
import { ChatModel, ChatWelcomeMessageModel, ChatModelInitState } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatModel';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { registerAction2 } from '
|
|
2
|
-
import { registerEditorContribution } from '
|
|
1
|
+
import { registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
2
|
+
import { registerEditorContribution } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
3
3
|
import { InlineChatController } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
4
4
|
import { InlineAccessibilityHelpContribution, StartSessionAction, UnstashSessionAction, MakeRequestAction, StopRequestAction, ReRunRequestAction, DiscardAction, DiscardToClipboardAction, DiscardUndoToNewFileAction, CancelSessionAction, ArrowOutUpAction, ArrowOutDownAction, FocusInlineChat, PreviousFromHistory, NextFromHistory, ViewInChatAction, ExpandMessageAction, ContractMessageAction, ToggleInlineDiff, ToggleDiffForChange, FeebackHelpfulCommand, FeebackUnhelpfulCommand, ReportIssueForBugCommand, ApplyPreviewEdits, CopyRecordings } from './inlineChatActions.js';
|
|
5
5
|
import { INLINE_CHAT_ID, INTERACTIVE_EDITOR_ACCESSIBILITY_HELP_ID, INLINE_CHAT_DECORATIONS_ID } from 'vscode/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
6
|
-
import { Registry } from '
|
|
6
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
7
7
|
import { InlineChatNotebookContribution } from './inlineChatNotebook.js';
|
|
8
8
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
9
9
|
import { InlineChatAccessibleViewContribution } from './inlineChatAccessibleView.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { InlineChatController } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
2
2
|
import { CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_RESPONSE_FOCUSED } from 'vscode/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
3
3
|
import { IAccessibleViewService } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibleView';
|
|
4
|
-
import { Disposable } from '
|
|
5
|
-
import { ICodeEditorService } from '
|
|
6
|
-
import { ContextKeyExpr } from '
|
|
4
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
6
|
+
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
7
7
|
import { AccessibleViewAction } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibleViewActions';
|
|
8
8
|
|
|
9
9
|
class InlineChatAccessibleViewContribution extends Disposable {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Codicon } from '
|
|
2
|
-
import { KeyChord } from '
|
|
3
|
-
import { EditorAction2 } from '
|
|
4
|
-
import { EmbeddedCodeEditorWidget, EmbeddedDiffEditorWidget } from '
|
|
5
|
-
import { EditorContextKeys } from '
|
|
1
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
2
|
+
import { KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
3
|
+
import { EditorAction2 } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
4
|
+
import { EmbeddedCodeEditorWidget, EmbeddedDiffEditorWidget } from 'vscode/vscode/vs/editor/browser/widget/embeddedCodeEditorWidget';
|
|
5
|
+
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
6
6
|
import { InlineChatController, InlineChatRunOptions } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
7
7
|
import { CTX_INLINE_CHAT_HAS_PROVIDER, MENU_INLINE_CHAT_WIDGET_STATUS, MENU_INLINE_CHAT_WIDGET_DISCARD, CTX_INLINE_CHAT_EDIT_MODE, CTX_INLINE_CHAT_RESPONSE_TYPES, CTX_INLINE_CHAT_TOOLBAR_ICON_ENABLED, CTX_INLINE_CHAT_VISIBLE, CTX_INLINE_CHAT_HAS_STASHED_SESSION, CTX_INLINE_CHAT_EMPTY, CTX_INLINE_CHAT_FOCUSED, MENU_INLINE_CHAT_WIDGET, CTX_INLINE_CHAT_HAS_ACTIVE_REQUEST, ACTION_REGENERATE_RESPONSE, CTX_INLINE_CHAT_LAST_RESPONSE_TYPE, CTX_INLINE_CHAT_INNER_CURSOR_FIRST, CTX_INLINE_CHAT_INNER_CURSOR_LAST, CTX_INLINE_CHAT_OUTER_CURSOR_POSITION, CTX_INLINE_CHAT_INNER_CURSOR_START, CTX_INLINE_CHAT_INNER_CURSOR_END, CTX_INLINE_CHAT_USER_DID_EDIT, CTX_INLINE_CHAT_DID_EDIT, CTX_INLINE_CHAT_CHANGE_HAS_DIFF, CTX_INLINE_CHAT_CHANGE_SHOWS_DIFF, MENU_INLINE_CHAT_WIDGET_FEEDBACK, CTX_INLINE_CHAT_LAST_FEEDBACK, CTX_INLINE_CHAT_SUPPORT_ISSUE_REPORTING, MENU_INLINE_CHAT_WIDGET_TOGGLE, ACTION_ACCEPT_CHANGES, CTX_INLINE_CHAT_DOCUMENT_CHANGED, ACTION_VIEW_IN_CHAT, MENU_INLINE_CHAT_WIDGET_MARKDOWN_MESSAGE, CTX_INLINE_CHAT_MESSAGE_CROP_STATE, CTX_INLINE_CHAT_RESPONSE_FOCUSED } from 'vscode/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
8
|
-
import { localizeWithPath, localize2WithPath } from '
|
|
9
|
-
import { MenuRegistry, MenuId } from '
|
|
10
|
-
import { IClipboardService } from '
|
|
11
|
-
import { ContextKeyExpr } from '
|
|
12
|
-
import { IQuickInputService } from '
|
|
8
|
+
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
9
|
+
import { MenuRegistry, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
10
|
+
import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService';
|
|
11
|
+
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
12
|
+
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
13
13
|
import { IEditorService, SIDE_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
14
|
-
import { ICodeEditorService } from '
|
|
14
|
+
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
15
15
|
import { fromNow } from 'vscode/vscode/vs/base/common/date';
|
|
16
16
|
import { IInlineChatSessionService } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSession';
|
|
17
17
|
import { runAccessibilityHelpAction } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp';
|
|
18
|
-
import { CONTEXT_ACCESSIBILITY_MODE_ENABLED } from '
|
|
19
|
-
import { Disposable } from '
|
|
20
|
-
import { CommandsRegistry } from '
|
|
21
|
-
import { IConfigurationService } from '
|
|
18
|
+
import { CONTEXT_ACCESSIBILITY_MODE_ENABLED } from 'vscode/vscode/vs/platform/accessibility/common/accessibility';
|
|
19
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
20
|
+
import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
21
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
22
22
|
import { AccessibilityHelpAction } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibleViewActions';
|
|
23
|
-
import { registerIcon } from '
|
|
23
|
+
import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
24
24
|
|
|
25
25
|
CommandsRegistry.registerCommandAlias('interactiveEditor.start', 'inlineChat.start');
|
|
26
26
|
const LOCALIZED_START_INLINE_CHAT_STRING = ( localizeWithPath(
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Codicon } from '
|
|
3
|
-
import { ThemeIcon } from '
|
|
4
|
-
import { GlyphMarginLane } from '
|
|
5
|
-
import { ModelDecorationOptions } from '
|
|
6
|
-
import { localizeWithPath } from '
|
|
7
|
-
import { registerIcon } from '
|
|
2
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
3
|
+
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
4
|
+
import { GlyphMarginLane } from 'vscode/vscode/vs/editor/common/model';
|
|
5
|
+
import { ModelDecorationOptions } from 'vscode/vscode/vs/editor/common/model/textModel';
|
|
6
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
7
|
+
import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
8
8
|
import { InlineChatController } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
9
|
-
import { IConfigurationService } from '
|
|
10
|
-
import { Disposable, DisposableStore } from '
|
|
9
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
10
|
+
import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
11
11
|
import { GutterActionsRegistry } from 'vscode/vscode/vs/workbench/contrib/codeEditor/browser/editorLineNumberMenu';
|
|
12
|
-
import { Action } from '
|
|
12
|
+
import { Action } from 'vscode/vscode/vs/base/common/actions';
|
|
13
13
|
import { IInlineChatService } from 'vscode/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
14
|
-
import { RunOnceScheduler } from '
|
|
15
|
-
import { Iterable } from '
|
|
16
|
-
import { Range } from '
|
|
14
|
+
import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
15
|
+
import { Iterable } from 'vscode/vscode/vs/base/common/iterator';
|
|
16
|
+
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
17
17
|
import { IInlineChatSessionService } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSession';
|
|
18
|
-
import { MarkdownString } from '
|
|
19
|
-
import { IKeybindingService } from '
|
|
18
|
+
import { MarkdownString } from 'vscode/vscode/vs/base/common/htmlContent';
|
|
19
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
20
20
|
import { LOCALIZED_START_INLINE_CHAT_STRING } from './inlineChatActions.js';
|
|
21
21
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
22
22
|
import { IPreferencesService } from 'vscode/vscode/vs/workbench/services/preferences/common/preferences';
|
|
23
|
-
import { IContextKeyService } from '
|
|
23
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
24
24
|
|
|
25
25
|
var InlineChatDecorationsContribution_1;
|
|
26
26
|
const GUTTER_INLINE_CHAT_OPAQUE_ICON = registerIcon('inline-chat-opaque', Codicon.sparkle, ( localizeWithPath(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { illegalState } from '
|
|
3
|
-
import { DisposableStore } from '
|
|
4
|
-
import { Schemas } from '
|
|
5
|
-
import { isEqual } from '
|
|
2
|
+
import { illegalState } from 'vscode/vscode/vs/base/common/errors';
|
|
3
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
5
|
+
import { isEqual } from 'vscode/vscode/vs/base/common/resources';
|
|
6
6
|
import { InlineChatController } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
7
7
|
import { IInlineChatSessionService } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSession';
|
|
8
8
|
import { INotebookEditorService } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { toDisposable } from '
|
|
3
|
-
import { Emitter } from '
|
|
4
|
-
import { LinkedList } from '
|
|
5
|
-
import { IContextKeyService } from '
|
|
2
|
+
import { toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
4
|
+
import { LinkedList } from 'vscode/vscode/vs/base/common/linkedList';
|
|
5
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
6
6
|
import { CTX_INLINE_CHAT_HAS_PROVIDER } from 'vscode/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
7
7
|
|
|
8
8
|
let InlineChatServiceImpl = class InlineChatServiceImpl {
|