Replies: 2 comments 1 reply
-
@ydaveluy Can you please open an issue for this? While the formatter implementation (i.e. your formatter) shouldn't generate duplicate formattings in the first place (since the formatting can become non-deterministic), the |
Beta Was this translation helpful? Give feedback.
-
Issues opened. In my case the duplicated edit is on a hidden ML_COMMENT rule.
I don't perform any operation in my formatter on the ML_COMMENT rule. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have some formatting issues with my dsl.
Before calling AbstractFormatter.avoidOverlappingEdits I have the following edits:
and after:
The
newText:'', start:'2:1', end:'2:2'
edit is duplicated which prevent from formatting the whole file.As a workaround I overrode the avoidOverlappingEdits method:
Is it an issue in AbstractFormatter.avoidOverlappingEdits or somewhere else ?
Beta Was this translation helpful? Give feedback.
All reactions