mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
Fix contentManager undefined when builtin manager used (#3710)
* Fix for contentManager undefined for builtin manager * Clean up code some more
This commit is contained in:
@@ -76,7 +76,11 @@ export class NotebookModel extends Disposable implements INotebookModel {
|
||||
}
|
||||
|
||||
public get notebookManagers(): INotebookManager[] {
|
||||
return this.notebookOptions.notebookManagers.filter(manager => manager.providerId !== DEFAULT_NOTEBOOK_PROVIDER);
|
||||
let notebookManagers = this.notebookOptions.notebookManagers.filter(manager => manager.providerId !== DEFAULT_NOTEBOOK_PROVIDER);
|
||||
if (!notebookManagers.length) {
|
||||
return this.notebookOptions.notebookManagers;
|
||||
}
|
||||
return notebookManagers;
|
||||
}
|
||||
|
||||
public get notebookManager(): INotebookManager {
|
||||
@@ -424,6 +428,9 @@ export class NotebookModel extends Disposable implements INotebookModel {
|
||||
await this.loadActiveContexts(e);
|
||||
});
|
||||
});
|
||||
if (!this.notebookManager) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
let sessionManager = this.notebookManager.sessionManager;
|
||||
if (sessionManager) {
|
||||
|
||||
Reference in New Issue
Block a user