You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought about rename symbol functionality for translations, but came to conclusion that it will be nice to first have references for them.
First idea is to get all project files(project.registry?) and for all of them create AST, then find all nodes that are localization helpers, and then return those that have matching translation key. On first look it seems it should be working, but I'm concerned about performance of that solution.
Is there better idea how to implement reference provider?
If not, should I be concerned about performance?
The text was updated successfully, but these errors were encountered:
I think we could add one more store, especially for "translations" to keep it in a same way as we do for component names today, also, we could extend it to store token location (shape - to be defined, because we should keep it mind refactoring support)
token collection performed using "setTimeout" and not block main loop, but we have an side task for it - collect template tokens in a new process [perf-improvement] #261 (I not consider it as urgent right now, and we have to be able to keep same-process-implementation to work in web-worker)
Also, we could land refactoring provider as part of addon API, right now LS does not support it
I thought about rename symbol functionality for translations, but came to conclusion that it will be nice to first have references for them.
First idea is to get all project files(
project.registry
?) and for all of them create AST, then find all nodes that are localization helpers, and then return those that have matching translation key. On first look it seems it should be working, but I'm concerned about performance of that solution.The text was updated successfully, but these errors were encountered: