Once #251 will be merged, we need to improve Java snippets completion:
filter Java snippets according to some conditions like:
- if
project has some dependency (ex : Open API @operation snippet should be shown only if the project have the openapi dependency)
where completion has been triggered (ex : Open API @operation snippet should be shown only if completion is triggered before a class, etc)
To do that, we must delegate those 2 features on JDT LS side. We could have a microprofile/java/completion/resolveCompletionContext JDT LS command which:
- resolve condition (ex have this dependency? is completion is triggered before class, etc)
The idea is when completion is opened and snippets requires condition and compute of context , it should call one time the resolveCompletionContext which should resolve condition and compute of context.
Once #251 will be merged, we need to improve Java snippets completion:
filter Java snippetsaccording to some conditions like:project has some dependency(ex : Open API @operation snippet should be shown only if the project have the openapi dependency)where completion has been triggered(ex : Open API @operation snippet should be shown only if completion is triggered before a class, etc)To do that, we must delegate those 2 features on JDT LS side. We could have a
microprofile/java/completion/resolveCompletionContextJDT LS command which:The idea is when completion is opened and snippets requires condition and compute of context , it should call one time the resolveCompletionContext which should resolve condition and compute of context.