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
I have a vscode workspace with rustup + several dependencies of rustup, allowing me to work on them together.
However, rust-analyzer doesn't seem to permit its settings in the per-folder level.
Setting the value in the per-folder file .vscode/settings.json seems to be ignored.
The use case is this: I would like to be able to set a feature that rustup adds to a dependency, for just that dependency, without causing errors like:
rust-analyzer failed to load workspace: Failed to read Cargo metadata from Cargo.toml file c:\Users\username\Documents\src\rustup.rs\Cargo.toml, Some(Version { major: 1, minor: 68, patch: 0, pre: Prerelease("nightly") }): Failed to run `"cargo" "metadata" "--format-version" "1" "--features" "cli" "--manifest-path" "c:\\Users\\username\\Documents\\src\\rustup.rs\\Cargo.toml" "--filter-platform" "x86_64-pc-windows-msvc"`: `cargo metadata` exited with an error: Updating crates.io index
error: none of the selected packages contains these features: cli, did you mean: curl?
The text was updated successfully, but these errors were encountered:
So, right now when using a vscode workspace, we spawn a single server that is being used for all folders. For this to work we'd need to spawn an LSP client server pair for each folder instead (and then also figure out how to allow using folder level settings), so this in itself should be gated behind a config as that becomes very resource heavy.
@Veykril I don't understand why it can't be pushed down into the LSP ?
Ignoring the workspace case, all the crates that a single crate depends on end up with their own independent enabled features - rustup has features x,y,z, depends on tokio, then tokio ends up having feature a,b,c enabled.
What I'm asking for is the ability to tell the LSP that the rustup crate should have features x,y,z enabled, without it also attempting to enable features x,y,z for tokio.
That seems to be entirely in the glue layer, or am I missing something?
However, rust-analyzer doesn't seem to permit its settings in the per-folder level.
With this I assumed you meant general folder level vscode configuration sorry. Yes you are right, this is merely a config exposure issue then. In that case this issue is #10298
Uh oh!
There was an error while loading. Please reload this page.
I have a vscode workspace with rustup + several dependencies of rustup, allowing me to work on them together.
However, rust-analyzer doesn't seem to permit its settings in the per-folder level.

Setting the value in the per-folder file
.vscode/settings.json
seems to be ignored.The use case is this: I would like to be able to set a feature that rustup adds to a dependency, for just that dependency, without causing errors like:
The text was updated successfully, but these errors were encountered: