@codingame/monaco-vscode-notebook-service-override 8.0.2 → 8.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +8 -8
  3. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +21 -21
  4. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +2 -2
  5. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +1 -1
  6. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +3 -3
  7. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +6 -6
  8. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +10 -10
  9. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +2 -2
  10. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +4 -4
  11. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +1 -1
  12. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +1 -1
  13. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +13 -13
  14. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +1 -1
  15. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +1 -1
  16. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +9 -9
  17. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +1 -1
  18. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +12 -12
  19. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +3 -3
  20. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +24 -24
  21. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +24 -24
  22. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +22 -22
  23. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
  24. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +17 -17
  25. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +7 -7
  26. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +12 -12
  27. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +11 -11
  28. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
  29. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +60 -60
  30. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +10 -10
  31. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
  32. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +1 -1
  33. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +1 -1
  34. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +3 -3
  35. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +1 -1
  36. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +1 -1
  37. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
  38. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +1 -1
@@ -27,7 +27,7 @@ const NotebookPreloadContribution = ( (Object.freeze({
27
27
  localResourceRoots: 'localResourceRoots',
28
28
  })));
29
29
  const notebookProviderContribution = {
30
- description: ( localize(7598, 'Contributes notebook document provider.')),
30
+ description: ( localize(7841, 'Contributes notebook document provider.')),
31
31
  type: 'array',
32
32
  defaultSnippets: [{ body: [{ type: '', displayName: '', 'selector': [{ 'filenamePattern': '' }] }] }],
33
33
  items: {
@@ -40,25 +40,25 @@ const notebookProviderContribution = {
40
40
  properties: {
41
41
  [NotebookEditorContribution.type]: {
42
42
  type: 'string',
43
- description: ( localize(7599, 'Type of the notebook.')),
43
+ description: ( localize(7842, 'Type of the notebook.')),
44
44
  },
45
45
  [NotebookEditorContribution.displayName]: {
46
46
  type: 'string',
47
- description: ( localize(7600, 'Human readable name of the notebook.')),
47
+ description: ( localize(7843, 'Human readable name of the notebook.')),
48
48
  },
49
49
  [NotebookEditorContribution.selector]: {
50
50
  type: 'array',
51
- description: ( localize(7601, 'Set of globs that the notebook is for.')),
51
+ description: ( localize(7844, 'Set of globs that the notebook is for.')),
52
52
  items: {
53
53
  type: 'object',
54
54
  properties: {
55
55
  filenamePattern: {
56
56
  type: 'string',
57
- description: ( localize(7602, 'Glob that the notebook is enabled for.')),
57
+ description: ( localize(7845, 'Glob that the notebook is enabled for.')),
58
58
  },
59
59
  excludeFileNamePattern: {
60
60
  type: 'string',
61
- description: ( localize(7603, 'Glob that the notebook is disabled for.'))
61
+ description: ( localize(7846, 'Glob that the notebook is disabled for.'))
62
62
  }
63
63
  }
64
64
  }
@@ -66,7 +66,7 @@ const notebookProviderContribution = {
66
66
  [NotebookEditorContribution.priority]: {
67
67
  type: 'string',
68
68
  markdownDeprecationMessage: ( localize(
69
- 7604,
69
+ 7847,
70
70
  '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.'
71
71
  )),
72
72
  enum: [
@@ -75,11 +75,11 @@ const notebookProviderContribution = {
75
75
  ],
76
76
  markdownEnumDescriptions: [
77
77
  ( localize(
78
- 7605,
78
+ 7848,
79
79
  'The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource.'
80
80
  )),
81
81
  ( localize(
82
- 7606,
82
+ 7849,
83
83
  '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.'
84
84
  )),
85
85
  ],
@@ -90,7 +90,7 @@ const notebookProviderContribution = {
90
90
  };
91
91
  const defaultRendererSnippet = ( (Object.freeze({ id: '', displayName: '', mimeTypes: [''], entrypoint: '' })));
92
92
  const notebookRendererContribution = {
93
- description: ( localize(7607, 'Contributes notebook output renderer provider.')),
93
+ description: ( localize(7850, 'Contributes notebook output renderer provider.')),
94
94
  type: 'array',
95
95
  defaultSnippets: [{ body: [defaultRendererSnippet] }],
96
96
  items: {
@@ -105,18 +105,18 @@ const notebookRendererContribution = {
105
105
  properties: {
106
106
  [NotebookRendererContribution.id]: {
107
107
  type: 'string',
108
- description: ( localize(7608, 'Unique identifier of the notebook output renderer.')),
108
+ description: ( localize(7851, 'Unique identifier of the notebook output renderer.')),
109
109
  },
110
110
  [NotebookRendererContribution.displayName]: {
111
111
  type: 'string',
112
- description: ( localize(7609, 'Human readable name of the notebook output renderer.')),
112
+ description: ( localize(7852, 'Human readable name of the notebook output renderer.')),
113
113
  },
114
114
  [NotebookRendererContribution.hardDependencies]: {
115
115
  type: 'array',
116
116
  uniqueItems: true,
117
117
  items: { type: 'string' },
118
118
  markdownDescription: ( localize(
119
- 7610,
119
+ 7853,
120
120
  'List of kernel dependencies the renderer requires. If any of the dependencies are present in the `NotebookKernel.preloads`, the renderer can be used.'
121
121
  )),
122
122
  },
@@ -125,7 +125,7 @@ const notebookRendererContribution = {
125
125
  uniqueItems: true,
126
126
  items: { type: 'string' },
127
127
  markdownDescription: ( localize(
128
- 7611,
128
+ 7854,
129
129
  '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.'
130
130
  )),
131
131
  },
@@ -138,17 +138,17 @@ const notebookRendererContribution = {
138
138
  ],
139
139
  enumDescriptions: [
140
140
  ( localize(
141
- 7612,
141
+ 7855,
142
142
  'Messaging is required. The renderer will only be used when it\'s part of an extension that can be run in an extension host.'
143
143
  )),
144
144
  ( localize(
145
- 7613,
145
+ 7856,
146
146
  'The renderer is better with messaging available, but it\'s not requried.'
147
147
  )),
148
- ( localize(7614, 'The renderer does not require messaging.')),
148
+ ( localize(7857, 'The renderer does not require messaging.')),
149
149
  ],
150
150
  description: ( localize(
151
- 7615,
151
+ 7858,
152
152
  '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.'
153
153
  )),
154
154
  },
@@ -164,13 +164,13 @@ const notebookRendererContribution = {
164
164
  properties: {
165
165
  [NotebookRendererContribution.mimeTypes]: {
166
166
  type: 'array',
167
- description: ( localize(7616, 'Set of globs that the notebook is for.')),
167
+ description: ( localize(7859, 'Set of globs that the notebook is for.')),
168
168
  items: {
169
169
  type: 'string'
170
170
  }
171
171
  },
172
172
  [NotebookRendererContribution.entrypoint]: {
173
- description: ( localize(7617, 'File to load in the webview to render the extension.')),
173
+ description: ( localize(7860, 'File to load in the webview to render the extension.')),
174
174
  type: 'string',
175
175
  },
176
176
  }
@@ -181,17 +181,17 @@ const notebookRendererContribution = {
181
181
  ],
182
182
  properties: {
183
183
  [NotebookRendererContribution.entrypoint]: {
184
- description: ( localize(7617, 'File to load in the webview to render the extension.')),
184
+ description: ( localize(7860, 'File to load in the webview to render the extension.')),
185
185
  type: 'object',
186
186
  required: ['extends', 'path'],
187
187
  properties: {
188
188
  extends: {
189
189
  type: 'string',
190
- description: ( localize(7618, 'Existing renderer that this one extends.')),
190
+ description: ( localize(7861, 'Existing renderer that this one extends.')),
191
191
  },
192
192
  path: {
193
193
  type: 'string',
194
- description: ( localize(7617, 'File to load in the webview to render the extension.')),
194
+ description: ( localize(7860, 'File to load in the webview to render the extension.')),
195
195
  },
196
196
  }
197
197
  },
@@ -203,7 +203,7 @@ const notebookRendererContribution = {
203
203
  }
204
204
  };
205
205
  const notebookPreloadContribution = {
206
- description: ( localize(7619, 'Contributes notebook preloads.')),
206
+ description: ( localize(7862, 'Contributes notebook preloads.')),
207
207
  type: 'array',
208
208
  defaultSnippets: [{ body: [{ type: '', entrypoint: '' }] }],
209
209
  items: {
@@ -215,17 +215,17 @@ const notebookPreloadContribution = {
215
215
  properties: {
216
216
  [NotebookPreloadContribution.type]: {
217
217
  type: 'string',
218
- description: ( localize(7620, 'Type of the notebook.')),
218
+ description: ( localize(7863, 'Type of the notebook.')),
219
219
  },
220
220
  [NotebookPreloadContribution.entrypoint]: {
221
221
  type: 'string',
222
- description: ( localize(7621, 'Path to file loaded in the webview.')),
222
+ description: ( localize(7864, 'Path to file loaded in the webview.')),
223
223
  },
224
224
  [NotebookPreloadContribution.localResourceRoots]: {
225
225
  type: 'array',
226
226
  items: { type: 'string' },
227
227
  description: ( localize(
228
- 7622,
228
+ 7865,
229
229
  'Paths to additional resources that should be allowed in the webview.'
230
230
  )),
231
231
  },
@@ -272,8 +272,8 @@ class NotebooksDataRenderer extends Disposable {
272
272
  return { data: { headers: [], rows: [] }, dispose: () => { } };
273
273
  }
274
274
  const headers = [
275
- ( localize(7623, "ID")),
276
- ( localize(7624, "Name")),
275
+ ( localize(7866, "ID")),
276
+ ( localize(7867, "Name")),
277
277
  ];
278
278
  const rows = ( (contrib
279
279
  .sort((a, b) => a.type.localeCompare(b.type))
@@ -306,8 +306,8 @@ class NotebookRenderersDataRenderer extends Disposable {
306
306
  return { data: { headers: [], rows: [] }, dispose: () => { } };
307
307
  }
308
308
  const headers = [
309
- ( localize(7625, "Name")),
310
- ( localize(7626, "Mimetypes")),
309
+ ( localize(7868, "Name")),
310
+ ( localize(7869, "Mimetypes")),
311
311
  ];
312
312
  const rows = ( (contrib
313
313
  .sort((a, b) => a.displayName.localeCompare(b.displayName))
@@ -328,7 +328,7 @@ class NotebookRenderersDataRenderer extends Disposable {
328
328
  }
329
329
  ( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
330
330
  id: 'notebooks',
331
- label: ( localize(7627, "Notebooks")),
331
+ label: ( localize(7870, "Notebooks")),
332
332
  access: {
333
333
  canToggle: false
334
334
  },
@@ -336,7 +336,7 @@ class NotebookRenderersDataRenderer extends Disposable {
336
336
  });
337
337
  ( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
338
338
  id: 'notebookRenderer',
339
- label: ( localize(7628, "Notebook Renderers")),
339
+ label: ( localize(7871, "Notebook Renderers")),
340
340
  access: {
341
341
  canToggle: false
342
342
  },
@@ -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 = ( localize(3262, "Executing a notebook cell will run code from this workspace."));
29
+ const message = ( localize(3301, "Executing a notebook cell will run code from this workspace."));
30
30
  const trust = await this._workspaceTrustRequestService.requestWorkspaceTrust({ message });
31
31
  if (!trust) {
32
32
  return;
@@ -113,7 +113,7 @@ registerAction2(class extends Action2 {
113
113
  constructor() {
114
114
  super({
115
115
  id: 'notebook.clearNotebookKernelsMRUCache',
116
- title: ( localize2(3266, "Clear Notebook Kernels MRU Cache")),
116
+ title: ( localize2(3305, "Clear Notebook Kernels MRU Cache")),
117
117
  category: Categories.Developer,
118
118
  f1: true
119
119
  });
@@ -74,14 +74,14 @@ let NotebookKeymapService = class NotebookKeymapService extends Disposable {
74
74
  }
75
75
  };
76
76
  this.notificationService.prompt(Severity$1.Info, ( localize(
77
- 3263,
77
+ 3302,
78
78
  "Disable other keymaps ({0}) to avoid conflicts between keybindings?",
79
79
  ( (distinct(( (oldKeymaps.map(k => k.local.manifest.displayName)))).map(name => `'${name}'`))).join(', ')
80
80
  )), [{
81
- label: ( localize(3264, "Yes")),
81
+ label: ( localize(3303, "Yes")),
82
82
  run: () => onPrompt(true)
83
83
  }, {
84
- label: ( localize(3265, "No")),
84
+ label: ( localize(3304, "No")),
85
85
  run: () => onPrompt(false)
86
86
  }]);
87
87
  }
@@ -8,7 +8,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: ( localize(3267, "Notebook rendering")) }));
11
+ this._logger = this._register(loggerService.createLogger(logChannelId, { name: ( localize(3306, "Notebook rendering")) }));
12
12
  }
13
13
  debug(category, output) {
14
14
  this._logger.debug(`[${category}] ${output}`);
@@ -548,7 +548,7 @@ let NotebookService = class NotebookService extends Disposable {
548
548
  const knownProvider = this.getViewTypeProvider(viewType);
549
549
  const actions = knownProvider ? [
550
550
  toAction({
551
- id: 'workbench.notebook.action.installMissingViewType', label: ( localize(3261, "Install extension for '{0}'", viewType)), run: async () => {
551
+ id: 'workbench.notebook.action.installMissingViewType', label: ( localize(3300, "Install extension for '{0}'", viewType)), run: async () => {
552
552
  await this._instantiationService.createInstance(InstallRecommendedExtensionAction, knownProvider).run();
553
553
  }
554
554
  })
@@ -47,8 +47,8 @@ import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/prog
47
47
  var FileWorkingCopyManager_1;
48
48
  let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
49
49
  static { FileWorkingCopyManager_1 = this; }
50
- static { this.FILE_WORKING_COPY_SAVE_CREATE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyCreate.source', ( localize(7806, "File Created"))); }
51
- static { this.FILE_WORKING_COPY_SAVE_REPLACE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyReplace.source', ( localize(7807, "File Replaced"))); }
50
+ static { this.FILE_WORKING_COPY_SAVE_CREATE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyCreate.source', ( localize(8049, "File Created"))); }
51
+ static { this.FILE_WORKING_COPY_SAVE_REPLACE_SOURCE = SaveSourceRegistry.registerSource('fileWorkingCopyReplace.source', ( localize(8050, "File Replaced"))); }
52
52
  constructor(workingCopyTypeId, storedWorkingCopyModelFactory, untitledWorkingCopyModelFactory, fileService, lifecycleService, labelService, logService, workingCopyFileService, workingCopyBackupService, uriIdentityService, fileDialogService, filesConfigurationService, workingCopyService, notificationService, workingCopyEditorService, editorService, elevatedFileService, pathService, environmentService, dialogService, decorationsService, progressService) {
53
53
  super();
54
54
  this.workingCopyTypeId = workingCopyTypeId;
@@ -103,7 +103,7 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
103
103
  constructor(stored) {
104
104
  super();
105
105
  this.stored = stored;
106
- this.label = ( localize(7808, "File Working Copy Decorations"));
106
+ this.label = ( localize(8051, "File Working Copy Decorations"));
107
107
  this._onDidChange = this._register(( (new Emitter())));
108
108
  this.onDidChange = this._onDidChange.event;
109
109
  this.registerListeners();
@@ -130,20 +130,20 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
130
130
  color: listErrorForeground,
131
131
  letter: Codicon.lockSmall,
132
132
  strikethrough: true,
133
- tooltip: ( localize(7809, "Deleted, Read-only")),
133
+ tooltip: ( localize(8052, "Deleted, Read-only")),
134
134
  };
135
135
  }
136
136
  else if (isReadonly) {
137
137
  return {
138
138
  letter: Codicon.lockSmall,
139
- tooltip: ( localize(7810, "Read-only")),
139
+ tooltip: ( localize(8053, "Read-only")),
140
140
  };
141
141
  }
142
142
  else if (isOrphaned) {
143
143
  return {
144
144
  color: listErrorForeground,
145
145
  strikethrough: true,
146
- tooltip: ( localize(7811, "Deleted")),
146
+ tooltip: ( localize(8054, "Deleted")),
147
147
  };
148
148
  }
149
149
  return undefined;
@@ -275,17 +275,17 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
275
275
  const { confirmed } = await this.dialogService.confirm({
276
276
  type: 'warning',
277
277
  message: ( localize(
278
- 7812,
278
+ 8055,
279
279
  "'{0}' already exists. Do you want to replace it?",
280
280
  basename(resource)
281
281
  )),
282
282
  detail: ( localize(
283
- 7813,
283
+ 8056,
284
284
  "A file or folder with the name '{0}' already exists in the folder '{1}'. Replacing it will overwrite its current contents.",
285
285
  basename(resource),
286
286
  basename(dirname(resource))
287
287
  )),
288
- primaryButton: ( localize(7814, "&&Replace"))
288
+ primaryButton: ( localize(8057, "&&Replace"))
289
289
  });
290
290
  return confirmed;
291
291
  }
@@ -293,12 +293,12 @@ let FileWorkingCopyManager = class FileWorkingCopyManager extends Disposable {
293
293
  const { confirmed } = await this.dialogService.confirm({
294
294
  type: 'warning',
295
295
  message: ( localize(
296
- 7815,
296
+ 8058,
297
297
  "'{0}' is marked as read-only. Do you want to save anyway?",
298
298
  basename(resource)
299
299
  )),
300
- detail: ( localize(7816, "Paths can be configured as read-only via settings.")),
301
- primaryButton: ( localize(7817, "&&Save Anyway"))
300
+ detail: ( localize(8059, "Paths can be configured as read-only via settings.")),
301
+ primaryButton: ( localize(8060, "&&Save Anyway"))
302
302
  });
303
303
  return confirmed;
304
304
  }
@@ -77,7 +77,7 @@ let StoredFileWorkingCopyManager = class StoredFileWorkingCopyManager extends Ba
77
77
  this._register(this.lifecycleService.onBeforeShutdown(event => event.veto(this.onBeforeShutdownWeb(), 'veto.fileWorkingCopyManager')));
78
78
  }
79
79
  else {
80
- this._register(this.lifecycleService.onWillShutdown(event => event.join(this.onWillShutdownDesktop(), { id: 'join.fileWorkingCopyManager', label: ( localize(10676, "Saving working copies")) })));
80
+ this._register(this.lifecycleService.onWillShutdown(event => event.join(this.onWillShutdownDesktop(), { id: 'join.fileWorkingCopyManager', label: ( localize(10717, "Saving working copies")) })));
81
81
  }
82
82
  }
83
83
  onBeforeShutdownWeb() {