mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
@@ -11,7 +11,6 @@ import { localize } from 'vs/nls';
|
|||||||
import { Event, Emitter } from 'vs/base/common/event';
|
import { Event, Emitter } from 'vs/base/common/event';
|
||||||
import { Disposable, IDisposable } from 'vs/base/common/lifecycle';
|
import { Disposable, IDisposable } from 'vs/base/common/lifecycle';
|
||||||
|
|
||||||
import { CellModel } from './cell';
|
|
||||||
import { IClientSession, INotebookModel, IDefaultConnection, INotebookModelOptions, ICellModel, NotebookContentChange, notebookConstants } from './modelInterfaces';
|
import { IClientSession, INotebookModel, IDefaultConnection, INotebookModelOptions, ICellModel, NotebookContentChange, notebookConstants } from './modelInterfaces';
|
||||||
import { NotebookChangeType, CellType } from 'sql/parts/notebook/models/contracts';
|
import { NotebookChangeType, CellType } from 'sql/parts/notebook/models/contracts';
|
||||||
import { nbversion } from '../notebookConstants';
|
import { nbversion } from '../notebookConstants';
|
||||||
|
|||||||
@@ -176,7 +176,8 @@ export class NotebookComponent extends AngularDisposable implements OnInit, OnDe
|
|||||||
this._model.cells.forEach(cell => {
|
this._model.cells.forEach(cell => {
|
||||||
cell.trustedMode = isTrusted;
|
cell.trustedMode = isTrusted;
|
||||||
});
|
});
|
||||||
//TODO: Handle dirty for trust?
|
//Updates dirty state
|
||||||
|
this._notebookParams.input && this._notebookParams.input.updateModel();
|
||||||
this.detectChanges();
|
this.detectChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -138,7 +138,6 @@ export class NotebookInput extends EditorInput {
|
|||||||
private _parentContainer: HTMLElement;
|
private _parentContainer: HTMLElement;
|
||||||
private readonly _layoutChanged: Emitter<void> = this._register(new Emitter<void>());
|
private readonly _layoutChanged: Emitter<void> = this._register(new Emitter<void>());
|
||||||
private _model: NotebookEditorModel;
|
private _model: NotebookEditorModel;
|
||||||
private _untitledEditorService: IUntitledEditorService;
|
|
||||||
private _contentManager: IContentManager;
|
private _contentManager: IContentManager;
|
||||||
private _providersLoaded: Promise<void>;
|
private _providersLoaded: Promise<void>;
|
||||||
|
|
||||||
@@ -146,13 +145,11 @@ export class NotebookInput extends EditorInput {
|
|||||||
private resource: URI,
|
private resource: URI,
|
||||||
private _textInput: UntitledEditorInput,
|
private _textInput: UntitledEditorInput,
|
||||||
@ITextModelService private textModelService: ITextModelService,
|
@ITextModelService private textModelService: ITextModelService,
|
||||||
@IUntitledEditorService untitledEditorService: IUntitledEditorService,
|
|
||||||
@IInstantiationService private instantiationService: IInstantiationService,
|
@IInstantiationService private instantiationService: IInstantiationService,
|
||||||
@INotebookService private notebookService: INotebookService,
|
@INotebookService private notebookService: INotebookService,
|
||||||
@IExtensionService private extensionService: IExtensionService
|
@IExtensionService private extensionService: IExtensionService
|
||||||
) {
|
) {
|
||||||
super();
|
super();
|
||||||
this._untitledEditorService = untitledEditorService;
|
|
||||||
this.resource = resource;
|
this.resource = resource;
|
||||||
this._standardKernels = [];
|
this._standardKernels = [];
|
||||||
this._providersLoaded = this.assignProviders();
|
this._providersLoaded = this.assignProviders();
|
||||||
|
|||||||
Reference in New Issue
Block a user