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
Ensure didChange notification is never sent after didClose (#2438)
* Ensure didChange is never sent after didClose
This fixes for example the Pyright warning
LSP-pyright: Received change text document command for closed file <URI>
when a file is saved and closed immediately after changes were applied.
* Missed something
* Add test
* Maybe like this?
* Try something else
* Simplify expression to save one unnecessary API call
view.change_count() returns 0 if the view isn't valid anymore (closed),
so we can simply use short-circuit evaluation for this and don't need
the is_valid() API call.
* Exempt Linux
* Small tweak to save an API call
* Revert "Exempt Linux"
This reverts commit 4dd2e91.
* Fix failing test on Linux
* actually this test passes locally with this line uncommented
* Revert, apparently it fails on the CI...
This reverts commit 43ede82.
* try a slightly different approach just to see... test pass locally
* Revert "try a slightly different approach just to see... test pass locally"
the test still fail on the CI
This reverts commit 11c5ecb.
---------
Co-authored-by: Предраг Николић <[email protected]>
0 commit comments