vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Multiline Suggestions in Suggest Widget

Open Number-3434 opened this issue 1 year ago • 1 comments

Allow the currently selected suggestion in the suggest widget to be multiline.

IMG_4626

Example Usages

The bottom line will show the first line of the documentation / description. The line above would show inline details, such as a specific method siganture, inheritance, required imports, snippet overview, etc.

Specifications

  • Up to 3 lines could be supported.
  • The first line will always show the current suggestion.
  • The second line could show method signatures, types, etc.
  • The third line could show the first line of documentation.

Number-3434 avatar Feb 18 '24 07:02 Number-3434

The described behavior is how it is expected to work. If you disagree, please explain what is expected and what is not in more detail. See also our issue reporting guidelines.

Happy Coding!

vscodenpa avatar Feb 19 '24 07:02 vscodenpa

We have experimented with this in the past and decided aginst this. This is because it causes too much flicker since not all suggestions have details.

jrieken avatar Feb 19 '24 07:02 jrieken

The idea is to always show a set number of lines, even if there is no information.

This will prevent flickering.

For example, if there are no details, the second line should say:  No details

If there is no description / documentation, the third line should say:  No description

Additionally, there should be a setting to enable this (set to false by default).

hashCode
toString()
No details
No description

Number-3434 avatar Feb 19 '24 11:02 Number-3434