@@ -219,7 +219,7 @@ declare module 'vscode' {
219
219
readonly viewType : string ;
220
220
readonly isDirty : boolean ;
221
221
readonly isUntitled : boolean ;
222
- readonly cells : NotebookCell [ ] ;
222
+ readonly cells : ReadonlyArray < NotebookCell > ;
223
223
languages : string [ ] ;
224
224
displayOrder ?: GlobPattern [ ] ;
225
225
metadata : NotebookDocumentMetadata ;
@@ -263,7 +263,7 @@ declare module 'vscode' {
263
263
/**
264
264
* The column in which this editor shows.
265
265
*/
266
- viewColumn ?: ViewColumn ;
266
+ readonly viewColumn ?: ViewColumn ;
267
267
268
268
/**
269
269
* Whether the panel is active (focused by the user).
@@ -316,31 +316,6 @@ declare module 'vscode' {
316
316
outputId : string ;
317
317
}
318
318
319
- export interface NotebookOutputRenderer {
320
- /**
321
- *
322
- * @returns HTML fragment. We can probably return `CellOutput` instead of string ?
323
- *
324
- */
325
- render ( document : NotebookDocument , request : NotebookRenderRequest ) : string ;
326
-
327
- /**
328
- * Call before HTML from the renderer is executed, and will be called for
329
- * every editor associated with notebook documents where the renderer
330
- * is or was used.
331
- *
332
- * The communication object will only send and receive messages to the
333
- * render API, retrieved via `acquireNotebookRendererApi`, acquired with
334
- * this specific renderer's ID.
335
- *
336
- * If you need to keep an association between the communication object
337
- * and the document for use in the `render()` method, you can use a WeakMap.
338
- */
339
- resolveNotebook ?( document : NotebookDocument , communication : NotebookCommunication ) : void ;
340
-
341
- readonly preloads ?: Uri [ ] ;
342
- }
343
-
344
319
export interface NotebookCellsChangeData {
345
320
readonly start : number ;
346
321
readonly deletedCount : number ;
@@ -559,12 +534,6 @@ declare module 'vscode' {
559
534
kernel : NotebookKernel
560
535
) : Disposable ;
561
536
562
- export function registerNotebookOutputRenderer (
563
- id : string ,
564
- outputSelector : NotebookOutputSelector ,
565
- renderer : NotebookOutputRenderer
566
- ) : Disposable ;
567
-
568
537
export const onDidOpenNotebookDocument : Event < NotebookDocument > ;
569
538
export const onDidCloseNotebookDocument : Event < NotebookDocument > ;
570
539
export const onDidSaveNotebookDocument : Event < NotebookDocument > ;
0 commit comments