langium
langium copied to clipboard
Code actions: use data instead of code to identify diagnostic type
The code property of diagnostics is shown in the UI. As we use that only programmatically to identify which code actions we should apply to a diagnostic, we should change to another property, for example data.
See discussion in https://github.com/langium/langium/pull/543#discussion_r901457437