@codingame/monaco-vscode-notebook-service-override 10.0.1 → 10.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 +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +27 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +22 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +60 -60
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-notebook-service-override",
|
|
3
|
-
"version": "10.0
|
|
3
|
+
"version": "10.1.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.0
|
|
32
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.1.0",
|
|
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(10857, "Disable Empty Editor Hint")),
|
|
198
|
+
tooltip: ( localize(10857, "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
|
+
10858,
|
|
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(10859, '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
|
+
10860,
|
|
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
|
+
10861,
|
|
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
|
+
10862,
|
|
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
|
+
10863,
|
|
368
368
|
' Toggle {0} in settings to disable this hint.',
|
|
369
369
|
"accessibility.verbosity.emptyEditorHint"
|
|
370
370
|
)));
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js
CHANGED
|
@@ -24,7 +24,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
24
24
|
constructor() {
|
|
25
25
|
super({
|
|
26
26
|
id: MOVE_CELL_UP_COMMAND_ID,
|
|
27
|
-
title: ( localize2(
|
|
27
|
+
title: ( localize2(8086, "Move Cell Up")),
|
|
28
28
|
icon: moveUpIcon,
|
|
29
29
|
keybinding: {
|
|
30
30
|
primary: 512 | 16 ,
|
|
@@ -47,7 +47,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
47
47
|
constructor() {
|
|
48
48
|
super({
|
|
49
49
|
id: MOVE_CELL_DOWN_COMMAND_ID,
|
|
50
|
-
title: ( localize2(
|
|
50
|
+
title: ( localize2(8087, "Move Cell Down")),
|
|
51
51
|
icon: moveDownIcon,
|
|
52
52
|
keybinding: {
|
|
53
53
|
primary: 512 | 18 ,
|
|
@@ -70,7 +70,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
70
70
|
constructor() {
|
|
71
71
|
super({
|
|
72
72
|
id: COPY_CELL_UP_COMMAND_ID,
|
|
73
|
-
title: ( localize2(
|
|
73
|
+
title: ( localize2(8088, "Copy Cell Up")),
|
|
74
74
|
keybinding: {
|
|
75
75
|
primary: 512 | 1024 | 16 ,
|
|
76
76
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, (InputFocusedContext.toNegated())))),
|
|
@@ -86,7 +86,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
86
86
|
constructor() {
|
|
87
87
|
super({
|
|
88
88
|
id: COPY_CELL_DOWN_COMMAND_ID,
|
|
89
|
-
title: ( localize2(
|
|
89
|
+
title: ( localize2(8089, "Copy Cell Down")),
|
|
90
90
|
keybinding: {
|
|
91
91
|
primary: 512 | 1024 | 18 ,
|
|
92
92
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, (InputFocusedContext.toNegated())))),
|
|
@@ -112,7 +112,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
112
112
|
constructor() {
|
|
113
113
|
super({
|
|
114
114
|
id: SPLIT_CELL_COMMAND_ID,
|
|
115
|
-
title: ( localize2(
|
|
115
|
+
title: ( localize2(8090, "Split Cell")),
|
|
116
116
|
menu: {
|
|
117
117
|
id: MenuId.NotebookCellTitle,
|
|
118
118
|
when: ( (ContextKeyExpr.and(
|
|
@@ -182,7 +182,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
182
182
|
constructor() {
|
|
183
183
|
super({
|
|
184
184
|
id: JOIN_CELL_ABOVE_COMMAND_ID,
|
|
185
|
-
title: ( localize2(
|
|
185
|
+
title: ( localize2(8091, "Join With Previous Cell")),
|
|
186
186
|
keybinding: {
|
|
187
187
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
188
188
|
primary: 256 | 512 | 1024 | 40 ,
|
|
@@ -205,7 +205,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
205
205
|
constructor() {
|
|
206
206
|
super({
|
|
207
207
|
id: JOIN_CELL_BELOW_COMMAND_ID,
|
|
208
|
-
title: ( localize2(
|
|
208
|
+
title: ( localize2(8092, "Join With Next Cell")),
|
|
209
209
|
keybinding: {
|
|
210
210
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
211
211
|
primary: 256 | 512 | 40 ,
|
|
@@ -228,7 +228,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
228
228
|
constructor() {
|
|
229
229
|
super({
|
|
230
230
|
id: JOIN_SELECTED_CELLS_COMMAND_ID,
|
|
231
|
-
title: ( localize2(
|
|
231
|
+
title: ( localize2(8093, "Join Selected Cells")),
|
|
232
232
|
menu: {
|
|
233
233
|
id: MenuId.NotebookCellTitle,
|
|
234
234
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE))),
|
|
@@ -249,7 +249,7 @@ registerAction2(class ChangeCellToCodeAction extends NotebookMultiCellAction {
|
|
|
249
249
|
constructor() {
|
|
250
250
|
super({
|
|
251
251
|
id: CHANGE_CELL_TO_CODE_COMMAND_ID,
|
|
252
|
-
title: ( localize2(
|
|
252
|
+
title: ( localize2(8094, "Change Cell to Code")),
|
|
253
253
|
keybinding: {
|
|
254
254
|
when: ( (ContextKeyExpr.and(
|
|
255
255
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -283,7 +283,7 @@ registerAction2(class ChangeCellToMarkdownAction extends NotebookMultiCellAction
|
|
|
283
283
|
constructor() {
|
|
284
284
|
super({
|
|
285
285
|
id: CHANGE_CELL_TO_MARKDOWN_COMMAND_ID,
|
|
286
|
-
title: ( localize2(
|
|
286
|
+
title: ( localize2(8095, "Change Cell to Markdown")),
|
|
287
287
|
keybinding: {
|
|
288
288
|
when: ( (ContextKeyExpr.and(
|
|
289
289
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -325,7 +325,7 @@ registerAction2(class CollapseCellInputAction extends NotebookMultiCellAction {
|
|
|
325
325
|
constructor() {
|
|
326
326
|
super({
|
|
327
327
|
id: COLLAPSE_CELL_INPUT_COMMAND_ID,
|
|
328
|
-
title: ( localize2(
|
|
328
|
+
title: ( localize2(8096, "Collapse Cell Input")),
|
|
329
329
|
keybinding: {
|
|
330
330
|
when: ( (ContextKeyExpr.and(
|
|
331
331
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -353,7 +353,7 @@ registerAction2(class ExpandCellInputAction extends NotebookMultiCellAction {
|
|
|
353
353
|
constructor() {
|
|
354
354
|
super({
|
|
355
355
|
id: EXPAND_CELL_INPUT_COMMAND_ID,
|
|
356
|
-
title: ( localize2(
|
|
356
|
+
title: ( localize2(8097, "Expand Cell Input")),
|
|
357
357
|
keybinding: {
|
|
358
358
|
when: ( (ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_INPUT_COLLAPSED))),
|
|
359
359
|
primary: KeyChord(2048 | 41 , 2048 | 33 ),
|
|
@@ -377,7 +377,7 @@ registerAction2(class CollapseCellOutputAction extends NotebookMultiCellAction {
|
|
|
377
377
|
constructor() {
|
|
378
378
|
super({
|
|
379
379
|
id: COLLAPSE_CELL_OUTPUT_COMMAND_ID,
|
|
380
|
-
title: ( localize2(
|
|
380
|
+
title: ( localize2(8098, "Collapse Cell Output")),
|
|
381
381
|
keybinding: {
|
|
382
382
|
when: ( (ContextKeyExpr.and(
|
|
383
383
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -403,7 +403,7 @@ registerAction2(class ExpandCellOuputAction extends NotebookMultiCellAction {
|
|
|
403
403
|
constructor() {
|
|
404
404
|
super({
|
|
405
405
|
id: EXPAND_CELL_OUTPUT_COMMAND_ID,
|
|
406
|
-
title: ( localize2(
|
|
406
|
+
title: ( localize2(8099, "Expand Cell Output")),
|
|
407
407
|
keybinding: {
|
|
408
408
|
when: ( (ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_OUTPUT_COLLAPSED))),
|
|
409
409
|
primary: KeyChord(2048 | 41 , 50 ),
|
|
@@ -425,9 +425,9 @@ registerAction2(class extends NotebookMultiCellAction {
|
|
|
425
425
|
super({
|
|
426
426
|
id: TOGGLE_CELL_OUTPUTS_COMMAND_ID,
|
|
427
427
|
precondition: NOTEBOOK_CELL_LIST_FOCUSED,
|
|
428
|
-
title: ( localize2(
|
|
428
|
+
title: ( localize2(8100, "Toggle Outputs")),
|
|
429
429
|
metadata: {
|
|
430
|
-
description: ( localize(
|
|
430
|
+
description: ( localize(8100, "Toggle Outputs")),
|
|
431
431
|
args: cellExecutionArgs
|
|
432
432
|
}
|
|
433
433
|
});
|
|
@@ -452,7 +452,7 @@ registerAction2(class CollapseAllCellInputsAction extends NotebookMultiCellActio
|
|
|
452
452
|
constructor() {
|
|
453
453
|
super({
|
|
454
454
|
id: COLLAPSE_ALL_CELL_INPUTS_COMMAND_ID,
|
|
455
|
-
title: ( localize2(
|
|
455
|
+
title: ( localize2(8101, "Collapse All Cell Inputs")),
|
|
456
456
|
f1: true,
|
|
457
457
|
});
|
|
458
458
|
}
|
|
@@ -464,7 +464,7 @@ registerAction2(class ExpandAllCellInputsAction extends NotebookMultiCellAction
|
|
|
464
464
|
constructor() {
|
|
465
465
|
super({
|
|
466
466
|
id: EXPAND_ALL_CELL_INPUTS_COMMAND_ID,
|
|
467
|
-
title: ( localize2(
|
|
467
|
+
title: ( localize2(8102, "Expand All Cell Inputs")),
|
|
468
468
|
f1: true
|
|
469
469
|
});
|
|
470
470
|
}
|
|
@@ -476,7 +476,7 @@ registerAction2(class CollapseAllCellOutputsAction extends NotebookMultiCellActi
|
|
|
476
476
|
constructor() {
|
|
477
477
|
super({
|
|
478
478
|
id: COLLAPSE_ALL_CELL_OUTPUTS_COMMAND_ID,
|
|
479
|
-
title: ( localize2(
|
|
479
|
+
title: ( localize2(8103, "Collapse All Cell Outputs")),
|
|
480
480
|
f1: true,
|
|
481
481
|
});
|
|
482
482
|
}
|
|
@@ -488,7 +488,7 @@ registerAction2(class ExpandAllCellOutputsAction extends NotebookMultiCellAction
|
|
|
488
488
|
constructor() {
|
|
489
489
|
super({
|
|
490
490
|
id: EXPAND_ALL_CELL_OUTPUTS_COMMAND_ID,
|
|
491
|
-
title: ( localize2(
|
|
491
|
+
title: ( localize2(8104, "Expand All Cell Outputs")),
|
|
492
492
|
f1: true
|
|
493
493
|
});
|
|
494
494
|
}
|
|
@@ -500,7 +500,7 @@ registerAction2(class ToggleCellOutputScrolling extends NotebookMultiCellAction
|
|
|
500
500
|
constructor() {
|
|
501
501
|
super({
|
|
502
502
|
id: TOGGLE_CELL_OUTPUT_SCROLLING,
|
|
503
|
-
title: ( localize2(
|
|
503
|
+
title: ( localize2(8105, "Toggle Scroll Cell Output")),
|
|
504
504
|
keybinding: {
|
|
505
505
|
when: ( (ContextKeyExpr.and(
|
|
506
506
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -13,7 +13,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID,
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(10864, "Show Cell Failure Actions")),
|
|
17
17
|
precondition: ( (ContextKeyExpr.and(
|
|
18
18
|
NOTEBOOK_CELL_FOCUSED,
|
|
19
19
|
NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS,
|
|
@@ -45,7 +45,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
45
45
|
const editor = findTargetCellEditor(context, context.cell);
|
|
46
46
|
if (editor) {
|
|
47
47
|
const controller = CodeActionController.get(editor);
|
|
48
|
-
controller?.manualTriggerAtCurrentPosition(( localize(
|
|
48
|
+
controller?.manualTriggerAtCurrentPosition(( localize(10865, "No code actions available")), CodeActionTriggerSource.Default, { include: CodeActionKind.QuickFix });
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -40,7 +40,7 @@ let DiagnosticCellStatusBarItem = class DiagnosticCellStatusBarItem extends Disp
|
|
|
40
40
|
let item;
|
|
41
41
|
if (error?.location) {
|
|
42
42
|
const keybinding = this.keybindingService.lookupKeybinding(OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID)?.getLabel();
|
|
43
|
-
const tooltip = ( localize(
|
|
43
|
+
const tooltip = ( localize(10866, "Quick Actions {0}", `(${keybinding})`));
|
|
44
44
|
item = {
|
|
45
45
|
text: `$(sparkle)`,
|
|
46
46
|
tooltip,
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js
CHANGED
|
@@ -39,7 +39,7 @@ let CellStatusBarLanguagePickerProvider = class CellStatusBarLanguagePickerProvi
|
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
41
41
|
const searchTooltip = ( localize(
|
|
42
|
-
|
|
42
|
+
8068,
|
|
43
43
|
"Unknown cell language. Click to search for '{0}' extensions",
|
|
44
44
|
cell.language
|
|
45
45
|
));
|
|
@@ -55,7 +55,7 @@ let CellStatusBarLanguagePickerProvider = class CellStatusBarLanguagePickerProvi
|
|
|
55
55
|
statusBarItems.push({
|
|
56
56
|
text: displayLanguage,
|
|
57
57
|
command: CHANGE_CELL_LANGUAGE,
|
|
58
|
-
tooltip: ( localize(
|
|
58
|
+
tooltip: ( localize(8069, "Select Cell Language Mode")),
|
|
59
59
|
alignment: 2 ,
|
|
60
60
|
priority: -Number.MAX_SAFE_INTEGER
|
|
61
61
|
});
|
|
@@ -119,7 +119,7 @@ let CellStatusBarLanguageDetectionProvider = class CellStatusBarLanguageDetectio
|
|
|
119
119
|
const items = [];
|
|
120
120
|
if (cached.guess && currentLanguageId !== cached.guess) {
|
|
121
121
|
const detectedName = this._languageService.getLanguageName(cached.guess) || cached.guess;
|
|
122
|
-
let tooltip = ( localize(
|
|
122
|
+
let tooltip = ( localize(8070, "Accept Detected Language: {0}", detectedName));
|
|
123
123
|
const keybinding = this._keybindingService.lookupKeybinding(DETECT_CELL_LANGUAGE);
|
|
124
124
|
const label = keybinding?.getLabel();
|
|
125
125
|
if (label) {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js
CHANGED
|
@@ -347,7 +347,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
347
347
|
constructor() {
|
|
348
348
|
super({
|
|
349
349
|
id: COPY_CELL_COMMAND_ID,
|
|
350
|
-
title: ( localize(
|
|
350
|
+
title: ( localize(8021, "Copy Cell")),
|
|
351
351
|
menu: {
|
|
352
352
|
id: MenuId.NotebookCellTitle,
|
|
353
353
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -370,7 +370,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
370
370
|
constructor() {
|
|
371
371
|
super({
|
|
372
372
|
id: CUT_CELL_COMMAND_ID,
|
|
373
|
-
title: ( localize(
|
|
373
|
+
title: ( localize(8022, "Cut Cell")),
|
|
374
374
|
menu: {
|
|
375
375
|
id: MenuId.NotebookCellTitle,
|
|
376
376
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE))),
|
|
@@ -393,7 +393,7 @@ registerAction2(class extends NotebookAction {
|
|
|
393
393
|
constructor() {
|
|
394
394
|
super({
|
|
395
395
|
id: PASTE_CELL_COMMAND_ID,
|
|
396
|
-
title: ( localize(
|
|
396
|
+
title: ( localize(8023, "Paste Cell")),
|
|
397
397
|
menu: {
|
|
398
398
|
id: MenuId.NotebookCellTitle,
|
|
399
399
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE))),
|
|
@@ -425,7 +425,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
425
425
|
constructor() {
|
|
426
426
|
super({
|
|
427
427
|
id: PASTE_CELL_ABOVE_COMMAND_ID,
|
|
428
|
-
title: ( localize(
|
|
428
|
+
title: ( localize(8024, "Paste Cell Above")),
|
|
429
429
|
keybinding: {
|
|
430
430
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)))),
|
|
431
431
|
primary: 2048 | 1024 | 52 ,
|
|
@@ -469,7 +469,7 @@ registerAction2(class extends Action2 {
|
|
|
469
469
|
constructor() {
|
|
470
470
|
super({
|
|
471
471
|
id: 'workbench.action.toggleNotebookClipboardLog',
|
|
472
|
-
title: ( localize2(
|
|
472
|
+
title: ( localize2(8025, 'Toggle Notebook Clipboard Troubleshooting')),
|
|
473
473
|
category: Categories.Developer,
|
|
474
474
|
f1: true
|
|
475
475
|
});
|
|
@@ -486,7 +486,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
486
486
|
constructor() {
|
|
487
487
|
super({
|
|
488
488
|
id: 'notebook.cell.output.selectAll',
|
|
489
|
-
title: ( localize(
|
|
489
|
+
title: ( localize(8026, "Select All")),
|
|
490
490
|
keybinding: {
|
|
491
491
|
primary: 2048 | 31 ,
|
|
492
492
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED))),
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js
CHANGED
|
@@ -109,19 +109,19 @@ let KernelStatus = class KernelStatus extends Disposable {
|
|
|
109
109
|
}
|
|
110
110
|
const tooltip = kernel.description ?? kernel.detail ?? kernel.label;
|
|
111
111
|
this._kernelInfoElement.add(this._statusbarService.addEntry({
|
|
112
|
-
name: ( localize(
|
|
112
|
+
name: ( localize(8077, "Notebook Kernel Info")),
|
|
113
113
|
text: `$(notebook-kernel-select) ${kernel.label}`,
|
|
114
114
|
ariaLabel: kernel.label,
|
|
115
|
-
tooltip: isSuggested ? ( localize(
|
|
115
|
+
tooltip: isSuggested ? ( localize(8078, "{0} (suggestion)", tooltip)) : tooltip,
|
|
116
116
|
command: SELECT_KERNEL_ID,
|
|
117
117
|
}, SELECT_KERNEL_ID, 1 , 10));
|
|
118
118
|
this._kernelInfoElement.add(kernel.onDidChange(() => this._showKernelStatus(notebook)));
|
|
119
119
|
}
|
|
120
120
|
else {
|
|
121
121
|
this._kernelInfoElement.add(this._statusbarService.addEntry({
|
|
122
|
-
name: ( localize(
|
|
123
|
-
text: ( localize(
|
|
124
|
-
ariaLabel: ( localize(
|
|
122
|
+
name: ( localize(8079, "Notebook Kernel Selection")),
|
|
123
|
+
text: ( localize(8080, "Select Kernel")),
|
|
124
|
+
ariaLabel: ( localize(8080, "Select Kernel")),
|
|
125
125
|
command: SELECT_KERNEL_ID,
|
|
126
126
|
kind: 'prominent'
|
|
127
127
|
}, SELECT_KERNEL_ID, 1 , 10));
|
|
@@ -166,7 +166,7 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
|
|
|
166
166
|
return;
|
|
167
167
|
}
|
|
168
168
|
const entry = {
|
|
169
|
-
name: ( localize(
|
|
169
|
+
name: ( localize(8081, "Notebook Editor Selections")),
|
|
170
170
|
text: newText,
|
|
171
171
|
ariaLabel: newText,
|
|
172
172
|
command: CENTER_ACTIVE_CELL
|
|
@@ -190,8 +190,8 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
|
|
|
190
190
|
const numSelected = editor.getSelections().reduce((prev, range) => prev + (range.end - range.start), 0);
|
|
191
191
|
const totalCells = editor.getLength();
|
|
192
192
|
return numSelected > 1 ?
|
|
193
|
-
( localize(
|
|
194
|
-
( localize(
|
|
193
|
+
( localize(8082, "Cell {0} ({1} selected)", idxFocused, numSelected)) :
|
|
194
|
+
( localize(8083, "Cell {0} of {1}", idxFocused, totalCells));
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
197
|
ActiveCellStatus = ( (__decorate([
|
|
@@ -250,10 +250,10 @@ let NotebookIndentationStatus = class NotebookIndentationStatus extends Disposab
|
|
|
250
250
|
return;
|
|
251
251
|
}
|
|
252
252
|
const entry = {
|
|
253
|
-
name: ( localize(
|
|
253
|
+
name: ( localize(8084, "Notebook Indentation")),
|
|
254
254
|
text: newText,
|
|
255
255
|
ariaLabel: newText,
|
|
256
|
-
tooltip: ( localize(
|
|
256
|
+
tooltip: ( localize(8085, "Select Indentation")),
|
|
257
257
|
command: SELECT_NOTEBOOK_INDENTATION_ID
|
|
258
258
|
};
|
|
259
259
|
if (!this._accessor.value) {
|
|
@@ -20,7 +20,7 @@ registerAction2(class extends Action2 {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
super({
|
|
22
22
|
id: 'notebook.hideFind',
|
|
23
|
-
title: ( localize2(
|
|
23
|
+
title: ( localize2(8027, 'Hide Find in Notebook')),
|
|
24
24
|
keybinding: {
|
|
25
25
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED))),
|
|
26
26
|
primary: 9 ,
|
|
@@ -43,7 +43,7 @@ registerAction2(class extends NotebookMultiCellAction {
|
|
|
43
43
|
constructor() {
|
|
44
44
|
super({
|
|
45
45
|
id: 'notebook.find',
|
|
46
|
-
title: ( localize2(
|
|
46
|
+
title: ( localize2(8028, 'Find in Notebook')),
|
|
47
47
|
keybinding: {
|
|
48
48
|
when: ( (ContextKeyExpr.and(
|
|
49
49
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -29,7 +29,7 @@ registerAction2(class extends Action2 {
|
|
|
29
29
|
constructor() {
|
|
30
30
|
super({
|
|
31
31
|
id: 'notebook.format',
|
|
32
|
-
title: ( localize2(
|
|
32
|
+
title: ( localize2(8029, 'Format Notebook')),
|
|
33
33
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
34
34
|
precondition: ( (ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EDITABLE))),
|
|
35
35
|
keybinding: {
|
|
@@ -80,7 +80,7 @@ registerAction2(class extends Action2 {
|
|
|
80
80
|
}
|
|
81
81
|
return [];
|
|
82
82
|
}))));
|
|
83
|
-
await bulkEditService.apply( allCellEdits.flat(), { label: ( localize(
|
|
83
|
+
await bulkEditService.apply( allCellEdits.flat(), { label: ( localize(8030, "Format Notebook")), code: 'undoredo.formatNotebook', });
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
finally {
|
|
@@ -92,7 +92,7 @@ registerEditorAction(class FormatCellAction extends EditorAction {
|
|
|
92
92
|
constructor() {
|
|
93
93
|
super({
|
|
94
94
|
id: 'notebook.formatCell',
|
|
95
|
-
label: ( localize(
|
|
95
|
+
label: ( localize(8031, "Format Cell")),
|
|
96
96
|
alias: 'Format Cell',
|
|
97
97
|
precondition: ( (ContextKeyExpr.and(
|
|
98
98
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -164,7 +164,7 @@ let FormatOnCellExecutionParticipant = class FormatOnCellExecutionParticipant {
|
|
|
164
164
|
}
|
|
165
165
|
return [];
|
|
166
166
|
}))));
|
|
167
|
-
await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(
|
|
167
|
+
await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(8032, "Format Cells")), code: 'undoredo.notebooks.onWillExecuteFormat', });
|
|
168
168
|
}
|
|
169
169
|
finally {
|
|
170
170
|
disposable.dispose();
|
|
@@ -63,7 +63,7 @@ registerAction2(class NotebookClearNotebookLayoutAction extends Action2 {
|
|
|
63
63
|
constructor() {
|
|
64
64
|
super({
|
|
65
65
|
id: 'workbench.notebook.layout.gettingStarted',
|
|
66
|
-
title: ( localize2(
|
|
66
|
+
title: ( localize2(8043, "Reset notebook getting started")),
|
|
67
67
|
f1: true,
|
|
68
68
|
precondition: ( (ContextKeyExpr.equals(`config.${NotebookSetting.openGettingStarted}`, true))),
|
|
69
69
|
category: Categories.Developer,
|
|
@@ -9,7 +9,7 @@ class ToggleCellToolbarPositionAction extends Action2 {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
super({
|
|
11
11
|
id: TOGGLE_CELL_TOOLBAR_POSITION,
|
|
12
|
-
title: ( localize2(
|
|
12
|
+
title: ( localize2(8044, 'Toggle Cell Toolbar Position')),
|
|
13
13
|
menu: [{
|
|
14
14
|
id: MenuId.NotebookCellTitle,
|
|
15
15
|
group: 'View',
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js
CHANGED
|
@@ -676,7 +676,7 @@ class NotebookAddMatchToMultiSelectionAction extends NotebookAction {
|
|
|
676
676
|
constructor() {
|
|
677
677
|
super({
|
|
678
678
|
id: NOTEBOOK_ADD_FIND_MATCH_TO_SELECTION_ID,
|
|
679
|
-
title: ( localize(
|
|
679
|
+
title: ( localize(8109, "Add Find Match to Selection")),
|
|
680
680
|
precondition: ( (ContextKeyExpr.and(
|
|
681
681
|
(ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)),
|
|
682
682
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -710,7 +710,7 @@ class NotebookExitMultiSelectionAction extends NotebookAction {
|
|
|
710
710
|
constructor() {
|
|
711
711
|
super({
|
|
712
712
|
id: 'noteMultiCursor.exit',
|
|
713
|
-
title: ( localize(
|
|
713
|
+
title: ( localize(8110, "Exit Multi Cursor Mode")),
|
|
714
714
|
precondition: ( (ContextKeyExpr.and(
|
|
715
715
|
(ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)),
|
|
716
716
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -741,7 +741,7 @@ class NotebookDeleteLeftMultiSelectionAction extends NotebookAction {
|
|
|
741
741
|
constructor() {
|
|
742
742
|
super({
|
|
743
743
|
id: 'noteMultiCursor.deleteLeft',
|
|
744
|
-
title: ( localize(
|
|
744
|
+
title: ( localize(8111, "Delete Left")),
|
|
745
745
|
precondition: ( (ContextKeyExpr.and(
|
|
746
746
|
(ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)),
|
|
747
747
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -780,7 +780,7 @@ class NotebookDeleteRightMultiSelectionAction extends NotebookAction {
|
|
|
780
780
|
constructor() {
|
|
781
781
|
super({
|
|
782
782
|
id: 'noteMultiCursor.deleteRight',
|
|
783
|
-
title: ( localize(
|
|
783
|
+
title: ( localize(8112, "Delete Right")),
|
|
784
784
|
precondition: ( (ContextKeyExpr.and(
|
|
785
785
|
(ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)),
|
|
786
786
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -31,7 +31,7 @@ registerAction2(class extends Action2 {
|
|
|
31
31
|
super({
|
|
32
32
|
id: 'notebook.cell.nullAction',
|
|
33
33
|
title: ( localize(
|
|
34
|
-
|
|
34
|
+
8045,
|
|
35
35
|
"Keypresses that should be handled by the focused element in the cell output."
|
|
36
36
|
)),
|
|
37
37
|
keybinding: [{
|
|
@@ -54,7 +54,7 @@ registerAction2(class FocusNextCellAction extends NotebookCellAction {
|
|
|
54
54
|
constructor() {
|
|
55
55
|
super({
|
|
56
56
|
id: NOTEBOOK_FOCUS_NEXT_EDITOR,
|
|
57
|
-
title: ( localize(
|
|
57
|
+
title: ( localize(8046, 'Focus Next Cell Editor')),
|
|
58
58
|
keybinding: [
|
|
59
59
|
{
|
|
60
60
|
when: ( (ContextKeyExpr.and(
|
|
@@ -129,7 +129,7 @@ registerAction2(class FocusPreviousCellAction extends NotebookCellAction {
|
|
|
129
129
|
constructor() {
|
|
130
130
|
super({
|
|
131
131
|
id: NOTEBOOK_FOCUS_PREVIOUS_EDITOR,
|
|
132
|
-
title: ( localize(
|
|
132
|
+
title: ( localize(8047, 'Focus Previous Cell Editor')),
|
|
133
133
|
keybinding: [
|
|
134
134
|
{
|
|
135
135
|
when: ( (ContextKeyExpr.and(
|
|
@@ -195,7 +195,7 @@ registerAction2(class extends NotebookAction {
|
|
|
195
195
|
constructor() {
|
|
196
196
|
super({
|
|
197
197
|
id: NOTEBOOK_FOCUS_TOP,
|
|
198
|
-
title: ( localize(
|
|
198
|
+
title: ( localize(8048, 'Focus First Cell')),
|
|
199
199
|
keybinding: [
|
|
200
200
|
{
|
|
201
201
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)))),
|
|
@@ -227,7 +227,7 @@ registerAction2(class extends NotebookAction {
|
|
|
227
227
|
constructor() {
|
|
228
228
|
super({
|
|
229
229
|
id: NOTEBOOK_FOCUS_BOTTOM,
|
|
230
|
-
title: ( localize(
|
|
230
|
+
title: ( localize(8049, 'Focus Last Cell')),
|
|
231
231
|
keybinding: [
|
|
232
232
|
{
|
|
233
233
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)))),
|
|
@@ -264,7 +264,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
264
264
|
constructor() {
|
|
265
265
|
super({
|
|
266
266
|
id: FOCUS_IN_OUTPUT_COMMAND_ID,
|
|
267
|
-
title: ( localize(
|
|
267
|
+
title: ( localize(8050, 'Focus In Active Cell Output')),
|
|
268
268
|
keybinding: [{
|
|
269
269
|
primary: 2048 | 1024 | 18 ,
|
|
270
270
|
mac: { primary: 256 | 2048 | 18 , },
|
|
@@ -288,7 +288,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
288
288
|
constructor() {
|
|
289
289
|
super({
|
|
290
290
|
id: FOCUS_OUT_OUTPUT_COMMAND_ID,
|
|
291
|
-
title: ( localize(
|
|
291
|
+
title: ( localize(8051, 'Focus Out Active Cell Output')),
|
|
292
292
|
keybinding: {
|
|
293
293
|
primary: 2048 | 1024 | 16 ,
|
|
294
294
|
mac: { primary: 256 | 2048 | 16 , },
|
|
@@ -307,7 +307,7 @@ registerAction2(class CenterActiveCellAction extends NotebookCellAction {
|
|
|
307
307
|
constructor() {
|
|
308
308
|
super({
|
|
309
309
|
id: CENTER_ACTIVE_CELL,
|
|
310
|
-
title: ( localize(
|
|
310
|
+
title: ( localize(8052, "Center Active Cell")),
|
|
311
311
|
keybinding: {
|
|
312
312
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
313
313
|
primary: 2048 | 42 ,
|
|
@@ -326,7 +326,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
326
326
|
constructor() {
|
|
327
327
|
super({
|
|
328
328
|
id: NOTEBOOK_CURSOR_PAGEUP_COMMAND_ID,
|
|
329
|
-
title: ( localize(
|
|
329
|
+
title: ( localize(8053, "Cell Cursor Page Up")),
|
|
330
330
|
keybinding: [
|
|
331
331
|
{
|
|
332
332
|
when: ( (ContextKeyExpr.and(
|
|
@@ -348,7 +348,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
348
348
|
constructor() {
|
|
349
349
|
super({
|
|
350
350
|
id: NOTEBOOK_CURSOR_PAGEUP_SELECT_COMMAND_ID,
|
|
351
|
-
title: ( localize(
|
|
351
|
+
title: ( localize(8054, "Cell Cursor Page Up Select")),
|
|
352
352
|
keybinding: [
|
|
353
353
|
{
|
|
354
354
|
when: ( (ContextKeyExpr.and(
|
|
@@ -371,7 +371,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
371
371
|
constructor() {
|
|
372
372
|
super({
|
|
373
373
|
id: NOTEBOOK_CURSOR_PAGEDOWN_COMMAND_ID,
|
|
374
|
-
title: ( localize(
|
|
374
|
+
title: ( localize(8055, "Cell Cursor Page Down")),
|
|
375
375
|
keybinding: [
|
|
376
376
|
{
|
|
377
377
|
when: ( (ContextKeyExpr.and(
|
|
@@ -393,7 +393,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
393
393
|
constructor() {
|
|
394
394
|
super({
|
|
395
395
|
id: NOTEBOOK_CURSOR_PAGEDOWN_SELECT_COMMAND_ID,
|
|
396
|
-
title: ( localize(
|
|
396
|
+
title: ( localize(8056, "Cell Cursor Page Down Select")),
|
|
397
397
|
keybinding: [
|
|
398
398
|
{
|
|
399
399
|
when: ( (ContextKeyExpr.and(
|
|
@@ -427,7 +427,7 @@ function getPageSize(context) {
|
|
|
427
427
|
type: 'boolean',
|
|
428
428
|
default: true,
|
|
429
429
|
markdownDescription: ( localize(
|
|
430
|
-
|
|
430
|
+
8057,
|
|
431
431
|
"When enabled cursor can navigate to the next/previous cell when the current cursor in the cell editor is at the first/last line."
|
|
432
432
|
))
|
|
433
433
|
}
|