bash-lsp / bash-language-server

A language server for Bash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rename & refactor

Freed-Wu opened this issue · comments

commented

What is the problem this feature will solve?

Some language servers like clangd (for C/C++), pyright (for python), tsserver(for javascript) and vim-language-server (for vim script) support rename and refactor.

Rename

a

Refactor

a

What is the feature you are proposing to solve the problem?

Search AST of tree-sitter and find all nodes which type is variable and name is same, rename them to a new variable name.

What alternatives have you considered?

No response

Duplicate of #161, implemented in #915