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
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Seems to be a regression introduced by #169. It uses the getActiveTextEditor API, meaning to grab the file we are leaving, but instead grabs the editor we arrive at. It then sees that the buffer is not the same as the actual editor, and doesn't look for any cursors.
Probably related is that saving is async, so the event is likely firing after we switch tabs (or something to that effect).
Prerequisites
Description
The
Ignore Whitespace on Current Linesetting is not respected.Steps to Reproduce
JavaScript, paste in the following, and place your cursor where the pipe is (delete the pipe)Expected behavior: [What you expect to happen]
No change
Actual behavior: [What actually happens]
Whitespace eaten
Reproduces how often: [What percentage of the time does it reproduce?]
70%
I can't reliably reproduce every time, but it will happen when I try enough times.
Versions
whitespace 0.37.6Additional Information
Seems to be a regression introduced by #169. It uses the
getActiveTextEditorAPI, meaning to grab the file we are leaving, but instead grabs the editor we arrive at. It then sees that the buffer is not the same as the actual editor, and doesn't look for any cursors.Probably related is that saving is async, so the event is likely firing after we switch tabs (or something to that effect).