@codingame/monaco-vscode-notebook-service-override 8.0.4 → 9.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -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 +26 -24
- 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 +624 -0
- 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 +4 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +1 -1
- 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 +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +54 -55
- 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 +23 -21
- 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 +297 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +124 -73
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +27 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +62 -39
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +7 -6
- 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 +7 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +18 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +15 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +0 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +28 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +55 -45
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +6 -6
- 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/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -47
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1303
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -267
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -569
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -115
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -39
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -903
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -397
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -186
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +0 -107
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
2
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
2
3
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
3
4
|
import { localize2, localize } from 'vscode/vscode/vs/nls';
|
|
4
5
|
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
@@ -21,7 +22,7 @@ registerAction2(class NotebookConfigureLayoutAction extends Action2 {
|
|
|
21
22
|
constructor() {
|
|
22
23
|
super({
|
|
23
24
|
id: 'workbench.notebook.layout.select',
|
|
24
|
-
title: ( localize2(
|
|
25
|
+
title: ( localize2(7918, "Select between Notebook Layouts")),
|
|
25
26
|
f1: true,
|
|
26
27
|
precondition: ( (ContextKeyExpr.equals(`config.${NotebookSetting.openGettingStarted}`, true))),
|
|
27
28
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
@@ -56,7 +57,7 @@ registerAction2(class NotebookConfigureLayoutAction extends Action2 {
|
|
|
56
57
|
constructor() {
|
|
57
58
|
super({
|
|
58
59
|
id: 'workbench.notebook.layout.configure',
|
|
59
|
-
title: ( localize2(
|
|
60
|
+
title: ( localize2(7919, "Customize Notebook Layout")),
|
|
60
61
|
f1: true,
|
|
61
62
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
62
63
|
menu: [
|
|
@@ -77,7 +78,7 @@ registerAction2(class NotebookConfigureLayoutFromEditorTitle extends Action2 {
|
|
|
77
78
|
constructor() {
|
|
78
79
|
super({
|
|
79
80
|
id: 'workbench.notebook.layout.configure.editorTitle',
|
|
80
|
-
title: ( localize2(
|
|
81
|
+
title: ( localize2(7919, "Customize Notebook Layout")),
|
|
81
82
|
f1: false,
|
|
82
83
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
83
84
|
menu: [
|
|
@@ -97,7 +98,7 @@ registerAction2(class NotebookConfigureLayoutFromEditorTitle extends Action2 {
|
|
|
97
98
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
98
99
|
submenu: MenuId.NotebookEditorLayoutConfigure,
|
|
99
100
|
rememberDefaultAction: false,
|
|
100
|
-
title: ( localize2(
|
|
101
|
+
title: ( localize2(7920, "Customize Notebook...")),
|
|
101
102
|
icon: Codicon.gear,
|
|
102
103
|
group: 'navigation',
|
|
103
104
|
order: -1,
|
|
@@ -107,7 +108,7 @@ registerAction2(class ToggleLineNumberFromEditorTitle extends Action2 {
|
|
|
107
108
|
constructor() {
|
|
108
109
|
super({
|
|
109
110
|
id: 'notebook.toggleLineNumbersFromEditorTitle',
|
|
110
|
-
title: ( localize2(
|
|
111
|
+
title: ( localize2(7921, 'Toggle Notebook Line Numbers')),
|
|
111
112
|
precondition: NOTEBOOK_EDITOR_FOCUSED,
|
|
112
113
|
menu: [
|
|
113
114
|
{
|
|
@@ -121,7 +122,7 @@ registerAction2(class ToggleLineNumberFromEditorTitle extends Action2 {
|
|
|
121
122
|
f1: true,
|
|
122
123
|
toggled: {
|
|
123
124
|
condition: ( (ContextKeyExpr.notEquals('config.notebook.lineNumbers', 'off'))),
|
|
124
|
-
title: ( localize(
|
|
125
|
+
title: ( localize(7922, "Notebook Line Numbers")),
|
|
125
126
|
}
|
|
126
127
|
});
|
|
127
128
|
}
|
|
@@ -133,7 +134,7 @@ registerAction2(class ToggleCellToolbarPositionFromEditorTitle extends Action2 {
|
|
|
133
134
|
constructor() {
|
|
134
135
|
super({
|
|
135
136
|
id: 'notebook.toggleCellToolbarPositionFromEditorTitle',
|
|
136
|
-
title: ( localize2(
|
|
137
|
+
title: ( localize2(7923, 'Toggle Cell Toolbar Position')),
|
|
137
138
|
menu: [{
|
|
138
139
|
id: MenuId.NotebookEditorLayoutConfigure,
|
|
139
140
|
group: 'notebookLayoutDetails',
|
|
@@ -151,7 +152,7 @@ registerAction2(class ToggleBreadcrumbFromEditorTitle extends Action2 {
|
|
|
151
152
|
constructor() {
|
|
152
153
|
super({
|
|
153
154
|
id: 'breadcrumbs.toggleFromEditorTitle',
|
|
154
|
-
title: ( localize2(
|
|
155
|
+
title: ( localize2(7924, 'Toggle Breadcrumbs')),
|
|
155
156
|
menu: [{
|
|
156
157
|
id: MenuId.NotebookEditorLayoutConfigure,
|
|
157
158
|
group: 'notebookLayoutDetails',
|
|
@@ -168,7 +169,7 @@ registerAction2(class SaveMimeTypeDisplayOrder extends Action2 {
|
|
|
168
169
|
constructor() {
|
|
169
170
|
super({
|
|
170
171
|
id: 'notebook.saveMimeTypeOrder',
|
|
171
|
-
title: ( localize2(
|
|
172
|
+
title: ( localize2(7925, "Save Mimetype Display Order")),
|
|
172
173
|
f1: true,
|
|
173
174
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
174
175
|
precondition: NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -176,20 +177,21 @@ registerAction2(class SaveMimeTypeDisplayOrder extends Action2 {
|
|
|
176
177
|
}
|
|
177
178
|
run(accessor) {
|
|
178
179
|
const service = accessor.get(INotebookService);
|
|
179
|
-
const
|
|
180
|
-
qp
|
|
180
|
+
const disposables = ( (new DisposableStore()));
|
|
181
|
+
const qp = disposables.add(accessor.get(IQuickInputService).createQuickPick());
|
|
182
|
+
qp.placeholder = ( localize(7926, 'Settings file to save in'));
|
|
181
183
|
qp.items = [
|
|
182
|
-
{ target: ConfigurationTarget.USER, label: ( localize(
|
|
183
|
-
{ target: ConfigurationTarget.WORKSPACE, label: ( localize(
|
|
184
|
+
{ target: ConfigurationTarget.USER, label: ( localize(7927, 'User Settings')) },
|
|
185
|
+
{ target: ConfigurationTarget.WORKSPACE, label: ( localize(7928, 'Workspace Settings')) },
|
|
184
186
|
];
|
|
185
|
-
qp.onDidAccept(() => {
|
|
187
|
+
disposables.add(qp.onDidAccept(() => {
|
|
186
188
|
const target = qp.selectedItems[0]?.target;
|
|
187
189
|
if (target !== undefined) {
|
|
188
190
|
service.saveMimeDisplayOrder(target);
|
|
189
191
|
}
|
|
190
192
|
qp.dispose();
|
|
191
|
-
});
|
|
192
|
-
qp.onDidHide(() =>
|
|
193
|
+
}));
|
|
194
|
+
disposables.add(qp.onDidHide(() => disposables.dispose()));
|
|
193
195
|
qp.show();
|
|
194
196
|
}
|
|
195
197
|
});
|
|
@@ -197,7 +199,7 @@ registerAction2(class NotebookWebviewResetAction extends Action2 {
|
|
|
197
199
|
constructor() {
|
|
198
200
|
super({
|
|
199
201
|
id: 'workbench.notebook.layout.webview.reset',
|
|
200
|
-
title: ( localize2(
|
|
202
|
+
title: ( localize2(7929, "Reset Notebook Webview")),
|
|
201
203
|
f1: false,
|
|
202
204
|
category: NOTEBOOK_ACTIONS_CATEGORY
|
|
203
205
|
});
|
|
@@ -228,14 +230,14 @@ registerAction2(class ToggleNotebookStickyScroll extends Action2 {
|
|
|
228
230
|
super({
|
|
229
231
|
id: 'notebook.action.toggleNotebookStickyScroll',
|
|
230
232
|
title: {
|
|
231
|
-
...( localize2(
|
|
232
|
-
mnemonicTitle: ( localize(
|
|
233
|
+
...( localize2(7930, "Toggle Notebook Sticky Scroll")),
|
|
234
|
+
mnemonicTitle: ( localize(7931, "&&Toggle Notebook Sticky Scroll")),
|
|
233
235
|
},
|
|
234
236
|
category: Categories.View,
|
|
235
237
|
toggled: {
|
|
236
238
|
condition: ( (ContextKeyExpr.equals('config.notebook.stickyScroll.enabled', true))),
|
|
237
|
-
title: ( localize(
|
|
238
|
-
mnemonicTitle: ( localize(
|
|
239
|
+
title: ( localize(7932, "Toggle Notebook Sticky Scroll")),
|
|
240
|
+
mnemonicTitle: ( localize(7931, "&&Toggle Notebook Sticky Scroll")),
|
|
239
241
|
},
|
|
240
242
|
menu: [
|
|
241
243
|
{ id: MenuId.CommandPalette },
|
package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js
CHANGED
|
@@ -17,7 +17,7 @@ class NotebookIndentUsingTabs extends Action2 {
|
|
|
17
17
|
constructor() {
|
|
18
18
|
super({
|
|
19
19
|
id: NotebookIndentUsingTabs.ID,
|
|
20
|
-
title: ( localize(
|
|
20
|
+
title: ( localize(10740, "Indent Using Tabs")),
|
|
21
21
|
precondition: undefined,
|
|
22
22
|
});
|
|
23
23
|
}
|
|
@@ -30,7 +30,7 @@ class NotebookIndentUsingSpaces extends Action2 {
|
|
|
30
30
|
constructor() {
|
|
31
31
|
super({
|
|
32
32
|
id: NotebookIndentUsingSpaces.ID,
|
|
33
|
-
title: ( localize(
|
|
33
|
+
title: ( localize(10741, "Indent Using Spaces")),
|
|
34
34
|
precondition: undefined,
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -43,7 +43,7 @@ class NotebookChangeTabDisplaySize extends Action2 {
|
|
|
43
43
|
constructor() {
|
|
44
44
|
super({
|
|
45
45
|
id: NotebookChangeTabDisplaySize.ID,
|
|
46
|
-
title: ( localize(
|
|
46
|
+
title: ( localize(10742, "Change Tab Display Size")),
|
|
47
47
|
precondition: undefined,
|
|
48
48
|
});
|
|
49
49
|
}
|
|
@@ -56,7 +56,7 @@ class NotebookIndentationToSpacesAction extends Action2 {
|
|
|
56
56
|
constructor() {
|
|
57
57
|
super({
|
|
58
58
|
id: NotebookIndentationToSpacesAction.ID,
|
|
59
|
-
title: ( localize(
|
|
59
|
+
title: ( localize(10743, "Convert Indentation to Spaces")),
|
|
60
60
|
precondition: undefined,
|
|
61
61
|
});
|
|
62
62
|
}
|
|
@@ -69,7 +69,7 @@ class NotebookIndentationToTabsAction extends Action2 {
|
|
|
69
69
|
constructor() {
|
|
70
70
|
super({
|
|
71
71
|
id: NotebookIndentationToTabsAction.ID,
|
|
72
|
-
title: ( localize(
|
|
72
|
+
title: ( localize(10744, "Convert Indentation to Tabs")),
|
|
73
73
|
precondition: undefined,
|
|
74
74
|
});
|
|
75
75
|
}
|
|
@@ -101,7 +101,7 @@ function changeNotebookIndentation(accessor, insertSpaces, displaySizeOnly) {
|
|
|
101
101
|
delete initialConfig['editor.tabSize'];
|
|
102
102
|
delete initialConfig['editor.insertSpaces'];
|
|
103
103
|
setTimeout(() => {
|
|
104
|
-
quickInputService.pick(picks, { placeHolder: ( localize(
|
|
104
|
+
quickInputService.pick(picks, { placeHolder: ( localize(10745, "Select Tab Size for Current File")) }).then(pick => {
|
|
105
105
|
if (pick) {
|
|
106
106
|
const pickedVal = parseInt(pick.label, 10);
|
|
107
107
|
if (displaySizeOnly) {
|
|
@@ -151,7 +151,7 @@ function convertNotebookIndentation(accessor, tabsToSpaces) {
|
|
|
151
151
|
return;
|
|
152
152
|
}
|
|
153
153
|
const edits = getIndentationEditOperations(textEditorModel, modelOpts.tabSize, tabsToSpaces);
|
|
154
|
-
bulkEditService.apply(edits, { label: ( localize(
|
|
154
|
+
bulkEditService.apply(edits, { label: ( localize(10746, "Convert Indentation")), code: 'undoredo.convertIndentation', });
|
|
155
155
|
})))).then(() => {
|
|
156
156
|
const initialConfig = configurationService.getValue(NotebookSetting.cellEditorOptionsCustomizations);
|
|
157
157
|
const initialIndentSize = initialConfig['editor.indentSize'];
|
|
@@ -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(7910, "Run Cell")),
|
|
17
|
+
mnemonicTitle: ( localize(7911, "&&Run Cell")),
|
|
18
18
|
},
|
|
19
|
-
shortTitle: ( localize(
|
|
19
|
+
shortTitle: ( localize(7910, "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(7912, "Run Cells In Section")),
|
|
49
|
+
mnemonicTitle: ( localize(7913, "&&Run Cells In Section")),
|
|
50
50
|
},
|
|
51
|
-
shortTitle: ( localize(
|
|
51
|
+
shortTitle: ( localize(7912, "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(7914, "Fold Section")),
|
|
95
|
+
mnemonicTitle: ( localize(7915, "&&Fold Section")),
|
|
96
96
|
},
|
|
97
|
-
shortTitle: ( localize(
|
|
97
|
+
shortTitle: ( localize(7914, "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(7916, "Expand Section")),
|
|
134
|
+
mnemonicTitle: ( localize(7917, "&&Expand Section")),
|
|
135
135
|
},
|
|
136
|
-
shortTitle: ( localize(
|
|
136
|
+
shortTitle: ( localize(7916, "Expand Section")),
|
|
137
137
|
menu: [
|
|
138
138
|
{
|
|
139
139
|
id: MenuId.NotebookOutlineActionMenu,
|