Company LSP for rust can pull in the headers when traits are referenced from completions.
For example.
In company
if let Ok(mut f) = File::create(p) {
f.seek() <Completion>
}
Auto inserts the package inclusion directive, along with the completion. i.e the following line is inserted automatically
use std::io::seek;
I am seeing inconsistent behavior with corfu
with (corfu)
seek() doesn't show up in completions, (corfu-auto t)
With tab completion, seek() shows up under tab-cycle but not in the drop-down.
Probably, Corfu is missing a completion backend. And somehow the company is able to pull in methods/traits outside the ones that are included in the current source file.
But then using for corfu completion is somehow picking up the foreign trait.
Company LSP for rust can pull in the headers when traits are referenced from completions.
For example. In company
Auto inserts the package inclusion directive, along with the completion. i.e the following line is inserted automatically
I am seeing inconsistent behavior with corfu
(corfu-auto t)
With tab completion, seek() shows up under tab-cycle but not in the drop-down.Probably, Corfu is missing a completion backend. And somehow the company is able to pull in methods/traits outside the ones that are included in the current source file.
But then using for corfu completion is somehow picking up the foreign trait.