-
-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Here is the screen record
Screen.Recording.2568-09-26.at.22.36.37.mov
You will see that after trigger organize aliases code action, the alias is changing from:
alias A
alias C
alias D
alias B
to
alias B
alias C
alias D alias A
I expected that the alias should be ordered to:
alias A
alias B
alias C
alias D
Here is the LSP debug log from LspLog
in the neovim
[DEBUG][2025-09-26 22:36:43] .../vim/lsp/rpc.lua:277 "rpc.send" { id = 46, jsonrpc = "2.0", method = "textDocument/codeAction", params = { context = { diagnostics = {}, triggerKind = 1 }, range = { ["end"] = <1>{ character = 0, line = 17 }, start = <table 1> }, textDocument = { uri = "file:///Users/thanabodee/src/github.com/wingyplus/hello/lib/hello.ex" } } }
[DEBUG][2025-09-26 22:36:43] .../vim/lsp/rpc.lua:391 "rpc.receive" { id = 46, jsonrpc = "2.0", result = { { edit = { changes = { ["file:///Users/thanabodee/src/github.com/wingyplus/hello/lib/hello.ex"] = { { newText = "", range = { ["end"] = { character = 0, line = 21 }, start = { character = 0, line = 18 } } }, { newText = "\n", range = { ["end"] = { character = 0, line = 18 }, start = { character = 0, line = 17 } } }, { newText = " alias A\n alias B\n alias C\n alias D", range = { ["end"] = { character = 0, line = 17 }, start = { character = 0, line = 17 } } } } } }, kind = "source.organizeImports", title = "Organize aliases" } } }
And my neovim info:
NVIM v0.11.4
Build type: Release
LuaJIT 2.1.1741730670
nickgnd and ndan
Metadata
Metadata
Assignees
Labels
No labels