nvimdev / nvimdev/lspsaga.nvim

Not showing typescript refactoring actions like extract to function

Open
#1,391 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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
image
Either by running it as a command, or as a keybinding.

While the native vim.lsp.buf.code_action shows all the possible options:

image

Steps to reproduce
  1. Open a TypeScript file
  2. Select any line with V
  3. Run: :'<,'>Lspsaga code_action or 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.