mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix PySpark kernel connection change (#12494)
This commit is contained in:
@@ -512,7 +512,7 @@ export class AttachToDropdown extends SelectBox {
|
|||||||
//Changes kernel based on connection attached to
|
//Changes kernel based on connection attached to
|
||||||
if (this.model.kernelAliases.includes(connectionProfile.serverCapabilities.notebookKernelAlias)) {
|
if (this.model.kernelAliases.includes(connectionProfile.serverCapabilities.notebookKernelAlias)) {
|
||||||
this.model.changeKernel(connectionProfile.serverCapabilities.notebookKernelAlias);
|
this.model.changeKernel(connectionProfile.serverCapabilities.notebookKernelAlias);
|
||||||
} else {
|
} else if (this.model.clientSession.kernel.name === 'SQL') {
|
||||||
this.model.changeKernel('SQL');
|
this.model.changeKernel('SQL');
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user