autocomplete-plus icon indicating copy to clipboard operation
autocomplete-plus copied to clipboard

Insufficient room to see all type information when autocompleting Rust

Open nathansobo opened this issue 8 years ago • 6 comments

Here's a completion in Atom with ide-rust

screen shot 2017-11-04 at 2 00 46 pm

Here's the same completion in VSCode:

screen shot 2017-11-04 at 2 00 56 pm

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

nathansobo avatar Nov 04 '17 20:11 nathansobo

Yikes, looks like we also don't show the completion items nicely aligned with the word you're typing in this case.

leroix avatar Nov 04 '17 20:11 leroix

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 avatar Nov 05 '17 00:11 damieng

@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.

nathansobo avatar Nov 05 '17 20:11 nathansobo

I think the left side is definitely more constrained. I'll try switching it to the right and see what existing providers look like.

damieng avatar Nov 05 '17 20:11 damieng

Shouldn’t #827 have fixed this? Was there a regression?

zmb3 avatar Dec 23 '17 18:12 zmb3

screen shot 2018-01-02 at 9 14 58 am

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.

nathansobo avatar Jan 02 '18 16:01 nathansobo