-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code_action makes unexpected ranges when it called form linewise-visual mode #22629
Comments
Could you try with #22632 ? |
@mfussenegger Thanks for the super fast fix, seriously. It's perfect!!! |
mfussenegger
added a commit
that referenced
this issue
Mar 12, 2023
yesean
pushed a commit
to yesean/neovim
that referenced
this issue
Mar 25, 2023
folke
pushed a commit
to folke/neovim
that referenced
this issue
May 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
If I call
vim.lsp.buf.code_action()
from linewise-visual mode (V
) without explicit range, it makes a range byrange_from_selection()
.But it gives not a line-wise range but a characters-wise.
It may makes a buggy behavior like #21326 .
Steps to reproduce using "nvim -u minimal_init.lua"
It requires a LSP supporting code_action with a range like
gopls
.(I'm using
gopls
)So I should prepare a dependencies with like Dockerfile to reproduce it.
I'll do it later.
note for me:
Expected behavior
It makes line-wise range.
Neovim version (nvim -v)
v0.9.0-dev-286777c
Language server name/version
gopls v0.11.0
Operating system/version
Ubuntu 22
Log file
https://gist.github.com/kyoh86/3cbeb80ff07bfee93a84503aedb25e42
The text was updated successfully, but these errors were encountered: