LSP Extensions support
See original GitHub issue- https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/lsp-extensions.md
- https://github.com/rust-analyzer/rust-analyzer/issues/4604
Issue Analytics
- State:
- Created 3 years ago
- Reactions:28
- Comments:27 (14 by maintainers)
Top Results From Across the Web
Language Server Extension Guide - Visual Studio Code
LSP is a win for both language tooling providers and code editor vendors! LSP Languages and Editors. In this guide, we will: Explain...
Read more >Adding a Language Server Protocol extension - Visual Studio ...
To create a language service extension using an LSP-based language server, first make sure you have the Visual Studio extension development ...
Read more >lsp_extensions.nvim - GitHub
Repo to hold a bunch of info & extension callbacks for built-in LSP. Use at your own risk :wink: - GitHub - nvim-lua/lsp_extensions.nvim:...
Read more >Tools supporting the LSP
Editor/IDE Maintainer Repository
Acme Fazlul Shahriar acme‑lsp
Atom GitHub atom‑languageclient
BBEdit Bare Bones Software, Inc. Proprietary
Read more >519952 – Support LSP extensions - Bugs - Eclipse
Bug 519952 - Support LSP extensions ... customize how LSP4E sets up the JSON-RPC communication so that Language Server Protocol extensions can be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@HungPham3112 the snippets are came from rust-analyzer, post your feature request to rust-analyzer.
You’re using getSelectedRange while expecting Vim to be in visual mode, however
:<C-U>
kind of mappings (e.g.xmap <Plug>(coc-codeaction-selected)
) exit visual mode before executing the range and therefore that check will not pass.While you could use
<cmd>
mappings to avoid exiting visual mode, exiting is needed to get the visual mode range with'<
and'>
like here (as far as I’m aware it’s not possible to do that while staying in visual mode, you have to exit it first for those marks’ positions to be updated).So, in short, the solution is to make the mapping work like
xmap <Plug>(coc-codeaction-selected)
where you’ll detectvisualmode()
when the mapping is triggered, not after. Here’s the doCodeAction code for reference and you’ll see that it fetches the visual range using the marks’ positions as mentioned.