Fix indentation bug with relaxed completions in application.yml editor

This commit is contained in:
Kris De Volder
2018-01-19 15:11:32 -08:00
parent 1e7ae17ae7
commit 2da50fddd4
5 changed files with 118 additions and 9 deletions

View File

@@ -47,8 +47,6 @@ public class DocumentEdits implements ProposalApplier {
private static final Pattern NON_WS_CHAR = Pattern.compile("\\S");
private boolean isRelativeIndent = false;
// Note: for small number of edits this implementation is okay.
// for large number of edits it is potentially slow because of the
// way it transforms edit coordinates (a growing chain of
@@ -484,4 +482,8 @@ public class DocumentEdits implements ProposalApplier {
public void freezeCursor() {
this.grabCursor = false;
}
public boolean hasRelativeIndents() {
return true;
}
}