Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Tracking issue: multiple targets/workspaces/packages, etc. #132

@nrc

Description

@nrc

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
  • offer UI for setting options for a project

cc #102

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions