Fixed undo action after introduce variable.
Important: All created nodes shouldn't be physical.
This commit is contained in:
@@ -85,7 +85,8 @@ public class JetPsiFactory {
|
||||
|
||||
@NotNull
|
||||
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) {
|
||||
|
||||
+2
-2
@@ -77,9 +77,9 @@ public class JetIntroduceVariableTest extends LightCodeInsightFixtureTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
/*public void testLoopRange() {
|
||||
public void testLoopRange() {
|
||||
doTest();
|
||||
}*/
|
||||
}
|
||||
|
||||
public void testManyInnerOccurences() {
|
||||
doTest();
|
||||
|
||||
Reference in New Issue
Block a user