mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-30 01:25:38 -05:00
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:
31
src/sql/services/notebook/sessionManager.ts
Normal file
31
src/sql/services/notebook/sessionManager.ts
Normal 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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user