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
When editing 2 or more different files, occasionally the formatting result from one file will be applied to the previous file instead of the current file. I think this issue is either related to, or the same as, both #58 and #71. However, unlike those 2 issues, I was able to create a mostly consistent minimal reproduction of the bug, which you can see here.
I added some further notes and observations in the README of that repo, but take them with a grain of salt, as I haven't exhaustively tested those speculations. That reproduction works pretty reliably for me, but since it seems to be timing related, you may have to coerce it into working on your environment by modifying the delays.
The text was updated successfully, but these errors were encountered:
`vim.lsp.util.make_formatting_params` assumes the buffer the formatting
params are generated for is the current buffer. in LSP-format this is
not always the case.
fix#92fix#58
Thanks for the reproduction repo
The issue was vim.lsp.util.make_formatting_params. It has 0 buffer hardcoded for generating the URI for the buffer. So even though the buffer numbers are correct, the URI was wrong..
When editing 2 or more different files, occasionally the formatting result from one file will be applied to the previous file instead of the current file. I think this issue is either related to, or the same as, both #58 and #71. However, unlike those 2 issues, I was able to create a mostly consistent minimal reproduction of the bug, which you can see here.
I added some further notes and observations in the README of that repo, but take them with a grain of salt, as I haven't exhaustively tested those speculations. That reproduction works pretty reliably for me, but since it seems to be timing related, you may have to coerce it into working on your environment by modifying the delays.
The text was updated successfully, but these errors were encountered: