-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Bugfixes panic when resizing #10507
Bugfixes panic when resizing #10507
Conversation
c783994 looks like a nice cleanup 1a17578 is a good catch. I think you again found a case where different people worked on the codebase that had a different understanding of what required size does (or didn't think of it too much). I think 1595467 I am not sure aobut this one. I think this probably makes sense while resizing but I don't want to do this on every frame. Firstly popus are intentionally shown where they are triggered otherwise its too much movement/too noisy. Only updating the y and not the x position covers most of tht but if the cursor moves due to softwrap (or just other movement) I don't think the popups should follow. It also servers as a visual hint where autocompletion were trigerred for example. Recomputing the cursor position also has some overhead. I think you can push c783994 into #10257. For 1a17578 if you make the changes I desribed (and keep them in a separate commit) that could go in there too. I am not sure what to do about 1595467 right now so that should be separate |
c783994
to
3ce8fac
Compare
thanks somehow it didn't came to my mind to check it. I removed the
I have a different opinion, I think it is an Improvement, but I removed it from this PR, since I want to fix the bugs first. and when this one is merged I will create another one with videos to show the difference 😸 . Nevertheless keeping the position is buggy too, because if the position is outside the viewport, then we tell the paragraph to render somewhere with invalid
(this PR is based now on the master branch) |
required_size shouldn't return None. Introduce minimum width so that the height can be calculated Signed-off-by: Ben Fekih, Hichem <[email protected]>
…port while resizing, if the position is outside the view, then the program panics. check the position and reset it to the cursor position Signed-off-by: Ben Fekih, Hichem <[email protected]>
3ce8fac
to
5c11cf1
Compare
closed, since #10573 is a better alternative |
3ce8fac popup: bugfix: reset the position to the cursor when outside the viewport
3577335 SignatureHelp: bugfix: introduce minimum width of 10