EDU-697 Placeholders disappear after "Run Study Tests" configuration execution
authorLiana Bakradze <liana.bakradze@jetbrains.com>
Tue, 2 Aug 2016 11:03:58 +0000 (14:03 +0300)
committerLiana Bakradze <liana.bakradze@jetbrains.com>
Tue, 2 Aug 2016 11:03:58 +0000 (14:03 +0300)
python/educational-core/course-creator/src/com/jetbrains/edu/coursecreator/CCVirtualFileListener.java

index 0ac9fe8321916d04750fda689c0307e1293ef26f..791bfaabce5fcc52dec63deb0b08e06c187c2f50 100644 (file)
@@ -2,6 +2,7 @@ package com.jetbrains.edu.coursecreator;
 
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.project.ProjectUtil;
+import com.intellij.openapi.util.io.FileUtil;
 import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.openapi.vfs.VirtualFileAdapter;
 import com.intellij.openapi.vfs.VirtualFileEvent;
@@ -76,7 +77,7 @@ public class CCVirtualFileListener extends VirtualFileAdapter {
       return;
     }
     Course course = StudyTaskManager.getInstance(project).getCourse();
-    if (course == null || path.contains(course.getCourseDirectory())) {
+    if (course == null || path.contains(FileUtil.toSystemIndependentName(course.getCourseDirectory()))) {
       return;
     }
     final TaskFile taskFile = StudyUtils.getTaskFile(project, removedFile);