check that notebook controller are unique per id

This commit is contained in:
Johannes Rieken
2021-04-16 14:22:44 +02:00
parent 217359a80d
commit 95932045c7
6 changed files with 26 additions and 12 deletions

View File

@@ -177,7 +177,7 @@ export class MainThreadNotebookKernels implements MainThreadNotebookKernelsShape
// --- kernel adding/updating/removal
$addKernel(handle: number, data: INotebookKernelDto2): void {
async $addKernel(handle: number, data: INotebookKernelDto2): Promise<void> {
const that = this;
const kernel = new class extends MainThreadKernel {
executeNotebookCellsRequest(uri: URI, ranges: ICellRange[]): void {