mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 01:25:36 -05:00
Add notebook query event listeners before connect (#15136)
This commit is contained in:
@@ -331,8 +331,8 @@ class SqlKernel extends Disposable implements nb.IKernel {
|
||||
this._queryRunner.runQuery(code).catch(err => onUnexpectedError(err));
|
||||
} else if (this._currentConnection && this._currentConnectionProfile) {
|
||||
this._queryRunner = this._instantiationService.createInstance(QueryRunner, this._connectionPath);
|
||||
this.addQueryEventListeners(this._queryRunner);
|
||||
this._connectionManagementService.connect(this._currentConnectionProfile, this._connectionPath).then((result) => {
|
||||
this.addQueryEventListeners(this._queryRunner);
|
||||
this._queryRunner.runQuery(code).catch(err => onUnexpectedError(err));
|
||||
}).catch(err => onUnexpectedError(err));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user