mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
registerNotebookCellStatusBarItemProvider should use viewType instead of NotebookSelector
Fix #122347
This commit is contained in:
@@ -1237,7 +1237,7 @@ suite('Notebook API tests', function () {
|
||||
const emitter = new vscode.EventEmitter<vscode.NotebookCell>();
|
||||
const onDidCallProvide = emitter.event;
|
||||
suiteSetup(() => {
|
||||
vscode.notebook.registerNotebookCellStatusBarItemProvider({ viewType: 'notebookCoreTest' }, {
|
||||
vscode.notebook.registerNotebookCellStatusBarItemProvider('notebookCoreTest', {
|
||||
async provideCellStatusBarItems(cell: vscode.NotebookCell, _token: vscode.CancellationToken): Promise<vscode.NotebookCellStatusBarItem[]> {
|
||||
emitter.fire(cell);
|
||||
return [];
|
||||
|
||||
Reference in New Issue
Block a user