@codingame/monaco-vscode-notebook-service-override 1.85.6 → 2.0.0-v2.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/notebook.js +1 -1
- package/package.json +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +23 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +47 -47
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +52 -52
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +85 -85
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibility.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +20 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +6 -6
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.js +9 -9
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +6 -6
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +15 -15
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +15 -15
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +6 -6
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +8 -8
- package/workers/notebook.worker.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
2
2
|
import { ExtensionsRegistry } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
3
3
|
import { NotebookEditorPriority } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
4
4
|
|
|
@@ -23,7 +23,7 @@ const NotebookPreloadContribution = ( Object.freeze({
|
|
|
23
23
|
localResourceRoots: 'localResourceRoots',
|
|
24
24
|
}));
|
|
25
25
|
const notebookProviderContribution = {
|
|
26
|
-
description: (
|
|
26
|
+
description: ( localizeWithPath(
|
|
27
27
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
28
28
|
'contributes.notebook.provider',
|
|
29
29
|
'Contributes notebook document provider.'
|
|
@@ -40,7 +40,7 @@ const notebookProviderContribution = {
|
|
|
40
40
|
properties: {
|
|
41
41
|
[NotebookEditorContribution.type]: {
|
|
42
42
|
type: 'string',
|
|
43
|
-
description: (
|
|
43
|
+
description: ( localizeWithPath(
|
|
44
44
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
45
45
|
'contributes.notebook.provider.viewType',
|
|
46
46
|
'Type of the notebook.'
|
|
@@ -48,7 +48,7 @@ const notebookProviderContribution = {
|
|
|
48
48
|
},
|
|
49
49
|
[NotebookEditorContribution.displayName]: {
|
|
50
50
|
type: 'string',
|
|
51
|
-
description: (
|
|
51
|
+
description: ( localizeWithPath(
|
|
52
52
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
53
53
|
'contributes.notebook.provider.displayName',
|
|
54
54
|
'Human readable name of the notebook.'
|
|
@@ -56,7 +56,7 @@ const notebookProviderContribution = {
|
|
|
56
56
|
},
|
|
57
57
|
[NotebookEditorContribution.selector]: {
|
|
58
58
|
type: 'array',
|
|
59
|
-
description: (
|
|
59
|
+
description: ( localizeWithPath(
|
|
60
60
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
61
61
|
'contributes.notebook.provider.selector',
|
|
62
62
|
'Set of globs that the notebook is for.'
|
|
@@ -66,7 +66,7 @@ const notebookProviderContribution = {
|
|
|
66
66
|
properties: {
|
|
67
67
|
filenamePattern: {
|
|
68
68
|
type: 'string',
|
|
69
|
-
description: (
|
|
69
|
+
description: ( localizeWithPath(
|
|
70
70
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
71
71
|
'contributes.notebook.provider.selector.filenamePattern',
|
|
72
72
|
'Glob that the notebook is enabled for.'
|
|
@@ -74,7 +74,7 @@ const notebookProviderContribution = {
|
|
|
74
74
|
},
|
|
75
75
|
excludeFileNamePattern: {
|
|
76
76
|
type: 'string',
|
|
77
|
-
description: (
|
|
77
|
+
description: ( localizeWithPath(
|
|
78
78
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
79
79
|
'contributes.notebook.selector.provider.excludeFileNamePattern',
|
|
80
80
|
'Glob that the notebook is disabled for.'
|
|
@@ -85,7 +85,7 @@ const notebookProviderContribution = {
|
|
|
85
85
|
},
|
|
86
86
|
[NotebookEditorContribution.priority]: {
|
|
87
87
|
type: 'string',
|
|
88
|
-
markdownDeprecationMessage: (
|
|
88
|
+
markdownDeprecationMessage: ( localizeWithPath(
|
|
89
89
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
90
90
|
'contributes.priority',
|
|
91
91
|
'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.'
|
|
@@ -95,12 +95,12 @@ const notebookProviderContribution = {
|
|
|
95
95
|
NotebookEditorPriority.option,
|
|
96
96
|
],
|
|
97
97
|
markdownEnumDescriptions: [
|
|
98
|
-
(
|
|
98
|
+
( localizeWithPath(
|
|
99
99
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
100
100
|
'contributes.priority.default',
|
|
101
101
|
'The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource.'
|
|
102
102
|
)),
|
|
103
|
-
(
|
|
103
|
+
( localizeWithPath(
|
|
104
104
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
105
105
|
'contributes.priority.option',
|
|
106
106
|
'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.'
|
|
@@ -113,7 +113,7 @@ const notebookProviderContribution = {
|
|
|
113
113
|
};
|
|
114
114
|
const defaultRendererSnippet = ( Object.freeze({ id: '', displayName: '', mimeTypes: [''], entrypoint: '' }));
|
|
115
115
|
const notebookRendererContribution = {
|
|
116
|
-
description: (
|
|
116
|
+
description: ( localizeWithPath(
|
|
117
117
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
118
118
|
'contributes.notebook.renderer',
|
|
119
119
|
'Contributes notebook output renderer provider.'
|
|
@@ -132,7 +132,7 @@ const notebookRendererContribution = {
|
|
|
132
132
|
properties: {
|
|
133
133
|
[NotebookRendererContribution.id]: {
|
|
134
134
|
type: 'string',
|
|
135
|
-
description: (
|
|
135
|
+
description: ( localizeWithPath(
|
|
136
136
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
137
137
|
'contributes.notebook.renderer.viewType',
|
|
138
138
|
'Unique identifier of the notebook output renderer.'
|
|
@@ -140,7 +140,7 @@ const notebookRendererContribution = {
|
|
|
140
140
|
},
|
|
141
141
|
[NotebookRendererContribution.displayName]: {
|
|
142
142
|
type: 'string',
|
|
143
|
-
description: (
|
|
143
|
+
description: ( localizeWithPath(
|
|
144
144
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
145
145
|
'contributes.notebook.renderer.displayName',
|
|
146
146
|
'Human readable name of the notebook output renderer.'
|
|
@@ -150,7 +150,7 @@ const notebookRendererContribution = {
|
|
|
150
150
|
type: 'array',
|
|
151
151
|
uniqueItems: true,
|
|
152
152
|
items: { type: 'string' },
|
|
153
|
-
markdownDescription: (
|
|
153
|
+
markdownDescription: ( localizeWithPath(
|
|
154
154
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
155
155
|
'contributes.notebook.renderer.hardDependencies',
|
|
156
156
|
'List of kernel dependencies the renderer requires. If any of the dependencies are present in the `NotebookKernel.preloads`, the renderer can be used.'
|
|
@@ -160,7 +160,7 @@ const notebookRendererContribution = {
|
|
|
160
160
|
type: 'array',
|
|
161
161
|
uniqueItems: true,
|
|
162
162
|
items: { type: 'string' },
|
|
163
|
-
markdownDescription: (
|
|
163
|
+
markdownDescription: ( localizeWithPath(
|
|
164
164
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
165
165
|
'contributes.notebook.renderer.optionalDependencies',
|
|
166
166
|
'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.'
|
|
@@ -174,23 +174,23 @@ const notebookRendererContribution = {
|
|
|
174
174
|
'never',
|
|
175
175
|
],
|
|
176
176
|
enumDescriptions: [
|
|
177
|
-
(
|
|
177
|
+
( localizeWithPath(
|
|
178
178
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
179
179
|
'contributes.notebook.renderer.requiresMessaging.always',
|
|
180
180
|
'Messaging is required. The renderer will only be used when it\'s part of an extension that can be run in an extension host.'
|
|
181
181
|
)),
|
|
182
|
-
(
|
|
182
|
+
( localizeWithPath(
|
|
183
183
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
184
184
|
'contributes.notebook.renderer.requiresMessaging.optional',
|
|
185
185
|
'The renderer is better with messaging available, but it\'s not requried.'
|
|
186
186
|
)),
|
|
187
|
-
(
|
|
187
|
+
( localizeWithPath(
|
|
188
188
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
189
189
|
'contributes.notebook.renderer.requiresMessaging.never',
|
|
190
190
|
'The renderer does not require messaging.'
|
|
191
191
|
)),
|
|
192
192
|
],
|
|
193
|
-
description: (
|
|
193
|
+
description: ( localizeWithPath(
|
|
194
194
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
195
195
|
'contributes.notebook.renderer.requiresMessaging',
|
|
196
196
|
'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.'
|
|
@@ -208,7 +208,7 @@ const notebookRendererContribution = {
|
|
|
208
208
|
properties: {
|
|
209
209
|
[NotebookRendererContribution.mimeTypes]: {
|
|
210
210
|
type: 'array',
|
|
211
|
-
description: (
|
|
211
|
+
description: ( localizeWithPath(
|
|
212
212
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
213
213
|
'contributes.notebook.selector',
|
|
214
214
|
'Set of globs that the notebook is for.'
|
|
@@ -218,7 +218,7 @@ const notebookRendererContribution = {
|
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
220
|
[NotebookRendererContribution.entrypoint]: {
|
|
221
|
-
description: (
|
|
221
|
+
description: ( localizeWithPath(
|
|
222
222
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
223
223
|
'contributes.notebook.renderer.entrypoint',
|
|
224
224
|
'File to load in the webview to render the extension.'
|
|
@@ -233,7 +233,7 @@ const notebookRendererContribution = {
|
|
|
233
233
|
],
|
|
234
234
|
properties: {
|
|
235
235
|
[NotebookRendererContribution.entrypoint]: {
|
|
236
|
-
description: (
|
|
236
|
+
description: ( localizeWithPath(
|
|
237
237
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
238
238
|
'contributes.notebook.renderer.entrypoint',
|
|
239
239
|
'File to load in the webview to render the extension.'
|
|
@@ -243,7 +243,7 @@ const notebookRendererContribution = {
|
|
|
243
243
|
properties: {
|
|
244
244
|
extends: {
|
|
245
245
|
type: 'string',
|
|
246
|
-
description: (
|
|
246
|
+
description: ( localizeWithPath(
|
|
247
247
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
248
248
|
'contributes.notebook.renderer.entrypoint.extends',
|
|
249
249
|
'Existing renderer that this one extends.'
|
|
@@ -251,7 +251,7 @@ const notebookRendererContribution = {
|
|
|
251
251
|
},
|
|
252
252
|
path: {
|
|
253
253
|
type: 'string',
|
|
254
|
-
description: (
|
|
254
|
+
description: ( localizeWithPath(
|
|
255
255
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
256
256
|
'contributes.notebook.renderer.entrypoint',
|
|
257
257
|
'File to load in the webview to render the extension.'
|
|
@@ -267,7 +267,7 @@ const notebookRendererContribution = {
|
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
const notebookPreloadContribution = {
|
|
270
|
-
description: (
|
|
270
|
+
description: ( localizeWithPath(
|
|
271
271
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
272
272
|
'contributes.preload.provider',
|
|
273
273
|
'Contributes notebook preloads.'
|
|
@@ -283,7 +283,7 @@ const notebookPreloadContribution = {
|
|
|
283
283
|
properties: {
|
|
284
284
|
[NotebookPreloadContribution.type]: {
|
|
285
285
|
type: 'string',
|
|
286
|
-
description: (
|
|
286
|
+
description: ( localizeWithPath(
|
|
287
287
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
288
288
|
'contributes.preload.provider.viewType',
|
|
289
289
|
'Type of the notebook.'
|
|
@@ -291,7 +291,7 @@ const notebookPreloadContribution = {
|
|
|
291
291
|
},
|
|
292
292
|
[NotebookPreloadContribution.entrypoint]: {
|
|
293
293
|
type: 'string',
|
|
294
|
-
description: (
|
|
294
|
+
description: ( localizeWithPath(
|
|
295
295
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
296
296
|
'contributes.preload.entrypoint',
|
|
297
297
|
'Path to file loaded in the webview.'
|
|
@@ -300,7 +300,7 @@ const notebookPreloadContribution = {
|
|
|
300
300
|
[NotebookPreloadContribution.localResourceRoots]: {
|
|
301
301
|
type: 'array',
|
|
302
302
|
items: { type: 'string' },
|
|
303
|
-
description: (
|
|
303
|
+
description: ( localizeWithPath(
|
|
304
304
|
'vs/workbench/contrib/notebook/browser/notebookExtensionPoint',
|
|
305
305
|
'contributes.preload.localResourceRoots',
|
|
306
306
|
'Paths to additional resources that should be allowed in the webview.'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { onUnexpectedExternalError } from '
|
|
2
|
-
import { Emitter } from '
|
|
3
|
-
import { Disposable, toDisposable } from '
|
|
1
|
+
import { onUnexpectedExternalError } from 'vscode/vscode/vs/base/common/errors';
|
|
2
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
3
|
+
import { Disposable, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
4
|
|
|
5
5
|
class NotebookCellStatusBarService extends Disposable {
|
|
6
6
|
constructor() {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { ResourceMap } from '
|
|
2
|
+
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
3
3
|
import { NotebookEditorWidget, getDefaultNotebookCreationOptions } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget';
|
|
4
|
-
import { DisposableStore } from '
|
|
4
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
5
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
6
|
-
import { IInstantiationService } from '
|
|
6
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
7
|
import { NotebookEditorInput, isCompositeNotebookEditorInput } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
8
|
-
import { Emitter } from '
|
|
8
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
9
9
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
10
|
-
import { IContextKeyService } from '
|
|
10
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
11
11
|
import { InteractiveWindowOpen } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
12
12
|
|
|
13
13
|
let NotebookEditorWidgetService = class NotebookEditorWidgetService {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { toDisposable } from '
|
|
3
|
-
import
|
|
4
|
-
import { ICommandService } from '
|
|
5
|
-
import { ILogService } from '
|
|
6
|
-
import { IWorkspaceTrustRequestService } from '
|
|
2
|
+
import { toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
4
|
+
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
5
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
6
|
+
import { IWorkspaceTrustRequestService } from 'vscode/vscode/vs/platform/workspace/common/workspaceTrust';
|
|
7
7
|
import { KernelPickerMRUStrategy } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy';
|
|
8
8
|
import { CellKind, NotebookCellExecutionState } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
9
9
|
import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
@@ -26,7 +26,7 @@ let NotebookExecutionService = class NotebookExecutionService {
|
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
28
|
this._logService.debug(`NotebookExecutionService#executeNotebookCells ${JSON.stringify(( cellsArr.map(c => c.handle)))}`);
|
|
29
|
-
const message = (
|
|
29
|
+
const message = ( localizeWithPath(
|
|
30
30
|
'vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl',
|
|
31
31
|
'notebookRunTrust',
|
|
32
32
|
"Executing a notebook cell will run code from this workspace."
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Emitter } from '
|
|
3
|
-
import { Disposable, combinedDisposable } from '
|
|
4
|
-
import { ResourceMap } from '
|
|
5
|
-
import { isEqual } from '
|
|
6
|
-
import { generateUuid } from '
|
|
7
|
-
import { AudioCue, IAudioCueService } from '
|
|
8
|
-
import { IInstantiationService } from '
|
|
9
|
-
import { ILogService } from '
|
|
2
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
3
|
+
import { Disposable, combinedDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
5
|
+
import { isEqual } from 'vscode/vscode/vs/base/common/resources';
|
|
6
|
+
import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
|
|
7
|
+
import { AudioCue, IAudioCueService } from 'vscode/vscode/vs/platform/audioCues/browser/audioCueService';
|
|
8
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
9
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
10
10
|
import { CellUri, NotebookCellExecutionState, NotebookExecutionState } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
11
11
|
import { INotebookExecutionService, CellExecutionUpdateType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService';
|
|
12
12
|
import { NotebookExecutionType, INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Disposable, DisposableStore } from '
|
|
3
|
-
import { LinkedMap } from '
|
|
4
|
-
import { localizeWithPath } from '
|
|
5
|
-
import { Categories } from '
|
|
6
|
-
import { registerAction2, Action2 } from '
|
|
7
|
-
import { IStorageService } from '
|
|
2
|
+
import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { LinkedMap } from 'vscode/vscode/vs/base/common/map';
|
|
4
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
5
|
+
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
6
|
+
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
7
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
8
8
|
import { INotebookKernelHistoryService, INotebookKernelService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService';
|
|
9
9
|
import { INotebookLoggingService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookLoggingService';
|
|
10
10
|
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Emitter } from '
|
|
3
|
-
import { Disposable, toDisposable } from '
|
|
4
|
-
import { ResourceMap, LRUCache } from '
|
|
5
|
-
import { IStorageService } from '
|
|
6
|
-
import { URI } from '
|
|
2
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
3
|
+
import { Disposable, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { ResourceMap, LRUCache } from 'vscode/vscode/vs/base/common/map';
|
|
5
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
6
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
7
7
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService';
|
|
8
|
-
import { MenuId, IMenuService } from '
|
|
9
|
-
import { IContextKeyService } from '
|
|
10
|
-
import { Schemas } from '
|
|
11
|
-
import { $window } from '
|
|
12
|
-
import { runWhenWindowIdle } from '
|
|
8
|
+
import { MenuId, IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
9
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
10
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
11
|
+
import { $window } from 'vscode/vscode/vs/base/browser/window';
|
|
12
|
+
import { runWhenWindowIdle } from 'vscode/vscode/vs/base/browser/dom';
|
|
13
13
|
|
|
14
14
|
var NotebookKernelService_1;
|
|
15
15
|
class KernelInfo {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { onUnexpectedError } from '
|
|
3
|
-
import { Event } from '
|
|
4
|
-
import { Disposable } from '
|
|
5
|
-
import { localizeWithPath } from '
|
|
6
|
-
import { IInstantiationService } from '
|
|
7
|
-
import { Severity, INotificationService } from '
|
|
2
|
+
import { onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
|
|
3
|
+
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
4
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
6
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
|
+
import { Severity, INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
8
8
|
import { getInstalledExtensions } from 'vscode/vscode/vs/workbench/contrib/extensions/common/extensionsUtils';
|
|
9
9
|
import { IWorkbenchExtensionEnablementService } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionManagement';
|
|
10
10
|
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
11
11
|
import { IExtensionManagementService } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagement';
|
|
12
12
|
import { areSameExtensions } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagementUtil';
|
|
13
|
-
import { IStorageService } from '
|
|
13
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
14
14
|
import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
|
|
15
|
-
import { distinct } from '
|
|
15
|
+
import { distinct } from 'vscode/vscode/vs/base/common/arrays';
|
|
16
16
|
|
|
17
17
|
function onExtensionChanged(accessor) {
|
|
18
18
|
const extensionService = accessor.get(IExtensionManagementService);
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
3
|
-
import { Disposable } from '
|
|
4
|
-
import { ILoggerService } from '
|
|
2
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { ILoggerService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
5
5
|
|
|
6
6
|
const logChannelId = 'notebook.rendering';
|
|
7
7
|
let NotebookLoggingService = class NotebookLoggingService extends Disposable {
|
|
8
8
|
static { this.ID = 'notebook'; }
|
|
9
9
|
constructor(loggerService) {
|
|
10
10
|
super();
|
|
11
|
-
this._logger = this._register(loggerService.createLogger(logChannelId, { name: (
|
|
11
|
+
this._logger = this._register(loggerService.createLogger(logChannelId, { name: ( localizeWithPath(
|
|
12
12
|
'vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl',
|
|
13
13
|
'renderChannelName',
|
|
14
14
|
"Notebook rendering"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Emitter } from '
|
|
3
|
-
import { Disposable } from '
|
|
2
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
3
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
5
5
|
|
|
6
6
|
let NotebookRendererMessagingService = class NotebookRendererMessagingService extends Disposable {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { localizeWithPath } from '
|
|
3
|
-
import { toAction } from '
|
|
4
|
-
import { createErrorWithActions } from '
|
|
5
|
-
import { PixelRatio } from '
|
|
6
|
-
import { Emitter } from '
|
|
7
|
-
import { Iterable } from '
|
|
8
|
-
import { Lazy } from '
|
|
9
|
-
import { Disposable, DisposableStore, toDisposable } from '
|
|
10
|
-
import { ResourceMap } from '
|
|
11
|
-
import { Schemas } from '
|
|
12
|
-
import { isDefined } from '
|
|
13
|
-
import { URI } from '
|
|
14
|
-
import { ICodeEditorService } from '
|
|
15
|
-
import { BareFontInfo } from '
|
|
16
|
-
import { IAccessibilityService } from '
|
|
17
|
-
import { IConfigurationService } from '
|
|
18
|
-
import { IFileService } from '
|
|
19
|
-
import { IInstantiationService } from '
|
|
20
|
-
import { IStorageService } from '
|
|
2
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
+
import { toAction } from 'vscode/vscode/vs/base/common/actions';
|
|
4
|
+
import { createErrorWithActions } from 'vscode/vscode/vs/base/common/errorMessage';
|
|
5
|
+
import { PixelRatio } from 'vscode/vscode/vs/base/browser/browser';
|
|
6
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
7
|
+
import { Iterable } from 'vscode/vscode/vs/base/common/iterator';
|
|
8
|
+
import { Lazy } from 'vscode/vscode/vs/base/common/lazy';
|
|
9
|
+
import { Disposable, DisposableStore, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
10
|
+
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
11
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
12
|
+
import { isDefined } from 'vscode/vscode/vs/base/common/types';
|
|
13
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
14
|
+
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
15
|
+
import { BareFontInfo } from 'vscode/vscode/vs/editor/common/config/fontInfo';
|
|
16
|
+
import { IAccessibilityService } from 'vscode/vscode/vs/platform/accessibility/common/accessibility';
|
|
17
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
18
|
+
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
19
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
20
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
21
21
|
import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
|
|
22
22
|
import { notebooksExtensionPoint, notebookRendererExtensionPoint, notebookPreloadExtensionPoint } from '../notebookExtensionPoint.js';
|
|
23
23
|
import { NotebookDiffEditorInput } from '../../common/notebookDiffEditorInput.js';
|
|
@@ -32,7 +32,7 @@ import { SimpleNotebookProviderInfo } from 'vscode/vscode/vs/workbench/contrib/n
|
|
|
32
32
|
import { RegisteredEditorPriority, IEditorResolverService } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
33
33
|
import { isProposedApiEnabled, IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
34
34
|
import { InstallRecommendedExtensionAction } from 'vscode/vscode/vs/workbench/contrib/extensions/browser/extensionsActions';
|
|
35
|
-
import { IUriIdentityService } from '
|
|
35
|
+
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity';
|
|
36
36
|
|
|
37
37
|
var NotebookProviderInfoStore_1, NotebookService_1;
|
|
38
38
|
let NotebookProviderInfoStore = class NotebookProviderInfoStore extends Disposable {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Disposable, DisposableStore, toDisposable, dispose } from '
|
|
3
|
-
import { SimpleWorkerClient } from '
|
|
4
|
-
import { DefaultWorkerFactory } from '
|
|
2
|
+
import { Disposable, DisposableStore, toDisposable, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { SimpleWorkerClient } from 'vscode/vscode/vs/base/common/worker/simpleWorker';
|
|
4
|
+
import { DefaultWorkerFactory } from 'vscode/vscode/vs/base/browser/defaultWorkerFactory';
|
|
5
5
|
import { NotebookCellsChangeType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
6
6
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService';
|
|
7
7
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Emitter, PauseableEmitter } from '
|
|
3
|
-
import { Disposable, dispose } from '
|
|
2
|
+
import { Emitter, PauseableEmitter } from 'vscode/vscode/vs/base/common/event';
|
|
3
|
+
import { Disposable, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { NotebookCellTextModel } from 'vscode/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel';
|
|
5
5
|
import { CellUri, NotebookCellsChangeType, CellKind, diff } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
6
|
-
import { IUndoRedoService } from '
|
|
6
|
+
import { IUndoRedoService } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo';
|
|
7
7
|
import { SpliceCellsEdit, CellMetadataEdit, MoveCellEdit } from './cellEdit.js';
|
|
8
|
-
import { LcsDiff } from '
|
|
9
|
-
import { hash } from '
|
|
8
|
+
import { LcsDiff } from 'vscode/vscode/vs/base/common/diff/diff';
|
|
9
|
+
import { hash } from 'vscode/vscode/vs/base/common/hash';
|
|
10
10
|
import { NotebookCellOutputTextModel } from 'vscode/vscode/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel';
|
|
11
|
-
import { IModelService } from '
|
|
12
|
-
import { Schemas } from '
|
|
13
|
-
import { isEqual } from '
|
|
14
|
-
import { ILanguageService } from '
|
|
15
|
-
import { TextModel } from '
|
|
16
|
-
import { isDefined } from '
|
|
11
|
+
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
12
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
13
|
+
import { isEqual } from 'vscode/vscode/vs/base/common/resources';
|
|
14
|
+
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
15
|
+
import { TextModel } from 'vscode/vscode/vs/editor/common/model/textModel';
|
|
16
|
+
import { isDefined } from 'vscode/vscode/vs/base/common/types';
|
|
17
17
|
|
|
18
18
|
var NotebookTextModel_1;
|
|
19
19
|
class StackOperation {
|
package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { IInstantiationService } from '
|
|
3
|
-
import { URI } from '
|
|
2
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
3
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
4
4
|
import { NotebookWorkingCopyTypeIdentifier, CellUri } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
5
5
|
import { NotebookFileWorkingCopyModelFactory, SimpleNotebookEditorModel } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorModel';
|
|
6
|
-
import { ReferenceCollection, DisposableStore, dispose, combinedDisposable, toDisposable } from '
|
|
6
|
+
import { ReferenceCollection, DisposableStore, dispose, combinedDisposable, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
7
7
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService';
|
|
8
|
-
import { ILogService } from '
|
|
9
|
-
import { Emitter, AsyncEmitter } from '
|
|
8
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
9
|
+
import { Emitter, AsyncEmitter } from 'vscode/vscode/vs/base/common/event';
|
|
10
10
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
11
|
-
import { IUriIdentityService } from '
|
|
12
|
-
import { ResourceMap } from '
|
|
11
|
+
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity';
|
|
12
|
+
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
13
13
|
import { FileWorkingCopyManager } from '../../../services/workingCopy/common/fileWorkingCopyManager.js';
|
|
14
|
-
import { Schemas } from '
|
|
14
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
15
15
|
import { NotebookProviderInfo } from './notebookProvider.js';
|
|
16
|
-
import { assertIsDefined } from '
|
|
17
|
-
import { CancellationToken } from '
|
|
18
|
-
import { IConfigurationService } from '
|
|
16
|
+
import { assertIsDefined } from 'vscode/vscode/vs/base/common/types';
|
|
17
|
+
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
18
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
19
19
|
|
|
20
20
|
let NotebookModelReferenceCollection = class NotebookModelReferenceCollection extends ReferenceCollection {
|
|
21
21
|
constructor(_instantiationService, _notebookService, _logService, _configurationService) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Iterable } from '
|
|
3
|
-
import { joinPath } from '
|
|
1
|
+
import { parse } from 'vscode/vscode/vs/base/common/glob';
|
|
2
|
+
import { Iterable } from 'vscode/vscode/vs/base/common/iterator';
|
|
3
|
+
import { joinPath } from 'vscode/vscode/vs/base/common/resources';
|
|
4
4
|
|
|
5
5
|
class DependencyList {
|
|
6
6
|
constructor(value) {
|
|
@@ -31,7 +31,7 @@ class NotebookOutputRendererInfo {
|
|
|
31
31
|
}
|
|
32
32
|
this.displayName = descriptor.displayName;
|
|
33
33
|
this.mimeTypes = descriptor.mimeTypes;
|
|
34
|
-
this.mimeTypeGlobs = ( this.mimeTypes.map(pattern =>
|
|
34
|
+
this.mimeTypeGlobs = ( this.mimeTypes.map(pattern => parse(pattern)));
|
|
35
35
|
this.hardDependencies = ( new DependencyList(descriptor.dependencies ?? Iterable.empty()));
|
|
36
36
|
this.optionalDependencies = ( new DependencyList(descriptor.optionalDependencies ?? Iterable.empty()));
|
|
37
37
|
this.messaging = descriptor.requiresMessaging ?? "never" ;
|