-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tests: vscode.notebook.activeNotebookEditor
--> vscode.window.activeNotebookEditor
#16381
Update tests: vscode.notebook.activeNotebookEditor
--> vscode.window.activeNotebookEditor
#16381
Conversation
@@ -107,5 +107,5 @@ function isANotebookOpen() { | |||
) { | |||
return true; | |||
} | |||
return !!(vscode as any).notebook.activeNotebookEditor; | |||
return !!(vscode as any).window.activeNotebookEditor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is another .notebook just above this one that also needs changing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one more .notebook instance needed. I put a comment in.
Go to definition failure is legit. Will open a separate PR to fix that. |
* Fix go to definition in Python notebooks (#16385) * notebook renamed to notebooks, notebooks symbols moved to workspace namespace * Drop usage of NotebookCellMetadata ctor * Update tests: `vscode.notebook.activeNotebookEditor` --> `vscode.window.activeNotebookEditor` (#16381) * vscode.window.activeNotebookEditor * window.visibleNotebookEditors * Remove deprecated `NotebookCellData` constructor parameter (#16390) * Update smoke tests and add CHANGELOG item
For microsoft/vscode-jupyter#6101