Skip to content

Conversation

@JohannesMeierSE
Copy link
Collaborator

Main contributions of this PR

  • The <LanguageType> generic is replaced by <Specifics extends TypirSpecifics> in order to provide more customizations in a extendable way
  • Typir-Langium supports the Langium-specific properties of DiagnosticInfo for validation issues (with a test case for a code action in LOX)
  • Updated Langium to v4.0

Hints:

Copy link
Member

@insafuhrmann insafuhrmann left a 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only "in" the TypirSpecifics?

@JohannesMeierSE JohannesMeierSE merged commit bfabc48 into main Aug 15, 2025
2 checks passed
@JohannesMeierSE JohannesMeierSE deleted the jm/validation-features branch August 15, 2025 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants