d-language-server / dls

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

extern(C++, "somestring"): completion and go to definition not working #66

Closed rmanthorpe closed 4 years ago

rmanthorpe commented 4 years ago

Completion and go to definition don't work for members of structs like this:

extern (C++,"bar"):
struct Foo
{
    int ab;
    void foo()
    {
        ab = 4; // can't find the definition of ab
    }
}

This is only a problem with the string namespace syntax, and only when applying it with a trailing colon. extern(C++, "bar"), extern(C++, bar): and extern(C++, bar) are all fine.

LaurentTreguier commented 4 years ago

This might be a case where completion isn't properly handled by DCD; I don't think DLS does anything that could be linked to such a specific issue

rmanthorpe commented 4 years ago

You're quite right. Closing in favour of https://github.com/dlang-community/DCD/issues/609.