-
-
Notifications
You must be signed in to change notification settings - Fork 419
Script completer minor refactoring #2635
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
Conversation
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 to me. Everything seems to work as expected in my testing. Is this something that we would also consider porting to the 2.x
branch?
Maybe a dumb question, but is there a reason that we don't support tooltips in the script editor for |
I see no good reason, it may help users, feel free to open a PR |
Did you compare the behavior between Unfiltered mode (current master) and normal mode (this PR) for the the popup? I wonder if there are cases where previous behavior is better, and why unfiltered mode was chosen to start with. |
I'll check again, but when I originally tested I didn't see any difference. |
Oops. I just checked again and I see that the selection list in the original version showed everything all the time but only moved the selected item highlight as you typed, and your version actually reduces the selection list. I'm not sure why it was set up initially as unfiltered, but I prefer the way that you have it set up as filtered. |
The behavior is different. In unfiltered mode it jumps to the suggestion, but shows all the possible completions. As the list is sorted alphabetically and matching looks at the start I found this more convenient to be able to look through all possible functions. But that's probably just my personal preference.
The tooltips work on all variables. Actually the code to show the tooltip just searches for the percentage sign and valid characters afterwards. So it even works for any user defined variable. Only that for variables we don't have much to show, so it only shows the name. This is different for functions, where we show the function documentation. |
I can live with it either way. |
@zas I think we need a ticket and put the change of auto complete behavior into the changelog. |
I'll do, and introduce the change in another PR, I removed this change from this one as it was intended to get feedback on it anyway. |
Functions are already unique no need to cast to set.
d576d16
to
6eca60a
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.
LGTM
Summary
Problem
Solution
Action
Additional actions required: