sublimelsp / LSP-rust-analyzer

Convenience package for rust-analyzer
MIT License
70 stars 10 forks source link

Handle format! improperly #132

Closed WZ-Tong closed 6 months ago

WZ-Tong commented 6 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 6 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 6 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)