mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-04 10:50:15 +00:00
Clean up
This commit is contained in:
parent
ca957f4f82
commit
2e52aa1615
6 changed files with 41 additions and 6 deletions
|
@ -41,7 +41,12 @@ fn run() -> io::Result<()> {
|
|||
}
|
||||
msg::Request::ExpandMacro(task) => match srv.span_mode() {
|
||||
msg::SpanMode::Id => msg::Response::ExpandMacro(srv.expand(task).map(|(it, _)| it)),
|
||||
msg::SpanMode::RustAnalyzer => msg::Response::ExpandMacroSpans(srv.expand(task)),
|
||||
msg::SpanMode::RustAnalyzer => msg::Response::ExpandMacroExtended(
|
||||
srv.expand(task).map(|(tree, span_data_table)| msg::ExpandMacroExtended {
|
||||
tree,
|
||||
span_data_table,
|
||||
}),
|
||||
),
|
||||
},
|
||||
msg::Request::ApiVersionCheck {} => {
|
||||
msg::Response::ApiVersionCheck(proc_macro_api::msg::CURRENT_API_VERSION)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue