Discover unlinked projects and suggest adding them to the settings #9661
Labels
C-feature
Category: feature request
E-hard
S-actionable
Someone could pick this issue up and work on it right now
In rust-analyzer, it's important to know the set of opened projects up-front. This set of project is stored in the
linkedProjects
config.It is possible to link projects dynamically & lazily -- the first time you open an rs file, find the corresonding toml and add it to the project. This has surprising interaction with find usages: if A uses B, and you open B and run fiend usages (or some refactor based on fiend usages), then you'd see usages in A only if you happened to open A in this editing session as well. So, we really want to know, up front, that both A and B exist.
What we could do though, is to notice a project which isn't link, and show a dialog in the edditor asking the user to (automatically), add the newly disccovered project to settings.json.
This needs some work on the server (to notice unlinked projects) and on the client (to actually modilfy the settings).
The text was updated successfully, but these errors were encountered: