move onDidChangeNotebookCellExecutionState into proposed, https://github.com/microsoft/vscode/issues/124970

This commit is contained in:
Johannes Rieken 2021-05-31 11:47:15 +02:00
parent d4161177d9
commit 3b407e0b6c
No known key found for this signature in database
GPG key ID: 96634B5AF12F8798

View file

@ -1872,39 +1872,6 @@ declare module 'vscode' {
asWebviewUri(localResource: Uri): Uri; asWebviewUri(localResource: Uri): Uri;
} }
/**
* The execution state of a notebook cell.
*/
export enum NotebookCellExecutionState {
/**
* The cell is idle.
*/
Idle = 1,
/**
* Execution for the cell is pending.
*/
Pending = 2,
/**
* The cell is currently executing.
*/
Executing = 3,
}
/**
* An event describing a cell execution state change.
*/
export interface NotebookCellExecutionStateChangeEvent {
/**
* The {@link NotebookCell cell} for which the execution state has changed.
*/
readonly cell: NotebookCell;
/**
* The new execution state of the cell.
*/
readonly state: NotebookCellExecutionState;
}
/** /**
* Represents the alignment of status bar items. * Represents the alignment of status bar items.
*/ */
@ -2061,13 +2028,6 @@ declare module 'vscode' {
*/ */
export function createNotebookController(id: string, viewType: string, label: string, handler?: NotebookExecuteHandler, rendererScripts?: NotebookRendererScript[]): NotebookController; export function createNotebookController(id: string, viewType: string, label: string, handler?: NotebookExecuteHandler, rendererScripts?: NotebookRendererScript[]): NotebookController;
/**
* An {@link Event} which fires when the execution state of a cell has changed.
*/
// todo@API this is an event that is fired for a property that cells don't have and that makes me wonder
// how a correct consumer work, e.g the consumer could have been late and missed an event?
export const onDidChangeNotebookCellExecutionState: Event<NotebookCellExecutionStateChangeEvent>;
/** /**
* Register a {@link NotebookCellStatusBarItemProvider cell statusbar item provider} for the given notebook type. * Register a {@link NotebookCellStatusBarItemProvider cell statusbar item provider} for the given notebook type.
* @param notebookType The notebook view type to register for. * @param notebookType The notebook view type to register for.
@ -2078,6 +2038,53 @@ declare module 'vscode' {
//#endregion //#endregion
//#region https://github.com/microsoft/vscode/issues/124970, Cell Execution State
/**
* The execution state of a notebook cell.
*/
export enum NotebookCellExecutionState {
/**
* The cell is idle.
*/
Idle = 1,
/**
* Execution for the cell is pending.
*/
Pending = 2,
/**
* The cell is currently executing.
*/
Executing = 3,
}
/**
* An event describing a cell execution state change.
*/
export interface NotebookCellExecutionStateChangeEvent {
/**
* The {@link NotebookCell cell} for which the execution state has changed.
*/
readonly cell: NotebookCell;
/**
* The new execution state of the cell.
*/
readonly state: NotebookCellExecutionState;
}
export namespace notebook {
/**
* An {@link Event} which fires when the execution state of a cell has changed.
*/
// todo@API this is an event that is fired for a property that cells don't have and that makes me wonder
// how a correct consumer works, e.g the consumer could have been late and missed an event?
export const onDidChangeNotebookCellExecutionState: Event<NotebookCellExecutionStateChangeEvent>;
}
//#endregion
//#region https://github.com/microsoft/vscode/issues/106744, NotebookEditor //#region https://github.com/microsoft/vscode/issues/106744, NotebookEditor
export enum NotebookEditorRevealType { export enum NotebookEditorRevealType {