sublimelsp / LSP-rust-analyzer

Convenience package for rust-analyzer
MIT License
69 stars 11 forks source link

Handle format! improperly #132

Closed WZ-Tong closed 4 months ago

WZ-Tong commented 4 months ago

Reproduce:

let var = SomeValue var.format ==> Pending auto completion

select format! macro

the text become: var.format!("{:?}", );

Expected: the text become: format!("{:?}", var);

rchl commented 4 months ago

You should provide more complete example or ideally a repo that reproduces since your case relies on specific implementation of "format" (I'm guessing).

WZ-Tong commented 4 months ago

I'm really sorry that this is an issue by mistake (It's my fault that I incorrectly used the snippets provided by Rust Enhanced)