@codingame/monaco-vscode-chat-service-override 8.0.2 → 8.0.4
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.4",
|
|
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.4"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -204,7 +204,7 @@ function registerChatCodeBlockActions() {
|
|
|
204
204
|
constructor() {
|
|
205
205
|
super({
|
|
206
206
|
id: 'workbench.action.chat.copyCodeBlock',
|
|
207
|
-
title: ( localize2(
|
|
207
|
+
title: ( localize2(7109, "Copy")),
|
|
208
208
|
f1: false,
|
|
209
209
|
category: CHAT_CATEGORY,
|
|
210
210
|
icon: Codicon.copy,
|
|
@@ -289,7 +289,7 @@ function registerChatCodeBlockActions() {
|
|
|
289
289
|
constructor() {
|
|
290
290
|
super({
|
|
291
291
|
id: 'workbench.action.chat.applyInEditor',
|
|
292
|
-
title: ( localize2(
|
|
292
|
+
title: ( localize2(7110, "Apply in Editor")),
|
|
293
293
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
294
294
|
f1: true,
|
|
295
295
|
category: CHAT_CATEGORY,
|
|
@@ -338,7 +338,7 @@ function registerChatCodeBlockActions() {
|
|
|
338
338
|
try {
|
|
339
339
|
const edits = await progressService.withProgress({ location: ProgressLocation.Notification, delay: 500, sticky: true, cancellable: true }, async (progress) => {
|
|
340
340
|
for (const provider of mappedEditsProviders) {
|
|
341
|
-
progress.report({ message: ( localize(
|
|
341
|
+
progress.report({ message: ( localize(7111, "Applying code block using {0}...", provider.displayName)) });
|
|
342
342
|
const mappedEdits = await provider.provideMappedEdits(activeModel, [codeBlockActionContext.code], { documents: docRefs }, cancellationTokenSource.token);
|
|
343
343
|
if (mappedEdits) {
|
|
344
344
|
return mappedEdits;
|
|
@@ -351,7 +351,7 @@ function registerChatCodeBlockActions() {
|
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
catch (e) {
|
|
354
|
-
notificationService.notify({ severity: Severity$1.Error, message: ( localize(
|
|
354
|
+
notificationService.notify({ severity: Severity$1.Error, message: ( localize(7112, "Failed to apply code block: {0}", e.message)) });
|
|
355
355
|
}
|
|
356
356
|
finally {
|
|
357
357
|
cancellationTokenSource.dispose();
|
|
@@ -364,7 +364,7 @@ function registerChatCodeBlockActions() {
|
|
|
364
364
|
constructor() {
|
|
365
365
|
super({
|
|
366
366
|
id: 'workbench.action.chat.insertCodeBlock',
|
|
367
|
-
title: ( localize2(
|
|
367
|
+
title: ( localize2(7113, "Insert At Cursor")),
|
|
368
368
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
369
369
|
f1: true,
|
|
370
370
|
category: CHAT_CATEGORY,
|
|
@@ -391,7 +391,7 @@ function registerChatCodeBlockActions() {
|
|
|
391
391
|
constructor() {
|
|
392
392
|
super({
|
|
393
393
|
id: 'workbench.action.chat.insertIntoNewFile',
|
|
394
|
-
title: ( localize2(
|
|
394
|
+
title: ( localize2(7114, "Insert into New File")),
|
|
395
395
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
396
396
|
f1: true,
|
|
397
397
|
category: CHAT_CATEGORY,
|
|
@@ -441,7 +441,7 @@ function registerChatCodeBlockActions() {
|
|
|
441
441
|
constructor() {
|
|
442
442
|
super({
|
|
443
443
|
id: 'workbench.action.chat.runInTerminal',
|
|
444
|
-
title: ( localize2(
|
|
444
|
+
title: ( localize2(7115, "Insert into Terminal")),
|
|
445
445
|
precondition: CONTEXT_CHAT_ENABLED,
|
|
446
446
|
f1: true,
|
|
447
447
|
category: CHAT_CATEGORY,
|
|
@@ -541,7 +541,7 @@ function registerChatCodeBlockActions() {
|
|
|
541
541
|
constructor() {
|
|
542
542
|
super({
|
|
543
543
|
id: 'workbench.action.chat.nextCodeBlock',
|
|
544
|
-
title: ( localize2(
|
|
544
|
+
title: ( localize2(7116, "Next Code Block")),
|
|
545
545
|
keybinding: {
|
|
546
546
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageDown,
|
|
547
547
|
mac: { primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageDown, },
|
|
@@ -561,7 +561,7 @@ function registerChatCodeBlockActions() {
|
|
|
561
561
|
constructor() {
|
|
562
562
|
super({
|
|
563
563
|
id: 'workbench.action.chat.previousCodeBlock',
|
|
564
|
-
title: ( localize2(
|
|
564
|
+
title: ( localize2(7117, "Previous Code Block")),
|
|
565
565
|
keybinding: {
|
|
566
566
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageUp,
|
|
567
567
|
mac: { primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageUp, },
|
|
@@ -617,7 +617,7 @@ function registerChatCodeCompareBlockActions() {
|
|
|
617
617
|
constructor() {
|
|
618
618
|
super({
|
|
619
619
|
id: 'workbench.action.chat.applyCompareEdits',
|
|
620
|
-
title: ( localize2(
|
|
620
|
+
title: ( localize2(7118, "Apply Edits")),
|
|
621
621
|
f1: false,
|
|
622
622
|
category: CHAT_CATEGORY,
|
|
623
623
|
icon: Codicon.check,
|
|
@@ -647,7 +647,7 @@ function registerChatCodeCompareBlockActions() {
|
|
|
647
647
|
constructor() {
|
|
648
648
|
super({
|
|
649
649
|
id: 'workbench.action.chat.discardCompareEdits',
|
|
650
|
-
title: ( localize2(
|
|
650
|
+
title: ( localize2(7119, "Discard Edits")),
|
|
651
651
|
f1: false,
|
|
652
652
|
category: CHAT_CATEGORY,
|
|
653
653
|
icon: Codicon.trash,
|
|
@@ -11,7 +11,7 @@ function registerChatCopyActions() {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
super({
|
|
13
13
|
id: 'workbench.action.chat.copyAll',
|
|
14
|
-
title: ( localize2(
|
|
14
|
+
title: ( localize2(7107, "Copy All")),
|
|
15
15
|
f1: false,
|
|
16
16
|
category: CHAT_CATEGORY,
|
|
17
17
|
menu: {
|
|
@@ -41,7 +41,7 @@ function registerChatCopyActions() {
|
|
|
41
41
|
constructor() {
|
|
42
42
|
super({
|
|
43
43
|
id: 'workbench.action.chat.copyItem',
|
|
44
|
-
title: ( localize2(
|
|
44
|
+
title: ( localize2(7108, "Copy")),
|
|
45
45
|
f1: false,
|
|
46
46
|
category: CHAT_CATEGORY,
|
|
47
47
|
menu: {
|