We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1fa325 commit 1b1e2a2Copy full SHA for 1b1e2a2
src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.ts
@@ -638,6 +638,11 @@ export class KernelPickerMRUStrategy extends KernelPickerStrategyBase {
638
}
639
640
protected override _selecteKernel(notebook: NotebookTextModel, kernel: INotebookKernel): void {
641
+ const currentInfo = this._notebookKernelService.getMatchingKernel(notebook);
642
+ if (currentInfo.selected) {
643
+ // there is already a selected kernel
644
+ this._notebookKernelHistoryService.addMostRecentKernel(currentInfo.selected);
645
+ }
646
super._selecteKernel(notebook, kernel);
647
this._notebookKernelHistoryService.addMostRecentKernel(kernel);
648
0 commit comments