This commit is contained in:
rebornix 2022-03-02 16:55:17 -08:00
parent 2cd2f539ef
commit e632f91b35
No known key found for this signature in database
GPG key ID: 181FC90D15393C20

View file

@ -39,7 +39,11 @@ export function activate(context: vscode.ExtensionContext) {
vscode.languages.registerCodeLensProvider({ pattern: '**/*.ipynb' }, {
provideCodeLenses: (document) => {
if (document.uri.scheme === 'vscode-notebook-cell') {
if (
document.uri.scheme === 'vscode-notebook-cell' ||
document.uri.scheme === 'vscode-notebook-cell-metadata' ||
document.uri.scheme === 'vscode-notebook-cell-output'
) {
return [];
}
const codelens = new vscode.CodeLens(new vscode.Range(0, 0, 0, 0), { title: 'Open in Notebook Editor', command: 'ipynb.openIpynbInNotebookEditor', arguments: [document.uri] });