sublimelsp / LSP-rust-analyzer

Convenience package for rust-analyzer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Autocomplete not working inside a function or an impl, wrapped with a macro

istudyatuni opened this issue · comments

commented

I have a problem that autocomplete does not work if I wrap impl in a macro, for example (wasm_bindgen)

#[wasm_bindgen]
pub struct Test {
    a: u16
}

#[wasm_bindgen]
impl Test {
    pub fn test(self) {
        self. // <- cursor
    }
}

When I set "rust-analyzer.procMacro.enable": false it starts working again, so I suggest disabling it by default, but I'm not sure, is it ok to just disable it because someone might be using an older version of rust

rust-lang/rust-analyzer#9866
rust-lang/rust-analyzer#9868
rust-lang/rust-analyzer#10366

UPD. After disabling:

image

Is it fixed in the latest version?

commented

Yes, it seems to be working now (after updating to the latest server version, I guess)