mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Fail spawning proc-macro servers when their api version is newer than r-a's
This commit is contained in:
parent
c40b0895f0
commit
8e998c4aa7
3 changed files with 10 additions and 3 deletions
|
@ -16,7 +16,7 @@ pub fn run() -> io::Result<()> {
|
|||
}
|
||||
msg::Request::ExpandMacro(task) => msg::Response::ExpandMacro(srv.expand(task)),
|
||||
msg::Request::ApiVersionCheck {} => {
|
||||
msg::Response::ApiVersionCheck(proc_macro_api::msg::API_VERSION)
|
||||
msg::Response::ApiVersionCheck(proc_macro_api::msg::CURRENT_API_VERSION)
|
||||
}
|
||||
};
|
||||
write_response(res)?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue