@codingame/monaco-vscode-chat-service-override 11.0.2 → 11.1.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 +2 -2
- package/package.json +8 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +17 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +14 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +22 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +7 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +7 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +167 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +24 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingService.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorActions.js +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorController.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipantContributions.js +27 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeContributions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.js +6 -6
|
@@ -6,7 +6,7 @@ import { rtrim } from 'vscode/vscode/vs/base/common/strings';
|
|
|
6
6
|
import { RawContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
7
7
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
8
8
|
import { IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
9
|
-
import { chatAgentLeader, chatSubcommandLeader } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-
|
|
9
|
+
import { chatAgentLeader, chatSubcommandLeader } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
|
|
10
10
|
import { SpeechToTextStatus } from 'vscode/vscode/vs/workbench/contrib/speech/common/speechService';
|
|
11
11
|
import { ISpeechService } from 'vscode/vscode/vs/workbench/contrib/speech/common/speechService.service';
|
|
12
12
|
|
|
@@ -20,7 +20,7 @@ var PhraseTextType;
|
|
|
20
20
|
const VoiceChatInProgress = ( (new RawContextKey(
|
|
21
21
|
'voiceChatInProgress',
|
|
22
22
|
false,
|
|
23
|
-
{ type: 'boolean', description: ( localize(
|
|
23
|
+
{ type: 'boolean', description: ( localize(7464, "A speech-to-text session is in progress for chat.")) }
|
|
24
24
|
)));
|
|
25
25
|
let VoiceChatService = class VoiceChatService extends Disposable {
|
|
26
26
|
static { VoiceChatService_1 = this; }
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { registerEditorContribution } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
2
2
|
import { registerAction2, MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
3
|
-
import { InlineChatController } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
4
|
-
import { StartSessionAction, CloseAction, ConfigureInlineChatAction, UnstashSessionAction, DiscardHunkAction, RerunAction, MoveToNextHunk, MoveToPreviousHunk, ArrowOutUpAction, ArrowOutDownAction, FocusInlineChat, ViewInChatAction, ToggleDiffForChange, AcceptChanges } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatActions';
|
|
5
|
-
import { INLINE_CHAT_ID, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS, CTX_INLINE_CHAT_EDITING, MENU_INLINE_CHAT_WIDGET_STATUS } from '@codingame/monaco-vscode-chat-
|
|
3
|
+
import { InlineChatController } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
4
|
+
import { StartSessionAction, CloseAction, ConfigureInlineChatAction, UnstashSessionAction, DiscardHunkAction, RerunAction, MoveToNextHunk, MoveToPreviousHunk, ArrowOutUpAction, ArrowOutDownAction, FocusInlineChat, ViewInChatAction, ToggleDiffForChange, AcceptChanges } from '@codingame/monaco-vscode-chat-notebook-terminal-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatActions';
|
|
5
|
+
import { INLINE_CHAT_ID, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS, CTX_INLINE_CHAT_EDITING, MENU_INLINE_CHAT_WIDGET_STATUS } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
6
6
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
7
7
|
import { InlineChatNotebookContribution } from './inlineChatNotebook.js';
|
|
8
8
|
import { Extensions, registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
9
9
|
import './inlineChatSavingServiceImpl.js';
|
|
10
10
|
import { InlineChatAccessibleView } from './inlineChatAccessibleView.js';
|
|
11
11
|
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
12
|
-
import { InlineChatEnabler } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl';
|
|
12
|
+
import { InlineChatEnabler } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl';
|
|
13
13
|
import { AccessibleViewRegistry } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
|
|
14
14
|
import { SubmitAction, CancelAction } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/actions/chatExecuteActions';
|
|
15
15
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
@@ -26,7 +26,7 @@ const editActionMenuItem = {
|
|
|
26
26
|
order: 0,
|
|
27
27
|
command: {
|
|
28
28
|
id: SubmitAction.ID,
|
|
29
|
-
title: ( localize(
|
|
29
|
+
title: ( localize(2729, "Edit Code")),
|
|
30
30
|
},
|
|
31
31
|
when: ( (ContextKeyExpr.and(
|
|
32
32
|
CONTEXT_CHAT_INPUT_HAS_TEXT,
|
|
@@ -39,7 +39,7 @@ const generateActionMenuItem = {
|
|
|
39
39
|
order: 0,
|
|
40
40
|
command: {
|
|
41
41
|
id: SubmitAction.ID,
|
|
42
|
-
title: ( localize(
|
|
42
|
+
title: ( localize(2730, "Generate")),
|
|
43
43
|
},
|
|
44
44
|
when: ( (ContextKeyExpr.and(
|
|
45
45
|
CONTEXT_CHAT_INPUT_HAS_TEXT,
|
|
@@ -54,8 +54,8 @@ const cancelActionMenuItem = {
|
|
|
54
54
|
order: 0,
|
|
55
55
|
command: {
|
|
56
56
|
id: CancelAction.ID,
|
|
57
|
-
title: ( localize(
|
|
58
|
-
shortTitle: ( localize(
|
|
57
|
+
title: ( localize(2731, "Cancel Request")),
|
|
58
|
+
shortTitle: ( localize(2732, "Cancel")),
|
|
59
59
|
},
|
|
60
60
|
when: ( (ContextKeyExpr.and(CTX_INLINE_CHAT_REQUEST_IN_PROGRESS))),
|
|
61
61
|
};
|
|
@@ -2,7 +2,7 @@ import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/cod
|
|
|
2
2
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
3
3
|
import { getChatAccessibilityHelpProvider } from '../../chat/browser/actions/chatAccessibilityHelp.js';
|
|
4
4
|
import { CONTEXT_CHAT_INPUT_HAS_FOCUS } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
5
|
-
import { CTX_INLINE_CHAT_RESPONSE_FOCUSED } from '@codingame/monaco-vscode-chat-
|
|
5
|
+
import { CTX_INLINE_CHAT_RESPONSE_FOCUSED } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
6
6
|
|
|
7
7
|
class InlineChatAccessibilityHelp {
|
|
8
8
|
constructor() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InlineChatController } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
2
|
-
import { CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_RESPONSE_FOCUSED } from '@codingame/monaco-vscode-chat-
|
|
1
|
+
import { InlineChatController } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
2
|
+
import { CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_RESPONSE_FOCUSED } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
3
3
|
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
4
4
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
5
5
|
import { AccessibleContentProvider } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleView';
|
|
@@ -4,17 +4,17 @@ import { localize, localize2 } from 'vscode/vscode/vs/nls';
|
|
|
4
4
|
import { RawContextKey, ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
5
5
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
6
6
|
import { IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
7
|
-
import { InlineChatController } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
8
|
-
import { CTX_INLINE_CHAT_VISIBLE, CTX_INLINE_CHAT_HAS_AGENT } from '@codingame/monaco-vscode-chat-
|
|
7
|
+
import { InlineChatController } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
8
|
+
import { CTX_INLINE_CHAT_VISIBLE, CTX_INLINE_CHAT_HAS_AGENT } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
9
9
|
import { EditorAction2 } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
10
10
|
import { EditOperation } from 'vscode/vscode/vs/editor/common/core/editOperation';
|
|
11
11
|
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
12
12
|
import { Position } from 'vscode/vscode/vs/editor/common/core/position';
|
|
13
|
-
import { AbstractInlineChatAction } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatActions';
|
|
13
|
+
import { AbstractInlineChatAction } from '@codingame/monaco-vscode-chat-notebook-terminal-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatActions';
|
|
14
14
|
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
15
15
|
|
|
16
16
|
const CTX_INLINE_CHAT_EXPANSION = ( (new RawContextKey('inlineChatExpansion', false, ( localize(
|
|
17
|
-
|
|
17
|
+
7662,
|
|
18
18
|
"Whether the inline chat expansion is enabled when at the end of a just-typed line"
|
|
19
19
|
)))));
|
|
20
20
|
let InlineChatExansionContextKey = class InlineChatExansionContextKey {
|
|
@@ -84,7 +84,7 @@ class InlineChatExpandLineAction extends EditorAction2 {
|
|
|
84
84
|
super({
|
|
85
85
|
id: 'inlineChat.startWithCurrentLine',
|
|
86
86
|
category: AbstractInlineChatAction.category,
|
|
87
|
-
title: ( localize2(
|
|
87
|
+
title: ( localize2(7663, "Start in Editor with Current Line")),
|
|
88
88
|
f1: true,
|
|
89
89
|
precondition: ( (ContextKeyExpr.and(
|
|
90
90
|
(CTX_INLINE_CHAT_VISIBLE.negate()),
|
|
@@ -3,7 +3,7 @@ import { illegalState } from 'vscode/vscode/vs/base/common/errors';
|
|
|
3
3
|
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
5
5
|
import { isEqual } from 'vscode/vscode/vs/base/common/resources';
|
|
6
|
-
import { InlineChatController } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
6
|
+
import { InlineChatController } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
7
7
|
import { IInlineChatSessionService } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service';
|
|
8
8
|
import { INotebookEditorService } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service';
|
|
9
9
|
import { CellUri } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
@@ -113,7 +113,7 @@ let InlineChatSavingServiceImpl = class InlineChatSavingServiceImpl {
|
|
|
113
113
|
const agentName = session.agent.fullName;
|
|
114
114
|
const filelabel = this._labelService.getUriBasenameLabel(session.textModelN.uri);
|
|
115
115
|
message = ( localize(
|
|
116
|
-
|
|
116
|
+
2706,
|
|
117
117
|
"Do you want to save the changes {0} made in {1}?",
|
|
118
118
|
agentName,
|
|
119
119
|
filelabel
|
|
@@ -125,7 +125,7 @@ let InlineChatSavingServiceImpl = class InlineChatSavingServiceImpl {
|
|
|
125
125
|
i => this._labelService.getUriBasenameLabel(i.session.textModelN.uri)
|
|
126
126
|
))));
|
|
127
127
|
message = ( localize(
|
|
128
|
-
|
|
128
|
+
2707,
|
|
129
129
|
"Do you want to save the changes inline chat made in {0}?",
|
|
130
130
|
labels.join(', ')
|
|
131
131
|
));
|
|
@@ -133,13 +133,13 @@ let InlineChatSavingServiceImpl = class InlineChatSavingServiceImpl {
|
|
|
133
133
|
const result = await this._dialogService.confirm({
|
|
134
134
|
message,
|
|
135
135
|
detail: ( localize(
|
|
136
|
-
|
|
136
|
+
2708,
|
|
137
137
|
"AI-generated changes may be incorrect and should be reviewed before saving."
|
|
138
138
|
)),
|
|
139
|
-
primaryButton: ( localize(
|
|
140
|
-
cancelButton: ( localize(
|
|
139
|
+
primaryButton: ( localize(2709, "Save")),
|
|
140
|
+
cancelButton: ( localize(2710, "Cancel")),
|
|
141
141
|
checkbox: {
|
|
142
|
-
label: ( localize(
|
|
142
|
+
label: ( localize(2711, "Always save with AI-generated changes without asking")),
|
|
143
143
|
checked: false
|
|
144
144
|
}
|
|
145
145
|
});
|