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

Warning diagnostic appears on properties in bootstrap.properties #604

Closed
turkeylurkey opened this issue Jan 2, 2024 · 2 comments
Closed
Assignees
Labels
language client language server integration lsp4ij

Comments

@turkeylurkey
Copy link
Member

turkeylurkey commented Jan 2, 2024

A warning underline appears in bootstrap.properties and a message in the problems view because lsp4mp does not recognise the property.

image

We need to investigate whether this message appears due to code in the client or if lsp4mp needs to be more careful.

Related to #592

@turkeylurkey turkeylurkey added language client language server integration lsp4ij labels Jan 2, 2024
@angelozerr
Copy link

A warning underline appears in bootstrap.properties and a message in the problems view because lsp4mp does not recognise the property.

It is because Microprofile Language Server mapping is mapped with Properties language and bootstrap.properties has Properties language. To fix this issue LSP4IJ provides documentMatcher to be more precise to map a file with a language server.

You will need to do the same thing than https://github.com/redhat-developer/intellij-quarkus/blob/3dd00d16abb2643537da759fcc98b5780ce3c155/src/main/resources/META-INF/lsp4ij-quarkus.xml#L21

@turkeylurkey turkeylurkey self-assigned this Jan 4, 2024
@turkeylurkey
Copy link
Member Author

Added a document matcher, thank you @angelozerr !!

image
image

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

No branches or pull requests

2 participants