You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recent LSP auto-format feature breaks documentation in specific cases.
Here's a quick example of one of them:
issue.doc = {{
Ea et fuga incidunt expedita non et recusandae. Consequatur doloremque excepturi et nesciunt officia doloremque odio similique. Saepe porro rerum aliquam consequatur et quia. Asperiores accusantium sed assumenda temporibus debitis.
**Ea et fuga incidunt expedita non et recusandae. Consequatur doloremque excepturi et nesciunt officia doloremque odio similique. Saepe porro rerum aliquam consequatur et quia. Asperiores accusantium sed assumenda temporibus debitis.**
}}
After formatting applied by LSP it becomes:
issue.doc = {{
Ea et fuga incidunt expedita non et recusandae. Consequatur doloremque excepturi et nesciunt
officia doloremque odio similique. Saepe porro rerum aliquam consequatur et quia. Asperiores
accusantium sed assumenda temporibus debitis.
**Ea et fuga incidunt expedita non et recusandae. Consequatur doloremque excepturi et nesciunt
officia doloremque odio similique. Saepe porro rerum aliquam consequatur et quia. Asperiores a
ccusantium sed assumenda temporibus debitis.**
}}
As you can see officia... and accusantium... are places on separate line, and as a result it breaks italic text formating in the beginning of the paragraph (**Ea et...), so ucm complains.
offset=1055:
unexpected "<newline>excepturi et "
expecting "**", "@eval", "@foldedSource", "@inlineSignature", "@signature", "@signatures", "@source", code (examples: ''**unformatted**'', `words` or '''_words_'''), hyperlink (example: [link name](https://destination.com)), inline code (examples: ``List.map f xs``, ``[1] :+ 2``), link (examples: {type List}, {Nat.+}), or transclusion (examples: {{ doc2 }}, {{ sepBy s [doc1, doc2] }})
And in order to fix it and commit changes to database i would need to disable auto-format or lsp altogether.
The text was updated successfully, but these errors were encountered:
Recent LSP
auto-format
feature breaks documentation in specific cases.Here's a quick example of one of them:
After formatting applied by LSP it becomes:
As you can see
officia...
andaccusantium...
are places on separate line, and as a result it breaksitalic
text formating in the beginning of the paragraph (**Ea et...
), soucm
complains.And in order to fix it and commit changes to database i would need to disable
auto-format
orlsp
altogether.The text was updated successfully, but these errors were encountered: