JetBrains / MPS-extensions

MPS-extensions aims to ease language development within MPS.
https://jetbrains.github.io/MPS-extensions/
Apache License 2.0
82 stars 50 forks source link

GrammarCells: Handling in folded cells #662

Open alexanderpann opened 11 months ago

alexanderpann commented 11 months ago

When you reuse the same cell such as a wrapper cell multiple times in the editor, you get multiple entries in the code completion. This is also true when you use the same cell in a collection and its folded cell. Does it make even sense to allow Grammar Cells in the folded cell?

Follow-up question: Do we have a good solution to reuse parts of the editor in the folded cell for such cases? To deactivate the substitution menu, I can set the substitute condition, node substitution condition etc. to false depending on the cell. Would it make sense to set this automatically? Otherwise, it's really hard to figure out why you have duplicated entries in the code completion menu.