Rename onDidChangeNotebookCellExecutionState

This commit is contained in:
Rob Lourens 2021-05-07 17:00:09 -07:00
parent 4a76f0b19a
commit b987317d1a
3 changed files with 3 additions and 3 deletions

View file

@ -863,7 +863,7 @@ suite('Notebook API tests', function () {
let eventCount = 0;
let resolve: () => void;
const p = new Promise<void>(r => resolve = r);
const listener = vscode.notebook.onDidChangeCellExecutionState(e => {
const listener = vscode.notebook.onDidChangeNotebookCellExecutionState(e => {
if (eventCount === 0) {
assert.strictEqual(e.executionState, vscode.NotebookCellExecutionState.Pending, 'should be set to Pending');
} else if (eventCount === 1) {

View file

@ -1633,7 +1633,7 @@ declare module 'vscode' {
// todo@API what is this used for?
// todo@API qualify cell, ...NotebookCell...
export const onDidChangeCellExecutionState: Event<NotebookCellExecutionStateChangeEvent>;
export const onDidChangeNotebookCellExecutionState: Event<NotebookCellExecutionStateChangeEvent>;
export function registerNotebookCellStatusBarItemProvider(notebookType: string, provider: NotebookCellStatusBarItemProvider): Disposable;
}

View file

@ -1081,7 +1081,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
checkProposedApiEnabled(extension);
return extHostNotebook.onDidChangeNotebookCells(listener, thisArgs, disposables);
},
onDidChangeCellExecutionState(listener, thisArgs?, disposables?) {
onDidChangeNotebookCellExecutionState(listener, thisArgs?, disposables?) {
checkProposedApiEnabled(extension);
return extHostNotebook.onDidChangeNotebookCellExecutionState(listener, thisArgs, disposables);
},