Notebook document content options.

This commit is contained in:
rebornix
2020-09-17 17:06:55 -07:00
parent d45d4ca352
commit e42a46ab35
7 changed files with 23 additions and 13 deletions

View File

@@ -236,6 +236,7 @@ export class ExtHostNotebookDocument extends Disposable {
private readonly _mainThreadBulkEdits: MainThreadBulkEditsShape,
private readonly _emitter: INotebookEventEmitter,
private readonly _viewType: string,
private readonly _contentOptions: vscode.NotebookDocumentContentOptions,
metadata: Required<vscode.NotebookDocumentMetadata>,
public readonly uri: URI,
private readonly _storagePath: URI | undefined
@@ -301,6 +302,7 @@ export class ExtHostNotebookDocument extends Disposable {
set languages(value: string[]) { that._trySetLanguages(value); },
get metadata() { return that._metadata; },
set metadata(value: Required<vscode.NotebookDocumentMetadata>) { that._updateMetadata(value); },
get contentOptions() { return that._contentOptions; }
});
}
return this._notebook;