panicinc/icarus

Preview windows don't scale well

arif-desu opened this issue · 1 comments

The token preview on hover is a great feature, especially for looking up function prototypes. However some times it cannot autoscale appropriately.

Consider these :

Screenshot 2023-08-10 at 10 33 12 AM

const, char, restrict all three on different lines. Also couldn't completely display restrict in arguments.


Screenshot 2023-08-11 at 2 58 43 PM

This one is somewhat of extreme case due to parameter names, but displaying each parameter with it's (complete) type line-by-line would make it more readable.


These might look very minute details but it ultimately makes the code much less comprehensive.

REQUEST: Additionally, if possible, make the windows resizable using cursor, so worst case scenario users are able to read even if autoscaling fails.

This is a known issue with Nova itself and we're tracking to hopefully have a fix in the future!