ligasgr / intellij-xquery

Plugin to support XQuery in Intellij Idea
Apache License 2.0
35 stars 23 forks source link

Entering keywords in their expected places should close the name suggestion box. #187

Open rhdunn opened 8 years ago

rhdunn commented 8 years ago

Given:

if (true()) <caret>

where the text cursor is at <caret>, typing then brings up a name suggestion box that updates as you type. When you have completed typing then, the suggestion box does not close, meaning that the user has to press escape to get out of that UI, press space (which closes the box and inserts a space), or press enter (which closes the box, but does not enter a new line).

This breaks up the users workflow. With the Scala plugin, it appears to be automatically closing the dialog when a full match is found (e.g. entering return will auto-close the dialog, while math will not as math is a package and is thus not complete).

The XQuery plugin should do something similar.

ligasgr commented 8 years ago

I don't why but in my case the dialog disappears exactly as you described that it does for Scala plugin. I don't know if this is something related to IntelliJ configuration but I'd try experimenting with options. Please let me know if you find anything.

ligasgr commented 8 years ago

I was able to reproduce the behaviour when File->Settings->Editor->General->Code completion->Autopopup code completion was "unticked". I had to press ctrl-space to get the dialog though.