Rust-analyzer: Completion items for missing imports

Created on 28 Jan 2020  路  3Comments  路  Source: rust-analyzer/rust-analyzer

Follows up https://github.com/rust-analyzer/rust-analyzer/issues/2918. It would also be nice to have completion suggestions. Typescript LS is a nice example of how good that feature can be.

E-hard

Most helpful comment

Totally agree, I think TypeScript team has achieved the best auto-import experience there in the market.
It provides you with all possible completions even if they are somewhere far from your module.
ts-completion

All 3 comments

Totally agree, I think TypeScript team has achieved the best auto-import experience there in the market.
It provides you with all possible completions even if they are somewhere far from your module.
ts-completion

@Veetaha for what it's worth: OmniSharp (a very good C# language server) only shows completions for the imported namespaces. I like the TS extension approach, but if there are too many symbols completing everything could be too chaotic.

Was this page helpful?
0 / 5 - 0 ratings