mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-16 17:58:16 +00:00
Only allow one proc-macro process
This commit is contained in:
parent
379b677559
commit
4adf13e2ef
1 changed files with 16 additions and 14 deletions
|
@ -269,6 +269,7 @@ impl GlobalState {
|
||||||
let project_folders =
|
let project_folders =
|
||||||
ProjectFolders::new(&workspaces, &files_config.exclude, workspace_build_data.as_ref());
|
ProjectFolders::new(&workspaces, &files_config.exclude, workspace_build_data.as_ref());
|
||||||
|
|
||||||
|
if self.proc_macro_client.is_none() {
|
||||||
self.proc_macro_client = match self.config.proc_macro_srv() {
|
self.proc_macro_client = match self.config.proc_macro_srv() {
|
||||||
None => None,
|
None => None,
|
||||||
Some((path, args)) => match ProcMacroClient::extern_process(path.clone(), args) {
|
Some((path, args)) => match ProcMacroClient::extern_process(path.clone(), args) {
|
||||||
|
@ -283,6 +284,7 @@ impl GlobalState {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
let watch = match files_config.watcher {
|
let watch = match files_config.watcher {
|
||||||
FilesWatcher::Client => vec![],
|
FilesWatcher::Client => vec![],
|
||||||
|
|
Loading…
Reference in a new issue