smjonas / inc-rename.nvim

Incremental LSP renaming based on Neovim's command-preview feature.
MIT License
637 stars 8 forks source link

Typescript renaming of properties doesn't work across files #59

Closed baronyoung closed 1 month ago

baronyoung commented 1 month ago

I'm using the latest versions of Neovim and LazyVim. Using the standard typescript lsp enabled via mason and Extras and the cr (which invokes inc-rename), if I rename a property in a typescript type that exists in one file, it doesn't properly refactor in other files. For example, if I have a "Person" type with 'name' and 'age' as properties, a variable in a separate file which uses this type will not change it's property names if I change it in the type definition.

Is there a config setting or something I'm missing?

baronyoung commented 1 month ago

I didn't have a tsconfig.json file in the root of the directory where I was testing this yet. Once that was there it worked as expected.