DCD
DCD copied to clipboard
Custom object.d should be included by default
Right now, only the default object.d is automatically included for implicit code completion
But when developing custom runtimes, a custom object.d is used to overwrite the default one, the problem is DCD only expect one object module from the default runtime
I suspect the problematic code is here:
https://github.com/dlang-community/DCD/blob/29dba75ce93999c7346ea9745e42e2e8b0626f81/dsymbol/src/dsymbol/conversion/first.d#L362-L383
It should be able to differentiate the object.d from the runtime from the custom one
- DCD should be able to create a list of every object modules
- if just one object module, easy use it
- if more than 1 object modules found, then ignore the one that comes from the runtime