autocomplete-plus
autocomplete-plus copied to clipboard
Insufficient room to see all type information when autocompleting Rust
Here's a completion in Atom with ide-rust
Here's the same completion in VSCode:
Note how in VSCode, I can see the entire type signature whereas in Atom I can't.
I think we should consider putting types on the right and increasing the maximum width so we can see the entire type signature. We have plenty of screen real estate.
/cc @leroix @damieng
Yikes, looks like we also don't show the completion items nicely aligned with the word you're typing in this case.
It's likely ide-rust needs to parse the data coming back in order to split it into the left/center/right fields like we do in ide-typescript.
@damieng Is there more room on the right side if the package were to do that, or are we still width constrained? Rust type signatures can get pretty long. If we're artificially constraining the width of the menu, maybe we should make that constraint more generous.
I think the left side is definitely more constrained. I'll try switching it to the right and see what existing providers look like.
Shouldn’t #827 have fixed this? Was there a regression?

I'm still having trouble viewing the complete type in long situations. It's not clear that there's a super easy fix, but I do think it's a UX issue.