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
{{ message }}
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
In many situations there is not just one primary crate - workspaces and packages are I think examples of this, basically. Another common one is where there is both a lib and bin (where cargo users would use --lib or --bin to filter builds). A related issue is where the primary crate is actually just a thin wrapper around a more interesting dep crate. There is also the case where a user wants to edit files in both the primary crate and a dep. The RLS doesn't really handle any of these scenarios very well.
Currently the only thing we can do about this is effectively set cargo check --lib by setting the build_lib option in rls.toml. We should expand the config file so we can set other filters and set a dep to be the primary crate for a project.
More long term we should:
handle multiple active crates (this will require keeping files from more than one crate in the VFS and being smarter about how and what we rebuild)
be able to infer sensible defaults for rls.toml options from the Cargo.toml