mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 17:23:05 -05:00
Introduce Trust Book in Book Viewlet (#9414)
This commit is contained in:
@@ -233,6 +233,7 @@ export class NotebookModel extends Disposable implements INotebookModel {
|
||||
|
||||
public set trustedMode(isTrusted: boolean) {
|
||||
this._trustedMode = isTrusted;
|
||||
|
||||
if (this._cells) {
|
||||
this._cells.forEach(c => {
|
||||
c.trustedMode = this._trustedMode;
|
||||
@@ -290,6 +291,7 @@ export class NotebookModel extends Disposable implements INotebookModel {
|
||||
public async loadContents(isTrusted: boolean = false): Promise<void> {
|
||||
try {
|
||||
this._trustedMode = isTrusted;
|
||||
|
||||
let contents = null;
|
||||
|
||||
if (this._notebookOptions && this._notebookOptions.contentManager) {
|
||||
|
||||
Reference in New Issue
Block a user