ZoeyR / rls-vs2017

Rust extension for Visual Studio 2017 with RLS support
MIT License
110 stars 12 forks source link

Change location of target/rls directory #22

Closed skuzins closed 5 years ago

skuzins commented 5 years ago

Is there a way to accomplish this? Quoting https://github.com/rust-lang/rls/issues/870#issuecomment-389286606

Language clients need to use the LSP workspace/didChangeConfiguration to pass the rust.target_dir key

ZoeyR commented 5 years ago

Yes, you can follow the documentation here to add a JSON file with custom workspace settings.

skuzins commented 5 years ago

Thanks! I created VSWorkspaceSettings.json in .vs and tried various properties but they don't seem to get picked up. Any ideas?

{
  "rust.target_dir" : "test_target/rls"
}

as well as plain target_dir and RustLanguageExtension.target_dir