@codingame/monaco-vscode-chat-service-override 8.0.1 → 8.0.2
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-chat-service-override",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@8.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@8.0.2"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -22,7 +22,7 @@ function registerMoveActions() {
|
|
|
22
22
|
constructor() {
|
|
23
23
|
super({
|
|
24
24
|
id: `workbench.action.chat.openInEditor`,
|
|
25
|
-
title: ( localize2(
|
|
25
|
+
title: ( localize2(7129, "Open Chat in Editor")),
|
|
26
26
|
category: CHAT_CATEGORY,
|
|
27
27
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
28
28
|
f1: true,
|
|
@@ -42,7 +42,7 @@ function registerMoveActions() {
|
|
|
42
42
|
constructor() {
|
|
43
43
|
super({
|
|
44
44
|
id: `workbench.action.chat.openInNewWindow`,
|
|
45
|
-
title: ( localize2(
|
|
45
|
+
title: ( localize2(7130, "Open Chat in New Window")),
|
|
46
46
|
category: CHAT_CATEGORY,
|
|
47
47
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
48
48
|
f1: true,
|
|
@@ -62,7 +62,7 @@ function registerMoveActions() {
|
|
|
62
62
|
constructor() {
|
|
63
63
|
super({
|
|
64
64
|
id: `workbench.action.chat.openInSidebar`,
|
|
65
|
-
title: ( localize2(
|
|
65
|
+
title: ( localize2(7131, "Open Chat in Side Bar")),
|
|
66
66
|
category: CHAT_CATEGORY,
|
|
67
67
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
68
68
|
f1: true,
|
|
@@ -22,7 +22,7 @@ function registerChatTitleActions() {
|
|
|
22
22
|
constructor() {
|
|
23
23
|
super({
|
|
24
24
|
id: 'workbench.action.chat.markHelpful',
|
|
25
|
-
title: ( localize2(
|
|
25
|
+
title: ( localize2(7132, "Helpful")),
|
|
26
26
|
f1: false,
|
|
27
27
|
category: CHAT_CATEGORY,
|
|
28
28
|
icon: Codicon.thumbsup,
|
|
@@ -59,7 +59,7 @@ function registerChatTitleActions() {
|
|
|
59
59
|
constructor() {
|
|
60
60
|
super({
|
|
61
61
|
id: 'workbench.action.chat.markUnhelpful',
|
|
62
|
-
title: ( localize2(
|
|
62
|
+
title: ( localize2(7133, "Unhelpful")),
|
|
63
63
|
f1: false,
|
|
64
64
|
category: CHAT_CATEGORY,
|
|
65
65
|
icon: Codicon.thumbsdown,
|
|
@@ -96,7 +96,7 @@ function registerChatTitleActions() {
|
|
|
96
96
|
constructor() {
|
|
97
97
|
super({
|
|
98
98
|
id: 'workbench.action.chat.reportIssueForBug',
|
|
99
|
-
title: ( localize2(
|
|
99
|
+
title: ( localize2(7134, "Report Issue")),
|
|
100
100
|
f1: false,
|
|
101
101
|
category: CHAT_CATEGORY,
|
|
102
102
|
icon: Codicon.report,
|
|
@@ -130,7 +130,7 @@ function registerChatTitleActions() {
|
|
|
130
130
|
constructor() {
|
|
131
131
|
super({
|
|
132
132
|
id: 'workbench.action.chat.insertIntoNotebook',
|
|
133
|
-
title: ( localize2(
|
|
133
|
+
title: ( localize2(7135, "Insert into Notebook")),
|
|
134
134
|
f1: false,
|
|
135
135
|
category: CHAT_CATEGORY,
|
|
136
136
|
icon: Codicon.insert,
|
|
@@ -192,7 +192,7 @@ function registerChatTitleActions() {
|
|
|
192
192
|
constructor() {
|
|
193
193
|
super({
|
|
194
194
|
id: 'workbench.action.chat.remove',
|
|
195
|
-
title: ( localize2(
|
|
195
|
+
title: ( localize2(7136, "Remove Request and Response")),
|
|
196
196
|
f1: false,
|
|
197
197
|
category: CHAT_CATEGORY,
|
|
198
198
|
icon: Codicon.x,
|
|
@@ -256,7 +256,11 @@ let ChatService = class ChatService extends Disposable {
|
|
|
256
256
|
const enableCommandDetection = !options?.noCommandDetection;
|
|
257
257
|
const defaultAgent = this.chatAgentService.getDefaultAgent(location);
|
|
258
258
|
model.removeRequest(request.id, ChatRequestRemovalReason.Resend);
|
|
259
|
-
|
|
259
|
+
const resendOptions = {
|
|
260
|
+
...options,
|
|
261
|
+
locationData: request.locationData
|
|
262
|
+
};
|
|
263
|
+
await this._sendRequestAsync(model, model.sessionId, request.message, attempt, enableCommandDetection, defaultAgent, location, resendOptions).responseCompletePromise;
|
|
260
264
|
}
|
|
261
265
|
async sendRequest(sessionId, request, options) {
|
|
262
266
|
this.trace('sendRequest', `sessionId: ${sessionId}, message: ${request.substring(0, 20)}${request.length > 20 ? '[...]' : ''}}`);
|
|
@@ -363,7 +367,7 @@ let ChatService = class ChatService extends Disposable {
|
|
|
363
367
|
await this.extensionService.activateByEvent(`onChatParticipant:${agent.id}`);
|
|
364
368
|
const history = getHistoryEntriesFromModel(model, agentPart?.agent.id);
|
|
365
369
|
const initVariableData = { variables: [] };
|
|
366
|
-
request = model.addRequest(parsedRequest, initVariableData, attempt, agent, agentSlashCommandPart?.command);
|
|
370
|
+
request = model.addRequest(parsedRequest, initVariableData, attempt, agent, agentSlashCommandPart?.command, options?.locationData);
|
|
367
371
|
completeResponseCreated();
|
|
368
372
|
const variableData = await this.chatVariablesService.resolveVariables(parsedRequest, options?.attachedContext, model, progressCallback, token);
|
|
369
373
|
model.updateRequest(request, variableData);
|
|
@@ -379,7 +383,7 @@ let ChatService = class ChatService extends Disposable {
|
|
|
379
383
|
enableCommandDetection,
|
|
380
384
|
attempt,
|
|
381
385
|
location,
|
|
382
|
-
locationData:
|
|
386
|
+
locationData: request.locationData,
|
|
383
387
|
acceptedConfirmationData: options?.acceptedConfirmationData,
|
|
384
388
|
rejectedConfirmationData: options?.rejectedConfirmationData,
|
|
385
389
|
};
|