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

Bugfix/wrapper and optional cell description #654

Closed AlexeiQ closed 1 year ago

AlexeiQ commented 1 year ago

WrapperCell: Changed default description in auto-completion

When using a WrapperCell and the wrapper-node is not created yet, the auto-completion would list all entries that can be wrapped by its name. Additionally it shows a description, which is by default the description of the wrapper. This is inconsistent (name and description are not from different concepts) and can lead to confusion. To mitigate this confusion the description is now used from the wrapped concept, in the default case.

We strongly recommend to specify a dedicated description in the WrapperCell, since the default description can still lead to confusion.

OptionalCell: Removed description in auto-completion when no dedicated description is set

When using an OptionalCell without a dedicated description, by default, the OptionalCells entry in the auto-completion would use the description of the concept that is using this OptionalCell. This is more confusing than helpful. Therefore the entry will show a description only when a dedicated description is provided in the OptionalCell, and will be blank otherwise.

We strongly recommend to specify a dedicated description in the OptionalCell, since no description can lead to confusion.

Further changes