Suggest LightEdit only as an alternative to a temporary project

GitOrigin-RevId: 2a59f6be9ca71839480ee11d286564f7a153980e
This commit is contained in:
Rustam Vishnyakov
2019-11-21 18:05:30 +00:00
committed by intellij-monorepo-bot
parent b7266236d3
commit e0385c4bf8
@@ -120,10 +120,6 @@ public class OpenFileAction extends AnAction implements DumbAware {
}
}
if (LightEditUtil.openFile(file)) {
return;
}
FileType type = FileTypeChooser.getKnownFileTypeOrAssociate(file, project);
if (type == null) return;
@@ -131,7 +127,9 @@ public class OpenFileAction extends AnAction implements DumbAware {
openFile(file, project);
}
else {
PlatformProjectOpenProcessor.createTempProjectAndOpenFile(Paths.get(file.getPath()), new OpenProjectTask(), -1);
if (!LightEditUtil.openFile(file)) {
PlatformProjectOpenProcessor.createTempProjectAndOpenFile(Paths.get(file.getPath()), new OpenProjectTask(), -1);
}
}
}