mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
fix #143966.
This commit is contained in:
parent
2cd2f539ef
commit
e632f91b35
|
@ -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] });
|
||||
|
|
Loading…
Reference in a new issue