Skip to content

Support Langium-specific properties for type-related validation issues #75

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

Open
JohannesMeierSE opened this issue Apr 30, 2025 · 0 comments
Milestone

Comments

@JohannesMeierSE
Copy link
Collaborator

At the moment, we support these properties when reporting a type-related validation issue (see validation.ts):

export interface ValidationMessageDetails<LanguageType, T extends LanguageType = LanguageType> {
    languageNode: T;
    languageProperty?: string; // name of a property of the language node
    languageIndex?: number; // index, if 'languageProperty' is an Array property
    severity: Severity;
    message: string;
}

Langium-specific properties are not covered here, e.g.

  • DiagnosticInfo.data for quick-fixes
  • DiagnosticInfo.range

It would be nice to support these Langium-specific properties when using typir-langium.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant