JetBrains / MPS-extensions

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

mpsutil.intentions: add a new style attribute to allow intentions in read-only-cells #691

Closed alexanderpann closed 9 months ago

alexanderpann commented 9 months ago

The main idea is to still allow the intention menu even if nodes are, for example, just projected into the editor through a query list and read-only.

I've tried to add tests but couldn't find a way to test this. The invoke intention statement in the editor test doesn't check if the cell is read-only and trying to invoke a demo intention through actions or key presses also didn't work.