@codingame/monaco-vscode-notebook-service-override 11.0.2 → 11.1.1
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 +10 -8
- 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 +14 -14
- 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 +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +26 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +23 -23
- 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/controller/variablesActions.js +1 -1
- 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": "11.
|
|
3
|
+
"version": "11.1.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -29,12 +29,14 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"vscode": "npm:@codingame/monaco-vscode-api@11.
|
|
33
|
-
"@codingame/monaco-vscode-chat-notebook-common": "11.
|
|
34
|
-
"@codingame/monaco-vscode-chat-interactive-notebook-search-common": "11.
|
|
35
|
-
"@codingame/monaco-vscode-chat-comments-extensions-interactive-notebook-search-common": "11.
|
|
36
|
-
"@codingame/monaco-vscode-chat-
|
|
37
|
-
"@codingame/monaco-vscode-chat-extensions-notebook-common": "11.
|
|
38
|
-
"@codingame/monaco-vscode-
|
|
32
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.1.1",
|
|
33
|
+
"@codingame/monaco-vscode-chat-notebook-common": "11.1.1",
|
|
34
|
+
"@codingame/monaco-vscode-chat-interactive-notebook-search-common": "11.1.1",
|
|
35
|
+
"@codingame/monaco-vscode-chat-comments-extensions-interactive-notebook-search-common": "11.1.1",
|
|
36
|
+
"@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common": "11.1.1",
|
|
37
|
+
"@codingame/monaco-vscode-chat-extensions-notebook-common": "11.1.1",
|
|
38
|
+
"@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common": "11.1.1",
|
|
39
|
+
"@codingame/monaco-vscode-debug-notebook-common": "11.1.1",
|
|
40
|
+
"@codingame/monaco-vscode-chat-notebook-terminal-common": "11.1.1"
|
|
39
41
|
}
|
|
40
42
|
}
|
|
@@ -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(10969, "Disable Empty Editor Hint")),
|
|
198
|
+
tooltip: ( localize(10969, "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
|
+
10970,
|
|
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(10971, '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
|
+
10972,
|
|
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
|
+
10973,
|
|
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
|
+
10974,
|
|
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
|
+
10975,
|
|
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(8140, "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(8141, "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(8142, "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(8143, "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(8144, "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(8145, "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(8146, "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(8147, "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(8148, "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(8149, "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(8150, "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(8151, "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(8152, "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(8153, "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(8154, "Toggle Outputs")),
|
|
429
429
|
metadata: {
|
|
430
|
-
description: ( localize(
|
|
430
|
+
description: ( localize(8154, "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(8155, "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(8156, "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(8157, "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(8158, "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(8159, "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(10976, "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(10977, "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(10978, "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
|
+
8122,
|
|
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(8123, "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(8124, "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(8075, "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(8076, "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(8077, "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(8078, "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(8079, '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(8080, "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
|
@@ -110,19 +110,19 @@ let KernelStatus = class KernelStatus extends Disposable {
|
|
|
110
110
|
}
|
|
111
111
|
const tooltip = kernel.description ?? kernel.detail ?? kernel.label;
|
|
112
112
|
this._kernelInfoElement.add(this._statusbarService.addEntry({
|
|
113
|
-
name: ( localize(
|
|
113
|
+
name: ( localize(8131, "Notebook Kernel Info")),
|
|
114
114
|
text: `$(notebook-kernel-select) ${kernel.label}`,
|
|
115
115
|
ariaLabel: kernel.label,
|
|
116
|
-
tooltip: isSuggested ? ( localize(
|
|
116
|
+
tooltip: isSuggested ? ( localize(8132, "{0} (suggestion)", tooltip)) : tooltip,
|
|
117
117
|
command: SELECT_KERNEL_ID,
|
|
118
118
|
}, SELECT_KERNEL_ID, 1 , 10));
|
|
119
119
|
this._kernelInfoElement.add(kernel.onDidChange(() => this._showKernelStatus(notebook)));
|
|
120
120
|
}
|
|
121
121
|
else {
|
|
122
122
|
this._kernelInfoElement.add(this._statusbarService.addEntry({
|
|
123
|
-
name: ( localize(
|
|
124
|
-
text: ( localize(
|
|
125
|
-
ariaLabel: ( localize(
|
|
123
|
+
name: ( localize(8133, "Notebook Kernel Selection")),
|
|
124
|
+
text: ( localize(8134, "Select Kernel")),
|
|
125
|
+
ariaLabel: ( localize(8134, "Select Kernel")),
|
|
126
126
|
command: SELECT_KERNEL_ID,
|
|
127
127
|
kind: 'prominent'
|
|
128
128
|
}, SELECT_KERNEL_ID, 1 , 10));
|
|
@@ -168,7 +168,7 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
|
|
|
168
168
|
return;
|
|
169
169
|
}
|
|
170
170
|
const entry = {
|
|
171
|
-
name: ( localize(
|
|
171
|
+
name: ( localize(8135, "Notebook Editor Selections")),
|
|
172
172
|
text: newText,
|
|
173
173
|
ariaLabel: newText,
|
|
174
174
|
command: CENTER_ACTIVE_CELL
|
|
@@ -192,8 +192,8 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
|
|
|
192
192
|
const numSelected = editor.getSelections().reduce((prev, range) => prev + (range.end - range.start), 0);
|
|
193
193
|
const totalCells = editor.getLength();
|
|
194
194
|
return numSelected > 1 ?
|
|
195
|
-
( localize(
|
|
196
|
-
( localize(
|
|
195
|
+
( localize(8136, "Cell {0} ({1} selected)", idxFocused, numSelected)) :
|
|
196
|
+
( localize(8137, "Cell {0} of {1}", idxFocused, totalCells));
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
199
|
ActiveCellStatus = ( (__decorate([
|
|
@@ -253,10 +253,10 @@ let NotebookIndentationStatus = class NotebookIndentationStatus extends Disposab
|
|
|
253
253
|
return;
|
|
254
254
|
}
|
|
255
255
|
const entry = {
|
|
256
|
-
name: ( localize(
|
|
256
|
+
name: ( localize(8138, "Notebook Indentation")),
|
|
257
257
|
text: newText,
|
|
258
258
|
ariaLabel: newText,
|
|
259
|
-
tooltip: ( localize(
|
|
259
|
+
tooltip: ( localize(8139, "Select Indentation")),
|
|
260
260
|
command: SELECT_NOTEBOOK_INDENTATION_ID
|
|
261
261
|
};
|
|
262
262
|
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(8081, '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(8082, '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(8083, '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(8084, "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(8085, "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(8086, "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(8097, "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(8098, '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(8163, "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(8164, "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(8165, "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(8166, "Delete Right")),
|
|
784
784
|
precondition: ( (ContextKeyExpr.and(
|
|
785
785
|
(ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)),
|
|
786
786
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|