Only allow one proc-macro process

This commit is contained in:
Edwin Cheng 2021-02-02 04:55:17 +08:00
parent 379b677559
commit 4adf13e2ef

View file

@ -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![],