mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51: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));
|
this._queryRunner.runQuery(code).catch(err => onUnexpectedError(err));
|
||||||
} else if (this._currentConnection && this._currentConnectionProfile) {
|
} else if (this._currentConnection && this._currentConnectionProfile) {
|
||||||
this._queryRunner = this._instantiationService.createInstance(QueryRunner, this._connectionPath);
|
this._queryRunner = this._instantiationService.createInstance(QueryRunner, this._connectionPath);
|
||||||
this._connectionManagementService.connect(this._currentConnectionProfile, this._connectionPath).then((result) => {
|
|
||||||
this.addQueryEventListeners(this._queryRunner);
|
this.addQueryEventListeners(this._queryRunner);
|
||||||
|
this._connectionManagementService.connect(this._currentConnectionProfile, this._connectionPath).then((result) => {
|
||||||
this._queryRunner.runQuery(code).catch(err => onUnexpectedError(err));
|
this._queryRunner.runQuery(code).catch(err => onUnexpectedError(err));
|
||||||
}).catch(err => onUnexpectedError(err));
|
}).catch(err => onUnexpectedError(err));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user