Add restored sdk root virtual file instead of original file

We check for the restored root file being contained in the excluded
paths and then we used to put the original file instead of the restored
one. For example, the restored file a Jar FS for *.egg archive was
ignored and the original file was used instead. This resulted in the
wrong assumption that our paths had been modified.
This commit is contained in:
Andrey Vlasovskikh
2016-10-14 22:24:15 +03:00
parent 9d2cf46e63
commit 87ccb2527d
@@ -340,7 +340,7 @@ public class PythonSdkUpdater implements StartupActivity {
if (virtualFile != null) {
final VirtualFile rootFile = PythonSdkType.getSdkRootVirtualFile(virtualFile);
if (!excludedPaths.contains(rootFile)) {
results.add(virtualFile);
results.add(rootFile);
continue;
}
}