@codingame/monaco-vscode-notebook-service-override 14.0.2 → 14.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 +29 -29
- 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 +4 -4
- 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 +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +2 -2
- 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/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 +65 -65
- 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": "14.0.
|
|
3
|
+
"version": "14.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - notebook service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,34 +15,34 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common": "14.0.
|
|
19
|
-
"@codingame/monaco-vscode-0cd5242b-7b61-5f66-ac25-ffa40baf8e8f-common": "14.0.
|
|
20
|
-
"@codingame/monaco-vscode-168b98e5-dc20-5807-b1f9-798f1f92b37f-common": "14.0.
|
|
21
|
-
"@codingame/monaco-vscode-1ae7d696-d960-5ac6-97a3-9fe7c8c3a793-common": "14.0.
|
|
22
|
-
"@codingame/monaco-vscode-3a00040f-b81b-50bc-88da-35f611c0bd1e-common": "14.0.
|
|
23
|
-
"@codingame/monaco-vscode-407531d3-fdae-5387-8c41-49ba0e9574b5-common": "14.0.
|
|
24
|
-
"@codingame/monaco-vscode-4e719823-8b6e-554d-b01a-5670b53fbb19-common": "14.0.
|
|
25
|
-
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "14.0.
|
|
26
|
-
"@codingame/monaco-vscode-695440c8-a687-5594-b476-bbc7b36bafe9-common": "14.0.
|
|
27
|
-
"@codingame/monaco-vscode-6f9bc782-77e0-5716-93bd-b05210c768c5-common": "14.0.
|
|
28
|
-
"@codingame/monaco-vscode-771c2e6d-0284-5ac1-be73-7176085eedc5-common": "14.0.
|
|
29
|
-
"@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common": "14.0.
|
|
30
|
-
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "14.0.
|
|
31
|
-
"@codingame/monaco-vscode-91789cdf-e3cb-5a04-aaeb-6f7df7d3d231-common": "14.0.
|
|
32
|
-
"@codingame/monaco-vscode-99f24462-c56d-5407-83fb-2ea9dd33cc8c-common": "14.0.
|
|
33
|
-
"@codingame/monaco-vscode-9e30237f-37af-5bbd-8bc1-5c4f2c0714b3-common": "14.0.
|
|
34
|
-
"@codingame/monaco-vscode-9ee79c1a-3f03-568b-8eac-b02513a98b68-common": "14.0.
|
|
35
|
-
"@codingame/monaco-vscode-af5ccfda-af82-504b-b365-92b4e654e5c5-common": "14.0.
|
|
36
|
-
"@codingame/monaco-vscode-api": "14.0.
|
|
37
|
-
"@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common": "14.0.
|
|
38
|
-
"@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common": "14.0.
|
|
39
|
-
"@codingame/monaco-vscode-ce8c4b18-4e75-55dd-9656-517347af9de7-common": "14.0.
|
|
40
|
-
"@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common": "14.0.
|
|
41
|
-
"@codingame/monaco-vscode-d4a98668-f793-5361-a9cf-1e6ae6d62ce3-common": "14.0.
|
|
42
|
-
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "14.0.
|
|
43
|
-
"@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common": "14.0.
|
|
44
|
-
"@codingame/monaco-vscode-ecf3436d-6064-5fbd-a760-37a211ce79c7-common": "14.0.
|
|
45
|
-
"@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common": "14.0.
|
|
18
|
+
"@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common": "14.0.4",
|
|
19
|
+
"@codingame/monaco-vscode-0cd5242b-7b61-5f66-ac25-ffa40baf8e8f-common": "14.0.4",
|
|
20
|
+
"@codingame/monaco-vscode-168b98e5-dc20-5807-b1f9-798f1f92b37f-common": "14.0.4",
|
|
21
|
+
"@codingame/monaco-vscode-1ae7d696-d960-5ac6-97a3-9fe7c8c3a793-common": "14.0.4",
|
|
22
|
+
"@codingame/monaco-vscode-3a00040f-b81b-50bc-88da-35f611c0bd1e-common": "14.0.4",
|
|
23
|
+
"@codingame/monaco-vscode-407531d3-fdae-5387-8c41-49ba0e9574b5-common": "14.0.4",
|
|
24
|
+
"@codingame/monaco-vscode-4e719823-8b6e-554d-b01a-5670b53fbb19-common": "14.0.4",
|
|
25
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "14.0.4",
|
|
26
|
+
"@codingame/monaco-vscode-695440c8-a687-5594-b476-bbc7b36bafe9-common": "14.0.4",
|
|
27
|
+
"@codingame/monaco-vscode-6f9bc782-77e0-5716-93bd-b05210c768c5-common": "14.0.4",
|
|
28
|
+
"@codingame/monaco-vscode-771c2e6d-0284-5ac1-be73-7176085eedc5-common": "14.0.4",
|
|
29
|
+
"@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common": "14.0.4",
|
|
30
|
+
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "14.0.4",
|
|
31
|
+
"@codingame/monaco-vscode-91789cdf-e3cb-5a04-aaeb-6f7df7d3d231-common": "14.0.4",
|
|
32
|
+
"@codingame/monaco-vscode-99f24462-c56d-5407-83fb-2ea9dd33cc8c-common": "14.0.4",
|
|
33
|
+
"@codingame/monaco-vscode-9e30237f-37af-5bbd-8bc1-5c4f2c0714b3-common": "14.0.4",
|
|
34
|
+
"@codingame/monaco-vscode-9ee79c1a-3f03-568b-8eac-b02513a98b68-common": "14.0.4",
|
|
35
|
+
"@codingame/monaco-vscode-af5ccfda-af82-504b-b365-92b4e654e5c5-common": "14.0.4",
|
|
36
|
+
"@codingame/monaco-vscode-api": "14.0.4",
|
|
37
|
+
"@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common": "14.0.4",
|
|
38
|
+
"@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common": "14.0.4",
|
|
39
|
+
"@codingame/monaco-vscode-ce8c4b18-4e75-55dd-9656-517347af9de7-common": "14.0.4",
|
|
40
|
+
"@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common": "14.0.4",
|
|
41
|
+
"@codingame/monaco-vscode-d4a98668-f793-5361-a9cf-1e6ae6d62ce3-common": "14.0.4",
|
|
42
|
+
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "14.0.4",
|
|
43
|
+
"@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common": "14.0.4",
|
|
44
|
+
"@codingame/monaco-vscode-ecf3436d-6064-5fbd-a760-37a211ce79c7-common": "14.0.4",
|
|
45
|
+
"@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common": "14.0.4",
|
|
46
46
|
"marked": "14.0.0"
|
|
47
47
|
},
|
|
48
48
|
"main": "index.js",
|
|
@@ -196,8 +196,8 @@ class EmptyTextEditorHintContentWidget {
|
|
|
196
196
|
getActions: () => {
|
|
197
197
|
return [{
|
|
198
198
|
id: 'workench.action.disableEmptyEditorHint',
|
|
199
|
-
label: ( localize(
|
|
200
|
-
tooltip: ( localize(
|
|
199
|
+
label: ( localize(4819, "Disable Empty Editor Hint")),
|
|
200
|
+
tooltip: ( localize(4819, "Disable Empty Editor Hint")),
|
|
201
201
|
enabled: true,
|
|
202
202
|
class: undefined,
|
|
203
203
|
run: () => {
|
|
@@ -235,7 +235,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
235
235
|
const keybindingHintLabel = keybindingHint?.getLabel();
|
|
236
236
|
if (keybindingHint && keybindingHintLabel) {
|
|
237
237
|
const actionPart = ( localize(
|
|
238
|
-
|
|
238
|
+
4820,
|
|
239
239
|
'Press {0} to ask {1} to do something. ',
|
|
240
240
|
keybindingHintLabel,
|
|
241
241
|
providerName
|
|
@@ -266,7 +266,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
266
266
|
this.toDispose.add(addDisposableListener(label.element, EventType.CLICK, handleClick));
|
|
267
267
|
}
|
|
268
268
|
hintElement.appendChild(after);
|
|
269
|
-
const typeToDismiss = ( localize(
|
|
269
|
+
const typeToDismiss = ( localize(4821, 'Start typing to dismiss.'));
|
|
270
270
|
const textHint2 = $('span', undefined, typeToDismiss);
|
|
271
271
|
textHint2.style.fontStyle = 'italic';
|
|
272
272
|
hintElement.appendChild(textHint2);
|
|
@@ -274,7 +274,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
274
274
|
}
|
|
275
275
|
else {
|
|
276
276
|
const hintMsg = ( localize(
|
|
277
|
-
|
|
277
|
+
4822,
|
|
278
278
|
'[[Ask {0} to do something]] or start typing to dismiss.',
|
|
279
279
|
providerName
|
|
280
280
|
));
|
|
@@ -334,7 +334,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
336
|
const hintMsg = ( localize(
|
|
337
|
-
|
|
337
|
+
4823,
|
|
338
338
|
'[[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.'
|
|
339
339
|
));
|
|
340
340
|
const hintElement = renderFormattedText(hintMsg, {
|
|
@@ -345,7 +345,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
345
345
|
const keybindingsLookup = [ChangeLanguageAction.ID, ApplyFileSnippetAction.Id, 'welcome.showNewFileEntries'];
|
|
346
346
|
const keybindingLabels = ( keybindingsLookup.map((id) => this.keybindingService.lookupKeybinding(id)?.getLabel() ?? id));
|
|
347
347
|
const ariaLabel = ( localize(
|
|
348
|
-
|
|
348
|
+
4824,
|
|
349
349
|
'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.',
|
|
350
350
|
...keybindingLabels
|
|
351
351
|
));
|
|
@@ -366,7 +366,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
366
366
|
const { hintElement, ariaLabel } = !inlineChatProviders.length ? this._getHintDefault() : this._getHintInlineChat(inlineChatProviders);
|
|
367
367
|
this.domNode.append(hintElement);
|
|
368
368
|
this.ariaLabel = ariaLabel.concat(( localize(
|
|
369
|
-
|
|
369
|
+
4825,
|
|
370
370
|
' Toggle {0} in settings to disable this hint.',
|
|
371
371
|
AccessibilityVerbositySettingId.EmptyEditorHint
|
|
372
372
|
)));
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js
CHANGED
|
@@ -26,7 +26,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
26
26
|
constructor() {
|
|
27
27
|
super({
|
|
28
28
|
id: MOVE_CELL_UP_COMMAND_ID,
|
|
29
|
-
title: ( localize2(
|
|
29
|
+
title: ( localize2(7441, "Move Cell Up")),
|
|
30
30
|
icon: moveUpIcon,
|
|
31
31
|
keybinding: {
|
|
32
32
|
primary: KeyMod.Alt | KeyCode.UpArrow,
|
|
@@ -49,7 +49,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
49
49
|
constructor() {
|
|
50
50
|
super({
|
|
51
51
|
id: MOVE_CELL_DOWN_COMMAND_ID,
|
|
52
|
-
title: ( localize2(
|
|
52
|
+
title: ( localize2(7442, "Move Cell Down")),
|
|
53
53
|
icon: moveDownIcon,
|
|
54
54
|
keybinding: {
|
|
55
55
|
primary: KeyMod.Alt | KeyCode.DownArrow,
|
|
@@ -72,7 +72,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
72
72
|
constructor() {
|
|
73
73
|
super({
|
|
74
74
|
id: COPY_CELL_UP_COMMAND_ID,
|
|
75
|
-
title: ( localize2(
|
|
75
|
+
title: ( localize2(7443, "Copy Cell Up")),
|
|
76
76
|
keybinding: {
|
|
77
77
|
primary: KeyMod.Alt | KeyMod.Shift | KeyCode.UpArrow,
|
|
78
78
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( InputFocusedContext.toNegated()))),
|
|
@@ -88,7 +88,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
88
88
|
constructor() {
|
|
89
89
|
super({
|
|
90
90
|
id: COPY_CELL_DOWN_COMMAND_ID,
|
|
91
|
-
title: ( localize2(
|
|
91
|
+
title: ( localize2(7444, "Copy Cell Down")),
|
|
92
92
|
keybinding: {
|
|
93
93
|
primary: KeyMod.Alt | KeyMod.Shift | KeyCode.DownArrow,
|
|
94
94
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( InputFocusedContext.toNegated()))),
|
|
@@ -114,7 +114,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
114
114
|
constructor() {
|
|
115
115
|
super({
|
|
116
116
|
id: SPLIT_CELL_COMMAND_ID,
|
|
117
|
-
title: ( localize2(
|
|
117
|
+
title: ( localize2(7445, "Split Cell")),
|
|
118
118
|
menu: {
|
|
119
119
|
id: MenuId.NotebookCellTitle,
|
|
120
120
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE, ( NOTEBOOK_CELL_INPUT_COLLAPSED.toNegated()))),
|
|
@@ -181,7 +181,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
181
181
|
constructor() {
|
|
182
182
|
super({
|
|
183
183
|
id: JOIN_CELL_ABOVE_COMMAND_ID,
|
|
184
|
-
title: ( localize2(
|
|
184
|
+
title: ( localize2(7446, "Join With Previous Cell")),
|
|
185
185
|
keybinding: {
|
|
186
186
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
187
187
|
primary: KeyMod.WinCtrl | KeyMod.Alt | KeyMod.Shift | KeyCode.KeyJ,
|
|
@@ -204,7 +204,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
204
204
|
constructor() {
|
|
205
205
|
super({
|
|
206
206
|
id: JOIN_CELL_BELOW_COMMAND_ID,
|
|
207
|
-
title: ( localize2(
|
|
207
|
+
title: ( localize2(7447, "Join With Next Cell")),
|
|
208
208
|
keybinding: {
|
|
209
209
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
210
210
|
primary: KeyMod.WinCtrl | KeyMod.Alt | KeyCode.KeyJ,
|
|
@@ -227,7 +227,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
227
227
|
constructor() {
|
|
228
228
|
super({
|
|
229
229
|
id: JOIN_SELECTED_CELLS_COMMAND_ID,
|
|
230
|
-
title: ( localize2(
|
|
230
|
+
title: ( localize2(7448, "Join Selected Cells")),
|
|
231
231
|
menu: {
|
|
232
232
|
id: MenuId.NotebookCellTitle,
|
|
233
233
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE)),
|
|
@@ -248,7 +248,7 @@ registerAction2(class ChangeCellToCodeAction extends NotebookMultiCellAction {
|
|
|
248
248
|
constructor() {
|
|
249
249
|
super({
|
|
250
250
|
id: CHANGE_CELL_TO_CODE_COMMAND_ID,
|
|
251
|
-
title: ( localize2(
|
|
251
|
+
title: ( localize2(7449, "Change Cell to Code")),
|
|
252
252
|
keybinding: {
|
|
253
253
|
when: ( ContextKeyExpr.and(
|
|
254
254
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -279,7 +279,7 @@ registerAction2(class ChangeCellToMarkdownAction extends NotebookMultiCellAction
|
|
|
279
279
|
constructor() {
|
|
280
280
|
super({
|
|
281
281
|
id: CHANGE_CELL_TO_MARKDOWN_COMMAND_ID,
|
|
282
|
-
title: ( localize2(
|
|
282
|
+
title: ( localize2(7450, "Change Cell to Markdown")),
|
|
283
283
|
keybinding: {
|
|
284
284
|
when: ( ContextKeyExpr.and(
|
|
285
285
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -318,7 +318,7 @@ registerAction2(class CollapseCellInputAction extends NotebookMultiCellAction {
|
|
|
318
318
|
constructor() {
|
|
319
319
|
super({
|
|
320
320
|
id: COLLAPSE_CELL_INPUT_COMMAND_ID,
|
|
321
|
-
title: ( localize2(
|
|
321
|
+
title: ( localize2(7451, "Collapse Cell Input")),
|
|
322
322
|
keybinding: {
|
|
323
323
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( NOTEBOOK_CELL_INPUT_COLLAPSED.toNegated()), ( InputFocusedContext.toNegated()))),
|
|
324
324
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyC),
|
|
@@ -342,7 +342,7 @@ registerAction2(class ExpandCellInputAction extends NotebookMultiCellAction {
|
|
|
342
342
|
constructor() {
|
|
343
343
|
super({
|
|
344
344
|
id: EXPAND_CELL_INPUT_COMMAND_ID,
|
|
345
|
-
title: ( localize2(
|
|
345
|
+
title: ( localize2(7452, "Expand Cell Input")),
|
|
346
346
|
keybinding: {
|
|
347
347
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_INPUT_COLLAPSED)),
|
|
348
348
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyC),
|
|
@@ -366,7 +366,7 @@ registerAction2(class CollapseCellOutputAction extends NotebookMultiCellAction {
|
|
|
366
366
|
constructor() {
|
|
367
367
|
super({
|
|
368
368
|
id: COLLAPSE_CELL_OUTPUT_COMMAND_ID,
|
|
369
|
-
title: ( localize2(
|
|
369
|
+
title: ( localize2(7453, "Collapse Cell Output")),
|
|
370
370
|
keybinding: {
|
|
371
371
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( NOTEBOOK_CELL_OUTPUT_COLLAPSED.toNegated()), ( InputFocusedContext.toNegated()), NOTEBOOK_CELL_HAS_OUTPUTS)),
|
|
372
372
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyT),
|
|
@@ -387,7 +387,7 @@ registerAction2(class ExpandCellOuputAction extends NotebookMultiCellAction {
|
|
|
387
387
|
constructor() {
|
|
388
388
|
super({
|
|
389
389
|
id: EXPAND_CELL_OUTPUT_COMMAND_ID,
|
|
390
|
-
title: ( localize2(
|
|
390
|
+
title: ( localize2(7454, "Expand Cell Output")),
|
|
391
391
|
keybinding: {
|
|
392
392
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_OUTPUT_COLLAPSED)),
|
|
393
393
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyT),
|
|
@@ -409,9 +409,9 @@ registerAction2(class extends NotebookMultiCellAction {
|
|
|
409
409
|
super({
|
|
410
410
|
id: TOGGLE_CELL_OUTPUTS_COMMAND_ID,
|
|
411
411
|
precondition: NOTEBOOK_CELL_LIST_FOCUSED,
|
|
412
|
-
title: ( localize2(
|
|
412
|
+
title: ( localize2(7455, "Toggle Outputs")),
|
|
413
413
|
metadata: {
|
|
414
|
-
description: ( localize(
|
|
414
|
+
description: ( localize(7455, "Toggle Outputs")),
|
|
415
415
|
args: cellExecutionArgs
|
|
416
416
|
}
|
|
417
417
|
});
|
|
@@ -436,7 +436,7 @@ registerAction2(class CollapseAllCellInputsAction extends NotebookMultiCellActio
|
|
|
436
436
|
constructor() {
|
|
437
437
|
super({
|
|
438
438
|
id: COLLAPSE_ALL_CELL_INPUTS_COMMAND_ID,
|
|
439
|
-
title: ( localize2(
|
|
439
|
+
title: ( localize2(7456, "Collapse All Cell Inputs")),
|
|
440
440
|
f1: true,
|
|
441
441
|
});
|
|
442
442
|
}
|
|
@@ -448,7 +448,7 @@ registerAction2(class ExpandAllCellInputsAction extends NotebookMultiCellAction
|
|
|
448
448
|
constructor() {
|
|
449
449
|
super({
|
|
450
450
|
id: EXPAND_ALL_CELL_INPUTS_COMMAND_ID,
|
|
451
|
-
title: ( localize2(
|
|
451
|
+
title: ( localize2(7457, "Expand All Cell Inputs")),
|
|
452
452
|
f1: true
|
|
453
453
|
});
|
|
454
454
|
}
|
|
@@ -460,7 +460,7 @@ registerAction2(class CollapseAllCellOutputsAction extends NotebookMultiCellActi
|
|
|
460
460
|
constructor() {
|
|
461
461
|
super({
|
|
462
462
|
id: COLLAPSE_ALL_CELL_OUTPUTS_COMMAND_ID,
|
|
463
|
-
title: ( localize2(
|
|
463
|
+
title: ( localize2(7458, "Collapse All Cell Outputs")),
|
|
464
464
|
f1: true,
|
|
465
465
|
});
|
|
466
466
|
}
|
|
@@ -472,7 +472,7 @@ registerAction2(class ExpandAllCellOutputsAction extends NotebookMultiCellAction
|
|
|
472
472
|
constructor() {
|
|
473
473
|
super({
|
|
474
474
|
id: EXPAND_ALL_CELL_OUTPUTS_COMMAND_ID,
|
|
475
|
-
title: ( localize2(
|
|
475
|
+
title: ( localize2(7459, "Expand All Cell Outputs")),
|
|
476
476
|
f1: true
|
|
477
477
|
});
|
|
478
478
|
}
|
|
@@ -484,7 +484,7 @@ registerAction2(class ToggleCellOutputScrolling extends NotebookMultiCellAction
|
|
|
484
484
|
constructor() {
|
|
485
485
|
super({
|
|
486
486
|
id: TOGGLE_CELL_OUTPUT_SCROLLING,
|
|
487
|
-
title: ( localize2(
|
|
487
|
+
title: ( localize2(7460, "Toggle Scroll Cell Output")),
|
|
488
488
|
keybinding: {
|
|
489
489
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( InputFocusedContext.toNegated()), NOTEBOOK_CELL_HAS_OUTPUTS)),
|
|
490
490
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyY),
|
|
@@ -21,7 +21,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
super({
|
|
23
23
|
id: OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID,
|
|
24
|
-
title: ( localize2(
|
|
24
|
+
title: ( localize2(7461, "Show Cell Failure Actions")),
|
|
25
25
|
precondition: ( ContextKeyExpr.and(NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS, ( NOTEBOOK_CELL_EDITOR_FOCUSED.toNegated()))),
|
|
26
26
|
f1: true,
|
|
27
27
|
keybinding: {
|
|
@@ -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(7462, "No code actions available")), CodeActionTriggerSource.Default, { include: CodeActionKind.QuickFix });
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -55,7 +55,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
55
55
|
constructor() {
|
|
56
56
|
super({
|
|
57
57
|
id: FIX_CELL_ERROR_COMMAND_ID,
|
|
58
|
-
title: ( localize2(
|
|
58
|
+
title: ( localize2(7463, "Fix Cell Error")),
|
|
59
59
|
precondition: ( ContextKeyExpr.and(NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS, ( NOTEBOOK_CELL_EDITOR_FOCUSED.toNegated()))),
|
|
60
60
|
f1: true
|
|
61
61
|
});
|
|
@@ -87,7 +87,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
87
87
|
constructor() {
|
|
88
88
|
super({
|
|
89
89
|
id: EXPLAIN_CELL_ERROR_COMMAND_ID,
|
|
90
|
-
title: ( localize2(
|
|
90
|
+
title: ( localize2(7464, "Explain Cell Error")),
|
|
91
91
|
precondition: ( ContextKeyExpr.and(NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS, ( NOTEBOOK_CELL_EDITOR_FOCUSED.toNegated()))),
|
|
92
92
|
f1: true
|
|
93
93
|
});
|
|
@@ -45,7 +45,7 @@ let DiagnosticCellStatusBarItem = class DiagnosticCellStatusBarItem extends Disp
|
|
|
45
45
|
let item;
|
|
46
46
|
if (error?.location && !Iterable.isEmpty(this.chatAgentService.getAgents())) {
|
|
47
47
|
const keybinding = this.keybindingService.lookupKeybinding(OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID)?.getLabel();
|
|
48
|
-
const tooltip = ( localize(
|
|
48
|
+
const tooltip = ( localize(7465, "Quick Actions {0}", `(${keybinding})`));
|
|
49
49
|
item = {
|
|
50
50
|
text: `$(sparkle)`,
|
|
51
51
|
tooltip,
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js
CHANGED
|
@@ -41,7 +41,7 @@ let CellStatusBarLanguagePickerProvider = class CellStatusBarLanguagePickerProvi
|
|
|
41
41
|
}
|
|
42
42
|
else {
|
|
43
43
|
const searchTooltip = ( localize(
|
|
44
|
-
|
|
44
|
+
7473,
|
|
45
45
|
"Unknown cell language. Click to search for '{0}' extensions",
|
|
46
46
|
cell.language
|
|
47
47
|
));
|
|
@@ -57,7 +57,7 @@ let CellStatusBarLanguagePickerProvider = class CellStatusBarLanguagePickerProvi
|
|
|
57
57
|
statusBarItems.push({
|
|
58
58
|
text: displayLanguage,
|
|
59
59
|
command: CHANGE_CELL_LANGUAGE,
|
|
60
|
-
tooltip: ( localize(
|
|
60
|
+
tooltip: ( localize(7474, "Select Cell Language Mode")),
|
|
61
61
|
alignment: CellStatusbarAlignment.Right,
|
|
62
62
|
priority: -Number.MAX_SAFE_INTEGER
|
|
63
63
|
});
|
|
@@ -121,7 +121,7 @@ let CellStatusBarLanguageDetectionProvider = class CellStatusBarLanguageDetectio
|
|
|
121
121
|
const items = [];
|
|
122
122
|
if (cached.guess && currentLanguageId !== cached.guess) {
|
|
123
123
|
const detectedName = this._languageService.getLanguageName(cached.guess) || cached.guess;
|
|
124
|
-
let tooltip = ( localize(
|
|
124
|
+
let tooltip = ( localize(7475, "Accept Detected Language: {0}", detectedName));
|
|
125
125
|
const keybinding = this._keybindingService.lookupKeybinding(DETECT_CELL_LANGUAGE);
|
|
126
126
|
const label = keybinding?.getLabel();
|
|
127
127
|
if (label) {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js
CHANGED
|
@@ -350,7 +350,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
350
350
|
constructor() {
|
|
351
351
|
super({
|
|
352
352
|
id: COPY_CELL_COMMAND_ID,
|
|
353
|
-
title: ( localize(
|
|
353
|
+
title: ( localize(7477, "Copy Cell")),
|
|
354
354
|
menu: {
|
|
355
355
|
id: MenuId.NotebookCellTitle,
|
|
356
356
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -373,7 +373,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
373
373
|
constructor() {
|
|
374
374
|
super({
|
|
375
375
|
id: CUT_CELL_COMMAND_ID,
|
|
376
|
-
title: ( localize(
|
|
376
|
+
title: ( localize(7478, "Cut Cell")),
|
|
377
377
|
menu: {
|
|
378
378
|
id: MenuId.NotebookCellTitle,
|
|
379
379
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE)),
|
|
@@ -396,7 +396,7 @@ registerAction2(class extends NotebookAction {
|
|
|
396
396
|
constructor() {
|
|
397
397
|
super({
|
|
398
398
|
id: PASTE_CELL_COMMAND_ID,
|
|
399
|
-
title: ( localize(
|
|
399
|
+
title: ( localize(7479, "Paste Cell")),
|
|
400
400
|
menu: {
|
|
401
401
|
id: MenuId.NotebookCellTitle,
|
|
402
402
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE)),
|
|
@@ -428,7 +428,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
428
428
|
constructor() {
|
|
429
429
|
super({
|
|
430
430
|
id: PASTE_CELL_ABOVE_COMMAND_ID,
|
|
431
|
-
title: ( localize(
|
|
431
|
+
title: ( localize(7480, "Paste Cell Above")),
|
|
432
432
|
keybinding: {
|
|
433
433
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
|
|
434
434
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyV,
|
|
@@ -472,7 +472,7 @@ registerAction2(class extends Action2 {
|
|
|
472
472
|
constructor() {
|
|
473
473
|
super({
|
|
474
474
|
id: 'workbench.action.toggleNotebookClipboardLog',
|
|
475
|
-
title: ( localize2(
|
|
475
|
+
title: ( localize2(7481, 'Toggle Notebook Clipboard Troubleshooting')),
|
|
476
476
|
category: Categories.Developer,
|
|
477
477
|
f1: true
|
|
478
478
|
});
|
|
@@ -489,7 +489,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
489
489
|
constructor() {
|
|
490
490
|
super({
|
|
491
491
|
id: 'notebook.cell.output.selectAll',
|
|
492
|
-
title: ( localize(
|
|
492
|
+
title: ( localize(7482, "Select All")),
|
|
493
493
|
keybinding: {
|
|
494
494
|
primary: KeyMod.CtrlCmd | KeyCode.KeyA,
|
|
495
495
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED)),
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js
CHANGED
|
@@ -112,19 +112,19 @@ let KernelStatus = class KernelStatus extends Disposable {
|
|
|
112
112
|
}
|
|
113
113
|
const tooltip = kernel.description ?? kernel.detail ?? kernel.label;
|
|
114
114
|
this._kernelInfoElement.add(this._statusbarService.addEntry({
|
|
115
|
-
name: ( localize(
|
|
115
|
+
name: ( localize(7483, "Notebook Kernel Info")),
|
|
116
116
|
text: `$(notebook-kernel-select) ${kernel.label}`,
|
|
117
117
|
ariaLabel: kernel.label,
|
|
118
|
-
tooltip: isSuggested ? ( localize(
|
|
118
|
+
tooltip: isSuggested ? ( localize(7484, "{0} (suggestion)", tooltip)) : tooltip,
|
|
119
119
|
command: SELECT_KERNEL_ID,
|
|
120
120
|
}, SELECT_KERNEL_ID, StatusbarAlignment.RIGHT, 10));
|
|
121
121
|
this._kernelInfoElement.add(kernel.onDidChange(() => this._showKernelStatus(notebook)));
|
|
122
122
|
}
|
|
123
123
|
else {
|
|
124
124
|
this._kernelInfoElement.add(this._statusbarService.addEntry({
|
|
125
|
-
name: ( localize(
|
|
126
|
-
text: ( localize(
|
|
127
|
-
ariaLabel: ( localize(
|
|
125
|
+
name: ( localize(7485, "Notebook Kernel Selection")),
|
|
126
|
+
text: ( localize(7486, "Select Kernel")),
|
|
127
|
+
ariaLabel: ( localize(7486, "Select Kernel")),
|
|
128
128
|
command: SELECT_KERNEL_ID,
|
|
129
129
|
kind: 'prominent'
|
|
130
130
|
}, SELECT_KERNEL_ID, StatusbarAlignment.RIGHT, 10));
|
|
@@ -170,7 +170,7 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
|
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
172
|
const entry = {
|
|
173
|
-
name: ( localize(
|
|
173
|
+
name: ( localize(7487, "Notebook Editor Selections")),
|
|
174
174
|
text: newText,
|
|
175
175
|
ariaLabel: newText,
|
|
176
176
|
command: CENTER_ACTIVE_CELL
|
|
@@ -194,8 +194,8 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
|
|
|
194
194
|
const numSelected = editor.getSelections().reduce((prev, range) => prev + (range.end - range.start), 0);
|
|
195
195
|
const totalCells = editor.getLength();
|
|
196
196
|
return numSelected > 1 ?
|
|
197
|
-
( localize(
|
|
198
|
-
( localize(
|
|
197
|
+
( localize(7488, "Cell {0} ({1} selected)", idxFocused, numSelected)) :
|
|
198
|
+
( localize(7489, "Cell {0} of {1}", idxFocused, totalCells));
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
201
|
ActiveCellStatus = ( __decorate([
|
|
@@ -255,10 +255,10 @@ let NotebookIndentationStatus = class NotebookIndentationStatus extends Disposab
|
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
257
|
const entry = {
|
|
258
|
-
name: ( localize(
|
|
258
|
+
name: ( localize(7490, "Notebook Indentation")),
|
|
259
259
|
text: newText,
|
|
260
260
|
ariaLabel: newText,
|
|
261
|
-
tooltip: ( localize(
|
|
261
|
+
tooltip: ( localize(7491, "Select Indentation")),
|
|
262
262
|
command: SELECT_NOTEBOOK_INDENTATION_ID
|
|
263
263
|
};
|
|
264
264
|
if (!this._accessor.value) {
|
|
@@ -24,7 +24,7 @@ registerAction2(class extends Action2 {
|
|
|
24
24
|
constructor() {
|
|
25
25
|
super({
|
|
26
26
|
id: 'notebook.hideFind',
|
|
27
|
-
title: ( localize2(
|
|
27
|
+
title: ( localize2(7492, 'Hide Find in Notebook')),
|
|
28
28
|
keybinding: {
|
|
29
29
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED)),
|
|
30
30
|
primary: KeyCode.Escape,
|
|
@@ -47,7 +47,7 @@ registerAction2(class extends NotebookMultiCellAction {
|
|
|
47
47
|
constructor() {
|
|
48
48
|
super({
|
|
49
49
|
id: 'notebook.find',
|
|
50
|
-
title: ( localize2(
|
|
50
|
+
title: ( localize2(7493, 'Find in Notebook')),
|
|
51
51
|
keybinding: {
|
|
52
52
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( ContextKeyExpr.or(NOTEBOOK_IS_ACTIVE_EDITOR, INTERACTIVE_WINDOW_IS_ACTIVE_EDITOR)), ( EditorContextKeys.focus.toNegated()))),
|
|
53
53
|
primary: KeyCode.KeyF | KeyMod.CtrlCmd,
|
|
@@ -33,7 +33,7 @@ registerAction2(class extends Action2 {
|
|
|
33
33
|
constructor() {
|
|
34
34
|
super({
|
|
35
35
|
id: 'notebook.format',
|
|
36
|
-
title: ( localize2(
|
|
36
|
+
title: ( localize2(7514, 'Format Notebook')),
|
|
37
37
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
38
38
|
precondition: ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EDITABLE)),
|
|
39
39
|
keybinding: {
|
|
@@ -84,7 +84,7 @@ registerAction2(class extends Action2 {
|
|
|
84
84
|
}
|
|
85
85
|
return [];
|
|
86
86
|
})));
|
|
87
|
-
await bulkEditService.apply( allCellEdits.flat(), { label: ( localize(
|
|
87
|
+
await bulkEditService.apply( allCellEdits.flat(), { label: ( localize(7515, "Format Notebook")), code: 'undoredo.formatNotebook', });
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
finally {
|
|
@@ -96,7 +96,7 @@ registerEditorAction(class FormatCellAction extends EditorAction {
|
|
|
96
96
|
constructor() {
|
|
97
97
|
super({
|
|
98
98
|
id: 'notebook.formatCell',
|
|
99
|
-
label: ( localize2(
|
|
99
|
+
label: ( localize2(7516, "Format Cell")),
|
|
100
100
|
precondition: ( ContextKeyExpr.and(
|
|
101
101
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
102
102
|
NOTEBOOK_EDITOR_EDITABLE,
|
|
@@ -165,7 +165,7 @@ let FormatOnCellExecutionParticipant = class FormatOnCellExecutionParticipant {
|
|
|
165
165
|
}
|
|
166
166
|
return [];
|
|
167
167
|
})));
|
|
168
|
-
await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(
|
|
168
|
+
await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(7517, "Format Cells")), code: 'undoredo.notebooks.onWillExecuteFormat', });
|
|
169
169
|
}
|
|
170
170
|
finally {
|
|
171
171
|
disposable.dispose();
|
|
@@ -66,7 +66,7 @@ registerAction2(class NotebookClearNotebookLayoutAction extends Action2 {
|
|
|
66
66
|
constructor() {
|
|
67
67
|
super({
|
|
68
68
|
id: 'workbench.notebook.layout.gettingStarted',
|
|
69
|
-
title: ( localize2(
|
|
69
|
+
title: ( localize2(7518, "Reset notebook getting started")),
|
|
70
70
|
f1: true,
|
|
71
71
|
precondition: ( ContextKeyExpr.equals(`config.${NotebookSetting.openGettingStarted}`, true)),
|
|
72
72
|
category: Categories.Developer,
|
|
@@ -10,7 +10,7 @@ class ToggleCellToolbarPositionAction extends Action2 {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
super({
|
|
12
12
|
id: TOGGLE_CELL_TOOLBAR_POSITION,
|
|
13
|
-
title: ( localize2(
|
|
13
|
+
title: ( localize2(7519, 'Toggle Cell Toolbar Position')),
|
|
14
14
|
menu: [{
|
|
15
15
|
id: MenuId.NotebookCellTitle,
|
|
16
16
|
group: 'View',
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js
CHANGED
|
@@ -776,7 +776,7 @@ class NotebookSelectAllFindMatches extends NotebookAction {
|
|
|
776
776
|
constructor() {
|
|
777
777
|
super({
|
|
778
778
|
id: NOTEBOOK_SELECT_ALL_FIND_MATCHES_ID,
|
|
779
|
-
title: ( localize(
|
|
779
|
+
title: ( localize(7520, "Select All Occurrences of Find Match")),
|
|
780
780
|
precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)))),
|
|
781
781
|
keybinding: {
|
|
782
782
|
when: ( ContextKeyExpr.or(( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_EDITOR_FOCUSED)), ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED)))),
|
|
@@ -809,7 +809,7 @@ class NotebookAddMatchToMultiSelectionAction extends NotebookAction {
|
|
|
809
809
|
constructor() {
|
|
810
810
|
super({
|
|
811
811
|
id: NOTEBOOK_ADD_FIND_MATCH_TO_SELECTION_ID,
|
|
812
|
-
title: ( localize(
|
|
812
|
+
title: ( localize(7521, "Add Selection To Next Find Match")),
|
|
813
813
|
precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_EDITOR_FOCUSED)),
|
|
814
814
|
keybinding: {
|
|
815
815
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_EDITOR_FOCUSED)),
|
|
@@ -835,7 +835,7 @@ class NotebookExitMultiSelectionAction extends NotebookAction {
|
|
|
835
835
|
constructor() {
|
|
836
836
|
super({
|
|
837
837
|
id: 'noteMultiCursor.exit',
|
|
838
|
-
title: ( localize(
|
|
838
|
+
title: ( localize(7522, "Exit Multi Cursor Mode")),
|
|
839
839
|
precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor)),
|
|
840
840
|
keybinding: {
|
|
841
841
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor)),
|
|
@@ -858,7 +858,7 @@ class NotebookDeleteLeftMultiSelectionAction extends NotebookAction {
|
|
|
858
858
|
constructor() {
|
|
859
859
|
super({
|
|
860
860
|
id: 'noteMultiCursor.deleteLeft',
|
|
861
|
-
title: ( localize(
|
|
861
|
+
title: ( localize(7523, "Delete Left")),
|
|
862
862
|
precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor, ( ContextKeyExpr.or(( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Selecting)), ( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Editing)))))),
|
|
863
863
|
keybinding: {
|
|
864
864
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor, ( ContextKeyExpr.or(( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Selecting)), ( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Editing)))))),
|
|
@@ -881,7 +881,7 @@ class NotebookDeleteRightMultiSelectionAction extends NotebookAction {
|
|
|
881
881
|
constructor() {
|
|
882
882
|
super({
|
|
883
883
|
id: 'noteMultiCursor.deleteRight',
|
|
884
|
-
title: ( localize(
|
|
884
|
+
title: ( localize(7524, "Delete Right")),
|
|
885
885
|
precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor, ( ContextKeyExpr.or(( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Selecting)), ( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Editing)))))),
|
|
886
886
|
keybinding: {
|
|
887
887
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.notebook.multiCursor.enabled', true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor, ( ContextKeyExpr.or(( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Selecting)), ( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Editing)))))),
|