mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Add missing onNotebook:* activation event for VS Code notebook compatibility. (#18710)
This commit is contained in:
@@ -382,9 +382,10 @@ export class NotebookService extends Disposable implements INotebookService {
|
|||||||
|
|
||||||
// Emit activation event if the provider is not one of the default options
|
// Emit activation event if the provider is not one of the default options
|
||||||
if (p.id !== SQL_NOTEBOOK_PROVIDER && p.id !== JUPYTER_PROVIDER_ID) {
|
if (p.id !== SQL_NOTEBOOK_PROVIDER && p.id !== JUPYTER_PROVIDER_ID) {
|
||||||
this._extensionService.whenInstalledExtensionsRegistered().then(() => {
|
this._extensionService.whenInstalledExtensionsRegistered()
|
||||||
this._extensionService.activateByEvent(`onNotebook:${p.id}`).catch(err => onUnexpectedError(err));
|
.then(() => this._extensionService.activateByEvent(`onNotebook:${p.id}`))
|
||||||
}).catch(err => onUnexpectedError(err));
|
.then(() => this._extensionService.activateByEvent(`onNotebook:*`))
|
||||||
|
.catch(err => onUnexpectedError(err));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user