mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 17:23:15 -05:00
Fix notebook cancel query bug (#12300)
* fix undefined query runner error * store connection id * revert sqlSessionManager change
This commit is contained in:
@@ -48,6 +48,7 @@ export class ClientSession implements IClientSession {
|
||||
private isServerStarted: boolean;
|
||||
private notebookManager: INotebookManager;
|
||||
private _kernelConfigActions: ((kernelName: string) => Promise<any>)[] = [];
|
||||
private _connectionId: string = '';
|
||||
|
||||
constructor(private options: IClientSessionOptions) {
|
||||
this._notebookUri = options.notebookUri;
|
||||
@@ -288,8 +289,9 @@ export class ClientSession implements IClientSession {
|
||||
// TODO is there any case where skipping causes errors? So far it seems like it gets called twice
|
||||
return;
|
||||
}
|
||||
if (connection.id !== '-1') {
|
||||
if (connection.id !== '-1' && connection.id !== this._connectionId) {
|
||||
await this._session.configureConnection(connection);
|
||||
this._connectionId = connection.id;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user