fix: Not populating extension when selecting notebook kernel (#197619) (#197810)

When selecting a notebook kernel, prompt was saying
"Select kernel from undefined". "Undefined" here was supported
to be the extension name. When the quick pick items
are generated, they are generated with a value of "label".
Nothing else references or populates a property of "source",
so seems safe to change the code to reference "label" instead.
This commit is contained in:
tomqwpl 2024-01-29 18:37:27 +00:00 committed by GitHub
parent 0d9e0996dd
commit a9ba0672ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -600,7 +600,7 @@ export class KernelPickerMRUStrategy extends KernelPickerStrategyBase {
await this._selecteKernel(notebook, selectedKernelPickItem.kernel);
return true;
} else if (isGroupedKernelsPick(selectedKernelPickItem)) {
await this._selectOneKernel(notebook, selectedKernelPickItem.source, selectedKernelPickItem.kernels);
await this._selectOneKernel(notebook, selectedKernelPickItem.label, selectedKernelPickItem.kernels);
return true;
} else if (isSourcePick(selectedKernelPickItem)) {
// selected explicilty, it should trigger the execution?