Fixed undo action after introduce variable.

Important: All created nodes shouldn't be physical.
This commit is contained in:
Alexander.Podkhalyuzin
2012-02-21 14:54:23 +04:00
parent a5a28a11c7
commit deac0e20ca
2 changed files with 4 additions and 3 deletions
@@ -85,7 +85,8 @@ public class JetPsiFactory {
@NotNull @NotNull
public static JetFile createFile(Project project, String fileName, String text) { public static JetFile createFile(Project project, String fileName, String text) {
return (JetFile) PsiFileFactory.getInstance(project).createFileFromText(fileName, JetFileType.INSTANCE, text, LocalTimeCounter.currentTime(), true); return (JetFile) PsiFileFactory.getInstance(project).createFileFromText(fileName, JetFileType.INSTANCE, text,
LocalTimeCounter.currentTime(), false);
} }
public static JetProperty createProperty(Project project, String name, String type, boolean isVar, @Nullable String initializer) { public static JetProperty createProperty(Project project, String name, String type, boolean isVar, @Nullable String initializer) {
@@ -77,9 +77,9 @@ public class JetIntroduceVariableTest extends LightCodeInsightFixtureTestCase {
doTest(); doTest();
} }
/*public void testLoopRange() { public void testLoopRange() {
doTest(); doTest();
}*/ }
public void testManyInnerOccurences() { public void testManyInnerOccurences() {
doTest(); doTest();