Skip to content
Discussion options

You must be logged in to vote

LineCollectionEditingHelper keeps a LineCollection in sync with a text view (not the other way around). The text view is the source of truth, and the helper does not expect the line collection to edit the expressions (which is what expression beautification is, inserting spaces, commas, etc).

You'd need to do this synchronisation yourself if you want to use the line collection's expression beautification feature. I wouldn't recommend touching the LineCollectionEditingHelper at all in this case.

The rough order of operations would look like this:

  1. User makes an edit to a line in the text view
  2. Update your expression-beautifying line collection with the new expression, & evaluate the line
  3. Up…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bokhary3
Comment options

Answer selected by zcohan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants