diff --git a/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnostics.ts b/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnostics.ts index 2bbe6386202d5..154a590812b51 100644 --- a/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnostics.ts +++ b/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnostics.ts @@ -91,7 +91,10 @@ export class CellDiagnostics extends Disposable { return { severity: 8, message: message, - ...location, + startLineNumber: location.startLineNumber + 1, + startColumn: location.startColumn + 1, + endLineNumber: location.endLineNumber + 1, + endColumn: location.endColumn + 1, source: 'Cell Execution Error' }; }