mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Retype: don't try to retype empty files
This commit is contained in:
@@ -59,7 +59,7 @@ class RetypeFileAction : AnAction() {
|
||||
{
|
||||
ProjectRootManager.getInstance(project).fileIndex.iterateContent { file ->
|
||||
ProgressManager.checkCanceled()
|
||||
if (file.extension == extension) {
|
||||
if (file.extension == extension && file.length > 0) {
|
||||
candidates.add(CandidateFile(file, file.length))
|
||||
}
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user