mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-03 01:25:38 -05:00
Kusto Notebook Kernel Changes (#11760)
* Able to get Kernel Alias using extension registery * Get Kernel Alias through Capability Services * Notebook Action feature to add kusto to dropdown based on extension - complete * Fixed indexing issue when Kusto is in kernels Dropdown * Kusto Kernel listed properly and selected when kernel changes * Added kernel change when user Attaches To Kusto connection * Deleted unnecessary code/refactored * Fix Merge Issues * Resolving Compile issues - test file error * Capabilities Provider Changes * Fixed Notebook Tests * Rearchitect kernel changes to Notebook Model * Address minor changes
This commit is contained in:
@@ -396,11 +396,12 @@ suite('Notebook Actions', function (): void {
|
||||
const e: azdata.nb.IKernelChangedArgs = <azdata.nb.IKernelChangedArgs>{
|
||||
newValue: <azdata.nb.IKernel>{
|
||||
name: 'StandardKernel2'
|
||||
}
|
||||
},
|
||||
nbKernelAlias: ''
|
||||
};
|
||||
notebookModel.kernelChangedEmitter.fire(e);
|
||||
assert.ok(updateKernelStub.calledOnce, `updateKernel should be called exactly once`);
|
||||
assert.ok(updateKernelStub.calledWithExactly(e.newValue), `updateKernel should be called with the parameter: ${JSON.stringify(e.newValue)}`);
|
||||
assert.ok(updateKernelStub.calledWithExactly(e.newValue, e.nbKernelAlias), `updateKernel should be called with the parameter: ${JSON.stringify(e.newValue), JSON.stringify(e.nbKernelAlias)}`);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user