extract INotebookKernelMatchInfo

This commit is contained in:
Johannes Rieken
2021-04-26 16:14:11 +02:00
parent 8fac153517
commit 9a43ef93f7
5 changed files with 24 additions and 19 deletions

View File

@@ -128,12 +128,12 @@ export class MainThreadNotebookKernels implements MainThreadNotebookKernelsShape
if (!editor.hasModel()) {
return;
}
const { selected: kernel } = this._notebookKernelService.getNotebookKernels(editor.viewModel.notebookDocument);
if (!kernel) {
const { selected } = this._notebookKernelService.getNotebookKernels(editor.viewModel.notebookDocument);
if (!selected) {
return;
}
for (let [handle, candidate] of this._kernels) {
if (candidate[0] === kernel) {
if (candidate[0] === selected) {
this._proxy.$acceptRendererMessage(handle, editor.getId(), e.message);
break;
}