Search is not limited by Scope
When searching code using Find in Path and limiting the results by using a custom Scope, it does not seem to work. See the attached image. The scope should limit the search only to files under "src/", but here I got a result from under "vendor/".
The scope editor shows only paths that are included in the scope and that visualisation is correct - it only contains the "src/" directory. But the results do not reflect that limitation. Is this expected?

Please sign in to leave a comment.
Hi, would file[*]:*//*&&file:src//*.php scope pattern work instead?
Interesting, that does work, thanks! Would you mind explaining the reason why my original pattern was not correct and yours works?
This comes from https://youtrack.jetbrains.com/issue/IDEA-103560.
Unfortunately I'm unable reproduce the problem: neither using a scope from your screenshot, nor using the description from a ticket. But I believe they have the same same root cause.