You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the way I use the autocomplete it is better that the popup closes on enter of space character.
For example, typing sql syntax (with live autocomplete on) when I type a whole identifier e.g. 'and' and then a space, the popup stays open and continues trying to match including the 'and' when I have already finished the word. In a desktop editor e.g. visual studio the autocomplete closes at this point.
I have a local fix for this in my completer where I add an additional command binding to the Autocomplete, but thought this might be a behaviour you wish to include by default. This can be achieved with a new command binding to 'Space' in the autocomplete object:
Normally autocomplete closes when there are no matching completions, so space should be handled automatically. But for your example from #2463 it might not work since you are adding space for formatting. Is this a problem only for space or for other characters ([( ) as well
Hmm, yes you are right, it is due to having spaces in some of the completions I think. Well, the space command mapping fixes this for me.
Yes, it also happens when closing off an identifier with ], the popup remains open as it matches the ] in other suggestions. Could I add a command mapping for this too? Otherwise I may keep the chars () [] out of the display text altogether.
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
In the way I use the autocomplete it is better that the popup closes on enter of space character.
For example, typing sql syntax (with live autocomplete on) when I type a whole identifier e.g. 'and' and then a space, the popup stays open and continues trying to match including the 'and' when I have already finished the word. In a desktop editor e.g. visual studio the autocomplete closes at this point.
I have a local fix for this in my completer where I add an additional command binding to the Autocomplete, but thought this might be a behaviour you wish to include by default. This can be achieved with a new command binding to 'Space' in the autocomplete object:
here:
https://github.com/ajaxorg/ace/blob/master/lib/ace/autocomplete.js#L207
This may not be appropriate in other cases but thought it was worth a mention.
The text was updated successfully, but these errors were encountered: