Integrate notebook service with notebook UI (#3143)

Port notebookView code over to notebook.component.ts.
Integrate loading of notebook contents into the UI
This commit is contained in:
Kevin Cunnane
2018-11-06 16:31:37 -08:00
committed by GitHub
parent 5da89ac05b
commit ecd40de7ec
13 changed files with 168 additions and 43 deletions

View File

@@ -40,8 +40,8 @@ export class OpenNotebookAction extends Action {
public run(): TPromise<void> {
return new TPromise<void>((resolve, reject) => {
let untitledUri = URI.from({ scheme: Schemas.untitled, path: `Untitled-${counter++}`});
let model = new NotebookInputModel(untitledUri, undefined, undefined);
let input = new NotebookInput('modelViewId', model);
let model = new NotebookInputModel(untitledUri, undefined, false, undefined);
let input = new NotebookInput('modelViewId', model,);
this._editorService.openEditor(input, { pinned: true });
});
}