@codingame/monaco-vscode-notebook-service-override 7.1.1 → 8.0.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 +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +21 -21
- 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/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/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/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 +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/sectionActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +1 -1
|
@@ -21,7 +21,7 @@ registerAction2(class NotebookConfigureLayoutAction extends Action2 {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
super({
|
|
23
23
|
id: 'workbench.notebook.layout.select',
|
|
24
|
-
title: ( localize2(
|
|
24
|
+
title: ( localize2(7883, "Select between Notebook Layouts")),
|
|
25
25
|
f1: true,
|
|
26
26
|
precondition: ( (ContextKeyExpr.equals(`config.${NotebookSetting.openGettingStarted}`, true))),
|
|
27
27
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
@@ -56,7 +56,7 @@ registerAction2(class NotebookConfigureLayoutAction extends Action2 {
|
|
|
56
56
|
constructor() {
|
|
57
57
|
super({
|
|
58
58
|
id: 'workbench.notebook.layout.configure',
|
|
59
|
-
title: ( localize2(
|
|
59
|
+
title: ( localize2(7884, "Customize Notebook Layout")),
|
|
60
60
|
f1: true,
|
|
61
61
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
62
62
|
menu: [
|
|
@@ -77,7 +77,7 @@ registerAction2(class NotebookConfigureLayoutFromEditorTitle extends Action2 {
|
|
|
77
77
|
constructor() {
|
|
78
78
|
super({
|
|
79
79
|
id: 'workbench.notebook.layout.configure.editorTitle',
|
|
80
|
-
title: ( localize2(
|
|
80
|
+
title: ( localize2(7884, "Customize Notebook Layout")),
|
|
81
81
|
f1: false,
|
|
82
82
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
83
83
|
menu: [
|
|
@@ -97,7 +97,7 @@ registerAction2(class NotebookConfigureLayoutFromEditorTitle extends Action2 {
|
|
|
97
97
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
98
98
|
submenu: MenuId.NotebookEditorLayoutConfigure,
|
|
99
99
|
rememberDefaultAction: false,
|
|
100
|
-
title: ( localize2(
|
|
100
|
+
title: ( localize2(7885, "Customize Notebook...")),
|
|
101
101
|
icon: Codicon.gear,
|
|
102
102
|
group: 'navigation',
|
|
103
103
|
order: -1,
|
|
@@ -107,7 +107,7 @@ registerAction2(class ToggleLineNumberFromEditorTitle extends Action2 {
|
|
|
107
107
|
constructor() {
|
|
108
108
|
super({
|
|
109
109
|
id: 'notebook.toggleLineNumbersFromEditorTitle',
|
|
110
|
-
title: ( localize2(
|
|
110
|
+
title: ( localize2(7886, 'Toggle Notebook Line Numbers')),
|
|
111
111
|
precondition: NOTEBOOK_EDITOR_FOCUSED,
|
|
112
112
|
menu: [
|
|
113
113
|
{
|
|
@@ -121,7 +121,7 @@ registerAction2(class ToggleLineNumberFromEditorTitle extends Action2 {
|
|
|
121
121
|
f1: true,
|
|
122
122
|
toggled: {
|
|
123
123
|
condition: ( (ContextKeyExpr.notEquals('config.notebook.lineNumbers', 'off'))),
|
|
124
|
-
title: ( localize(
|
|
124
|
+
title: ( localize(7887, "Notebook Line Numbers")),
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
}
|
|
@@ -133,7 +133,7 @@ registerAction2(class ToggleCellToolbarPositionFromEditorTitle extends Action2 {
|
|
|
133
133
|
constructor() {
|
|
134
134
|
super({
|
|
135
135
|
id: 'notebook.toggleCellToolbarPositionFromEditorTitle',
|
|
136
|
-
title: ( localize2(
|
|
136
|
+
title: ( localize2(7888, 'Toggle Cell Toolbar Position')),
|
|
137
137
|
menu: [{
|
|
138
138
|
id: MenuId.NotebookEditorLayoutConfigure,
|
|
139
139
|
group: 'notebookLayoutDetails',
|
|
@@ -151,7 +151,7 @@ registerAction2(class ToggleBreadcrumbFromEditorTitle extends Action2 {
|
|
|
151
151
|
constructor() {
|
|
152
152
|
super({
|
|
153
153
|
id: 'breadcrumbs.toggleFromEditorTitle',
|
|
154
|
-
title: ( localize2(
|
|
154
|
+
title: ( localize2(7889, 'Toggle Breadcrumbs')),
|
|
155
155
|
menu: [{
|
|
156
156
|
id: MenuId.NotebookEditorLayoutConfigure,
|
|
157
157
|
group: 'notebookLayoutDetails',
|
|
@@ -168,7 +168,7 @@ registerAction2(class SaveMimeTypeDisplayOrder extends Action2 {
|
|
|
168
168
|
constructor() {
|
|
169
169
|
super({
|
|
170
170
|
id: 'notebook.saveMimeTypeOrder',
|
|
171
|
-
title: ( localize2(
|
|
171
|
+
title: ( localize2(7890, "Save Mimetype Display Order")),
|
|
172
172
|
f1: true,
|
|
173
173
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
174
174
|
precondition: NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -177,10 +177,10 @@ registerAction2(class SaveMimeTypeDisplayOrder extends Action2 {
|
|
|
177
177
|
run(accessor) {
|
|
178
178
|
const service = accessor.get(INotebookService);
|
|
179
179
|
const qp = accessor.get(IQuickInputService).createQuickPick();
|
|
180
|
-
qp.placeholder = ( localize(
|
|
180
|
+
qp.placeholder = ( localize(7891, 'Settings file to save in'));
|
|
181
181
|
qp.items = [
|
|
182
|
-
{ target: ConfigurationTarget.USER, label: ( localize(
|
|
183
|
-
{ target: ConfigurationTarget.WORKSPACE, label: ( localize(
|
|
182
|
+
{ target: ConfigurationTarget.USER, label: ( localize(7892, 'User Settings')) },
|
|
183
|
+
{ target: ConfigurationTarget.WORKSPACE, label: ( localize(7893, 'Workspace Settings')) },
|
|
184
184
|
];
|
|
185
185
|
qp.onDidAccept(() => {
|
|
186
186
|
const target = qp.selectedItems[0]?.target;
|
|
@@ -197,7 +197,7 @@ registerAction2(class NotebookWebviewResetAction extends Action2 {
|
|
|
197
197
|
constructor() {
|
|
198
198
|
super({
|
|
199
199
|
id: 'workbench.notebook.layout.webview.reset',
|
|
200
|
-
title: ( localize2(
|
|
200
|
+
title: ( localize2(7894, "Reset Notebook Webview")),
|
|
201
201
|
f1: false,
|
|
202
202
|
category: NOTEBOOK_ACTIONS_CATEGORY
|
|
203
203
|
});
|
|
@@ -228,14 +228,14 @@ registerAction2(class ToggleNotebookStickyScroll extends Action2 {
|
|
|
228
228
|
super({
|
|
229
229
|
id: 'notebook.action.toggleNotebookStickyScroll',
|
|
230
230
|
title: {
|
|
231
|
-
...( localize2(
|
|
232
|
-
mnemonicTitle: ( localize(
|
|
231
|
+
...( localize2(7895, "Toggle Notebook Sticky Scroll")),
|
|
232
|
+
mnemonicTitle: ( localize(7896, "&&Toggle Notebook Sticky Scroll")),
|
|
233
233
|
},
|
|
234
234
|
category: Categories.View,
|
|
235
235
|
toggled: {
|
|
236
236
|
condition: ( (ContextKeyExpr.equals('config.notebook.stickyScroll.enabled', true))),
|
|
237
|
-
title: ( localize(
|
|
238
|
-
mnemonicTitle: ( localize(
|
|
237
|
+
title: ( localize(7897, "Toggle Notebook Sticky Scroll")),
|
|
238
|
+
mnemonicTitle: ( localize(7896, "&&Toggle Notebook Sticky Scroll")),
|
|
239
239
|
},
|
|
240
240
|
menu: [
|
|
241
241
|
{ id: MenuId.CommandPalette },
|
|
@@ -13,10 +13,10 @@ class NotebookRunSingleCellInSection extends Action2 {
|
|
|
13
13
|
super({
|
|
14
14
|
id: 'notebook.section.runSingleCell',
|
|
15
15
|
title: {
|
|
16
|
-
...( localize2(
|
|
17
|
-
mnemonicTitle: ( localize(
|
|
16
|
+
...( localize2(7875, "Run Cell")),
|
|
17
|
+
mnemonicTitle: ( localize(7876, "&&Run Cell")),
|
|
18
18
|
},
|
|
19
|
-
shortTitle: ( localize(
|
|
19
|
+
shortTitle: ( localize(7875, "Run Cell")),
|
|
20
20
|
icon: executeIcon,
|
|
21
21
|
menu: [
|
|
22
22
|
{
|
|
@@ -45,10 +45,10 @@ class NotebookRunCellsInSection extends Action2 {
|
|
|
45
45
|
super({
|
|
46
46
|
id: 'notebook.section.runCells',
|
|
47
47
|
title: {
|
|
48
|
-
...( localize2(
|
|
49
|
-
mnemonicTitle: ( localize(
|
|
48
|
+
...( localize2(7877, "Run Cells In Section")),
|
|
49
|
+
mnemonicTitle: ( localize(7878, "&&Run Cells In Section")),
|
|
50
50
|
},
|
|
51
|
-
shortTitle: ( localize(
|
|
51
|
+
shortTitle: ( localize(7877, "Run Cells In Section")),
|
|
52
52
|
menu: [
|
|
53
53
|
{
|
|
54
54
|
id: MenuId.NotebookStickyScrollContext,
|
|
@@ -91,10 +91,10 @@ class NotebookFoldSection extends Action2 {
|
|
|
91
91
|
super({
|
|
92
92
|
id: 'notebook.section.foldSection',
|
|
93
93
|
title: {
|
|
94
|
-
...( localize2(
|
|
95
|
-
mnemonicTitle: ( localize(
|
|
94
|
+
...( localize2(7879, "Fold Section")),
|
|
95
|
+
mnemonicTitle: ( localize(7880, "&&Fold Section")),
|
|
96
96
|
},
|
|
97
|
-
shortTitle: ( localize(
|
|
97
|
+
shortTitle: ( localize(7879, "Fold Section")),
|
|
98
98
|
menu: [
|
|
99
99
|
{
|
|
100
100
|
id: MenuId.NotebookOutlineActionMenu,
|
|
@@ -130,10 +130,10 @@ class NotebookExpandSection extends Action2 {
|
|
|
130
130
|
super({
|
|
131
131
|
id: 'notebook.section.expandSection',
|
|
132
132
|
title: {
|
|
133
|
-
...( localize2(
|
|
134
|
-
mnemonicTitle: ( localize(
|
|
133
|
+
...( localize2(7881, "Expand Section")),
|
|
134
|
+
mnemonicTitle: ( localize(7882, "&&Expand Section")),
|
|
135
135
|
},
|
|
136
|
-
shortTitle: ( localize(
|
|
136
|
+
shortTitle: ( localize(7881, "Expand Section")),
|
|
137
137
|
menu: [
|
|
138
138
|
{
|
|
139
139
|
id: MenuId.NotebookOutlineActionMenu,
|
|
@@ -21,7 +21,7 @@ registerAction2(class extends Action2 {
|
|
|
21
21
|
super({
|
|
22
22
|
id: 'notebook.diff.switchToText',
|
|
23
23
|
icon: openAsTextIcon,
|
|
24
|
-
title: ( localize2(
|
|
24
|
+
title: ( localize2(8014, 'Open Text Diff Editor')),
|
|
25
25
|
precondition: ( (ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID))),
|
|
26
26
|
menu: [{
|
|
27
27
|
id: MenuId.EditorTitle,
|
|
@@ -51,7 +51,7 @@ registerAction2(class extends Action2 {
|
|
|
51
51
|
constructor() {
|
|
52
52
|
super({
|
|
53
53
|
id: 'notebook.diff.cell.revertMetadata',
|
|
54
|
-
title: ( localize(
|
|
54
|
+
title: ( localize(8015, "Revert Metadata")),
|
|
55
55
|
icon: revertIcon,
|
|
56
56
|
f1: false,
|
|
57
57
|
menu: {
|
|
@@ -77,7 +77,7 @@ registerAction2(class extends Action2 {
|
|
|
77
77
|
constructor() {
|
|
78
78
|
super({
|
|
79
79
|
id: 'notebook.diff.cell.switchOutputRenderingStyleToText',
|
|
80
|
-
title: ( localize(
|
|
80
|
+
title: ( localize(8016, "Switch Output Rendering")),
|
|
81
81
|
icon: renderOutputIcon,
|
|
82
82
|
f1: false,
|
|
83
83
|
menu: {
|
|
@@ -97,7 +97,7 @@ registerAction2(class extends Action2 {
|
|
|
97
97
|
constructor() {
|
|
98
98
|
super({
|
|
99
99
|
id: 'notebook.diff.cell.revertOutputs',
|
|
100
|
-
title: ( localize(
|
|
100
|
+
title: ( localize(8017, "Revert Outputs")),
|
|
101
101
|
icon: revertIcon,
|
|
102
102
|
f1: false,
|
|
103
103
|
menu: {
|
|
@@ -129,7 +129,7 @@ registerAction2(class extends Action2 {
|
|
|
129
129
|
constructor() {
|
|
130
130
|
super({
|
|
131
131
|
id: 'notebook.diff.cell.revertInput',
|
|
132
|
-
title: ( localize(
|
|
132
|
+
title: ( localize(8018, "Revert Input")),
|
|
133
133
|
icon: revertIcon,
|
|
134
134
|
f1: false,
|
|
135
135
|
menu: {
|
|
@@ -188,19 +188,19 @@ class ToggleRenderAction extends Action2 {
|
|
|
188
188
|
}
|
|
189
189
|
registerAction2(class extends ToggleRenderAction {
|
|
190
190
|
constructor() {
|
|
191
|
-
super('notebook.diff.showOutputs', ( localize2(
|
|
191
|
+
super('notebook.diff.showOutputs', ( localize2(8019, 'Show Outputs Differences')), ( (ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID))), ( (ContextKeyExpr.notEquals('config.notebook.diff.ignoreOutputs', true))), 2, true, undefined);
|
|
192
192
|
}
|
|
193
193
|
});
|
|
194
194
|
registerAction2(class extends ToggleRenderAction {
|
|
195
195
|
constructor() {
|
|
196
|
-
super('notebook.diff.showMetadata', ( localize2(
|
|
196
|
+
super('notebook.diff.showMetadata', ( localize2(8020, 'Show Metadata Differences')), ( (ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID))), ( (ContextKeyExpr.notEquals('config.notebook.diff.ignoreMetadata', true))), 1, undefined, true);
|
|
197
197
|
}
|
|
198
198
|
});
|
|
199
199
|
registerAction2(class extends Action2 {
|
|
200
200
|
constructor() {
|
|
201
201
|
super({
|
|
202
202
|
id: 'notebook.diff.action.previous',
|
|
203
|
-
title: ( localize(
|
|
203
|
+
title: ( localize(8021, "Show Previous Change")),
|
|
204
204
|
icon: previousChangeIcon,
|
|
205
205
|
f1: false,
|
|
206
206
|
keybinding: {
|
|
@@ -228,7 +228,7 @@ registerAction2(class extends Action2 {
|
|
|
228
228
|
constructor() {
|
|
229
229
|
super({
|
|
230
230
|
id: 'notebook.diff.action.next',
|
|
231
|
-
title: ( localize(
|
|
231
|
+
title: ( localize(8022, "Show Next Change")),
|
|
232
232
|
icon: nextChangeIcon,
|
|
233
233
|
f1: false,
|
|
234
234
|
keybinding: {
|
|
@@ -260,12 +260,12 @@ registerAction2(class extends Action2 {
|
|
|
260
260
|
'notebook.diff.ignoreMetadata': {
|
|
261
261
|
type: 'boolean',
|
|
262
262
|
default: false,
|
|
263
|
-
markdownDescription: ( localize(
|
|
263
|
+
markdownDescription: ( localize(8023, "Hide Metadata Differences"))
|
|
264
264
|
},
|
|
265
265
|
'notebook.diff.ignoreOutputs': {
|
|
266
266
|
type: 'boolean',
|
|
267
267
|
default: false,
|
|
268
|
-
markdownDescription: ( localize(
|
|
268
|
+
markdownDescription: ( localize(8024, "Hide Outputs Differences"))
|
|
269
269
|
},
|
|
270
270
|
}
|
|
271
271
|
});
|
|
@@ -240,7 +240,7 @@ let NotebookTextDiffEditor = class NotebookTextDiffEditor extends EditorPane {
|
|
|
240
240
|
accessibilityProvider: {
|
|
241
241
|
getAriaLabel() { return null; },
|
|
242
242
|
getWidgetAriaLabel() {
|
|
243
|
-
return ( localize(
|
|
243
|
+
return ( localize(7843, "Notebook Text Diff"));
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
246
|
});
|
|
@@ -25,43 +25,43 @@ class NotebookAccessibilityHelp {
|
|
|
25
25
|
function getAccessibilityHelpText() {
|
|
26
26
|
return [
|
|
27
27
|
( localize(
|
|
28
|
-
|
|
28
|
+
8028,
|
|
29
29
|
'The notebook view is a collection of code and markdown cells. Code cells can be executed and will produce output directly below the cell.'
|
|
30
30
|
)),
|
|
31
31
|
( localize(
|
|
32
|
-
|
|
32
|
+
8029,
|
|
33
33
|
'The Edit Cell command<keybinding:notebook.cell.edit> will focus on the cell input.'
|
|
34
34
|
)),
|
|
35
35
|
( localize(
|
|
36
|
-
|
|
36
|
+
8030,
|
|
37
37
|
'The Quit Edit command<keybinding:notebook.cell.quitEdit> will set focus on the cell container. The default (Escape) key may need to be pressed twice first exit the virtual cursor if active.'
|
|
38
38
|
)),
|
|
39
39
|
( localize(
|
|
40
|
-
|
|
40
|
+
8031,
|
|
41
41
|
'The Focus Output command<keybinding:notebook.cell.focusInOutput> will set focus in the cell\'s output.'
|
|
42
42
|
)),
|
|
43
43
|
( localize(
|
|
44
|
-
|
|
44
|
+
8032,
|
|
45
45
|
'The Focus Next Cell Editor command<keybinding:notebook.focusNextEditor> will set focus in the next cell\'s editor.'
|
|
46
46
|
)),
|
|
47
47
|
( localize(
|
|
48
|
-
|
|
48
|
+
8033,
|
|
49
49
|
'The Focus Previous Cell Editor command<keybinding:notebook.focusPreviousEditor> will set focus in the previous cell\'s editor.'
|
|
50
50
|
)),
|
|
51
51
|
( localize(
|
|
52
|
-
|
|
52
|
+
8034,
|
|
53
53
|
'The up and down arrows will also move focus between cells while focused on the outer cell container.'
|
|
54
54
|
)),
|
|
55
55
|
( localize(
|
|
56
|
-
|
|
56
|
+
8035,
|
|
57
57
|
'The Execute Cell command<keybinding:notebook.cell.executeAndFocusContainer> executes the cell that currently has focus.'
|
|
58
58
|
)),
|
|
59
59
|
( localize(
|
|
60
|
-
|
|
60
|
+
8036,
|
|
61
61
|
'The Insert Cell Above/Below commands will create new empty code cells.'
|
|
62
62
|
)),
|
|
63
63
|
( localize(
|
|
64
|
-
|
|
64
|
+
8037,
|
|
65
65
|
'The Change Cell to Code/Markdown commands are used to switch between cell types.'
|
|
66
66
|
))
|
|
67
67
|
].join('\n');
|
|
@@ -191,7 +191,7 @@ const notebookRendererContribution = {
|
|
|
191
191
|
},
|
|
192
192
|
path: {
|
|
193
193
|
type: 'string',
|
|
194
|
-
description: ( localize(
|
|
194
|
+
description: ( localize(7617, 'File to load in the webview to render the extension.')),
|
|
195
195
|
},
|
|
196
196
|
}
|
|
197
197
|
},
|