Well, first of all:
- I am not trying to convince you [1]. I simple describe what
I guess to be the
probable cause for the current situation.
- Equally I do not express my opinion on if that should be kept or not (or should have been at all to begin with)
I will refine my previous description in reply to your post. This is not meant as a "defence of it" (for I have nothing to defend).
It may however read as if it was, because (assuming the current mask wasn't a result of randomness) it attempts to clarify what I think the reason may have been (i.e. therefore it defends that there was a reason / but not the quality of that reason).
Every sentence of the explanation should be read as "it was probably thought that..."
--------------
The lazarus directory is not a (typical) project directory. It includes lots of packages. (and the files founds belong to those packages.)
The project is in the "ide" directory. Yet, this directory is not just the project, but also hosting further packages.
If you edit a project with forms (GUI / project type "Application") then the ".lpr" contains pascal code generated by the IDE. So in this case many people don't wont to search in the lpr file. It isn't code they wrote.
Of course, as soon as the search includes lcl (or any package the user did not wrote themself), then the lpr file would be of interest.
And if you create a non-gui "simple program" or a "library", then the lpr also contains your code.
So there are cases were lpr is better not in the list, and cases were it should be...
So add to this
1) "if you work on a (e.g., your own) package, then the filter is insufficient as there are generated pas files."
2) Yet still, if you work on gui-app, it may (or may at the time) have been thought to better leave lpr out of the list.
3) If such filtering was thought as better, and could not be achieved completely for packages, then partially achieving it may still have been thought better than nothing.
4) Additionally the "exceptions/flaws" may not have existed at that time.... (don't know in which order things were added).
[1]
"not convince you" of the content => that is just a guess. I have no problem if you think it was introduced for a different reason.
If you think so, then still, at this very moment "I guess as I have described". Therefore in terms of "convince you", I would hope to convince you that the above is indeed what I do guess at the moment of writing this.