-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the documentation of completionItem larger #69363
Make the documentation of completionItem larger #69363
Conversation
I found that this PR sovles #29126 too. |
@sandy081 @joaomoreno Why not merge this for the next release? |
5ff9b1d
to
43b2f68
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but I would put this behind a setting and leave the default as is.
I would like to resolve the conflict if needed. |
Sure, go ahead 👍 |
Don't forget this:
|
With Enabled: Disabled: @joaomoreno, fixed reacting to the setting change. Fixed the size of |
This might not be perfect as it is, however it definitely solves a pain point if the screenshots represent the reality. What if this is merged in as is, and then polished to automatically adapt to the size of the code later? It looks like users can switch to this new mode only if they want to, so this should be good enough for now. |
2e69e36
to
0ca858a
Compare
This looks good enough to me for now. Right now the documentation window is barely readable in a lot of cases, and It'd be sad to if a potential solution was stalled for years because it's not 100% perfect. It's better than what we currently have, and I believe it can be improved through incremental updates later on. |
These tiny popup windows have been a major usability issue for literally years, with people resorting to hacking the CSS and re-hacking it every update. I can't believe the reluctance to deal with the problem when there are solutions like this waiting to go. |
I think we have been pretty clear that the approach of two static sizes (large and not so large) is not what we want. We are looking for dynamic sizing that tries to fit the contents of the suggestion details widget, actually we try to have the same for hovers as well. |
I heard it for the first time.
Do you mean that you have started implementing a dynamic sizing suggestion widget? Can I try it on a certain branch?
|
@jrieken, could you elaborate more on the desired approach? Or link us to a more in-depth discussion on the matter? |
@jrieken in the following gif, for example, are you saying that the width of details should shrink to the actual length of inside texts if they are short? However, if the width of suggestions details changes too dynamically, it will annoy users. Moreover, when the width of suggestions changes dynamically, it is difficult to determine the correct position of it. In some cases, we have to change the position dynamically to prevent it going out of the window. And, it will annoy users. |
Is anyone actually looking though? Because this issue has been open in various forms since at least 2016. Debugging in vscode is so painful because of this. |
This is a PR to make the documentation of completionItem larger, which solves #14165 along with commits by @sandy081 solving #67076.
Before:
After:
At various positions: