langium icon indicating copy to clipboard operation
langium copied to clipboard

Add editor features for property assignments

Open spoenemann opened this issue 3 years ago • 2 comments

In cases like

MyRule returns A: ...

or

MyRule: {A} ...

where A is either a declared type (type or interface) or a rule (generating an inferred type A), we should offer editor features for the grammar language:

  • Go to definition
  • Document Highlight
  • Document Symbols
  • Find References
  • More?

These require custom implementations because we don't have cross-references here, so the default services don't work.

spoenemann avatar Feb 28 '22 14:02 spoenemann

This won't be necessary after doing #440.

spoenemann avatar Mar 11 '22 07:03 spoenemann

Actually we still need to add the editor features mentioned above for property assignments in case the assigned property is declared in an interface.

spoenemann avatar Mar 18 '22 09:03 spoenemann

Fixed with https://github.com/langium/langium/pull/505

spoenemann avatar Sep 14 '22 14:09 spoenemann