mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 18:43:01 +00:00
Support spans with proc macro servers from before the ast id changes
The only thing changed is the value of the fixup ast id, so we just swap it.
This commit is contained in:
parent
c15fc9a344
commit
3e834add61
10 changed files with 96 additions and 102 deletions
|
|
@ -55,7 +55,7 @@ pub enum SpanMode {
|
|||
Id,
|
||||
|
||||
/// Rust Analyzer-specific span handling mode.
|
||||
RustAnalyzer { fixup_ast_id: u32 },
|
||||
RustAnalyzer,
|
||||
}
|
||||
|
||||
/// Represents responses sent from the proc-macro-srv to the client.
|
||||
|
|
@ -308,7 +308,7 @@ mod tests {
|
|||
#[test]
|
||||
fn test_proc_macro_rpc_works() {
|
||||
let tt = fixture_token_tree();
|
||||
for v in HASHED_AST_ID..=CURRENT_API_VERSION {
|
||||
for v in RUST_ANALYZER_SPAN_SUPPORT..=CURRENT_API_VERSION {
|
||||
let mut span_data_table = Default::default();
|
||||
let task = ExpandMacro {
|
||||
data: ExpandMacroData {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue