-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 183: use the relative root cargo file path if set by the user #186
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #186 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 10 10
Lines 413 412 -1
Branches 57 53 -4
=========================================
- Hits 413 412 -1
Continue to review full report at Codecov.
|
Will take a look at this one tomorrow. Don't worry about that sonar job failing in CI, we need to change the configuration to not run against forks due to the associated secret being unavailable |
Thanks again for the PR! I confess I'm a little torn on if/how to proceed. Unfortunately much of the plumbing for ingesting configuration settings, as well as subscribing to configuration change events, is still missing. Similarly, very little of the internals are wired up for utilizing said configuration. Technically what you've done here can work but has some marked limitations due to the above constraints, notably:
Since the current option is essentially a no-op, I think I can get on board with this despite those limitations, provided we also document them accordingly to avoid a similar scenario as the current state. Alternatively, if you're up for trying to to implement the more holistic option that'd be a massive help and I'm happy to provide some pointers to outline the approach. |
Also relevant to considerations around additional investment/enhacnement is that the Test Explorer extension framework has actually been deprecated for a while now since VS Code added a native Test API. I've been holding off on making the switch as it'll likely be a pretty heavy refactor, and there's been some conversations about adding Test Explorer-like functionality natively to Rust Analyzer which I hope to see come to fruition |
That makes a ton of sense. I would be willing to take a crack at a more holistic approach, given your guidance. Admittedly, this was very much a get it working PR. However, I understand if you are cautious about any heavy refactors given the potential for test explorer functionality going into Rust Analyzer. I'll defer to your best judgement of the situation. I would be happy to help anywhere I can. Whether that is implementing a more holistic approach, helping migrate to VSCode's native test API, or just providing more documentation around the current changes. Thanks for all the insight! |
Awesome thank you. I need to refresh my memory a bit, but will try to lay out a suggested path over the next couple days |
I look at the work needed for this in two separate buckets, (1) is actually wiring up configuration settings and (2) is utilizing the config in relevant places in order to use this particular option. For (1):
For (2):
Think we'd want to conditionally include a vscode-rust-test-adapter/src/cargo.ts Lines 52 to 68 in 55de9de
|
Summary
#183
Previously, the extension setting
rootCargoManifestFilePath
was not being used to locate the relative root file path for a cargo file if it was set by the user. This PR now looks for the set configuration and appends it to the workspace file path.