Skip to content

Filter for Java (server) snippet #265

@angelozerr

Description

@angelozerr

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions