@codingame/monaco-vscode-notebook-service-override 37.0.0 → 37.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -0
- package/package.json +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.d.ts +22 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +210 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.d.ts +24 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.js +138 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.d.ts +29 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +194 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.d.ts +27 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +149 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.d.ts +49 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +372 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.d.ts +10 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.js +26 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.d.ts +9 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +43 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +23 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +5 -5
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +2 -2
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +11 -11
- 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 +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +27 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +22 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +22 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +64 -64
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +31 -31
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/replEditorAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.d.ts +87 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +352 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorAccessibilityHelp.js +14 -14
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +1 -1
|
@@ -28,7 +28,7 @@ const NotebookPreloadContribution = ( Object.freeze({
|
|
|
28
28
|
localResourceRoots: "localResourceRoots"
|
|
29
29
|
}));
|
|
30
30
|
const notebookProviderContribution = {
|
|
31
|
-
description: ( localize(
|
|
31
|
+
description: ( localize(14745, "Contributes notebook document provider.")),
|
|
32
32
|
type: "array",
|
|
33
33
|
defaultSnippets: [{
|
|
34
34
|
body: [{
|
|
@@ -49,25 +49,25 @@ const notebookProviderContribution = {
|
|
|
49
49
|
properties: {
|
|
50
50
|
[NotebookEditorContribution.type]: {
|
|
51
51
|
type: "string",
|
|
52
|
-
description: ( localize(
|
|
52
|
+
description: ( localize(14746, "Type of the notebook."))
|
|
53
53
|
},
|
|
54
54
|
[NotebookEditorContribution.displayName]: {
|
|
55
55
|
type: "string",
|
|
56
|
-
description: ( localize(
|
|
56
|
+
description: ( localize(14747, "Human readable name of the notebook."))
|
|
57
57
|
},
|
|
58
58
|
[NotebookEditorContribution.selector]: {
|
|
59
59
|
type: "array",
|
|
60
|
-
description: ( localize(
|
|
60
|
+
description: ( localize(14748, "Set of globs that the notebook is for.")),
|
|
61
61
|
items: {
|
|
62
62
|
type: "object",
|
|
63
63
|
properties: {
|
|
64
64
|
filenamePattern: {
|
|
65
65
|
type: "string",
|
|
66
|
-
description: ( localize(
|
|
66
|
+
description: ( localize(14749, "Glob that the notebook is enabled for."))
|
|
67
67
|
},
|
|
68
68
|
excludeFileNamePattern: {
|
|
69
69
|
type: "string",
|
|
70
|
-
description: ( localize(
|
|
70
|
+
description: ( localize(14750, "Glob that the notebook is disabled for."))
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -75,15 +75,15 @@ const notebookProviderContribution = {
|
|
|
75
75
|
[NotebookEditorContribution.priority]: {
|
|
76
76
|
type: "string",
|
|
77
77
|
markdownDeprecationMessage: ( localize(
|
|
78
|
-
|
|
78
|
+
14751,
|
|
79
79
|
"Controls if the custom editor is enabled automatically when the user opens a file. This may be overridden by users using the `workbench.editorAssociations` setting."
|
|
80
80
|
)),
|
|
81
81
|
enum: [NotebookEditorPriority.default, NotebookEditorPriority.option],
|
|
82
82
|
markdownEnumDescriptions: [( localize(
|
|
83
|
-
|
|
83
|
+
14752,
|
|
84
84
|
"The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource."
|
|
85
85
|
)), ( localize(
|
|
86
|
-
|
|
86
|
+
14753,
|
|
87
87
|
"The editor is not automatically used when the user opens a resource, but a user can switch to the editor using the `Reopen With` command."
|
|
88
88
|
))],
|
|
89
89
|
default: "default"
|
|
@@ -98,7 +98,7 @@ const defaultRendererSnippet = ( Object.freeze({
|
|
|
98
98
|
entrypoint: ""
|
|
99
99
|
}));
|
|
100
100
|
const notebookRendererContribution = {
|
|
101
|
-
description: ( localize(
|
|
101
|
+
description: ( localize(14754, "Contributes notebook output renderer provider.")),
|
|
102
102
|
type: "array",
|
|
103
103
|
defaultSnippets: [{
|
|
104
104
|
body: [defaultRendererSnippet]
|
|
@@ -113,11 +113,11 @@ const notebookRendererContribution = {
|
|
|
113
113
|
properties: {
|
|
114
114
|
[NotebookRendererContribution.id]: {
|
|
115
115
|
type: "string",
|
|
116
|
-
description: ( localize(
|
|
116
|
+
description: ( localize(14755, "Unique identifier of the notebook output renderer."))
|
|
117
117
|
},
|
|
118
118
|
[NotebookRendererContribution.displayName]: {
|
|
119
119
|
type: "string",
|
|
120
|
-
description: ( localize(
|
|
120
|
+
description: ( localize(14756, "Human readable name of the notebook output renderer."))
|
|
121
121
|
},
|
|
122
122
|
[NotebookRendererContribution.hardDependencies]: {
|
|
123
123
|
type: "array",
|
|
@@ -126,7 +126,7 @@ const notebookRendererContribution = {
|
|
|
126
126
|
type: "string"
|
|
127
127
|
},
|
|
128
128
|
markdownDescription: ( localize(
|
|
129
|
-
|
|
129
|
+
14757,
|
|
130
130
|
"List of kernel dependencies the renderer requires. If any of the dependencies are present in the `NotebookKernel.preloads`, the renderer can be used."
|
|
131
131
|
))
|
|
132
132
|
},
|
|
@@ -137,7 +137,7 @@ const notebookRendererContribution = {
|
|
|
137
137
|
type: "string"
|
|
138
138
|
},
|
|
139
139
|
markdownDescription: ( localize(
|
|
140
|
-
|
|
140
|
+
14758,
|
|
141
141
|
"List of soft kernel dependencies the renderer can make use of. If any of the dependencies are present in the `NotebookKernel.preloads`, the renderer will be preferred over renderers that don't interact with the kernel."
|
|
142
142
|
))
|
|
143
143
|
},
|
|
@@ -145,14 +145,14 @@ const notebookRendererContribution = {
|
|
|
145
145
|
default: "never",
|
|
146
146
|
enum: ["always", "optional", "never"],
|
|
147
147
|
enumDescriptions: [( localize(
|
|
148
|
-
|
|
148
|
+
14759,
|
|
149
149
|
"Messaging is required. The renderer will only be used when it's part of an extension that can be run in an extension host."
|
|
150
150
|
)), ( localize(
|
|
151
|
-
|
|
151
|
+
14760,
|
|
152
152
|
"The renderer is better with messaging available, but it's not required."
|
|
153
|
-
)), ( localize(
|
|
153
|
+
)), ( localize(14761, "The renderer does not require messaging."))],
|
|
154
154
|
description: ( localize(
|
|
155
|
-
|
|
155
|
+
14762,
|
|
156
156
|
"Defines how and if the renderer needs to communicate with an extension host, via `createRendererMessaging`. Renderers with stronger messaging requirements may not work in all environments."
|
|
157
157
|
))
|
|
158
158
|
}
|
|
@@ -166,13 +166,13 @@ const notebookRendererContribution = {
|
|
|
166
166
|
properties: {
|
|
167
167
|
[NotebookRendererContribution.mimeTypes]: {
|
|
168
168
|
type: "array",
|
|
169
|
-
description: ( localize(
|
|
169
|
+
description: ( localize(14763, "Set of globs that the notebook is for.")),
|
|
170
170
|
items: {
|
|
171
171
|
type: "string"
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
174
|
[NotebookRendererContribution.entrypoint]: {
|
|
175
|
-
description: ( localize(
|
|
175
|
+
description: ( localize(14764, "File to load in the webview to render the extension.")),
|
|
176
176
|
type: "string"
|
|
177
177
|
}
|
|
178
178
|
}
|
|
@@ -180,17 +180,17 @@ const notebookRendererContribution = {
|
|
|
180
180
|
required: [NotebookRendererContribution.entrypoint],
|
|
181
181
|
properties: {
|
|
182
182
|
[NotebookRendererContribution.entrypoint]: {
|
|
183
|
-
description: ( localize(
|
|
183
|
+
description: ( localize(14764, "File to load in the webview to render the extension.")),
|
|
184
184
|
type: "object",
|
|
185
185
|
required: ["extends", "path"],
|
|
186
186
|
properties: {
|
|
187
187
|
extends: {
|
|
188
188
|
type: "string",
|
|
189
|
-
description: ( localize(
|
|
189
|
+
description: ( localize(14765, "Existing renderer that this one extends."))
|
|
190
190
|
},
|
|
191
191
|
path: {
|
|
192
192
|
type: "string",
|
|
193
|
-
description: ( localize(
|
|
193
|
+
description: ( localize(14764, "File to load in the webview to render the extension."))
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
}
|
|
@@ -200,7 +200,7 @@ const notebookRendererContribution = {
|
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
const notebookPreloadContribution = {
|
|
203
|
-
description: ( localize(
|
|
203
|
+
description: ( localize(14766, "Contributes notebook preloads.")),
|
|
204
204
|
type: "array",
|
|
205
205
|
defaultSnippets: [{
|
|
206
206
|
body: [{
|
|
@@ -214,11 +214,11 @@ const notebookPreloadContribution = {
|
|
|
214
214
|
properties: {
|
|
215
215
|
[NotebookPreloadContribution.type]: {
|
|
216
216
|
type: "string",
|
|
217
|
-
description: ( localize(
|
|
217
|
+
description: ( localize(14767, "Type of the notebook."))
|
|
218
218
|
},
|
|
219
219
|
[NotebookPreloadContribution.entrypoint]: {
|
|
220
220
|
type: "string",
|
|
221
|
-
description: ( localize(
|
|
221
|
+
description: ( localize(14768, "Path to file loaded in the webview."))
|
|
222
222
|
},
|
|
223
223
|
[NotebookPreloadContribution.localResourceRoots]: {
|
|
224
224
|
type: "array",
|
|
@@ -226,7 +226,7 @@ const notebookPreloadContribution = {
|
|
|
226
226
|
type: "string"
|
|
227
227
|
},
|
|
228
228
|
description: ( localize(
|
|
229
|
-
|
|
229
|
+
14769,
|
|
230
230
|
"Paths to additional resources that should be allowed in the webview."
|
|
231
231
|
))
|
|
232
232
|
}
|
|
@@ -278,7 +278,7 @@ class NotebooksDataRenderer extends Disposable {
|
|
|
278
278
|
dispose: () => {}
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
const headers = [( localize(
|
|
281
|
+
const headers = [( localize(14770, "ID")), ( localize(14771, "Name"))];
|
|
282
282
|
const rows = ( contrib.sort((a, b) => a.type.localeCompare(b.type)).map(notebook => {
|
|
283
283
|
return [notebook.type, notebook.displayName];
|
|
284
284
|
}));
|
|
@@ -310,7 +310,7 @@ class NotebookRenderersDataRenderer extends Disposable {
|
|
|
310
310
|
dispose: () => {}
|
|
311
311
|
};
|
|
312
312
|
}
|
|
313
|
-
const headers = [( localize(
|
|
313
|
+
const headers = [( localize(14772, "Name")), ( localize(14773, "Mimetypes"))];
|
|
314
314
|
const rows = ( contrib.sort((a, b) => a.displayName.localeCompare(b.displayName)).map(notebookRenderer => {
|
|
315
315
|
return [notebookRenderer.displayName, notebookRenderer.mimeTypes.join(",")];
|
|
316
316
|
}));
|
|
@@ -325,7 +325,7 @@ class NotebookRenderersDataRenderer extends Disposable {
|
|
|
325
325
|
}
|
|
326
326
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
327
327
|
id: "notebooks",
|
|
328
|
-
label: ( localize(
|
|
328
|
+
label: ( localize(14774, "Notebooks")),
|
|
329
329
|
access: {
|
|
330
330
|
canToggle: false
|
|
331
331
|
},
|
|
@@ -333,7 +333,7 @@ class NotebookRenderersDataRenderer extends Disposable {
|
|
|
333
333
|
});
|
|
334
334
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
335
335
|
id: "notebookRenderer",
|
|
336
|
-
label: ( localize(
|
|
336
|
+
label: ( localize(14775, "Notebook Renderers")),
|
|
337
337
|
access: {
|
|
338
338
|
canToggle: false
|
|
339
339
|
},
|
package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { IEditorGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/s
|
|
|
15
15
|
import { IEditorResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service";
|
|
16
16
|
import { INotebookService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
17
17
|
import { CellEditState, IBaseCellEditorOptions, ICellOutputViewModel, ICommonCellInfo, IGenericCellViewModel, INotebookEditorCreationOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
18
|
-
import { INotebookDelegateForWebview } from "@codingame/monaco-vscode-
|
|
18
|
+
import { INotebookDelegateForWebview } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView";
|
|
19
19
|
import { NotebookOutputEditorInput } from "./notebookOutputEditorInput.js";
|
|
20
20
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
21
21
|
import { IEditorOptions as ICodeEditorOptions } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/config/editorOptions";
|
package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js
CHANGED
|
@@ -19,17 +19,17 @@ import { IEditorResolverService } from '@codingame/monaco-vscode-api/vscode/vs/w
|
|
|
19
19
|
import { NOTEBOOK_OUTPUT_EDITOR_ID, CellUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
20
20
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
21
21
|
import { RenderOutputType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
22
|
-
import { getDefaultNotebookCreationOptions } from '@codingame/monaco-vscode-
|
|
23
|
-
import { NotebookOptions } from '@codingame/monaco-vscode-
|
|
24
|
-
import { BackLayerWebView } from '@codingame/monaco-vscode-
|
|
22
|
+
import { getDefaultNotebookCreationOptions } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget';
|
|
23
|
+
import { NotebookOptions } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/notebookOptions';
|
|
24
|
+
import { BackLayerWebView } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView';
|
|
25
25
|
import { NotebookOutputEditorInput } from './notebookOutputEditorInput.js';
|
|
26
26
|
import { createBareFontInfoFromRawSettings } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/fontInfoFromSettings';
|
|
27
27
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
28
28
|
import { FontMeasurements } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/config/fontMeasurements';
|
|
29
29
|
import { PixelRatio } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/pixelRatio';
|
|
30
|
-
import { NotebookViewModel } from '@codingame/monaco-vscode-
|
|
31
|
-
import { NotebookEventDispatcher } from '@codingame/monaco-vscode-
|
|
32
|
-
import { ViewContext } from '@codingame/monaco-vscode-
|
|
30
|
+
import { NotebookViewModel } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl';
|
|
31
|
+
import { NotebookEventDispatcher } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher';
|
|
32
|
+
import { ViewContext } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/viewContext';
|
|
33
33
|
|
|
34
34
|
var NotebookOutputEditor_1;
|
|
35
35
|
class NoopCellEditorOptions extends Disposable {
|
|
@@ -142,7 +142,7 @@ let NotebookOutputEditor = class NotebookOutputEditor extends EditorPane {
|
|
|
142
142
|
if (this.input) {
|
|
143
143
|
return this.input.getName();
|
|
144
144
|
}
|
|
145
|
-
return localize(
|
|
145
|
+
return localize(14805, "Notebook Output Editor");
|
|
146
146
|
}
|
|
147
147
|
async setInput(input, options, context, token) {
|
|
148
148
|
await super.setInput(input, options, context, token);
|
|
@@ -202,13 +202,13 @@ let NotebookOutputEditor = class NotebookOutputEditor extends EditorPane {
|
|
|
202
202
|
}
|
|
203
203
|
_renderMissingRenderer(viewModel, preferredMimeType) {
|
|
204
204
|
if (!viewModel.model.outputs.length) {
|
|
205
|
-
return this._renderMessage(viewModel, ( localize(
|
|
205
|
+
return this._renderMessage(viewModel, ( localize(14806, "Cell has no output")));
|
|
206
206
|
}
|
|
207
207
|
if (!preferredMimeType) {
|
|
208
208
|
const mimeTypes = ( viewModel.model.outputs.map(op => op.mime));
|
|
209
209
|
const mimeTypesMessage = mimeTypes.join(", ");
|
|
210
210
|
return this._renderMessage(viewModel, ( localize(
|
|
211
|
-
|
|
211
|
+
14807,
|
|
212
212
|
"No renderer could be found for output. It has the following mimetypes: {0}",
|
|
213
213
|
mimeTypesMessage
|
|
214
214
|
)));
|
package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { EditorInputCapabilities } from "@codingame/monaco-vscode-api/vscode/vs/
|
|
|
4
4
|
import { EditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput";
|
|
5
5
|
import { IResolvedNotebookEditorModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
6
6
|
import { INotebookEditorModelResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service";
|
|
7
|
-
import { NotebookCellTextModel } from "@codingame/monaco-vscode-
|
|
7
|
+
import { NotebookCellTextModel } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
8
8
|
declare class ResolvedNotebookOutputEditorInputModel implements IDisposable {
|
|
9
9
|
readonly resolvedNotebookEditorModel: IResolvedNotebookEditorModel;
|
|
10
10
|
readonly notebookUri: URI;
|
package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js
CHANGED
|
@@ -81,7 +81,7 @@ let NotebookOutputEditorInput = class NotebookOutputEditorInput extends EditorIn
|
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
getName() {
|
|
84
|
-
return localize(
|
|
84
|
+
return localize(14808, "Notebook Output Preview");
|
|
85
85
|
}
|
|
86
86
|
get editorId() {
|
|
87
87
|
return "notebookOutputEditor";
|
|
@@ -5,7 +5,7 @@ import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
5
5
|
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
6
6
|
import { isReplEditorControl } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/replNotebook/browser/replEditor';
|
|
7
7
|
import { IS_COMPOSITE_NOTEBOOK, NOTEBOOK_CELL_LIST_FOCUSED } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
8
|
-
import { getAllOutputsText } from '@codingame/monaco-vscode-
|
|
8
|
+
import { getAllOutputsText } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper';
|
|
9
9
|
|
|
10
10
|
class ReplEditorAccessibleView {
|
|
11
11
|
constructor() {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CodeWindow } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/window";
|
|
2
|
-
import { NotebookEditorWidget } from "@codingame/monaco-vscode-
|
|
2
|
+
import { NotebookEditorWidget } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget";
|
|
3
3
|
import { DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
4
4
|
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
5
5
|
import { IInstantiationService, ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { ResourceMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
|
|
4
|
-
import { getDefaultNotebookCreationOptions, NotebookEditorWidget } from '@codingame/monaco-vscode-
|
|
4
|
+
import { getDefaultNotebookCreationOptions, NotebookEditorWidget } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget';
|
|
5
5
|
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
6
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
7
7
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/
|
|
|
2
2
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
3
3
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
4
4
|
import { IWorkspaceTrustRequestService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service";
|
|
5
|
-
import { NotebookCellTextModel } from "@codingame/monaco-vscode-
|
|
5
|
+
import { NotebookCellTextModel } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
6
6
|
import { INotebookTextModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
7
7
|
import { ICellExecutionParticipant } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService";
|
|
8
8
|
import { INotebookExecutionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService.service";
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js
CHANGED
|
@@ -4,7 +4,7 @@ import { toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common
|
|
|
4
4
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
5
5
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
6
6
|
import { IWorkspaceTrustRequestService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service';
|
|
7
|
-
import { KernelPickerMRUStrategy } from '@codingame/monaco-vscode-
|
|
7
|
+
import { KernelPickerMRUStrategy } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy';
|
|
8
8
|
import { CellKind, NotebookCellExecutionState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
9
9
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
10
10
|
import { INotebookKernelService, INotebookKernelHistoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
@@ -33,7 +33,7 @@ let NotebookExecutionService = class NotebookExecutionService {
|
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
this._logService.debug(`Execution`, `${JSON.stringify(( cellsArr.map(c => c.handle)))}`);
|
|
36
|
-
const message = ( localize(
|
|
36
|
+
const message = ( localize(14809, "Executing a notebook cell will run code from this workspace."));
|
|
37
37
|
const trust = await this._workspaceTrustRequestService.requestWorkspaceTrust({
|
|
38
38
|
message
|
|
39
39
|
});
|
|
@@ -3,7 +3,7 @@ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
|
3
3
|
import { IAccessibilitySignalService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service";
|
|
4
4
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
5
5
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
6
|
-
import { ICellExecutionStateChangedEvent, IExecutionStateChangedEvent, INotebookCellExecution, INotebookExecution, INotebookFailStateChangedEvent } from "@codingame/monaco-vscode-
|
|
6
|
+
import { ICellExecutionStateChangedEvent, IExecutionStateChangedEvent, INotebookCellExecution, INotebookExecution, INotebookFailStateChangedEvent } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService";
|
|
7
7
|
import { INotebookExecutionStateService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
|
|
8
8
|
import { INotebookService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
9
9
|
export declare class NotebookExecutionStateService extends Disposable implements INotebookExecutionStateService {
|
|
@@ -12,7 +12,7 @@ import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log
|
|
|
12
12
|
import { CellUri, NotebookCellExecutionState, CellEditType, NotebookExecutionState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
13
13
|
import { CellExecutionUpdateType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService';
|
|
14
14
|
import { INotebookExecutionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService.service';
|
|
15
|
-
import { NotebookExecutionType } from '@codingame/monaco-vscode-
|
|
15
|
+
import { NotebookExecutionType } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
16
16
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
17
17
|
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
18
18
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
@@ -126,7 +126,7 @@ registerAction2(class extends Action2 {
|
|
|
126
126
|
constructor() {
|
|
127
127
|
super({
|
|
128
128
|
id: "notebook.clearNotebookKernelsMRUCache",
|
|
129
|
-
title: ( localize2(
|
|
129
|
+
title: ( localize2(14810, "Clear Notebook Kernels MRU Cache")),
|
|
130
130
|
category: Categories.Developer,
|
|
131
131
|
f1: true
|
|
132
132
|
});
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js
CHANGED
|
@@ -91,14 +91,14 @@ let NotebookKeymapService = class NotebookKeymapService extends Disposable {
|
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
this.notificationService.prompt(Severity.Info, ( localize(
|
|
94
|
-
|
|
94
|
+
14811,
|
|
95
95
|
"Disable other keymaps ({0}) to avoid conflicts between keybindings?",
|
|
96
96
|
( distinct(( oldKeymaps.map(k => k.local.manifest.displayName))).map(name => `'${name}'`)).join(", ")
|
|
97
97
|
)), [{
|
|
98
|
-
label: ( localize(
|
|
98
|
+
label: ( localize(14812, "Yes")),
|
|
99
99
|
run: () => onPrompt(true)
|
|
100
100
|
}, {
|
|
101
|
-
label: ( localize(
|
|
101
|
+
label: ( localize(14813, "No")),
|
|
102
102
|
run: () => onPrompt(false)
|
|
103
103
|
}]);
|
|
104
104
|
}
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js
CHANGED
|
@@ -13,7 +13,7 @@ let NotebookLoggingService = class NotebookLoggingService extends Disposable {
|
|
|
13
13
|
constructor(loggerService) {
|
|
14
14
|
super();
|
|
15
15
|
this._logger = this._register(loggerService.createLogger(logChannelId, {
|
|
16
|
-
name: ( localize(
|
|
16
|
+
name: ( localize(14814, "Notebook")),
|
|
17
17
|
group: windowLogGroup
|
|
18
18
|
}));
|
|
19
19
|
}
|
|
@@ -7,7 +7,7 @@ import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
7
7
|
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
8
8
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
9
9
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
10
|
-
import { NotebookCellTextModel } from "@codingame/monaco-vscode-
|
|
10
|
+
import { NotebookCellTextModel } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
11
11
|
import { NotebookTextModel } from "../../common/model/notebookTextModel.js";
|
|
12
12
|
import { INotebookContributionData, INotebookRendererInfo, IOrderedMimeType, IOutputDto, NotebookExtensionDescription, INotebookStaticPreloadInfo } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
13
13
|
import { INotebookEditorModelResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service";
|
|
@@ -675,7 +675,7 @@ let NotebookService = class NotebookService extends Disposable {
|
|
|
675
675
|
const knownProvider = this.getViewTypeProvider(viewType);
|
|
676
676
|
const actions = knownProvider ? [toAction({
|
|
677
677
|
id: "workbench.notebook.action.installMissingViewType",
|
|
678
|
-
label: ( localize(
|
|
678
|
+
label: ( localize(14815, "Install extension for '{0}'", viewType)),
|
|
679
679
|
run: async () => {
|
|
680
680
|
await this._instantiationService.createInstance(InstallRecommendedExtensionAction, knownProvider).run();
|
|
681
681
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
3
3
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
4
4
|
import { MarkerSeverity } from '@codingame/monaco-vscode-api/vscode/vs/platform/markers/common/markers';
|
|
5
|
-
import { executingStateIcon } from '@codingame/monaco-vscode-
|
|
5
|
+
import { executingStateIcon } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
6
6
|
import { CellKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
7
7
|
import { SymbolKinds } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages';
|
|
8
8
|
|
package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js
CHANGED
|
@@ -3,7 +3,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { renderAsPlaintext } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer';
|
|
4
4
|
import { IOutlineModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/documentSymbols/browser/outlineModel.service';
|
|
5
5
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
6
|
-
import { getMarkdownHeadersInCell } from '@codingame/monaco-vscode-
|
|
6
|
+
import { getMarkdownHeadersInCell } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/foldingModel';
|
|
7
7
|
import { OutlineEntry } from './OutlineEntry.js';
|
|
8
8
|
import { CellKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
9
9
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
@@ -93,7 +93,7 @@ let NotebookOutlineEntryFactory = class NotebookOutlineEntryFactory {
|
|
|
93
93
|
}
|
|
94
94
|
if (entries.length === 0) {
|
|
95
95
|
if (preview.length === 0) {
|
|
96
|
-
preview = ( localize(
|
|
96
|
+
preview = ( localize(14848, "empty cell"));
|
|
97
97
|
}
|
|
98
98
|
entries.push(( new OutlineEntry(
|
|
99
99
|
index++,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IResourceUndoRedoElement, UndoRedoElementType } from "@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo";
|
|
2
2
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
|
-
import { NotebookCellTextModel } from "@codingame/monaco-vscode-
|
|
3
|
+
import { NotebookCellTextModel } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
4
4
|
import { ISelectionState, NotebookCellMetadata } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
5
5
|
/**
|
|
6
6
|
* It should not modify Undo/Redo stack
|
|
@@ -11,7 +11,7 @@ import { ILanguageDetectionService } from "@codingame/monaco-vscode-api/vscode/v
|
|
|
11
11
|
import { ICellDto2, ICellEditOperation, INotebookSnapshotOptions, INotebookTextModel, ISelectionState, NotebookCellDefaultCollapseConfig, NotebookData, NotebookDocumentMetadata, NotebookTextModelChangedEvent, NotebookTextModelWillAddRemoveEvent, TransientOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
12
12
|
import { INotebookExecutionStateService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
|
|
13
13
|
import { INotebookLoggingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookLoggingService.service";
|
|
14
|
-
import { NotebookCellTextModel } from "@codingame/monaco-vscode-
|
|
14
|
+
import { NotebookCellTextModel } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
15
15
|
export declare class NotebookTextModel extends Disposable implements INotebookTextModel {
|
|
16
16
|
readonly viewType: string;
|
|
17
17
|
readonly uri: URI;
|
|
@@ -22,8 +22,8 @@ import { CellUri, NotebookCellsChangeType, NotebookCellExecutionState, CellEditT
|
|
|
22
22
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
23
23
|
import { INotebookLoggingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookLoggingService.service';
|
|
24
24
|
import { SpliceCellsEdit, CellMetadataEdit, MoveCellEdit } from './cellEdit.js';
|
|
25
|
-
import { NotebookCellOutputTextModel } from '@codingame/monaco-vscode-
|
|
26
|
-
import { NotebookCellTextModel } from '@codingame/monaco-vscode-
|
|
25
|
+
import { NotebookCellOutputTextModel } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel';
|
|
26
|
+
import { NotebookCellTextModel } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel';
|
|
27
27
|
|
|
28
28
|
var NotebookTextModel_1;
|
|
29
29
|
class StackOperation {
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { VSBufferReadableStream } from "@codingame/monaco-vscode-api/vscode/vs/base/common/buffer";
|
|
2
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
3
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
4
|
+
import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
|
|
5
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
6
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
7
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
8
|
+
import { IWriteFileOptions, IFileStatWithMetadata } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files";
|
|
9
|
+
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
10
|
+
import { IRevertOptions, ISaveOptions, IUntypedEditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
11
|
+
import { EditorModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorModel";
|
|
12
|
+
import { NotebookTextModel } from "./model/notebookTextModel.js";
|
|
13
|
+
import { INotebookEditorModel, INotebookLoadOptions, IResolvedNotebookEditorModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
14
|
+
import { INotebookLoggingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookLoggingService.service";
|
|
15
|
+
import { INotebookSerializer } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService";
|
|
16
|
+
import { INotebookService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
17
|
+
import { IFilesConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service";
|
|
18
|
+
import { IFileWorkingCopyModelConfiguration, SnapshotContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/fileWorkingCopy";
|
|
19
|
+
import { IFileWorkingCopyManager } from "../../../services/workingCopy/common/fileWorkingCopyManager.js";
|
|
20
|
+
import { IStoredFileWorkingCopyModel, IStoredFileWorkingCopyModelContentChangedEvent, IStoredFileWorkingCopyModelFactory, IStoredFileWorkingCopySaveEvent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/storedFileWorkingCopy";
|
|
21
|
+
import { IUntitledFileWorkingCopyModel, IUntitledFileWorkingCopyModelContentChangedEvent, IUntitledFileWorkingCopyModelFactory } from "../../../services/workingCopy/common/untitledFileWorkingCopy.js";
|
|
22
|
+
export declare class SimpleNotebookEditorModel extends EditorModel implements INotebookEditorModel {
|
|
23
|
+
readonly resource: URI;
|
|
24
|
+
private readonly _hasAssociatedFilePath;
|
|
25
|
+
readonly viewType: string;
|
|
26
|
+
private readonly _workingCopyManager;
|
|
27
|
+
private readonly _filesConfigurationService;
|
|
28
|
+
private readonly _onDidChangeDirty;
|
|
29
|
+
private readonly _onDidSave;
|
|
30
|
+
private readonly _onDidChangeOrphaned;
|
|
31
|
+
private readonly _onDidChangeReadonly;
|
|
32
|
+
private readonly _onDidRevertUntitled;
|
|
33
|
+
readonly onDidChangeDirty: Event<void>;
|
|
34
|
+
readonly onDidSave: Event<IStoredFileWorkingCopySaveEvent>;
|
|
35
|
+
readonly onDidChangeOrphaned: Event<void>;
|
|
36
|
+
readonly onDidChangeReadonly: Event<void>;
|
|
37
|
+
readonly onDidRevertUntitled: Event<void>;
|
|
38
|
+
private _workingCopy?;
|
|
39
|
+
private readonly _workingCopyListeners;
|
|
40
|
+
private readonly scratchPad;
|
|
41
|
+
constructor(resource: URI, _hasAssociatedFilePath: boolean, viewType: string, _workingCopyManager: IFileWorkingCopyManager<NotebookFileWorkingCopyModel, NotebookFileWorkingCopyModel>, scratchpad: boolean, _filesConfigurationService: IFilesConfigurationService);
|
|
42
|
+
dispose(): void;
|
|
43
|
+
get notebook(): NotebookTextModel | undefined;
|
|
44
|
+
isResolved(): this is IResolvedNotebookEditorModel;
|
|
45
|
+
canDispose(): Promise<boolean>;
|
|
46
|
+
isDirty(): boolean;
|
|
47
|
+
isModified(): boolean;
|
|
48
|
+
isOrphaned(): boolean;
|
|
49
|
+
hasAssociatedFilePath(): boolean;
|
|
50
|
+
isReadonly(): boolean | IMarkdownString;
|
|
51
|
+
get hasErrorState(): boolean;
|
|
52
|
+
revert(options?: IRevertOptions): Promise<void>;
|
|
53
|
+
save(options?: ISaveOptions): Promise<boolean>;
|
|
54
|
+
load(options?: INotebookLoadOptions): Promise<IResolvedNotebookEditorModel>;
|
|
55
|
+
saveAs(target: URI): Promise<IUntypedEditorInput | undefined>;
|
|
56
|
+
private static _isStoredFileWorkingCopy;
|
|
57
|
+
}
|
|
58
|
+
export declare class NotebookFileWorkingCopyModel extends Disposable implements IStoredFileWorkingCopyModel, IUntitledFileWorkingCopyModel {
|
|
59
|
+
private readonly _notebookModel;
|
|
60
|
+
private readonly _notebookService;
|
|
61
|
+
private readonly _configurationService;
|
|
62
|
+
private readonly _telemetryService;
|
|
63
|
+
private readonly _notebookLogService;
|
|
64
|
+
private readonly _onDidChangeContent;
|
|
65
|
+
readonly onDidChangeContent: Event<IStoredFileWorkingCopyModelContentChangedEvent & IUntitledFileWorkingCopyModelContentChangedEvent>;
|
|
66
|
+
readonly onWillDispose: Event<void>;
|
|
67
|
+
readonly configuration: IFileWorkingCopyModelConfiguration | undefined;
|
|
68
|
+
save: ((options: IWriteFileOptions, token: CancellationToken) => Promise<IFileStatWithMetadata>) | undefined;
|
|
69
|
+
constructor(_notebookModel: NotebookTextModel, _notebookService: INotebookService, _configurationService: IConfigurationService, _telemetryService: ITelemetryService, _notebookLogService: INotebookLoggingService);
|
|
70
|
+
private setSaveDelegate;
|
|
71
|
+
dispose(): void;
|
|
72
|
+
get notebookModel(): NotebookTextModel;
|
|
73
|
+
snapshot(context: SnapshotContext, token: CancellationToken): Promise<VSBufferReadableStream>;
|
|
74
|
+
update(stream: VSBufferReadableStream, token: CancellationToken): Promise<void>;
|
|
75
|
+
getNotebookSerializer(): Promise<INotebookSerializer>;
|
|
76
|
+
get versionId(): string;
|
|
77
|
+
pushStackElement(): void;
|
|
78
|
+
}
|
|
79
|
+
export declare class NotebookFileWorkingCopyModelFactory implements IStoredFileWorkingCopyModelFactory<NotebookFileWorkingCopyModel>, IUntitledFileWorkingCopyModelFactory<NotebookFileWorkingCopyModel> {
|
|
80
|
+
private readonly _viewType;
|
|
81
|
+
private readonly _notebookService;
|
|
82
|
+
private readonly _configurationService;
|
|
83
|
+
private readonly _telemetryService;
|
|
84
|
+
private readonly _notebookLogService;
|
|
85
|
+
constructor(_viewType: string, _notebookService: INotebookService, _configurationService: IConfigurationService, _telemetryService: ITelemetryService, _notebookLogService: INotebookLoggingService);
|
|
86
|
+
createModel(resource: URI, stream: VSBufferReadableStream, token: CancellationToken): Promise<NotebookFileWorkingCopyModel>;
|
|
87
|
+
}
|