Commit ad5ee154 authored by peter's avatar peter Committed by Maxim.Mossienko
Browse files

IDEA-181135 Go to File: with "Include non-project files" = No out-of-project...

IDEA-181135 Go to File: with "Include non-project files" = No out-of-project files are still suggested

(cherry picked from commit 20d76b15), IDEA-CR-26011
parent aa1e92a6
Showing with 6 additions and 1 deletion
+6 -1
......@@ -419,6 +419,11 @@ class Intf {
assert gotoFile('langcsequence', false) == [charSeq.containingFile, seq]
}
void "test show no matches from jdk when there are in project"() {
def file = addEmptyFile("String.txt")
assert gotoFile('Str', false) == [file]
}
void "test fix keyboard layout"() {
assert (gotoClass('Ыекштп')[0] as PsiClass).name == 'String'
assert (gotoSymbol('Ыекштп')[0] as PsiClass).name == 'String'
......
......@@ -98,7 +98,7 @@ class DirectoryPathMatcher {
if (myFiles == null) return fileSearchScope;
VirtualFile[] array = ContainerUtil.map2Array(myFiles, VirtualFile.class, p -> p.first);
return fileSearchScope.intersectWith(GlobalSearchScopesCore.directoriesScope(myModel.getProject(), true, array));
return GlobalSearchScopesCore.directoriesScope(myModel.getProject(), true, array).intersectWith(fileSearchScope);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment