mirror of
https://github.com/Microsoft/vscode
synced 2024-08-26 20:39:37 +00:00
false negative warning.
This commit is contained in:
parent
d5eac26403
commit
c19d0dcd9b
|
@ -807,9 +807,9 @@ export class ExtHostNotebookController implements ExtHostNotebookShape, ExtHostN
|
|||
throw new Error(`Notebook provider for '${viewType}' already registered`);
|
||||
}
|
||||
|
||||
if ((<any>provider).executeCell) {
|
||||
throw new Error('NotebookContentKernel.executeCell is removed, please use vscode.notebook.registerNotebookKernel instead.');
|
||||
}
|
||||
// if ((<any>provider).executeCell) {
|
||||
// throw new Error('NotebookContentKernel.executeCell is removed, please use vscode.notebook.registerNotebookKernel instead.');
|
||||
// }
|
||||
|
||||
this._notebookContentProviders.set(viewType, { extension, provider });
|
||||
this._proxy.$registerNotebookProvider({ id: extension.identifier, location: extension.extensionLocation }, viewType, provider.kernel ? { id: viewType, label: provider.kernel.label, extensionLocation: extension.extensionLocation, preloads: provider.kernel.preloads } : undefined);
|
||||
|
|
Loading…
Reference in a new issue