serayuzgur / crates

crates is an extension aims to help people to manage their dependencies for rust (crates.io & TOML).
https://marketplace.visualstudio.com/items?itemName=serayuzgur.crates
MIT License
238 stars 36 forks source link

detect Cargo.toml in subfolders #223

Closed adamtrilling closed 10 months ago

adamtrilling commented 11 months ago

If you have a repository where the rust project lives in a subfolder (say, a monorepo hosting several services), the crates extension won't activate unless you add a (possibly blank) Cargo.toml to the repository root. This PR addresses that - it now uses the same activationEvent check for Cargo.toml that the official rust-analyzer extension uses.