Fix #4452 Notebook is reloaded with wrong kernel (#4480)

* Fix #4452 Notebook is reloaded with wrong kernel
- Await all extension registration before getting providers and providerId
To do this, we need to await way up in the NotebookInput, and promise the model that we'll have values eventually
This commit is contained in:
Kevin Cunnane
2019-03-13 20:03:01 -07:00
committed by GitHub
parent 5774b1f69a
commit 0131746919
5 changed files with 38 additions and 36 deletions

View File

@@ -85,11 +85,14 @@ export interface INotebookManager {
readonly serverManager: azdata.nb.ServerManager;
}
export interface IProviderInfo {
providerId: string;
providers: string[];
}
export interface INotebookParams extends IBootstrapParams {
notebookUri: URI;
input: NotebookInput;
providerId: string;
providers: string[];
providerInfo: Promise<IProviderInfo>;
isTrusted: boolean;
profile?: IConnectionProfile;
modelFactory?: ModelFactory;