mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
simplify notebook kernel service
This commit is contained in:
@@ -133,7 +133,7 @@ export class MainThreadNotebookKernels implements MainThreadNotebookKernelsShape
|
||||
if (!editor.hasModel()) {
|
||||
return;
|
||||
}
|
||||
const kernel = this._notebookKernelService.getBoundKernel(editor.viewModel.notebookDocument);
|
||||
const { bound: kernel } = this._notebookKernelService.getNotebookKernels(editor.viewModel.notebookDocument);
|
||||
if (!kernel) {
|
||||
return;
|
||||
}
|
||||
@@ -163,7 +163,7 @@ export class MainThreadNotebookKernels implements MainThreadNotebookKernelsShape
|
||||
if (!editor.hasModel()) {
|
||||
continue;
|
||||
}
|
||||
if (this._notebookKernelService.getBoundKernel(editor.viewModel.notebookDocument) !== kernel) {
|
||||
if (this._notebookKernelService.getNotebookKernels(editor.viewModel.notebookDocument).bound !== kernel) {
|
||||
// different kernel
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user