mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Suggest LightEdit only as an alternative to a temporary project
GitOrigin-RevId: 2a59f6be9ca71839480ee11d286564f7a153980e
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user