@codingame/monaco-vscode-notebook-service-override 10.1.1 → 10.1.3
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 +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +27 -27
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.esm.js +4 -0
- package/workers/notebook.worker.js +1 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-notebook-service-override",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git@github.com
|
|
12
|
+
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"private": false,
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.1.
|
|
32
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.1.3",
|
|
33
33
|
"marked": "~14.0.0"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -194,8 +194,8 @@ class EmptyTextEditorHintContentWidget {
|
|
|
194
194
|
getActions: () => {
|
|
195
195
|
return [{
|
|
196
196
|
id: 'workench.action.disableEmptyEditorHint',
|
|
197
|
-
label: ( localize(
|
|
198
|
-
tooltip: ( localize(
|
|
197
|
+
label: ( localize(10900, "Disable Empty Editor Hint")),
|
|
198
|
+
tooltip: ( localize(10900, "Disable Empty Editor Hint")),
|
|
199
199
|
enabled: true,
|
|
200
200
|
class: undefined,
|
|
201
201
|
run: () => {
|
|
@@ -233,7 +233,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
233
233
|
const keybindingHintLabel = keybindingHint?.getLabel();
|
|
234
234
|
if (keybindingHint && keybindingHintLabel) {
|
|
235
235
|
const actionPart = ( localize(
|
|
236
|
-
|
|
236
|
+
10901,
|
|
237
237
|
'Press {0} to ask {1} to do something. ',
|
|
238
238
|
keybindingHintLabel,
|
|
239
239
|
providerName
|
|
@@ -264,7 +264,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
264
264
|
this.toDispose.add(addDisposableListener(label.element, EventType.CLICK, handleClick));
|
|
265
265
|
}
|
|
266
266
|
hintElement.appendChild(after);
|
|
267
|
-
const typeToDismiss = ( localize(
|
|
267
|
+
const typeToDismiss = ( localize(10902, 'Start typing to dismiss.'));
|
|
268
268
|
const textHint2 = $('span', undefined, typeToDismiss);
|
|
269
269
|
textHint2.style.fontStyle = 'italic';
|
|
270
270
|
hintElement.appendChild(textHint2);
|
|
@@ -272,7 +272,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
272
272
|
}
|
|
273
273
|
else {
|
|
274
274
|
const hintMsg = ( localize(
|
|
275
|
-
|
|
275
|
+
10903,
|
|
276
276
|
'[[Ask {0} to do something]] or start typing to dismiss.',
|
|
277
277
|
providerName
|
|
278
278
|
));
|
|
@@ -332,7 +332,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
332
332
|
}
|
|
333
333
|
};
|
|
334
334
|
const hintMsg = ( localize(
|
|
335
|
-
|
|
335
|
+
10904,
|
|
336
336
|
'[[Select a language]], or [[fill with template]], or [[open a different editor]] to get started.\nStart typing to dismiss or [[don\'t show]] this again.'
|
|
337
337
|
));
|
|
338
338
|
const hintElement = renderFormattedText(hintMsg, {
|
|
@@ -343,7 +343,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
343
343
|
const keybindingsLookup = [ChangeLanguageAction.ID, ApplyFileSnippetAction.Id, 'welcome.showNewFileEntries'];
|
|
344
344
|
const keybindingLabels = ( (keybindingsLookup.map((id) => this.keybindingService.lookupKeybinding(id)?.getLabel() ?? id)));
|
|
345
345
|
const ariaLabel = ( localize(
|
|
346
|
-
|
|
346
|
+
10905,
|
|
347
347
|
'Execute {0} to select a language, execute {1} to fill with template, or execute {2} to open a different editor and get started. Start typing to dismiss.',
|
|
348
348
|
...keybindingLabels
|
|
349
349
|
));
|
|
@@ -364,7 +364,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
364
364
|
const { hintElement, ariaLabel } = !inlineChatProviders.length ? this._getHintDefault() : this._getHintInlineChat(inlineChatProviders);
|
|
365
365
|
this.domNode.append(hintElement);
|
|
366
366
|
this.ariaLabel = ariaLabel.concat(( localize(
|
|
367
|
-
|
|
367
|
+
10906,
|
|
368
368
|
' Toggle {0} in settings to disable this hint.',
|
|
369
369
|
"accessibility.verbosity.emptyEditorHint"
|
|
370
370
|
)));
|
|
@@ -25,7 +25,7 @@ registerAction2(class extends NotebookAction {
|
|
|
25
25
|
constructor() {
|
|
26
26
|
super({
|
|
27
27
|
id: 'notebook.cell.chat.accept',
|
|
28
|
-
title: ( localize2(
|
|
28
|
+
title: ( localize2(10876, "Make Request")),
|
|
29
29
|
icon: Codicon.send,
|
|
30
30
|
keybinding: {
|
|
31
31
|
when: ( (ContextKeyExpr.and(
|
|
@@ -53,7 +53,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
53
53
|
constructor() {
|
|
54
54
|
super({
|
|
55
55
|
id: 'notebook.cell.chat.arrowOutUp',
|
|
56
|
-
title: ( localize(
|
|
56
|
+
title: ( localize(10877, 'Cursor Up')),
|
|
57
57
|
keybinding: {
|
|
58
58
|
when: ( (ContextKeyExpr.and(
|
|
59
59
|
CTX_NOTEBOOK_CELL_CHAT_FOCUSED,
|
|
@@ -88,7 +88,7 @@ registerAction2(class extends NotebookAction {
|
|
|
88
88
|
constructor() {
|
|
89
89
|
super({
|
|
90
90
|
id: 'notebook.cell.chat.arrowOutDown',
|
|
91
|
-
title: ( localize(
|
|
91
|
+
title: ( localize(10878, 'Cursor Down')),
|
|
92
92
|
keybinding: {
|
|
93
93
|
when: ( (ContextKeyExpr.and(
|
|
94
94
|
CTX_NOTEBOOK_CELL_CHAT_FOCUSED,
|
|
@@ -111,7 +111,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
111
111
|
constructor() {
|
|
112
112
|
super({
|
|
113
113
|
id: 'notebook.cell.focusChatWidget',
|
|
114
|
-
title: ( localize(
|
|
114
|
+
title: ( localize(10879, 'Focus Chat Widget')),
|
|
115
115
|
keybinding: {
|
|
116
116
|
when: ( (ContextKeyExpr.and(
|
|
117
117
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -139,7 +139,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
139
139
|
constructor() {
|
|
140
140
|
super({
|
|
141
141
|
id: 'notebook.cell.focusNextChatWidget',
|
|
142
|
-
title: ( localize(
|
|
142
|
+
title: ( localize(10880, 'Focus Next Cell Chat Widget')),
|
|
143
143
|
keybinding: {
|
|
144
144
|
when: ( (ContextKeyExpr.and(
|
|
145
145
|
(CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()),
|
|
@@ -173,7 +173,7 @@ registerAction2(class extends NotebookAction {
|
|
|
173
173
|
constructor() {
|
|
174
174
|
super({
|
|
175
175
|
id: 'notebook.cell.chat.stop',
|
|
176
|
-
title: ( localize2(
|
|
176
|
+
title: ( localize2(10881, "Stop Request")),
|
|
177
177
|
icon: Codicon.debugStop,
|
|
178
178
|
menu: {
|
|
179
179
|
id: MENU_CELL_CHAT_INPUT,
|
|
@@ -192,7 +192,7 @@ registerAction2(class extends NotebookAction {
|
|
|
192
192
|
constructor() {
|
|
193
193
|
super({
|
|
194
194
|
id: 'notebook.cell.chat.close',
|
|
195
|
-
title: ( localize2(
|
|
195
|
+
title: ( localize2(10882, "Close Chat")),
|
|
196
196
|
icon: Codicon.close,
|
|
197
197
|
menu: {
|
|
198
198
|
id: MENU_CELL_CHAT_WIDGET,
|
|
@@ -210,10 +210,10 @@ registerAction2(class extends NotebookAction {
|
|
|
210
210
|
constructor() {
|
|
211
211
|
super({
|
|
212
212
|
id: 'notebook.cell.chat.acceptChanges',
|
|
213
|
-
title: ( localize2(
|
|
214
|
-
shortTitle: ( localize(
|
|
213
|
+
title: ( localize2(10883, "Accept Changes")),
|
|
214
|
+
shortTitle: ( localize(10884, 'Accept')),
|
|
215
215
|
icon: Codicon.check,
|
|
216
|
-
tooltip: ( localize(
|
|
216
|
+
tooltip: ( localize(10885, 'Accept Changes')),
|
|
217
217
|
keybinding: [
|
|
218
218
|
{
|
|
219
219
|
when: ( (ContextKeyExpr.and(
|
|
@@ -264,7 +264,7 @@ registerAction2(class extends NotebookAction {
|
|
|
264
264
|
constructor() {
|
|
265
265
|
super({
|
|
266
266
|
id: 'notebook.cell.chat.discard',
|
|
267
|
-
title: ( localize(
|
|
267
|
+
title: ( localize(10886, 'Discard')),
|
|
268
268
|
icon: Codicon.discard,
|
|
269
269
|
keybinding: {
|
|
270
270
|
when: ( (ContextKeyExpr.and(
|
|
@@ -310,12 +310,12 @@ registerAction2(class extends NotebookAction {
|
|
|
310
310
|
super({
|
|
311
311
|
id: 'notebook.cell.chat.start',
|
|
312
312
|
title: {
|
|
313
|
-
value: '$(sparkle) ' + ( localize(
|
|
313
|
+
value: '$(sparkle) ' + ( localize(10887, "Generate")),
|
|
314
314
|
original: '$(sparkle) Generate',
|
|
315
315
|
},
|
|
316
|
-
tooltip: ( localize(
|
|
316
|
+
tooltip: ( localize(10888, "Start Chat to Generate Code")),
|
|
317
317
|
metadata: {
|
|
318
|
-
description: ( localize(
|
|
318
|
+
description: ( localize(10888, "Start Chat to Generate Code")),
|
|
319
319
|
args: [
|
|
320
320
|
{
|
|
321
321
|
name: 'args',
|
|
@@ -413,10 +413,10 @@ registerAction2(class extends NotebookAction {
|
|
|
413
413
|
super({
|
|
414
414
|
id: 'notebook.cell.chat.startAtTop',
|
|
415
415
|
title: {
|
|
416
|
-
value: '$(sparkle) ' + ( localize(
|
|
416
|
+
value: '$(sparkle) ' + ( localize(10887, "Generate")),
|
|
417
417
|
original: '$(sparkle) Generate',
|
|
418
418
|
},
|
|
419
|
-
tooltip: ( localize(
|
|
419
|
+
tooltip: ( localize(10888, "Start Chat to Generate Code")),
|
|
420
420
|
f1: false,
|
|
421
421
|
menu: [
|
|
422
422
|
{
|
|
@@ -443,8 +443,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
443
443
|
command: {
|
|
444
444
|
id: 'notebook.cell.chat.start',
|
|
445
445
|
icon: Codicon.sparkle,
|
|
446
|
-
title: ( localize(
|
|
447
|
-
tooltip: ( localize(
|
|
446
|
+
title: ( localize(10889, "Generate")),
|
|
447
|
+
tooltip: ( localize(10890, "Start Chat to Generate Code"))
|
|
448
448
|
},
|
|
449
449
|
order: -10,
|
|
450
450
|
group: 'navigation/add',
|
|
@@ -463,7 +463,7 @@ registerAction2(class extends NotebookAction {
|
|
|
463
463
|
constructor() {
|
|
464
464
|
super({
|
|
465
465
|
id: 'notebook.cell.chat.focus',
|
|
466
|
-
title: ( localize(
|
|
466
|
+
title: ( localize(10891, 'Focus Chat')),
|
|
467
467
|
keybinding: [
|
|
468
468
|
{
|
|
469
469
|
when: ( (ContextKeyExpr.and(
|
|
@@ -495,7 +495,7 @@ registerAction2(class extends NotebookAction {
|
|
|
495
495
|
constructor() {
|
|
496
496
|
super({
|
|
497
497
|
id: 'notebook.cell.chat.focusNextCell',
|
|
498
|
-
title: ( localize(
|
|
498
|
+
title: ( localize(10892, 'Focus Next Cell')),
|
|
499
499
|
keybinding: [
|
|
500
500
|
{
|
|
501
501
|
when: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
@@ -514,7 +514,7 @@ registerAction2(class extends NotebookAction {
|
|
|
514
514
|
constructor() {
|
|
515
515
|
super({
|
|
516
516
|
id: 'notebook.cell.chat.focusPreviousCell',
|
|
517
|
-
title: ( localize(
|
|
517
|
+
title: ( localize(10893, 'Focus Previous Cell')),
|
|
518
518
|
keybinding: [
|
|
519
519
|
{
|
|
520
520
|
when: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
@@ -533,7 +533,7 @@ registerAction2(class extends NotebookAction {
|
|
|
533
533
|
constructor() {
|
|
534
534
|
super({
|
|
535
535
|
id: 'notebook.cell.chat.previousFromHistory',
|
|
536
|
-
title: ( localize2(
|
|
536
|
+
title: ( localize2(10894, "Previous From History")),
|
|
537
537
|
precondition: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
538
538
|
keybinding: {
|
|
539
539
|
when: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
@@ -551,7 +551,7 @@ registerAction2(class extends NotebookAction {
|
|
|
551
551
|
constructor() {
|
|
552
552
|
super({
|
|
553
553
|
id: 'notebook.cell.chat.nextFromHistory',
|
|
554
|
-
title: ( localize2(
|
|
554
|
+
title: ( localize2(10895, "Next From History")),
|
|
555
555
|
precondition: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
556
556
|
keybinding: {
|
|
557
557
|
when: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
@@ -569,7 +569,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
569
569
|
constructor() {
|
|
570
570
|
super({
|
|
571
571
|
id: 'notebook.cell.chat.restore',
|
|
572
|
-
title: ( localize2(
|
|
572
|
+
title: ( localize2(10896, "Generate")),
|
|
573
573
|
icon: Codicon.sparkle,
|
|
574
574
|
menu: {
|
|
575
575
|
id: MenuId.NotebookCellTitle,
|
|
@@ -605,9 +605,9 @@ class AcceptChangesAndRun extends AbstractInlineChatAction {
|
|
|
605
605
|
constructor() {
|
|
606
606
|
super({
|
|
607
607
|
id: 'notebook.inlineChat.acceptChangesAndRun',
|
|
608
|
-
title: ( localize2(
|
|
609
|
-
shortTitle: ( localize(
|
|
610
|
-
tooltip: ( localize(
|
|
608
|
+
title: ( localize2(10897, "Accept and Run")),
|
|
609
|
+
shortTitle: ( localize(10898, 'Accept & Run')),
|
|
610
|
+
tooltip: ( localize(10899, 'Accept the changes and run the cell')),
|
|
611
611
|
icon: Codicon.check,
|
|
612
612
|
f1: true,
|
|
613
613
|
precondition: ( (ContextKeyExpr.and(
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { SimpleWorkerServer } from 'vscode/vscode/vs/base/common/worker/simpleWorker';
|
|
3
|
-
|
|
4
|
-
const simpleWorker = new SimpleWorkerServer((msg) => {
|
|
5
|
-
globalThis.postMessage(msg);
|
|
6
|
-
}, create);
|
|
7
|
-
globalThis.onmessage = (e) => {
|
|
8
|
-
simpleWorker.onmessage(e.data);
|
|
9
|
-
};
|
|
1
|
+
import '../vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.esm.js';
|