-
Notifications
You must be signed in to change notification settings - Fork 406
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
Can't get method declaration searches with parameters to work #3211
Comments
@jmle You may want to take a look at ReferencesHandler.search(...) |
@snjeza thank you, but I don't see how that piece of code is related to my question. Could you briefly explain it to me? |
ReferencesHandler.search(...) implements a search in Java LS.
Could you show your code? |
@snjeza Yep, I know how to search, but this particular search is not working for me. This is the method where we create the // [...]
case 13:
return SearchPattern.createPattern(query, IJavaSearchConstants.METHOD, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_EXACT_MATCH | SearchPattern.R_PATTERN_MATCH);
// [...] I was expecting this search to return results when looking for methods with particular signatures. |
@snjeza I'm closing this as I have found a piece of code where this error might be coming from. Thanks for your help. |
Given, for instance, the following code:
I can get the LS to return a match for these method declarations:
getText()
getText(*)
org.home.HelloClass.getText()
but not for
getText(String)
orgetText(java.lang.String)
.I am setting the search for
IJavaSearchConstants.METHOD
,IJavaSearchConstants.DECLARATIONS
, and setting the pattern asSearchPattern.R_EXACT_MATCH | SearchPattern.R_PATTERN_MATCH
.According to the docs it is possible to do this. What am I missing?
The text was updated successfully, but these errors were encountered: