Bug 451833

Summary: Support to exclude vendor (or other) directory from Class Browser, but still have it parsed for code completion
Product: [Applications] kdevelop Reporter: mail+kde
Component: Language Support: PHPAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description mail+kde 2022-03-23 19:38:26 UTC
SUMMARY
***
It would be great if the Class Browser supported an (Project) Option to exclude code from specific directories.
Those directories should still be parsed for code completion purposes, but ignored otherwise.
(Handled like system include/library directories, if you will).

Typical Usecase would be the vendor directory used in composer projects.
It is usually located within the project folder, but basically consists only of external code which is used within the current project.

It would be great, if code completion, jump to etc would still work on classes and functions defined there but if those would not fill up the class browser of the current project because those classes are not actually "classes in the project" but classes of libraries used by the project.
***


STEPS TO REPRODUCE
1. checkout a or create a composer based project
2. let composer install some external libraries
3. use kdevelop with that project

OBSERVED RESULT
Class Browser lists all classes from vendor/

EXPECTED RESULT
Should only list actual project classes

SOFTWARE/OS VERSIONS: ALL

ADDITIONAL INFORMATION
-