nvimdev / nvimdev/lspsaga.nvim
Not showing typescript refactoring actions like extract to function
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 3.8k
- Forks
- 308
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Running:
:'<,'>Lspsaga code_action
Only shows Move to a new file code action
Either by running it as a command, or as a keybinding.
While the native vim.lsp.buf.code_action shows all the possible options:
Steps to reproduce
- Open a TypeScript file
- Select any line with
V - Run:
:'<,'>Lspsaga code_actionor any keybinding you have like:<leader>ca
Expected behavior
the floating window should show all the Lsp options
Neovim version (nvim -v)
0.9.6
lspsaga commit
2198c07
Terminal name/version
Kitty
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Lspsaga code_action entry point and reproduce the issue in a TypeScript file using a visual selection and the reported command or keybinding. Compare its displayed actions with native vim.lsp.buf.code_action; done means the floating window shows the available TypeScript refactoring actions, including extract to function.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, typescript
- Domain
- devtools, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100