postfix completion: inplace introduce variable: ensure doc committed when handler is started inside writeAction

test: switch on inplace mode in tests
EA-86900 - RE: PostprocessReformattingAspect.beforeDocumentChanged
This commit is contained in:
Anna.Kozlova
2016-10-14 09:57:28 +02:00
parent 5881ca3033
commit 614deb2e24
7 changed files with 28 additions and 2 deletions
@@ -1,5 +1,5 @@
public class Foo {
void m(Object o) {
int foo = 1;<caret>
int <caret>foo = 1;
}
}
@@ -0,0 +1,7 @@
public class Foo {
void m() {
foo(new Runnable() {public void run()}.var<caret>);
}
void foo(Runnable r) {}
}
@@ -0,0 +1,9 @@
public class Foo {
void m() {
Runnable foo = new Runnable() {
public void run()
}; foo(foo);
}
void foo(Runnable r) {}
}
@@ -1,5 +1,5 @@
public class Foo {
void m(Object o) {
boolean foo = o instanceof String;<caret>
boolean <caret>foo = o instanceof String;
}
}