mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-170925 Find in Path dialog - default to directory of current file
GitOrigin-RevId: b22b06709d74660cdbf27faef8688b5569c6f0b0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
807f510f5e
commit
97971b3f19
@@ -32,7 +32,6 @@ import com.intellij.openapi.roots.ProjectFileIndex;
|
||||
import com.intellij.openapi.roots.libraries.Library;
|
||||
import com.intellij.openapi.util.Condition;
|
||||
import com.intellij.openapi.util.Conditions;
|
||||
import com.intellij.openapi.util.NlsSafe;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import com.intellij.openapi.util.io.FileUtil;
|
||||
import com.intellij.openapi.util.registry.Registry;
|
||||
@@ -97,7 +96,11 @@ public final class FindInProjectUtil {
|
||||
} else {
|
||||
VirtualFile parent = virtualFile.getParent();
|
||||
if (parent != null && parent.isDirectory()) {
|
||||
FindInProjectSettings.getInstance(project).addDirectory(parent.getPresentableUrl());
|
||||
if (editor == null) {
|
||||
directoryName = parent.getPresentableUrl();
|
||||
} else {
|
||||
FindInProjectSettings.getInstance(project).addDirectory(parent.getPresentableUrl());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user