compute initial state of placeholder correctly
[idea/community.git] / python / educational-core / course-creator / src / com / jetbrains / edu / coursecreator / CCRefactoringElementListenerProvider.java
index 75634c0a9026fd21468fae82742f580d9ffc0082..86121ab4340f3639f0efe51ccb23049c6ab270fd 100644 (file)
@@ -95,7 +95,7 @@ public class CCRefactoringElementListenerProvider implements RefactoringElementL
         return;
       }
       ApplicationManager.getApplication().runWriteAction(() -> {
-        VirtualFile patternFile = StudyUtils.getPatternFile(project, taskFile, oldName);
+        VirtualFile patternFile = StudyUtils.getPatternFile(taskFile, oldName);
         if (patternFile != null) {
           try {
             patternFile.delete(CCRefactoringElementListenerProvider.class);