mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-12-01 03:15:33 +03:00
Redetect indent and line endings after language server replaces documents (#2778)
* redetect indent and line endings after language server replaces document * removes nested if * always redetect indent and line endings after format This reverts commit 764d14f55894dc7213e48022dfa0f91829b8ef59.
This commit is contained in:
parent
c107f4ea49
commit
886cff3bcc
@ -2343,6 +2343,7 @@ async fn make_format_callback(
|
||||
if doc.version() == doc_version {
|
||||
doc.apply(&Transaction::from(format), view_id);
|
||||
doc.append_changes_to_history(view_id);
|
||||
doc.detect_indent_and_line_ending();
|
||||
if let Modified::SetUnmodified = modified {
|
||||
doc.reset_modified();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user