diff --git a/src/sql/parts/notebook/models/notebookModel.ts b/src/sql/parts/notebook/models/notebookModel.ts index fb2e8aeeb9..c2e91b8554 100644 --- a/src/sql/parts/notebook/models/notebookModel.ts +++ b/src/sql/parts/notebook/models/notebookModel.ts @@ -315,7 +315,7 @@ export class NotebookModel extends Disposable implements INotebookModel { cell_type: cellType, source: '', metadata: {}, - execution_count: 1 + execution_count: undefined }; return this.notebookOptions.factory.createCell(singleCell, { notebook: this, isTrusted: true }); } diff --git a/src/sql/workbench/services/notebook/common/sqlSessionManager.ts b/src/sql/workbench/services/notebook/common/sqlSessionManager.ts index c616eaca6f..8271f24126 100644 --- a/src/sql/workbench/services/notebook/common/sqlSessionManager.ts +++ b/src/sql/workbench/services/notebook/common/sqlSessionManager.ts @@ -357,7 +357,7 @@ export class SQLFuture extends Disposable implements FutureInternal { content: { output_type: 'execute_result', metadata: {}, - execution_count: 1, + execution_count: this._executionCount, data: { 'application/vnd.dataresource+json': this.convertToDataResource(columns, d), 'text/html': this.convertToHtmlTable(columns, d) } }, metadata: undefined,