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
Formatting some continuous lines with efm-langserver, text lines are reversed.
It depends on the commit: 2ce4a4d and the issue: #29202.
Maybe the changes in the commit is intended to conform to specifications of LSP, but they looks like not still enough.
(Specs doesn't require sorting of text-edits)
So I don't know that which product (efm, Neovim or VSCode?) should fix the bug.
Steps to reproduce
Prepare environment
We needs nvim-lspconfig, efm-langserver and jq for example (in Linux):
Maybe the changes in the commit is intended to conform to specifications of LSP, but they looks like not still enough.
(Specs doesn't require sorting of text-edits)
For what it's worth, the spec specifically says that the order of edits matters. The language server I run sends them in a specific order, and they work fine in VSCode. Neovim is the only client that we've had this issue with.
My take is that the client shouldn't be reordering edits, neovim's client does. Right now, my LS doesn't have a problem with neovim, the commits mentioned in the bug fixed the problems we were having, but I felt that was not a correct fix.
Problem
Formatting some continuous lines with efm-langserver, text lines are reversed.
It depends on the commit: 2ce4a4d and the issue: #29202.
Maybe the changes in the commit is intended to conform to specifications of LSP, but they looks like not still enough.
(Specs doesn't require sorting of text-edits)
So I don't know that which product (efm, Neovim or VSCode?) should fix the bug.
Steps to reproduce
Prepare environment
We needs nvim-lspconfig, efm-langserver and jq for example (in Linux):
Setup neovim
And set-up nvim like below (
~/.config/nvim_issue_29392/init.lua
):Reproduce in Neovim
Prepare target file:
Start neovim:
Call
lua vim.lsp.buf.format()
.And get the invalid result:
Expected behavior
Formatted right:
Neovim version (nvim -v)
v0.11.0-dev-b0c336e
Vim (not Nvim) behaves the same?
no
Operating system/version
Arch Linux
Terminal name/version
WezTerm
$TERM environment variable
xterm-256color
Installation
Build from repo
The text was updated successfully, but these errors were encountered: