de-jcup / egradle

EGradle is a lightweight gradle integration for eclipse
https://marketplace.eclipse.org/content/egradle-ide
Apache License 2.0
27 stars 3 forks source link

GroovyBracketInsertionCompleter shall not treat a `${` as a closure #402

Closed de-jcup closed 2 years ago

de-jcup commented 2 years ago

Situation

A ${ does lead to the situation that the bracket will be closed this way:

${
   CURSOR
} 

Wanted

Typing A ${ shall lead to

${CURSOR}

Solution

Change the beahviour of GroovyBracketInsertionCompleter accordingly.

Remark: This was mentioned at https://github.com/de-jcup/eclipse-jenkins-editor/issues/53 as well - because JenkinsEditor uses EGradle groovy editor under the hood. So implementing this will fix the issue as well.