3 ms·
> For your information: in VSCode, the "Find all references" and "Rename symbol" work out-of-the-box, even if your code isn't typed. I didn't downvote, but thi
by johnfn 10y ago
> For your information: in VSCode, the "Find all references" and "Rename symbol" work out-of-the-box, even if your code isn't typed.
I didn't downvote, but this seems incorrect to me. I'm sure that it works in small code bases, but once your code gets large enough (and dynamic enough) it's going to have to start missing things.
- ggregoire 10y agoWhy would their algorithm stop to work if your code gets large? It's not some kind of magic. :) My current project has 10,000 LOC and 130 files. If I use "Rename symbol" on something imported in different files of my project, the editor will open all the files, edit all the names and just wait for me to save the changes.
- 13years 10y agoDoesn't work at all for me. My project has about 500k+ LOC. I suspect though it isn't the size of project, but certain patterns of design that work or don't work in non typed JS. However Brackets does better at finding method definitions. Even in my mess of a project with non typed JS, Brackets can always find the method definition or at least give me possible choices.
- johnfn 10y ago> Why would their algorithm stop to work if your code gets large? It's not some kind of magic. :) Their algorithm always fails on certain cases. If your code base is larger, it's more likely to contain those cases. Example case that will always fail: const x = { foo: () => {} } x["f" + "oo"](); Now rename foo to bar. Yes, this is a contrived case, but we had similar code in production at my last job.