d-language-server / dls

A Language Server implementation for D
http://dls.dub.pm
106 stars 14 forks source link

Can't Go to Declaration for Local Module #24

Closed ghost closed 5 years ago

ghost commented 5 years ago

Still have the issue. It worked at least once when I tried it but can't get it to work anymore. I uploaded a different project configuration if you want to see if you can reproduce it. It works fine if the "Core" folder is in the workspace directory. But otherwise it doesn't work. Full module imports work as well, but not package.d imports that do public imports eg import Core. Tested with DCD and it works fine there.

dlserror.zip

img

img2

LaurentTreguier commented 5 years ago

This is caused by the fact that you are manually importing a folder inside another folder that's already imported (the current directory is automatically imported).

ghost commented 5 years ago

Can you add an option to disable importing the workspace and probably submodules too. I'd just want the D standard library to be automatically imported and then manually specify which folders to use as import paths for my project.

LaurentTreguier commented 5 years ago

I've added a d.init.symbol.autoImports option to disable automatic imports in v0.21.10

ghost commented 5 years ago

Perfect, it definitely works now lol. Thanks!