Open ahmedelgabri opened 6 years ago
I have the same issue here. In an ideal scenario when renaming, files and references in node_modules
should be excluded.
Any update on this?
maybe add a way to exclude a folder?
Well, it seems there is a way to exclude a folder - put jsconfig.json
in the root project folder. File contents:
{
"exclude": [
"node_modules"
]
}
Although I don't think this is an elegant solution. jsconfig.json AFAIK is VSCode thing and has nothing to do with other editors (e.g. NeoVim). Besides, there should be the way to exclude node_modules by default, for all projects, because obviously it's not a good idea to mess with its' contents.
I just installed the language server & tried to rename a React Component inside a file & it went through all my
node_modules
tree, I had to kill neovim after 15mins of just waiting to finish.