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
|
@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) {
|
||||||
|
|||||||
+2
-2
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user