Merge #4093
4093: Simplify config r=matklad a=Veetaha Co-authored-by: veetaha <veetaha2@gmail.com>
This commit is contained in:
commit
0502be3bf4
@ -132,7 +132,7 @@ impl Config {
|
|||||||
set(value, "/cargo/features", &mut self.cargo.features);
|
set(value, "/cargo/features", &mut self.cargo.features);
|
||||||
set(value, "/cargo/loadOutDirsFromCheck", &mut self.cargo.load_out_dirs_from_check);
|
set(value, "/cargo/loadOutDirsFromCheck", &mut self.cargo.load_out_dirs_from_check);
|
||||||
|
|
||||||
match get::<bool>(value, "/procMacro/enable") {
|
match get(value, "/procMacro/enable") {
|
||||||
Some(true) => {
|
Some(true) => {
|
||||||
if let Ok(path) = std::env::current_exe() {
|
if let Ok(path) = std::env::current_exe() {
|
||||||
self.proc_macro_srv = Some((path.to_string_lossy().to_string(), vec!["proc-macro".to_string()]));
|
self.proc_macro_srv = Some((path.to_string_lossy().to_string(), vec!["proc-macro".to_string()]));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user