Add localContentManger and dummy sessionManager (#3130)

* - keyboard binding to arrow keys
- toggle markdown editor by double click

* Added localContentManger and dummpy sessionManager
This commit is contained in:
Yurong He
2018-11-05 17:55:13 -08:00
committed by GitHub
parent 3c785ae7d8
commit 5da89ac05b
7 changed files with 152 additions and 6 deletions

View File

@@ -0,0 +1,31 @@
'use strict';
import { nb } from 'sqlops';
import { Session } from 'electron';
export class SessionManager implements nb.SessionManager {
private _sessionManager: nb.SessionManager;
constructor() {
}
public get isReady(): boolean {
return this._sessionManager.isReady;
}
public get ready(): Thenable<void> {
return this._sessionManager.ready;
}
public get specs(): nb.IAllKernels {
return this._sessionManager.specs;
}
startNew(options: nb.ISessionOptions): Thenable<nb.ISession> {
return this._sessionManager.startNew(options);
}
shutdown(id: string): Thenable<void> {
return this.shutdown(id);
}
}