Stream: t-compiler/rust-analyzer

Topic: Better auto-importing comletion caching


matklad (Dec 23 2020 at 11:14, on Zulip):

Just a though, but, in theory, it seems like we can cache auto-imports for completion much more agressively

matklad (Dec 23 2020 at 11:15, on Zulip):

When the user types new symbols at a given position, the sate of the world isn't really changing, so we should be able to re-use most of the auto-importing work

matklad (Dec 23 2020 at 11:15, on Zulip):

(in contrast to type-directed completions, where we have to-rerun type inference on modified code)

matklad (Dec 23 2020 at 11:16, on Zulip):

Basically, auto-import should only depend on item tree and a particular module

matklad (Dec 23 2020 at 11:16, on Zulip):

(though inspired by https://github.com/rust-analyzer/rust-analyzer/blob/0dec77abe744e5c4910b9ff0ce0c443cee425040/crates/rust-analyzer/src/bin/main.rs#L107-L108)

Last update: Jul 27 2021 at 22:00UTC