@codingame/monaco-vscode-chat-service-override 23.0.3 → 23.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +43 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +106 -74
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +2 -2
- 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 +17 -17
- 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.js +3 -3
- 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 +7 -7
- 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/chatViewPane.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +6 -2
- 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.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +57 -7
- 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 +22 -23
- 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 +10 -7
- 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
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js
CHANGED
|
@@ -55,8 +55,8 @@ class NavigateAction extends ChatEditingEditorAction {
|
|
|
55
55
|
? 'chatEditor.action.navigateNext'
|
|
56
56
|
: 'chatEditor.action.navigatePrevious',
|
|
57
57
|
title: next
|
|
58
|
-
? ( localize2(
|
|
59
|
-
: ( localize2(
|
|
58
|
+
? ( localize2(5140, 'Go to Next Chat Edit'))
|
|
59
|
+
: ( localize2(5141, 'Go to Previous Chat Edit')),
|
|
60
60
|
icon: next ? Codicon.arrowDown : Codicon.arrowUp,
|
|
61
61
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ctxHasEditorModification)),
|
|
62
62
|
keybinding: {
|
|
@@ -128,14 +128,14 @@ class KeepOrUndoAction extends ChatEditingEditorAction {
|
|
|
128
128
|
super({
|
|
129
129
|
id,
|
|
130
130
|
title: _keep
|
|
131
|
-
? ( localize2(
|
|
132
|
-
: ( localize2(
|
|
131
|
+
? ( localize2(5142, 'Keep Chat Edits'))
|
|
132
|
+
: ( localize2(5143, 'Undo Chat Edits')),
|
|
133
133
|
shortTitle: _keep
|
|
134
|
-
? ( localize2(
|
|
135
|
-
: ( localize2(
|
|
134
|
+
? ( localize2(5144, 'Keep'))
|
|
135
|
+
: ( localize2(5145, 'Undo')),
|
|
136
136
|
tooltip: _keep
|
|
137
|
-
? ( localize2(
|
|
138
|
-
: ( localize2(
|
|
137
|
+
? ( localize2(5146, 'Keep Chat Edits in this File'))
|
|
138
|
+
: ( localize2(5147, 'Undo Chat Edits in this File')),
|
|
139
139
|
precondition: ( ContextKeyExpr.and(ctxIsGlobalEditingSession, ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
140
140
|
icon: _keep
|
|
141
141
|
? Codicon.check
|
|
@@ -186,8 +186,8 @@ class AcceptRejectHunkAction extends ChatEditingEditorAction {
|
|
|
186
186
|
constructor(_accept) {
|
|
187
187
|
super({
|
|
188
188
|
id: _accept ? acceptHunkId : undoHunkId,
|
|
189
|
-
title: _accept ? ( localize2(
|
|
190
|
-
shortTitle: _accept ? ( localize2(
|
|
189
|
+
title: _accept ? ( localize2(5148, 'Keep this Change')) : ( localize2(5149, 'Undo this Change')),
|
|
190
|
+
shortTitle: _accept ? ( localize2(5150, 'Keep')) : ( localize2(5151, 'Undo')),
|
|
191
191
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
192
192
|
f1: true,
|
|
193
193
|
keybinding: {
|
|
@@ -233,7 +233,7 @@ class ToggleDiffAction extends ChatEditingEditorAction {
|
|
|
233
233
|
constructor() {
|
|
234
234
|
super({
|
|
235
235
|
id: 'chatEditor.action.toggleDiff',
|
|
236
|
-
title: ( localize2(
|
|
236
|
+
title: ( localize2(5152, 'Toggle Diff Editor for Chat Edits')),
|
|
237
237
|
category: CHAT_CATEGORY,
|
|
238
238
|
toggled: {
|
|
239
239
|
condition: ( ContextKeyExpr.or(EditorContextKeys.inDiffEditor, ( ActiveEditorContext.isEqualTo(TEXT_DIFF_EDITOR_ID)))),
|
|
@@ -265,7 +265,7 @@ class ToggleAccessibleDiffViewAction extends ChatEditingEditorAction {
|
|
|
265
265
|
constructor() {
|
|
266
266
|
super({
|
|
267
267
|
id: 'chatEditor.action.showAccessibleDiffView',
|
|
268
|
-
title: ( localize2(
|
|
268
|
+
title: ( localize2(5153, 'Show Accessible Diff View for Chat Edits')),
|
|
269
269
|
f1: true,
|
|
270
270
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
271
271
|
keybinding: {
|
|
@@ -283,7 +283,7 @@ class ReviewChangesAction extends ChatEditingEditorAction {
|
|
|
283
283
|
constructor() {
|
|
284
284
|
super({
|
|
285
285
|
id: 'chatEditor.action.reviewChanges',
|
|
286
|
-
title: ( localize2(
|
|
286
|
+
title: ( localize2(5154, "Review")),
|
|
287
287
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
288
288
|
menu: [{
|
|
289
289
|
id: MenuId.ChatEditingEditorContent,
|
|
@@ -302,8 +302,8 @@ class AcceptAllEditsAction extends ChatEditingEditorAction {
|
|
|
302
302
|
constructor() {
|
|
303
303
|
super({
|
|
304
304
|
id: AcceptAllEditsAction.ID,
|
|
305
|
-
title: ( localize2(
|
|
306
|
-
tooltip: ( localize2(
|
|
305
|
+
title: ( localize2(5155, 'Keep All Chat Edits')),
|
|
306
|
+
tooltip: ( localize2(5156, 'Keep All Chat Edits in this Session')),
|
|
307
307
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
308
308
|
icon: Codicon.checkAll,
|
|
309
309
|
f1: true,
|
|
@@ -322,7 +322,7 @@ class MultiDiffAcceptDiscardAction extends Action2 {
|
|
|
322
322
|
constructor(accept) {
|
|
323
323
|
super({
|
|
324
324
|
id: accept ? 'chatEditing.multidiff.acceptAllFiles' : 'chatEditing.multidiff.discardAllFiles',
|
|
325
|
-
title: accept ? ( localize(
|
|
325
|
+
title: accept ? ( localize(5157, 'Keep All Edits')) : ( localize(5158, 'Undo All Edits')),
|
|
326
326
|
icon: accept ? Codicon.check : Codicon.discard,
|
|
327
327
|
menu: {
|
|
328
328
|
when: ( ContextKeyExpr.equals('resourceScheme', CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME)),
|
|
@@ -380,7 +380,7 @@ function registerChatEditorActions() {
|
|
|
380
380
|
MenuRegistry.appendMenuItem(MenuId.ChatEditingEditorContent, {
|
|
381
381
|
command: {
|
|
382
382
|
id: navigationBearingFakeActionId,
|
|
383
|
-
title: ( localize(
|
|
383
|
+
title: ( localize(5159, "Navigation Status")),
|
|
384
384
|
precondition: ( ContextKeyExpr.false()),
|
|
385
385
|
},
|
|
386
386
|
group: 'navigate',
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js
CHANGED
|
@@ -64,7 +64,7 @@ let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
|
64
64
|
}
|
|
65
65
|
const response = this._entry.read(r)?.lastModifyingResponse.read(r);
|
|
66
66
|
if (!response) {
|
|
67
|
-
return { message: ( localize(
|
|
67
|
+
return { message: ( localize(5167, "Working...")) };
|
|
68
68
|
}
|
|
69
69
|
const lastPart = observableFromEventOpts({ equalsFn: equals }, response.onDidChange, () => response.response.value)
|
|
70
70
|
.read(r)
|
|
@@ -77,7 +77,7 @@ let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
|
77
77
|
return { message: lastPart.content };
|
|
78
78
|
}
|
|
79
79
|
else {
|
|
80
|
-
return { message: ( localize(
|
|
80
|
+
return { message: ( localize(5167, "Working...")) };
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
const progressNode = createElement('div');
|
|
@@ -154,10 +154,10 @@ let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
|
154
154
|
const { changeCount, activeIdx } = that._navigationBearings.read(r);
|
|
155
155
|
if (changeCount > 0) {
|
|
156
156
|
const n = activeIdx === -1 ? '1' : `${activeIdx + 1}`;
|
|
157
|
-
this.label.innerText = ( localize(
|
|
157
|
+
this.label.innerText = ( localize(5168, "{0} of {1}", n, changeCount));
|
|
158
158
|
}
|
|
159
159
|
else {
|
|
160
|
-
this.label.innerText = ( localize(
|
|
160
|
+
this.label.innerText = ( localize(5169, "—"));
|
|
161
161
|
}
|
|
162
162
|
this.updateTooltip();
|
|
163
163
|
}));
|
|
@@ -169,21 +169,21 @@ let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
|
169
169
|
}
|
|
170
170
|
let result;
|
|
171
171
|
if (changeCount === 1 && entriesCount === 1) {
|
|
172
|
-
result = ( localize(
|
|
172
|
+
result = ( localize(5170, "1 change in 1 file"));
|
|
173
173
|
}
|
|
174
174
|
else if (changeCount === 1) {
|
|
175
|
-
result = ( localize(
|
|
175
|
+
result = ( localize(5171, "1 change in {0} files", entriesCount));
|
|
176
176
|
}
|
|
177
177
|
else if (entriesCount === 1) {
|
|
178
|
-
result = ( localize(
|
|
178
|
+
result = ( localize(5172, "{0} changes in 1 file", changeCount));
|
|
179
179
|
}
|
|
180
180
|
else {
|
|
181
|
-
result = ( localize(
|
|
181
|
+
result = ( localize(5173, "{0} changes in {1} files", changeCount, entriesCount));
|
|
182
182
|
}
|
|
183
183
|
if (!that._isBusy.get()) {
|
|
184
184
|
return result;
|
|
185
185
|
}
|
|
186
|
-
return localize(
|
|
186
|
+
return localize(5174, "{0} - Working...", result);
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
189
|
}
|
|
@@ -232,7 +232,7 @@ let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
|
232
232
|
if (!kb) {
|
|
233
233
|
return value;
|
|
234
234
|
}
|
|
235
|
-
return localize(
|
|
235
|
+
return localize(5175, "{0} ({1})", value, kb.getLabel());
|
|
236
236
|
}
|
|
237
237
|
});
|
|
238
238
|
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js
CHANGED
|
@@ -103,7 +103,7 @@ let ChatEditingModifiedDocumentEntry = class ChatEditingModifiedDocumentEntry ex
|
|
|
103
103
|
if (inProgress) {
|
|
104
104
|
const res = this._lastModifyingResponseObs.read(r);
|
|
105
105
|
const req = res && res.session.getRequests().find(value => value.id === res.requestId);
|
|
106
|
-
resourceFilter.value = markerService.installResourceFilter(this.modifiedURI, req?.message.text || ( localize(
|
|
106
|
+
resourceFilter.value = markerService.installResourceFilter(this.modifiedURI, req?.message.text || ( localize(5176, "Chat Edits")));
|
|
107
107
|
}
|
|
108
108
|
else {
|
|
109
109
|
resourceFilter.clear();
|
|
@@ -151,7 +151,7 @@ let ChatEditingModifiedDocumentEntry = class ChatEditingModifiedDocumentEntry ex
|
|
|
151
151
|
}
|
|
152
152
|
_createUndoRedoElement(response) {
|
|
153
153
|
const request = response.session.getRequests().find(req => req.id === response.requestId);
|
|
154
|
-
const label = request?.message.text ? ( localize(
|
|
154
|
+
const label = request?.message.text ? ( localize(5177, "Chat Edit: '{0}'", request.message.text)) : ( localize(5178, "Chat Edit"));
|
|
155
155
|
return ( new SingleModelEditStackElement(label, 'chat.edit', this.modifiedModel, null));
|
|
156
156
|
}
|
|
157
157
|
async acceptAgentEdits(resource, textEdits, isLastEdits, responseModel) {
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js
CHANGED
|
@@ -43,7 +43,7 @@ class AutoAcceptControl {
|
|
|
43
43
|
this.cancel = cancel;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
const pendingRewriteMinimap = registerColor('minimap.chatEditHighlight', ( transparent(editorBackground, 0.6)), ( localize(
|
|
46
|
+
const pendingRewriteMinimap = registerColor('minimap.chatEditHighlight', ( transparent(editorBackground, 0.6)), ( localize(5179, "Color of pending edit regions in the minimap")));
|
|
47
47
|
let AbstractChatEditingModifiedFileEntry = class AbstractChatEditingModifiedFileEntry extends Disposable {
|
|
48
48
|
static { AbstractChatEditingModifiedFileEntry_1 = this; }
|
|
49
49
|
static { this.scheme = 'modified-file-entry'; }
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js
CHANGED
|
@@ -406,7 +406,7 @@ let ChatEditingModifiedNotebookEntry = class ChatEditingModifiedNotebookEntry ex
|
|
|
406
406
|
}
|
|
407
407
|
_createUndoRedoElement(response) {
|
|
408
408
|
const request = response.session.getRequests().find(req => req.id === response.requestId);
|
|
409
|
-
const label = request?.message.text ? ( localize(
|
|
409
|
+
const label = request?.message.text ? ( localize(5180, "Chat Edit: '{0}'", request.message.text)) : ( localize(5181, "Chat Edit"));
|
|
410
410
|
const transientOptions = this.transientOptions;
|
|
411
411
|
const outputSizeLimit = this.configurationService.getValue(NotebookSetting.outputBackupSizeLimit) * 1024;
|
|
412
412
|
let initial = createSnapshot(this.modifiedModel, transientOptions, outputSizeLimit);
|
|
@@ -97,7 +97,7 @@ let ChatEditingService = class ChatEditingService extends Disposable {
|
|
|
97
97
|
}
|
|
98
98
|
e.join(storageTask, {
|
|
99
99
|
id: 'join.chatEditingSession',
|
|
100
|
-
label: ( localize(
|
|
100
|
+
label: ( localize(5182, "Saving chat edits history"))
|
|
101
101
|
});
|
|
102
102
|
}));
|
|
103
103
|
}
|
|
@@ -332,7 +332,7 @@ class ChatDecorationsProvider extends Disposable {
|
|
|
332
332
|
constructor(_sessions) {
|
|
333
333
|
super();
|
|
334
334
|
this._sessions = _sessions;
|
|
335
|
-
this.label = ( localize(
|
|
335
|
+
this.label = ( localize(5183, "Chat Editing"));
|
|
336
336
|
this._currentEntries = derived(this, (r) => {
|
|
337
337
|
const sessions = this._sessions.read(r);
|
|
338
338
|
if (!sessions) {
|
|
@@ -371,7 +371,7 @@ class ChatDecorationsProvider extends Disposable {
|
|
|
371
371
|
return {
|
|
372
372
|
weight: 1000,
|
|
373
373
|
letter: Codicon.diffModified,
|
|
374
|
-
tooltip: ( localize(
|
|
374
|
+
tooltip: ( localize(5184, "Pending changes from chat")),
|
|
375
375
|
bubble: true
|
|
376
376
|
};
|
|
377
377
|
}
|
|
@@ -325,7 +325,7 @@ let ChatEditingSession = ChatEditingSession_1 = class ChatEditingSession extends
|
|
|
325
325
|
}
|
|
326
326
|
const input = MultiDiffEditorInput.fromResourceMultiDiffEditorInput({
|
|
327
327
|
multiDiffSource: getMultiDiffSourceUri(this, previousChanges),
|
|
328
|
-
label: ( localize(
|
|
328
|
+
label: ( localize(5185, "Suggested Edits"))
|
|
329
329
|
}, this._instantiationService);
|
|
330
330
|
this._editorPane = await this._editorGroupsService.activeGroup.openEditor(input, { pinned: true, activation: EditorActivation.ACTIVATE });
|
|
331
331
|
}
|
|
@@ -547,7 +547,7 @@ let ChatEditingNotebookEditorWidgetIntegration = class ChatEditingNotebookEditor
|
|
|
547
547
|
const diffInput = {
|
|
548
548
|
original: { resource: this._entry.originalURI },
|
|
549
549
|
modified: { resource: this._entry.modifiedURI },
|
|
550
|
-
label: ( localize(
|
|
550
|
+
label: ( localize(5186, '{0} (changes from chat)', basename(this._entry.modifiedURI)))
|
|
551
551
|
};
|
|
552
552
|
await this._editorService.openEditor(diffInput);
|
|
553
553
|
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js
CHANGED
|
@@ -75,27 +75,27 @@ let SimpleBrowserOverlayWidget = class SimpleBrowserOverlayWidget {
|
|
|
75
75
|
const mainContent = createElement('div');
|
|
76
76
|
mainContent.className = 'element-selection-main-content';
|
|
77
77
|
const message = createElement('span');
|
|
78
|
-
const startSelectionMessage = ( localize(
|
|
78
|
+
const startSelectionMessage = ( localize(5187, 'Add element to chat'));
|
|
79
79
|
message.textContent = startSelectionMessage;
|
|
80
80
|
mainContent.appendChild(message);
|
|
81
81
|
let cts;
|
|
82
82
|
const actions = [];
|
|
83
83
|
actions.push(toAction({
|
|
84
84
|
id: 'singleSelection',
|
|
85
|
-
label: ( localize(
|
|
85
|
+
label: ( localize(5188, 'Select an Element')),
|
|
86
86
|
enabled: true,
|
|
87
87
|
run: async () => { await startElementSelection(); }
|
|
88
88
|
}), toAction({
|
|
89
89
|
id: 'continuousSelection',
|
|
90
|
-
label: ( localize(
|
|
90
|
+
label: ( localize(5189, 'Continuous Selection')),
|
|
91
91
|
enabled: true,
|
|
92
92
|
run: async () => {
|
|
93
93
|
this._editor.focus();
|
|
94
94
|
cts = ( new CancellationTokenSource());
|
|
95
|
-
message.textContent = ( localize(
|
|
95
|
+
message.textContent = ( localize(5190, 'Selecting element...'));
|
|
96
96
|
this.hideElement(startButton.element);
|
|
97
97
|
this.showElement(cancelButton.element);
|
|
98
|
-
cancelButton.label = ( localize(
|
|
98
|
+
cancelButton.label = ( localize(5191, 'Done'));
|
|
99
99
|
while (!cts.token.isCancellationRequested) {
|
|
100
100
|
try {
|
|
101
101
|
await this.addElementToChat(cts);
|
|
@@ -106,7 +106,7 @@ let SimpleBrowserOverlayWidget = class SimpleBrowserOverlayWidget {
|
|
|
106
106
|
break;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
message.textContent = ( localize(
|
|
109
|
+
message.textContent = ( localize(5192, 'Element added to chat'));
|
|
110
110
|
finishedSelecting();
|
|
111
111
|
}
|
|
112
112
|
}));
|
|
@@ -115,29 +115,29 @@ let SimpleBrowserOverlayWidget = class SimpleBrowserOverlayWidget {
|
|
|
115
115
|
addPrimaryActionToDropdown: false,
|
|
116
116
|
contextMenuProvider: this.contextMenuService,
|
|
117
117
|
supportShortLabel: true,
|
|
118
|
-
title: ( localize(
|
|
118
|
+
title: ( localize(5193, 'Click to select an element.')),
|
|
119
119
|
supportIcons: true,
|
|
120
120
|
...defaultButtonStyles
|
|
121
121
|
})));
|
|
122
|
-
startButton.primaryButton.label = ( localize(
|
|
122
|
+
startButton.primaryButton.label = ( localize(5194, 'Start'));
|
|
123
123
|
startButton.element.classList.add('element-selection-start');
|
|
124
124
|
const cancelButton = this._showStore.add(( new Button(
|
|
125
125
|
mainContent,
|
|
126
|
-
{ ...defaultButtonStyles, supportIcons: true, title: ( localize(
|
|
126
|
+
{ ...defaultButtonStyles, supportIcons: true, title: ( localize(5195, 'Click to cancel selection.')) }
|
|
127
127
|
)));
|
|
128
128
|
cancelButton.element.className = 'element-selection-cancel hidden';
|
|
129
|
-
const cancelButtonLabel = ( localize(
|
|
129
|
+
const cancelButtonLabel = ( localize(5196, 'Cancel'));
|
|
130
130
|
cancelButton.label = cancelButtonLabel;
|
|
131
|
-
const configure = this._showStore.add(( new Button(mainContent, { supportIcons: true, title: ( localize(
|
|
131
|
+
const configure = this._showStore.add(( new Button(mainContent, { supportIcons: true, title: ( localize(5197, "Configure Attachments Sent")) })));
|
|
132
132
|
configure.icon = Codicon.gear;
|
|
133
|
-
const collapseOverlay = this._showStore.add(( new Button(mainContent, { supportIcons: true, title: ( localize(
|
|
133
|
+
const collapseOverlay = this._showStore.add(( new Button(mainContent, { supportIcons: true, title: ( localize(5198, "Collapse Overlay")) })));
|
|
134
134
|
collapseOverlay.icon = Codicon.chevronRight;
|
|
135
|
-
const nextSelection = this._showStore.add(( new Button(mainContent, { supportIcons: true, title: ( localize(
|
|
135
|
+
const nextSelection = this._showStore.add(( new Button(mainContent, { supportIcons: true, title: ( localize(5199, "Select Again")) })));
|
|
136
136
|
nextSelection.icon = Codicon.close;
|
|
137
137
|
nextSelection.element.classList.add('hidden');
|
|
138
138
|
const expandContainer = createElement('div');
|
|
139
139
|
expandContainer.className = 'element-expand-container hidden';
|
|
140
|
-
const expandOverlay = this._showStore.add(( new Button(expandContainer, { supportIcons: true, title: ( localize(
|
|
140
|
+
const expandOverlay = this._showStore.add(( new Button(expandContainer, { supportIcons: true, title: ( localize(5200, "Expand Overlay")) })));
|
|
141
141
|
expandOverlay.icon = Codicon.layout;
|
|
142
142
|
this._domNode.appendChild(mainContent);
|
|
143
143
|
this._domNode.appendChild(expandContainer);
|
|
@@ -159,11 +159,11 @@ let SimpleBrowserOverlayWidget = class SimpleBrowserOverlayWidget {
|
|
|
159
159
|
const startElementSelection = async () => {
|
|
160
160
|
cts = ( new CancellationTokenSource());
|
|
161
161
|
this._editor.focus();
|
|
162
|
-
message.textContent = ( localize(
|
|
162
|
+
message.textContent = ( localize(5190, 'Selecting element...'));
|
|
163
163
|
this.hideElement(startButton.element);
|
|
164
164
|
this.showElement(cancelButton.element);
|
|
165
165
|
await this.addElementToChat(cts);
|
|
166
|
-
message.textContent = ( localize(
|
|
166
|
+
message.textContent = ( localize(5192, 'Element added to chat'));
|
|
167
167
|
finishedSelecting();
|
|
168
168
|
};
|
|
169
169
|
this._showStore.add(addDisposableListener(startButton.primaryButton.element, 'click', async () => {
|
|
@@ -171,7 +171,7 @@ let SimpleBrowserOverlayWidget = class SimpleBrowserOverlayWidget {
|
|
|
171
171
|
}));
|
|
172
172
|
this._showStore.add(addDisposableListener(cancelButton.element, 'click', () => {
|
|
173
173
|
cts.cancel();
|
|
174
|
-
message.textContent = ( localize(
|
|
174
|
+
message.textContent = ( localize(5201, 'Selection canceled'));
|
|
175
175
|
finishedSelecting();
|
|
176
176
|
}));
|
|
177
177
|
this._showStore.add(addDisposableListener(collapseOverlay.element, 'click', () => {
|
|
@@ -308,7 +308,7 @@ let SimpleBrowserOverlayController = class SimpleBrowserOverlayController {
|
|
|
308
308
|
};
|
|
309
309
|
let cts = ( new CancellationTokenSource());
|
|
310
310
|
const show = async () => {
|
|
311
|
-
connectingWebviewElement.textContent = ( localize(
|
|
311
|
+
connectingWebviewElement.textContent = ( localize(5202, 'Connecting to webview...'));
|
|
312
312
|
if (!container.contains(connectingWebviewElement)) {
|
|
313
313
|
container.appendChild(connectingWebviewElement);
|
|
314
314
|
}
|
|
@@ -319,7 +319,7 @@ let SimpleBrowserOverlayController = class SimpleBrowserOverlayController {
|
|
|
319
319
|
await this._browserElementsService.startDebugSession(cts.token, activeBrowserType);
|
|
320
320
|
}
|
|
321
321
|
catch (error) {
|
|
322
|
-
connectingWebviewElement.textContent = ( localize(
|
|
322
|
+
connectingWebviewElement.textContent = ( localize(5203, 'Please reopen the preview.'));
|
|
323
323
|
return;
|
|
324
324
|
}
|
|
325
325
|
}
|
|
@@ -139,7 +139,7 @@ let ChatEditor = class ChatEditor extends EditorPane {
|
|
|
139
139
|
let isContributedChatSession = false;
|
|
140
140
|
const chatSessionType = input.getSessionType();
|
|
141
141
|
if (chatSessionType !== localChatSessionType) {
|
|
142
|
-
const loadingMessage = ( localize(
|
|
142
|
+
const loadingMessage = ( localize(5204, "Loading..."));
|
|
143
143
|
this.showLoadingInChatWidget(loadingMessage);
|
|
144
144
|
}
|
|
145
145
|
await super.setInput(input, options, context, token);
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js
CHANGED
|
@@ -18,10 +18,10 @@ import { CHAT_CATEGORY } from '@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-
|
|
|
18
18
|
import { ChatManagementEditor, ModelsManagementEditor } from './chatManagementEditor.js';
|
|
19
19
|
import { ChatManagementEditorInput, ModelsManagementEditorInput } from './chatManagementEditorInput.js';
|
|
20
20
|
|
|
21
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatManagementEditor, ChatManagementEditor.ID, ( localize(
|
|
21
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatManagementEditor, ChatManagementEditor.ID, ( localize(5258, "Chat Management Editor"))), [
|
|
22
22
|
( new SyncDescriptor(ChatManagementEditorInput))
|
|
23
23
|
]);
|
|
24
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ModelsManagementEditor, ModelsManagementEditor.ID, ( localize(
|
|
24
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ModelsManagementEditor, ModelsManagementEditor.ID, ( localize(5259, "Models Management Editor"))), [
|
|
25
25
|
( new SyncDescriptor(ModelsManagementEditorInput))
|
|
26
26
|
]);
|
|
27
27
|
class ChatManagementEditorInputSerializer {
|
|
@@ -52,7 +52,7 @@ registerAction2(class extends Action2 {
|
|
|
52
52
|
constructor() {
|
|
53
53
|
super({
|
|
54
54
|
id: MANAGE_CHAT_COMMAND_ID,
|
|
55
|
-
title: ( localize2(
|
|
55
|
+
title: ( localize2(5260, "Manage Language Models")),
|
|
56
56
|
category: CHAT_CATEGORY,
|
|
57
57
|
precondition: ( ContextKeyExpr.and(( ProductQualityContext.notEqualsTo('stable')), ChatContextKeys.enabled, ( ContextKeyExpr.or(
|
|
58
58
|
ChatContextKeys.Entitlement.planFree,
|
|
@@ -78,7 +78,7 @@ registerAction2(class extends Action2 {
|
|
|
78
78
|
weight: KeybindingWeight.EditorContrib,
|
|
79
79
|
when: CONTEXT_MODELS_SEARCH_FOCUS
|
|
80
80
|
},
|
|
81
|
-
title: ( localize2(
|
|
81
|
+
title: ( localize2(5261, "Clear Models Search Results"))
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
run(accessor) {
|
|
@@ -87,7 +87,7 @@ ModelsManagementEditor = ModelsManagementEditor_1 = ( __decorate([
|
|
|
87
87
|
( __param(4, IInstantiationService)),
|
|
88
88
|
( __param(5, IContextKeyService))
|
|
89
89
|
], ModelsManagementEditor));
|
|
90
|
-
const chatManagementSashBorder = registerColor('chatManagement.sashBorder', PANEL_BORDER, ( localize(
|
|
90
|
+
const chatManagementSashBorder = registerColor('chatManagement.sashBorder', PANEL_BORDER, ( localize(5262, "The color of the Chat Management editor splitview sash border.")));
|
|
91
91
|
function isNewUser(chatEntitlementService) {
|
|
92
92
|
return !chatEntitlementService.sentiment.installed ||
|
|
93
93
|
chatEntitlementService.entitlement === ChatEntitlement.Available;
|
|
@@ -152,8 +152,8 @@ let ChatManagementEditor = class ChatManagementEditor extends EditorPane {
|
|
|
152
152
|
}
|
|
153
153
|
renderSidebar(parent) {
|
|
154
154
|
this.sections = [
|
|
155
|
-
{ id: CHAT_MANAGEMENT_SECTION_USAGE, label: ( localize(
|
|
156
|
-
{ id: CHAT_MANAGEMENT_SECTION_MODELS, label: ( localize(
|
|
155
|
+
{ id: CHAT_MANAGEMENT_SECTION_USAGE, label: ( localize(5263, 'Usage')) },
|
|
156
|
+
{ id: CHAT_MANAGEMENT_SECTION_MODELS, label: ( localize(5264, 'Models')) }
|
|
157
157
|
];
|
|
158
158
|
const delegate = ( new SectionItemDelegate());
|
|
159
159
|
const renderer = ( new SectionItemRenderer());
|
|
@@ -166,7 +166,7 @@ let ChatManagementEditor = class ChatManagementEditor extends EditorPane {
|
|
|
166
166
|
return element.label;
|
|
167
167
|
},
|
|
168
168
|
getWidgetAriaLabel() {
|
|
169
|
-
return localize(
|
|
169
|
+
return localize(5265, "Sections");
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
openOnSingleClick: true,
|
|
@@ -190,7 +190,7 @@ let ChatManagementEditor = class ChatManagementEditor extends EditorPane {
|
|
|
190
190
|
const headerTitleContainer = append(this.headerContainer, $('.header-title-container'));
|
|
191
191
|
const headerTitleWrapper = append(headerTitleContainer, $('.header-title-wrapper'));
|
|
192
192
|
const tile = append(headerTitleWrapper, $('.ai-management-editor-title'));
|
|
193
|
-
tile.textContent = ( localize(
|
|
193
|
+
tile.textContent = ( localize(5266, 'Copilot'));
|
|
194
194
|
this.planBadge = append(headerTitleWrapper, $('.plan-badge'));
|
|
195
195
|
const titleButtonContainer = append(headerTitleContainer, $('.header-upgrade-button-container'));
|
|
196
196
|
this.actionButton = this._register(( new Button(titleButtonContainer, { ...defaultButtonStyles })));
|
|
@@ -245,7 +245,7 @@ let ChatManagementEditor = class ChatManagementEditor extends EditorPane {
|
|
|
245
245
|
}
|
|
246
246
|
else {
|
|
247
247
|
this.planBadge.style.display = '';
|
|
248
|
-
this.planBadge.textContent = ( localize(
|
|
248
|
+
this.planBadge.textContent = ( localize(5267, 'Free'));
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
else {
|
|
@@ -260,31 +260,31 @@ let ChatManagementEditor = class ChatManagementEditor extends EditorPane {
|
|
|
260
260
|
let commandId;
|
|
261
261
|
if (shouldUpgrade && !isFreePlan && !anonymousUser) {
|
|
262
262
|
if (this.chatEntitlementService.entitlement === ChatEntitlement.Pro) {
|
|
263
|
-
buttonLabel = ( localize(
|
|
263
|
+
buttonLabel = ( localize(5268, 'Upgrade to Copilot Pro+'));
|
|
264
264
|
}
|
|
265
265
|
else {
|
|
266
|
-
buttonLabel = ( localize(
|
|
266
|
+
buttonLabel = ( localize(5269, 'Upgrade to Copilot Pro'));
|
|
267
267
|
}
|
|
268
268
|
commandId = 'workbench.action.chat.upgradePlan';
|
|
269
269
|
}
|
|
270
270
|
else if (shouldUpgrade && (isFreePlan || anonymousUser)) {
|
|
271
|
-
buttonLabel = ( localize(
|
|
271
|
+
buttonLabel = ( localize(5270, 'Upgrade to Copilot Pro'));
|
|
272
272
|
commandId = 'workbench.action.chat.upgradePlan';
|
|
273
273
|
}
|
|
274
274
|
else if (newUser) {
|
|
275
|
-
buttonLabel = ( localize(
|
|
275
|
+
buttonLabel = ( localize(5271, "Use AI Features"));
|
|
276
276
|
commandId = newUser && anonymousUser ? 'workbench.action.chat.triggerSetupAnonymousWithoutDialog' : 'workbench.action.chat.triggerSetup';
|
|
277
277
|
}
|
|
278
278
|
else if (anonymousUser) {
|
|
279
|
-
buttonLabel = ( localize(
|
|
279
|
+
buttonLabel = ( localize(5272, "Enable more AI Features"));
|
|
280
280
|
commandId = 'workbench.action.chat.triggerSetup';
|
|
281
281
|
}
|
|
282
282
|
else if (disabled) {
|
|
283
|
-
buttonLabel = ( localize(
|
|
283
|
+
buttonLabel = ( localize(5273, "Enable AI Features"));
|
|
284
284
|
commandId = 'workbench.action.chat.triggerSetup';
|
|
285
285
|
}
|
|
286
286
|
else {
|
|
287
|
-
buttonLabel = ( localize(
|
|
287
|
+
buttonLabel = ( localize(5274, "Sign in to use AI Features"));
|
|
288
288
|
commandId = 'workbench.action.chat.triggerSetup';
|
|
289
289
|
}
|
|
290
290
|
this.actionButton.label = buttonLabel;
|
|
@@ -300,15 +300,15 @@ let ChatManagementEditor = class ChatManagementEditor extends EditorPane {
|
|
|
300
300
|
const entitlement = this.chatEntitlementService.entitlement;
|
|
301
301
|
switch (entitlement) {
|
|
302
302
|
case ChatEntitlement.Pro:
|
|
303
|
-
return localize(
|
|
303
|
+
return localize(5275, 'Copilot Pro');
|
|
304
304
|
case ChatEntitlement.ProPlus:
|
|
305
|
-
return localize(
|
|
305
|
+
return localize(5276, 'Copilot Pro+');
|
|
306
306
|
case ChatEntitlement.Business:
|
|
307
|
-
return localize(
|
|
307
|
+
return localize(5277, 'Copilot Business');
|
|
308
308
|
case ChatEntitlement.Enterprise:
|
|
309
|
-
return localize(
|
|
309
|
+
return localize(5278, 'Copilot Enterprise');
|
|
310
310
|
default:
|
|
311
|
-
return localize(
|
|
311
|
+
return localize(5279, 'Copilot Free');
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
shouldShowUpgradeButton() {
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js
CHANGED
|
@@ -4,8 +4,8 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
|
4
4
|
import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
|
|
5
5
|
import { EditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput';
|
|
6
6
|
|
|
7
|
-
const ChatManagementEditorIcon = registerIcon('ai-management-editor-label-icon', Codicon.copilot, ( localize(
|
|
8
|
-
const ModelsManagementEditorIcon = registerIcon('models-management-editor-label-icon', Codicon.settings, ( localize(
|
|
7
|
+
const ChatManagementEditorIcon = registerIcon('ai-management-editor-label-icon', Codicon.copilot, ( localize(5280, 'Icon of the AI Management editor label.')));
|
|
8
|
+
const ModelsManagementEditorIcon = registerIcon('models-management-editor-label-icon', Codicon.settings, ( localize(5281, 'Icon of the Models Management editor label.')));
|
|
9
9
|
const CHAT_MANAGEMENT_SECTION_USAGE = 'usage';
|
|
10
10
|
const CHAT_MANAGEMENT_SECTION_MODELS = 'models';
|
|
11
11
|
class ChatManagementEditorInput extends EditorInput {
|
|
@@ -21,7 +21,7 @@ class ChatManagementEditorInput extends EditorInput {
|
|
|
21
21
|
return ChatManagementEditorInput.ID;
|
|
22
22
|
}
|
|
23
23
|
getName() {
|
|
24
|
-
return localize(
|
|
24
|
+
return localize(5282, "Manage Copilot");
|
|
25
25
|
}
|
|
26
26
|
getIcon() {
|
|
27
27
|
return ChatManagementEditorIcon;
|
|
@@ -43,7 +43,7 @@ class ModelsManagementEditorInput extends EditorInput {
|
|
|
43
43
|
return ModelsManagementEditorInput.ID;
|
|
44
44
|
}
|
|
45
45
|
getName() {
|
|
46
|
-
return localize(
|
|
46
|
+
return localize(5283, "Language Models");
|
|
47
47
|
}
|
|
48
48
|
getIcon() {
|
|
49
49
|
return ModelsManagementEditorIcon;
|