Partial DSL editing + Monaco in other html elements #2132
jmenzies12
started this conversation in
General
Replies: 2 comments 2 replies
-
|
hi, am not sure what you mean by partially edit, but when we (jobby job) experimented with "hacky calling setHiddenAreas" (microsoft/monaco-editor#45) on monaco we still were editing the complete document, but monaco simply wont display the hidden parts. so the question is what are exactly looking for on langium side |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Hey @jmenzies12, have you had seen volar yet? I believe that should fit your requirements nicely. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there!
We've added what we like to call "fancy descriptions" in our DSLs, essentially they allows the user to reference other items in the description and then we evaluate this at runtime to display it appropriately. For example:
item I1:
This is a fancy description, {some_other_dsl.O4}would display as something like 'This is a fancy description, O4: Has a fancier description'However we want to allow users to edit the syntax specifically just for the fancy description from other places. For example a cell in a table editor, or a popup in a diagram editor, complete with content assist, validation etc.
To do this we'd likely need to be able to partially edit a DSL, and integrate the DSL editor (Monaco) into different HTML elements. Is this something Langium supports?
Cheers
Jonathan
Beta Was this translation helpful? Give feedback.
All reactions