Pure-D / serve-d

D LSP server (dlang language server protocol server)
MIT License
200 stars 48 forks source link

dub dependencies path are not added automatically to dcd #263

Closed trikko closed 1 year ago

trikko commented 1 year ago

Example project:

name "test"
dependency "serverino" version="~>0.3.0"
dependency "parserino" version="~>0.2.1"

Example src:

import std;
import serverino;
import parserino;

mixin ServerinoMain;

@endpoint
void test(Request request, Output o)
{
    Document doc = "<html>hello";
    doc. // <-- no suggestions

}

If I add paths using dcd-client -I suggestions work.

WebFreak001 commented 1 year ago

seems to work with current master now.

Also missing dependency paths when adding dependencies on-the-fly has been fixed.