@codingame/monaco-vscode-chat-service-override 23.1.0 → 23.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/index.js +1 -1
- package/package.json +41 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +48 -48
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.js +26 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionViewModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +101 -101
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +28 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/localChatSessionsProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.js +33 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +52 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.js +65 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsConfirmationService.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +26 -26
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +53 -53
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +27 -27
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +21 -21
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +8 -8
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +18 -18
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +10 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +9 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +15 -15
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
|
@@ -13,7 +13,7 @@ function registerChatFileTreeActions() {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: 'workbench.action.chat.nextFileTree',
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(4713, "Next File Tree")),
|
|
17
17
|
keybinding: {
|
|
18
18
|
primary: KeyMod.CtrlCmd | KeyCode.F9,
|
|
19
19
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -32,7 +32,7 @@ function registerChatFileTreeActions() {
|
|
|
32
32
|
constructor() {
|
|
33
33
|
super({
|
|
34
34
|
id: 'workbench.action.chat.previousFileTree',
|
|
35
|
-
title: ( localize2(
|
|
35
|
+
title: ( localize2(4714, "Previous File Tree")),
|
|
36
36
|
keybinding: {
|
|
37
37
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.F9,
|
|
38
38
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -14,14 +14,14 @@ import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/c
|
|
|
14
14
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
15
15
|
|
|
16
16
|
const defaultFileName = 'chat.json';
|
|
17
|
-
const filters = [{ name: ( localize(
|
|
17
|
+
const filters = [{ name: ( localize(4715, "Chat Session")), extensions: ['json'] }];
|
|
18
18
|
function registerChatExportActions() {
|
|
19
19
|
registerAction2(class ExportChatAction extends Action2 {
|
|
20
20
|
constructor() {
|
|
21
21
|
super({
|
|
22
22
|
id: 'workbench.action.chat.export',
|
|
23
23
|
category: CHAT_CATEGORY,
|
|
24
|
-
title: ( localize2(
|
|
24
|
+
title: ( localize2(4716, "Export Chat...")),
|
|
25
25
|
precondition: ChatContextKeys.enabled,
|
|
26
26
|
f1: true,
|
|
27
27
|
});
|
|
@@ -58,7 +58,7 @@ function registerChatExportActions() {
|
|
|
58
58
|
constructor() {
|
|
59
59
|
super({
|
|
60
60
|
id: 'workbench.action.chat.import',
|
|
61
|
-
title: ( localize2(
|
|
61
|
+
title: ( localize2(4717, "Import Chat...")),
|
|
62
62
|
category: CHAT_CATEGORY,
|
|
63
63
|
precondition: ChatContextKeys.enabled,
|
|
64
64
|
f1: true,
|
|
@@ -20,7 +20,7 @@ class ManageLanguageModelAuthenticationAction extends Action2 {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
super({
|
|
22
22
|
id: ManageLanguageModelAuthenticationAction.ID,
|
|
23
|
-
title: ( localize2(
|
|
23
|
+
title: ( localize2(4718, 'Manage Language Model Access...')),
|
|
24
24
|
category: CHAT_CATEGORY,
|
|
25
25
|
precondition: ChatContextKeys.enabled,
|
|
26
26
|
menu: [{
|
|
@@ -91,9 +91,9 @@ class ManageLanguageModelAuthenticationAction extends Action2 {
|
|
|
91
91
|
if (extensionAuth.size === 0) {
|
|
92
92
|
dialogService.prompt({
|
|
93
93
|
type: 'info',
|
|
94
|
-
message: ( localize(
|
|
94
|
+
message: ( localize(4719, 'No language models requiring authentication found.')),
|
|
95
95
|
detail: ( localize(
|
|
96
|
-
|
|
96
|
+
4720,
|
|
97
97
|
'There are currently no language models that require authentication.'
|
|
98
98
|
))
|
|
99
99
|
});
|
|
@@ -108,10 +108,10 @@ class ManageLanguageModelAuthenticationAction extends Action2 {
|
|
|
108
108
|
items.push({
|
|
109
109
|
type: 'separator',
|
|
110
110
|
id: ownerId,
|
|
111
|
-
label: ( localize(
|
|
111
|
+
label: ( localize(4721, '{0}', extension.displayName || extension.name)),
|
|
112
112
|
buttons: [{
|
|
113
113
|
iconClass: ThemeIcon.asClassName(Codicon.info),
|
|
114
|
-
tooltip: ( localize(
|
|
114
|
+
tooltip: ( localize(4722, 'Open Extension')),
|
|
115
115
|
}]
|
|
116
116
|
});
|
|
117
117
|
let addedTrustedSeparator = false;
|
|
@@ -120,7 +120,7 @@ class ManageLanguageModelAuthenticationAction extends Action2 {
|
|
|
120
120
|
if (allowedExt.trusted && !addedTrustedSeparator) {
|
|
121
121
|
items.push({
|
|
122
122
|
type: 'separator',
|
|
123
|
-
label: ( localize(
|
|
123
|
+
label: ( localize(4723, 'Trusted by Microsoft')),
|
|
124
124
|
});
|
|
125
125
|
addedTrustedSeparator = true;
|
|
126
126
|
}
|
|
@@ -133,16 +133,16 @@ class ManageLanguageModelAuthenticationAction extends Action2 {
|
|
|
133
133
|
disabled: allowedExt.trusted,
|
|
134
134
|
buttons: [{
|
|
135
135
|
iconClass: ThemeIcon.asClassName(Codicon.info),
|
|
136
|
-
tooltip: ( localize(
|
|
136
|
+
tooltip: ( localize(4722, 'Open Extension')),
|
|
137
137
|
}]
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
else {
|
|
142
142
|
items.push({
|
|
143
|
-
label: ( localize(
|
|
143
|
+
label: ( localize(4724, 'No extensions have access')),
|
|
144
144
|
description: ( localize(
|
|
145
|
-
|
|
145
|
+
4725,
|
|
146
146
|
'No extensions are currently allowed to use models from {0}',
|
|
147
147
|
ownerId
|
|
148
148
|
)),
|
|
@@ -165,8 +165,8 @@ class ManageLanguageModelAuthenticationAction extends Action2 {
|
|
|
165
165
|
void extensionsWorkbenchService.open(extId);
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
|
-
title: ( localize(
|
|
169
|
-
placeHolder: ( localize(
|
|
168
|
+
title: ( localize(4726, 'Manage Language Model Access')),
|
|
169
|
+
placeHolder: ( localize(4727, 'Choose which extensions can access language models')),
|
|
170
170
|
});
|
|
171
171
|
if (!result) {
|
|
172
172
|
return;
|
|
@@ -28,7 +28,7 @@ function registerMoveActions() {
|
|
|
28
28
|
constructor() {
|
|
29
29
|
super({
|
|
30
30
|
id: 'workbench.action.chat.openInEditor',
|
|
31
|
-
title: ( localize2(
|
|
31
|
+
title: ( localize2(4728, "Move Chat into Editor Area")),
|
|
32
32
|
category: CHAT_CATEGORY,
|
|
33
33
|
precondition: ChatContextKeys.enabled,
|
|
34
34
|
f1: true,
|
|
@@ -49,7 +49,7 @@ function registerMoveActions() {
|
|
|
49
49
|
constructor() {
|
|
50
50
|
super({
|
|
51
51
|
id: 'workbench.action.chat.openInNewWindow',
|
|
52
|
-
title: ( localize2(
|
|
52
|
+
title: ( localize2(4729, "Move Chat into New Window")),
|
|
53
53
|
category: CHAT_CATEGORY,
|
|
54
54
|
precondition: ChatContextKeys.enabled,
|
|
55
55
|
f1: true,
|
|
@@ -70,7 +70,7 @@ function registerMoveActions() {
|
|
|
70
70
|
constructor() {
|
|
71
71
|
super({
|
|
72
72
|
id: 'workbench.action.chat.openInSidebar',
|
|
73
|
-
title: ( localize2(
|
|
73
|
+
title: ( localize2(4730, "Move Chat into Side Bar")),
|
|
74
74
|
category: CHAT_CATEGORY,
|
|
75
75
|
precondition: ChatContextKeys.enabled,
|
|
76
76
|
f1: true
|
|
@@ -89,9 +89,9 @@ function registerMoveActions() {
|
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
[MenuId.EditorTitle, MenuId.CompactWindowEditorTitle].forEach(id => {
|
|
92
|
-
appendOpenChatInViewMenuItem(id, ( localize(
|
|
93
|
-
appendOpenChatInViewMenuItem(id, ( localize(
|
|
94
|
-
appendOpenChatInViewMenuItem(id, ( localize(
|
|
92
|
+
appendOpenChatInViewMenuItem(id, ( localize(4731, "Move Chat into Secondary Side Bar")), Codicon.layoutSidebarRightDock, ( ChatContextKeys.panelLocation.isEqualTo(ViewContainerLocation.AuxiliaryBar)));
|
|
93
|
+
appendOpenChatInViewMenuItem(id, ( localize(4732, "Move Chat into Primary Side Bar")), Codicon.layoutSidebarLeftDock, ( ChatContextKeys.panelLocation.isEqualTo(ViewContainerLocation.Sidebar)));
|
|
94
|
+
appendOpenChatInViewMenuItem(id, ( localize(4733, "Move Chat into Panel")), Codicon.layoutPanelDock, ( ChatContextKeys.panelLocation.isEqualTo(ViewContainerLocation.Panel)));
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
async function executeMoveToAction(accessor, moveTo, sessionResource) {
|
|
@@ -22,7 +22,7 @@ import { clearChatEditor } from '@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95e
|
|
|
22
22
|
function registerNewChatActions() {
|
|
23
23
|
MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
24
24
|
submenu: MenuId.ChatNewMenu,
|
|
25
|
-
title: ( localize2(
|
|
25
|
+
title: ( localize2(4734, "New Chat")),
|
|
26
26
|
icon: Codicon.plus,
|
|
27
27
|
when: ( ContextKeyExpr.equals('view', ChatViewId)),
|
|
28
28
|
group: 'navigation',
|
|
@@ -33,7 +33,7 @@ function registerNewChatActions() {
|
|
|
33
33
|
constructor() {
|
|
34
34
|
super({
|
|
35
35
|
id: 'workbench.action.chatEditor.newChat',
|
|
36
|
-
title: ( localize2(
|
|
36
|
+
title: ( localize2(4735, "New Chat")),
|
|
37
37
|
icon: Codicon.plus,
|
|
38
38
|
f1: false,
|
|
39
39
|
precondition: ChatContextKeys.enabled,
|
|
@@ -49,7 +49,7 @@ function registerNewChatActions() {
|
|
|
49
49
|
constructor() {
|
|
50
50
|
super({
|
|
51
51
|
id: ACTION_ID_NEW_CHAT,
|
|
52
|
-
title: ( localize2(
|
|
52
|
+
title: ( localize2(4734, "New Chat")),
|
|
53
53
|
category: CHAT_CATEGORY,
|
|
54
54
|
icon: Codicon.plus,
|
|
55
55
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ChatContextKeys.location.isEqualTo(ChatAgentLocation.Chat)))),
|
|
@@ -123,7 +123,7 @@ function registerNewChatActions() {
|
|
|
123
123
|
constructor() {
|
|
124
124
|
super({
|
|
125
125
|
id: 'workbench.action.chat.undoEdit',
|
|
126
|
-
title: ( localize2(
|
|
126
|
+
title: ( localize2(4736, "Undo Last Request")),
|
|
127
127
|
category: CHAT_CATEGORY,
|
|
128
128
|
icon: Codicon.discard,
|
|
129
129
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.chatEditingCanUndo, ChatContextKeys.enabled)),
|
|
@@ -145,7 +145,7 @@ function registerNewChatActions() {
|
|
|
145
145
|
constructor() {
|
|
146
146
|
super({
|
|
147
147
|
id: 'workbench.action.chat.redoEdit',
|
|
148
|
-
title: ( localize2(
|
|
148
|
+
title: ( localize2(4737, "Redo Last Request")),
|
|
149
149
|
category: CHAT_CATEGORY,
|
|
150
150
|
icon: Codicon.redo,
|
|
151
151
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.chatEditingCanRedo, ChatContextKeys.enabled)),
|
|
@@ -171,8 +171,8 @@ function registerNewChatActions() {
|
|
|
171
171
|
constructor() {
|
|
172
172
|
super({
|
|
173
173
|
id: 'workbench.action.chat.redoEdit2',
|
|
174
|
-
title: ( localize2(
|
|
175
|
-
tooltip: ( localize2(
|
|
174
|
+
title: ( localize2(4738, "Redo")),
|
|
175
|
+
tooltip: ( localize2(4739, "Reapply discarded workspace changes and chat")),
|
|
176
176
|
category: CHAT_CATEGORY,
|
|
177
177
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.chatEditingCanRedo, ChatContextKeys.enabled)),
|
|
178
178
|
f1: true,
|
|
@@ -13,7 +13,7 @@ function registerChatPromptNavigationActions() {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: 'workbench.action.chat.nextUserPrompt',
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(4740, "Next User Prompt")),
|
|
17
17
|
keybinding: {
|
|
18
18
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.DownArrow,
|
|
19
19
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -32,7 +32,7 @@ function registerChatPromptNavigationActions() {
|
|
|
32
32
|
constructor() {
|
|
33
33
|
super({
|
|
34
34
|
id: 'workbench.action.chat.previousUserPrompt',
|
|
35
|
-
title: ( localize2(
|
|
35
|
+
title: ( localize2(4741, "Previous User Prompt")),
|
|
36
36
|
keybinding: {
|
|
37
37
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.UpArrow,
|
|
38
38
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -18,7 +18,7 @@ function registerQuickChatActions() {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super({
|
|
20
20
|
id: 'workbench.action.quickchat.openInChatView',
|
|
21
|
-
title: ( localize2(
|
|
21
|
+
title: ( localize2(4742, "Open in Chat View")),
|
|
22
22
|
f1: false,
|
|
23
23
|
category: CHAT_CATEGORY,
|
|
24
24
|
icon: Codicon.chatSparkle,
|
|
@@ -38,7 +38,7 @@ function registerQuickChatActions() {
|
|
|
38
38
|
constructor() {
|
|
39
39
|
super({
|
|
40
40
|
id: 'workbench.action.quickchat.close',
|
|
41
|
-
title: ( localize2(
|
|
41
|
+
title: ( localize2(4743, "Close Quick Chat")),
|
|
42
42
|
f1: false,
|
|
43
43
|
category: CHAT_CATEGORY,
|
|
44
44
|
icon: Codicon.close,
|
|
@@ -59,7 +59,7 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
59
59
|
constructor() {
|
|
60
60
|
super({
|
|
61
61
|
id: ASK_QUICK_QUESTION_ACTION_ID,
|
|
62
|
-
title: ( localize2(
|
|
62
|
+
title: ( localize2(4744, 'Open Quick Chat')),
|
|
63
63
|
precondition: ChatContextKeys.enabled,
|
|
64
64
|
icon: Codicon.chatSparkle,
|
|
65
65
|
f1: false,
|
|
@@ -74,7 +74,7 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
74
74
|
order: 4
|
|
75
75
|
},
|
|
76
76
|
metadata: {
|
|
77
|
-
description: ( localize(
|
|
77
|
+
description: ( localize(4745, 'Toggle the quick chat')),
|
|
78
78
|
args: [{
|
|
79
79
|
name: 'args',
|
|
80
80
|
schema: {
|
|
@@ -84,18 +84,18 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
84
84
|
required: ['query'],
|
|
85
85
|
properties: {
|
|
86
86
|
query: {
|
|
87
|
-
description: ( localize(
|
|
87
|
+
description: ( localize(4746, "The query to open the quick chat with")),
|
|
88
88
|
type: 'string'
|
|
89
89
|
},
|
|
90
90
|
isPartialQuery: {
|
|
91
|
-
description: ( localize(
|
|
91
|
+
description: ( localize(4747, "Whether the query is partial; it will wait for more user input")),
|
|
92
92
|
type: 'boolean'
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
type: 'string',
|
|
98
|
-
description: ( localize(
|
|
98
|
+
description: ( localize(4746, "The query to open the quick chat with"))
|
|
99
99
|
}
|
|
100
100
|
]
|
|
101
101
|
}
|
|
@@ -125,7 +125,7 @@ class AskQuickChatAction extends Action2 {
|
|
|
125
125
|
super({
|
|
126
126
|
id: `workbench.action.openQuickChat`,
|
|
127
127
|
category: CHAT_CATEGORY,
|
|
128
|
-
title: ( localize2(
|
|
128
|
+
title: ( localize2(4748, "Open Quick Chat")),
|
|
129
129
|
precondition: ChatContextKeys.enabled,
|
|
130
130
|
f1: true
|
|
131
131
|
});
|
|
@@ -33,7 +33,7 @@ class RenameChatSessionAction extends Action2 {
|
|
|
33
33
|
constructor() {
|
|
34
34
|
super({
|
|
35
35
|
id: RenameChatSessionAction.id,
|
|
36
|
-
title: ( localize(
|
|
36
|
+
title: ( localize(4749, "Rename")),
|
|
37
37
|
f1: false,
|
|
38
38
|
category: CHAT_CATEGORY,
|
|
39
39
|
icon: Codicon.pencil,
|
|
@@ -56,14 +56,14 @@ class RenameChatSessionAction extends Action2 {
|
|
|
56
56
|
await chatSessionsService.setEditableSession(context.session.resource, {
|
|
57
57
|
validationMessage: (value) => {
|
|
58
58
|
if (!value || value.trim().length === 0) {
|
|
59
|
-
return { content: ( localize(
|
|
59
|
+
return { content: ( localize(4750, "Name cannot be empty")), severity: Severity.Error };
|
|
60
60
|
}
|
|
61
61
|
if (value.length > 100) {
|
|
62
|
-
return { content: ( localize(
|
|
62
|
+
return { content: ( localize(4751, "Name is too long (maximum 100 characters)")), severity: Severity.Error };
|
|
63
63
|
}
|
|
64
64
|
return null;
|
|
65
65
|
},
|
|
66
|
-
placeholder: ( localize(
|
|
66
|
+
placeholder: ( localize(4752, "Enter new name for chat session")),
|
|
67
67
|
startingValue: label,
|
|
68
68
|
onFinish: async (value, success) => {
|
|
69
69
|
if (success && value && value.trim() !== label) {
|
|
@@ -74,7 +74,7 @@ class RenameChatSessionAction extends Action2 {
|
|
|
74
74
|
}
|
|
75
75
|
catch (error) {
|
|
76
76
|
logService.error(( localize(
|
|
77
|
-
|
|
77
|
+
4753,
|
|
78
78
|
"Failed to rename chat session: {0}",
|
|
79
79
|
(error instanceof Error ? error.message : String(error))
|
|
80
80
|
)));
|
|
@@ -94,7 +94,7 @@ class DeleteChatSessionAction extends Action2 {
|
|
|
94
94
|
constructor() {
|
|
95
95
|
super({
|
|
96
96
|
id: DeleteChatSessionAction.id,
|
|
97
|
-
title: ( localize(
|
|
97
|
+
title: ( localize(4754, "Delete")),
|
|
98
98
|
f1: false,
|
|
99
99
|
category: CHAT_CATEGORY,
|
|
100
100
|
icon: Codicon.x,
|
|
@@ -110,9 +110,9 @@ class DeleteChatSessionAction extends Action2 {
|
|
|
110
110
|
const chatSessionsService = accessor.get(IChatSessionsService);
|
|
111
111
|
try {
|
|
112
112
|
const result = await dialogService.confirm({
|
|
113
|
-
message: ( localize(
|
|
114
|
-
detail: ( localize(
|
|
115
|
-
primaryButton: ( localize(
|
|
113
|
+
message: ( localize(4755, "Are you sure you want to delete this chat session?")),
|
|
114
|
+
detail: ( localize(4756, "This action cannot be undone.")),
|
|
115
|
+
primaryButton: ( localize(4757, "Delete")),
|
|
116
116
|
type: 'warning'
|
|
117
117
|
});
|
|
118
118
|
if (result.confirmed) {
|
|
@@ -130,7 +130,7 @@ class OpenChatSessionInNewWindowAction extends Action2 {
|
|
|
130
130
|
constructor() {
|
|
131
131
|
super({
|
|
132
132
|
id: OpenChatSessionInNewWindowAction.id,
|
|
133
|
-
title: ( localize(
|
|
133
|
+
title: ( localize(4758, "Move Chat into New Window")),
|
|
134
134
|
category: CHAT_CATEGORY,
|
|
135
135
|
f1: false,
|
|
136
136
|
});
|
|
@@ -169,7 +169,7 @@ class OpenChatSessionInNewEditorGroupAction extends Action2 {
|
|
|
169
169
|
constructor() {
|
|
170
170
|
super({
|
|
171
171
|
id: OpenChatSessionInNewEditorGroupAction.id,
|
|
172
|
-
title: ( localize(
|
|
172
|
+
title: ( localize(4759, "Move Chat to the Side")),
|
|
173
173
|
category: CHAT_CATEGORY,
|
|
174
174
|
f1: false,
|
|
175
175
|
});
|
|
@@ -208,7 +208,7 @@ class OpenChatSessionInSidebarAction extends Action2 {
|
|
|
208
208
|
constructor() {
|
|
209
209
|
super({
|
|
210
210
|
id: OpenChatSessionInSidebarAction.id,
|
|
211
|
-
title: ( localize(
|
|
211
|
+
title: ( localize(4760, "Move Chat into Side Bar")),
|
|
212
212
|
category: CHAT_CATEGORY,
|
|
213
213
|
f1: false,
|
|
214
214
|
});
|
|
@@ -244,7 +244,7 @@ class ToggleChatSessionsDescriptionDisplayAction extends Action2 {
|
|
|
244
244
|
constructor() {
|
|
245
245
|
super({
|
|
246
246
|
id: ToggleChatSessionsDescriptionDisplayAction.id,
|
|
247
|
-
title: ( localize(
|
|
247
|
+
title: ( localize(4761, "Show Rich Descriptions")),
|
|
248
248
|
category: CHAT_CATEGORY,
|
|
249
249
|
f1: false,
|
|
250
250
|
toggled: ( ContextKeyExpr.equals(`config.${ChatConfiguration.ShowAgentSessionsViewDescription}`, true))
|
|
@@ -261,7 +261,7 @@ class ToggleAgentSessionsViewLocationAction extends Action2 {
|
|
|
261
261
|
constructor() {
|
|
262
262
|
super({
|
|
263
263
|
id: ToggleAgentSessionsViewLocationAction.id,
|
|
264
|
-
title: ( localize(
|
|
264
|
+
title: ( localize(4762, "Enable New Single View")),
|
|
265
265
|
category: CHAT_CATEGORY,
|
|
266
266
|
f1: false,
|
|
267
267
|
toggled: ( ContextKeyExpr.equals(`config.${ChatConfiguration.AgentSessionsViewLocation}`, 'single-view')),
|
|
@@ -296,7 +296,7 @@ class ChatSessionsGettingStartedAction extends Action2 {
|
|
|
296
296
|
constructor() {
|
|
297
297
|
super({
|
|
298
298
|
id: ChatSessionsGettingStartedAction.ID,
|
|
299
|
-
title: ( localize2(
|
|
299
|
+
title: ( localize2(4763, "Getting Started with Chat Sessions")),
|
|
300
300
|
icon: Codicon.sendToRemoteAgent,
|
|
301
301
|
f1: false,
|
|
302
302
|
});
|
|
@@ -320,15 +320,15 @@ class ChatSessionsGettingStartedAction extends Action2 {
|
|
|
320
320
|
label: recommendation.displayName,
|
|
321
321
|
description: recommendation.description,
|
|
322
322
|
detail: extensionInstalled
|
|
323
|
-
? ( localize(
|
|
324
|
-
: ( localize(
|
|
323
|
+
? ( localize(4764, "'{0}' is already installed", recommendation.extensionName))
|
|
324
|
+
: ( localize(4765, "Installs '{0}'", recommendation.extensionName)),
|
|
325
325
|
extensionId: recommendation.extensionId,
|
|
326
326
|
disabled: extensionInstalled,
|
|
327
327
|
};
|
|
328
328
|
}));
|
|
329
329
|
const selected = await quickInputService.pick(quickPickItems, {
|
|
330
|
-
title: ( localize(
|
|
331
|
-
placeHolder: ( localize(
|
|
330
|
+
title: ( localize(4766, "Install Chat Extensions")),
|
|
331
|
+
placeHolder: ( localize(4767, "Choose extensions to enhance your chat experience")),
|
|
332
332
|
canPickMany: true,
|
|
333
333
|
});
|
|
334
334
|
if (!selected) {
|
|
@@ -346,7 +346,7 @@ class ChatSessionsGettingStartedAction extends Action2 {
|
|
|
346
346
|
MenuRegistry.appendMenuItem(MenuId.ChatSessionsMenu, {
|
|
347
347
|
command: {
|
|
348
348
|
id: RenameChatSessionAction.id,
|
|
349
|
-
title: ( localize(
|
|
349
|
+
title: ( localize(4749, "Rename")),
|
|
350
350
|
icon: Codicon.pencil
|
|
351
351
|
},
|
|
352
352
|
group: 'inline',
|
|
@@ -356,7 +356,7 @@ MenuRegistry.appendMenuItem(MenuId.ChatSessionsMenu, {
|
|
|
356
356
|
MenuRegistry.appendMenuItem(MenuId.ChatSessionsMenu, {
|
|
357
357
|
command: {
|
|
358
358
|
id: DeleteChatSessionAction.id,
|
|
359
|
-
title: ( localize(
|
|
359
|
+
title: ( localize(4754, "Delete")),
|
|
360
360
|
icon: Codicon.x
|
|
361
361
|
},
|
|
362
362
|
group: 'inline',
|
|
@@ -366,7 +366,7 @@ MenuRegistry.appendMenuItem(MenuId.ChatSessionsMenu, {
|
|
|
366
366
|
MenuRegistry.appendMenuItem(MenuId.ChatSessionsMenu, {
|
|
367
367
|
command: {
|
|
368
368
|
id: OpenChatSessionInNewWindowAction.id,
|
|
369
|
-
title: ( localize(
|
|
369
|
+
title: ( localize(4768, "Open in New Window"))
|
|
370
370
|
},
|
|
371
371
|
group: 'navigation',
|
|
372
372
|
order: 1,
|
|
@@ -374,7 +374,7 @@ MenuRegistry.appendMenuItem(MenuId.ChatSessionsMenu, {
|
|
|
374
374
|
MenuRegistry.appendMenuItem(MenuId.ChatSessionsMenu, {
|
|
375
375
|
command: {
|
|
376
376
|
id: OpenChatSessionInNewEditorGroupAction.id,
|
|
377
|
-
title: ( localize(
|
|
377
|
+
title: ( localize(4769, "Open to the Side"))
|
|
378
378
|
},
|
|
379
379
|
group: 'navigation',
|
|
380
380
|
order: 2,
|
|
@@ -382,7 +382,7 @@ MenuRegistry.appendMenuItem(MenuId.ChatSessionsMenu, {
|
|
|
382
382
|
MenuRegistry.appendMenuItem(MenuId.ChatSessionsMenu, {
|
|
383
383
|
command: {
|
|
384
384
|
id: OpenChatSessionInSidebarAction.id,
|
|
385
|
-
title: ( localize(
|
|
385
|
+
title: ( localize(4770, "Open in Sidebar"))
|
|
386
386
|
},
|
|
387
387
|
group: 'navigation',
|
|
388
388
|
order: 3,
|
|
@@ -391,7 +391,7 @@ MenuRegistry.appendMenuItem(MenuId.ChatSessionsMenu, {
|
|
|
391
391
|
MenuRegistry.appendMenuItem(MenuId.ViewContainerTitle, {
|
|
392
392
|
command: {
|
|
393
393
|
id: ToggleChatSessionsDescriptionDisplayAction.id,
|
|
394
|
-
title: ( localize(
|
|
394
|
+
title: ( localize(4761, "Show Rich Descriptions")),
|
|
395
395
|
toggled: ( ContextKeyExpr.equals(`config.${ChatConfiguration.ShowAgentSessionsViewDescription}`, true))
|
|
396
396
|
},
|
|
397
397
|
group: '1_config',
|
|
@@ -401,7 +401,7 @@ MenuRegistry.appendMenuItem(MenuId.ViewContainerTitle, {
|
|
|
401
401
|
MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
402
402
|
command: {
|
|
403
403
|
id: ACTION_ID_OPEN_CHAT,
|
|
404
|
-
title: ( localize2(
|
|
404
|
+
title: ( localize2(4771, "New Chat Editor")),
|
|
405
405
|
icon: Codicon.plus
|
|
406
406
|
},
|
|
407
407
|
group: 'navigation',
|
|
@@ -47,7 +47,7 @@ class AcceptToolConfirmation extends ToolConfirmationAction {
|
|
|
47
47
|
constructor() {
|
|
48
48
|
super({
|
|
49
49
|
id: AcceptToolConfirmationActionId,
|
|
50
|
-
title: ( localize2(
|
|
50
|
+
title: ( localize2(4782, "Accept")),
|
|
51
51
|
f1: false,
|
|
52
52
|
category: CHAT_CATEGORY,
|
|
53
53
|
keybinding: {
|
|
@@ -65,7 +65,7 @@ class SkipToolConfirmation extends ToolConfirmationAction {
|
|
|
65
65
|
constructor() {
|
|
66
66
|
super({
|
|
67
67
|
id: SkipToolConfirmationActionId,
|
|
68
|
-
title: ( localize2(
|
|
68
|
+
title: ( localize2(4783, "Skip")),
|
|
69
69
|
f1: false,
|
|
70
70
|
category: CHAT_CATEGORY,
|
|
71
71
|
keybinding: {
|
|
@@ -84,7 +84,7 @@ class ConfigureToolsAction extends Action2 {
|
|
|
84
84
|
constructor() {
|
|
85
85
|
super({
|
|
86
86
|
id: ConfigureToolsAction.ID,
|
|
87
|
-
title: ( localize(
|
|
87
|
+
title: ( localize(4784, "Configure Tools...")),
|
|
88
88
|
icon: Codicon.tools,
|
|
89
89
|
f1: false,
|
|
90
90
|
category: CHAT_CATEGORY,
|
|
@@ -119,29 +119,29 @@ class ConfigureToolsAction extends Action2 {
|
|
|
119
119
|
const { entriesScope, entriesMap } = widget.input.selectedToolsModel;
|
|
120
120
|
switch (entriesScope) {
|
|
121
121
|
case ToolsScope.Session:
|
|
122
|
-
placeholder = ( localize(
|
|
123
|
-
description = ( localize(
|
|
122
|
+
placeholder = ( localize(4785, "Select tools for this chat session"));
|
|
123
|
+
description = ( localize(4786, "The selected tools were configured only for this chat session."));
|
|
124
124
|
break;
|
|
125
125
|
case ToolsScope.Agent:
|
|
126
|
-
placeholder = ( localize(
|
|
126
|
+
placeholder = ( localize(4787, "Select tools for this custom agent"));
|
|
127
127
|
description = ( localize(
|
|
128
|
-
|
|
128
|
+
4788,
|
|
129
129
|
"The selected tools are configured by the '{0}' custom agent. Changes to the tools will be applied to the custom agent file as well.",
|
|
130
130
|
widget.input.currentModeObs.get().label.get()
|
|
131
131
|
));
|
|
132
132
|
break;
|
|
133
133
|
case ToolsScope.Agent_ReadOnly:
|
|
134
|
-
placeholder = ( localize(
|
|
134
|
+
placeholder = ( localize(4789, "Select tools for this custom agent"));
|
|
135
135
|
description = ( localize(
|
|
136
|
-
|
|
136
|
+
4790,
|
|
137
137
|
"The selected tools are configured by the '{0}' custom agent. Changes to the tools will only be used for this session and will not change the '{0}' custom agent.",
|
|
138
138
|
widget.input.currentModeObs.get().label.get()
|
|
139
139
|
));
|
|
140
140
|
break;
|
|
141
141
|
case ToolsScope.Global:
|
|
142
|
-
placeholder = ( localize(
|
|
142
|
+
placeholder = ( localize(4791, "Select tools that are available to chat."));
|
|
143
143
|
description = ( localize(
|
|
144
|
-
|
|
144
|
+
4792,
|
|
145
145
|
"The selected tools will be applied globally for all chat sessions that use the default agent."
|
|
146
146
|
));
|
|
147
147
|
break;
|
|
@@ -191,7 +191,7 @@ let ConfigureToolsActionRendering = class ConfigureToolsActionRendering {
|
|
|
191
191
|
getTooltip() {
|
|
192
192
|
if (this.isAboveToolLimit()) {
|
|
193
193
|
const warningMessage = ( localize(
|
|
194
|
-
|
|
194
|
+
4793,
|
|
195
195
|
'More than {0} tools are enabled, you may experience degraded tool calling.',
|
|
196
196
|
this._contextKeyService.getContextKeyValue(ChatContextKeys.chatToolGroupingThreshold.key)
|
|
197
197
|
));
|