-
-
Notifications
You must be signed in to change notification settings - Fork 21.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
TextEdit code completion with ItemList h_scroll #21181
TextEdit code completion with ItemList h_scroll #21181
Conversation
90cdb65
to
846ef7a
Compare
846ef7a
to
b6ec626
Compare
b6ec626
to
6d4b9f5
Compare
Fixed Mouse Scrolling, the selection was moving out of view. I still don't like the sort function so many casts and the
|
7aea8f4
to
309941b
Compare
I found a way to reproduce my third issue. Actually 2 ways, not sure if there was another case or it always happened like this. It actually doesn't happen with vectors, as I usually don't write them this way. |
309941b
to
eda697d
Compare
Hmm I am still not able to reproduce. Can you create a minimal example? Is it only happening with this PR or was it there before? |
Uh, now that I look at it, seems like you misunderstood one step. At 2), you need to complete the world manually. So write Vec, then wait, then write tor3 (don't press Enter). Normally, the autocompletion popup should close now, but with your changes, it seems to stay there. The error triggers when you press Enter afterwards. |
eda697d
to
3da1c5b
Compare
I fixed a few things, needs testing.
|
Uh, this version crashes for me if I follow the previous steps. |
Well, seems like it's conflicting with something on master branch, as cloning your fork fixed the issue. To reproduce my crash, you can get the official master branch and apply your PR (I did it using patch). EDIT: EDIT2: |
3da1c5b
to
ad9fa52
Compare
Also related: #4704 |
@AlexHolly Could you rebase the PR? >_> |
fixed case where completion closes even if options available
3a868c3
to
7d72de7
Compare
@akien-mga This take more and more time to solve, is it going to be merged anytime soon? |
7d72de7
to
e1cebe3
Compare
I did a brief test yesterday and, aside from what you already mentioned, spotted 4 issues:
|
Thanks for testing it.
It is not possible to activate the completion in this case (place the cursor somewhere in the string) |
Oh, also you can't change the match color. It seems to always be red. (the previous fixes seem to work alright btw) |
50758db
to
ad1946a
Compare
|
c8582a0
to
db650b6
Compare
I have no idea why a new color is not working, a color change in editor settings will not update the color. |
- prefer occurrence with higher match -> odo "aodo" "od2o"
db650b6
to
8be633b
Compare
While the enhancements from this PR seem quite interesting to have, the scope is very big and there's a lot of code to review... and visibly various regressions or outstanding bugs to resolve. I think this should probably be split into separate PRs with a better separation of concerns, so that the code completion experience can be improved gradually with well tested iterations. I'm also concerned about making TextEdit even more complex for the purpose of the code editor, when it's meant as a general purpose text edition field and not an IDE Control (see #31739). Maybe these changes should wait on the refactor described in #31739 so that it can be done with a better architecture. Moving to the 4.0 milestone as it's sadly too late in any case to integration this in 3.2. |
@AlexHolly Is this still desired? If so, it needs to be rebased on the latest master branch. If not, abandoned pull requests will be closed in the future as announced here. |
This PR has not received any new commits for almost a year and is abandoned, closing. |
closes #16542, closes #23264, closes #22121
Tests
Min Length (you can see a small jump on pressing backspace no idea why it happens)
Show scrolls only when needed
H Scroll for long words