-
Notifications
You must be signed in to change notification settings - Fork 206
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
@Resource annotation are not processed by the language server #176
Comments
The current implementation takes Spring annotations into account, but nothing else (at the moment), therefore But it certainly makes sense to change that, so that other annotations are being processed, too. But I think |
@martinlippert agree, we should consider all javax.inject package, may we can start from there and add anything more on the way. Would you like a PR for this ? |
@martinlippert i belive the |
PRs are always welcome, of course... :-) Give us a few days to review and comment on them, but if it takes a while doesn't mean we don't like it or won't look at it. We are more than happy to review, comment, and merge PRs !!! With regards to the screenshot, it would be good to see the source code to which the symbols belong, too. I wonder why there is a |
If you want to provide a special symbol, you need to implement a The hover providers are responsible for showing data from live running applications (which is a whole different game for non-boot spring apps). But yes, if you want to support the |
Basically the code was some thing like this
I know this dosn't make much sense but i use the RestrictedDefaultSymbolProvider since it was used for conditions and these annotation where something like conditions. |
@martinlippert for |
Any recommendations on the suggestions ? |
@martinlippert any feedback on this ? If you all like the way it is i can update tests and create PR. |
great to see you working on this, I just need a bit of time to process this... Sorry for the delay. Will be back as soon as possible on this. |
OK, I looked at this in more detail now, here is what I think: The code example that you provided:
produces the symbol in the way the screenshot shows this - and that looks perfectly fine to me. Now moving on to the injection points like I also like the idea of having a specialized shortcut like An important feature for this would indeed be to show all the other annotations on that field or method (like I think we should start to collect a few samples here (code snippet + corresponding symbol) as a first step. We can use that data also in the unit tests. As a side note: Attention: |
Thanks for the feedback @martinlippert.
will try to come up with some code samples. May be the community members here can help me out as well.
Yes this might be a problem. What if we don't have explicit SymbolProviders for such supporting annotations like Qualifier, because they will never be annotated alone, But may be process them in the parent annotations like Autowire and Bean for example. That way we can void duplicate Symbols and just creating a Qualifier symbol without its context might not valuable as well. |
@martinlippert i got your point on this, and implementation is wrong. Actually the screenshot i posted at first on Bean annotation is provided by the BeanSymboleProvider, not from my crazy changes :). But i now have some understanding what i need to do, Will get back to you after the modifications. Thanks for the support.
I didn't checked on VSCode, but what about having "@>" for Injection annotations. |
At the moment |
fields and methods which are annotation
@Resource
are not processed and listed in the symbols list. But STS3 was able to list the@Resource
.The text was updated successfully, but these errors were encountered: