Add "Open Cargo.toml" action
matklad opened this issue · 7 comments
Invoking it should open Cargo.toml for the current file.
This should be implemented at the rust-analyzer layer (ie, not in the IDE layer).
This needs custom protocol extension.
See c9f8789#diff-4bec6bfceb4323ffd0d2ff1ad25070234f084f31ddd5577bbdb510de878a3811 for an example which adds custom extension
I can take this up if no one else is working on it. This would open the Cargo.toml of the current crate, right?
Yes, but there might be some corner cases:
- the project is not Cargo-based
- the file is generated by a build script
- the file is included in multiple crates
This would open the Cargo.toml of the current crate, right?
Right! i suggest looking at handle_runnables for the logic of discovering the current crate/package
We just don't such features -- there's relatively few bugs on the interesection between client and server, and conventinal testing is not too efficient here.
ah, got it 👍. What about manually verifying it works? Like installing a dev build and running that in vscode?