mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix for SQL Kernel only showing up (#4691)
* Ensure that notebook providers that are registered "early" are shown in kernels dropdown * cleanup
This commit is contained in:
@@ -109,6 +109,13 @@ export class NotebookService extends Disposable implements INotebookService {
|
|||||||
super();
|
super();
|
||||||
this._memento = new Memento('notebookProviders', this._storageService);
|
this._memento = new Memento('notebookProviders', this._storageService);
|
||||||
this._register(notebookRegistry.onNewRegistration(this.updateRegisteredProviders, this));
|
this._register(notebookRegistry.onNewRegistration(this.updateRegisteredProviders, this));
|
||||||
|
// If a provider has been already registered, the onNewRegistration event will not have a listener attached yet
|
||||||
|
// So, explicitly updating registered providers here.
|
||||||
|
if (notebookRegistry.providers.length > 0) {
|
||||||
|
notebookRegistry.providers.forEach(p => {
|
||||||
|
this.updateRegisteredProviders({id: p.provider, registration: p});
|
||||||
|
});
|
||||||
|
}
|
||||||
this.registerBuiltInProvider();
|
this.registerBuiltInProvider();
|
||||||
|
|
||||||
if (extensionService) {
|
if (extensionService) {
|
||||||
|
|||||||
Reference in New Issue
Block a user