From c6beaef489daca62fdf1fadd1c9b942df40ca0f4 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Wed, 12 May 2021 19:46:11 +0200 Subject: [PATCH] added logging for https://github.com/microsoft/vscode/issues/123700 --- src/vs/workbench/api/common/extHostNotebookKernels.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vs/workbench/api/common/extHostNotebookKernels.ts b/src/vs/workbench/api/common/extHostNotebookKernels.ts index 3e7373d7e1b..5bff02dac35 100644 --- a/src/vs/workbench/api/common/extHostNotebookKernels.ts +++ b/src/vs/workbench/api/common/extHostNotebookKernels.ts @@ -169,6 +169,7 @@ export class ExtHostNotebookKernels implements ExtHostNotebookKernelsShape { throw new Error('notebook controller is DISPOSED'); } if (!associatedNotebooks.has(cell.notebook.uri)) { + that._logService.trace(`NotebookController[${handle}] NOT associated to notebook, associated to THESE notebooks:`, Array.from(associatedNotebooks.keys()).map(u => u.toString())); throw new Error(`notebook controller is NOT associated to notebook: ${cell.notebook.uri.toString()}`); } return that._createNotebookCellExecution(cell); @@ -218,6 +219,7 @@ export class ExtHostNotebookKernels implements ExtHostNotebookKernelsShape { } else { obj.associatedNotebooks.delete(notebook.uri); } + this._logService.trace(`NotebookController[${handle}]`, notebook.uri.toString(), value); // send event obj.onDidChangeSelection.fire({ selected: value,