We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
java.util.Duration
In a similar way to #612 with java.util.Duration, the following code generates an error in the VS Code UI:
@ConfigProperty(name = "app.duration", defaultValue = "PT15M") Duration duration;
❌ The error message looks like that :
'PT15M' does not match the expected type of 'Duration'.microprofile-config(DEFAULT_VALUE_IS_WRONG_TYPE)
The text was updated successfully, but these errors were encountered:
Need to add something like :
case "java.time.Duration": return Duration.parse(value) != null;
in https://github.com/eclipse/lsp4mp/blob/aa2fb199ebbfc03ad542fd65cfed95f518703b13/microprofile.jdt/org.eclipse.lsp4mp.jdt.core/src/main/java/org/eclipse/lsp4mp/jdt/internal/config/java/MicroProfileConfigASTValidator.java#L311 and catch any exception
@Dougniel do you feel like opening a PR?
Sorry, something went wrong.
angelozerr
No branches or pull requests
In a similar way to #612 with
java.util.Duration
, the following code generates an error in the VS Code UI:❌ The error message looks like that :
The text was updated successfully, but these errors were encountered: