From 6737ea008ffa2c6bb9a55a4298366e820caad4a4 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Sat, 29 May 2021 11:38:45 -0700 Subject: [PATCH] Change executionState to state --- src/vs/vscode.proposed.d.ts | 9 +-------- src/vs/workbench/api/common/extHostNotebookDocument.ts | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/vs/vscode.proposed.d.ts b/src/vs/vscode.proposed.d.ts index 2e4d7c2ca3b..b4e1d2b62de 100644 --- a/src/vs/vscode.proposed.d.ts +++ b/src/vs/vscode.proposed.d.ts @@ -1894,12 +1894,6 @@ declare module 'vscode' { * An event describing a cell execution state change. */ export interface NotebookCellExecutionStateChangeEvent { - /** - * The {@link NotebookDocument notebook document} for which the cell execution state has changed. - */ - // todo@api remove? use cell.notebook instead? - readonly document: NotebookDocument; - /** * The {@link NotebookCell cell} for which the execution state has changed. */ @@ -1908,8 +1902,7 @@ declare module 'vscode' { /** * The new execution state of the cell. */ - // todo@API rename to state? - readonly executionState: NotebookCellExecutionState; + readonly state: NotebookCellExecutionState; } /** diff --git a/src/vs/workbench/api/common/extHostNotebookDocument.ts b/src/vs/workbench/api/common/extHostNotebookDocument.ts index 3ce46b431df..97bd11d61a1 100644 --- a/src/vs/workbench/api/common/extHostNotebookDocument.ts +++ b/src/vs/workbench/api/common/extHostNotebookDocument.ts @@ -356,7 +356,7 @@ export class ExtHostNotebookDocument { if (originalInternalMetadata.runState !== newInternalMetadata.runState) { const executionState = newInternalMetadata.runState ?? extHostTypes.NotebookCellExecutionState.Idle; - this._emitter.emitCellExecutionStateChange(deepFreeze({ document: this.apiNotebook, cell: cell.apiCell, executionState })); + this._emitter.emitCellExecutionStateChange(deepFreeze({ document: this.apiNotebook, cell: cell.apiCell, state: executionState })); } }