-
Notifications
You must be signed in to change notification settings - Fork 7
Improved validation and more #90
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
Conversation
…ed a few wrong generics, updated documentation
…all properties of DiagnosticInfo for Langium in Typir-Langium, test case with code action
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a great contribution for more customisation and type safety. It is also very helpful to be able to use al properties from DiagnosticInfo from Langium and enables the user to register code actions. Thank you @JohannesMeierSE. I have almost no detail remarks (you can even ignore the one I have added somewhere about a missing word, it is not especially important).
| export type Severity = 'error' | 'warning' | 'info' | 'hint'; | ||
|
|
||
| export interface ValidationMessageDetails { | ||
| export interface ValidationMessageDetails { // Using this type only the TypirSpecifics (and not directly in the ValidationProblem below) enables to customize its properties. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only "in" the TypirSpecifics?
Main contributions of this PR
<LanguageType>generic is replaced by<Specifics extends TypirSpecifics>in order to provide more customizations in a extendable wayDiagnosticInfofor validation issues (with a test case for a code action in LOX)Hints: