Skip to content
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

Merged
merged 2 commits into from
Jun 3, 2021
Merged

Update tests: vscode.notebook.activeNotebookEditor --> vscode.window.activeNotebookEditor #16381

merged 2 commits into from
Jun 3, 2021

Conversation

joyceerhl
Copy link

@joyceerhl joyceerhl added the no-changelog No news entry required label Jun 3, 2021
@joyceerhl joyceerhl added the skip tests Updates to tests unnecessary label Jun 3, 2021
@joyceerhl joyceerhl marked this pull request as draft June 3, 2021 15:26
@@ -107,5 +107,5 @@ function isANotebookOpen() {
) {
return true;
}
return !!(vscode as any).notebook.activeNotebookEditor;
return !!(vscode as any).window.activeNotebookEditor;
Copy link
Member

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.

Copy link
Member

@IanMatthewHuff IanMatthewHuff left a 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.

@joyceerhl joyceerhl marked this pull request as ready for review June 3, 2021 17:26
@joyceerhl
Copy link
Author

Go to definition failure is legit. Will open a separate PR to fix that.

@joyceerhl joyceerhl requested a review from IanMatthewHuff June 3, 2021 17:26
@joyceerhl joyceerhl merged commit 4936a76 into microsoft:main Jun 3, 2021
joyceerhl added a commit that referenced this pull request Jun 10, 2021
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog No news entry required skip tests Updates to tests unnecessary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants