Skip to content
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

Fix code hover for bean-style reference to static import method #1020

Closed
eric-milles opened this issue Jan 13, 2020 · 2 comments
Closed

Fix code hover for bean-style reference to static import method #1020

eric-milles opened this issue Jan 13, 2020 · 2 comments
Assignees
Labels
Milestone

Comments

@eric-milles
Copy link
Member

eric-milles commented Jan 13, 2020

Consider the following:

package a
class B {
  static getX() {
  }
}
import static a.B.getX
x // hover or F2 this

Code hover (F2) on single-character, bean-style reference to static method getX fails to display information on the method. Code select (F3) works properly.

image

@eric-milles
Copy link
Member Author

This is due to the GroovyTypeDeclaration created for the script, which shares the offset of the script body and has length 1.

@eric-milles
Copy link
Member Author

eric-milles commented Jan 13, 2020

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant