You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not exactly sure when this changed, but I used to get the window.onDidChangeActiveTextEditor event when there is no active editor -- i.e. closing all documents/tabs, switching to say an extension page (where there is no text editor). The event would just have an undefined editor parameter, but now I no longer seems to fire at all.
Steps to Reproduce:
Open an extension that listens for window.onDidChangeActiveTextEditor
Observe that no event will be raised when you close the last editor, nor when you switch to an extension page
The text was updated successfully, but these errors were encountered:
eamodio
changed the title
No longer get window.onDidChangeActiveTextEditor events when there is no window.activeEditor
[Regression] No longer get window.onDidChangeActiveTextEditor events when there is no window.activeEditor
Apr 11, 2017
jrieken
added
bug
Issue identified by VS Code Team member as probable bug
important
Issue identified as high-priority
candidate
Issue identified as probable candidate for fixing in the next release
labels
Apr 11, 2017
Problem is that this if-statement if (delta.newActiveEditor) { ... should be checking for undefined, not falsy if (delta.newActiveEditor !== undefined) { ...
I'm not exactly sure when this changed, but I used to get the
window.onDidChangeActiveTextEditor
event when there is no active editor -- i.e. closing all documents/tabs, switching to say an extension page (where there is no text editor). The event would just have anundefined
editor parameter, but now I no longer seems to fire at all.Steps to Reproduce:
window.onDidChangeActiveTextEditor
This is causing issues in GitLens (gitkraken/vscode-gitlens#65 is one) since I am not getting the event anymore to properly update my tracking. This has also broken https://github.com/eamodio/vscode-restore-editors for the same reason.
/cc @jrieken
The text was updated successfully, but these errors were encountered: