Visual D intellisense now showing members

Rainer Schuetze r.sagitario at gmx.de
Sat Jun 9 08:13:02 UTC 2018



On 07/06/2018 04:15, DigitalDesigns wrote:
> I guess I'll throw this complain in too ;)
> 
> Goto definition rarely works. I rely on this functionality quite a bit 
> but it rarely does anything, specially the more complex a project gets.
> 
> I can have a class somewhere and use a cast to that class then goto 
> definition on it and it won't take me there
> 
> cast(c)
> 
> goto on c does not take me to the c.

As this is probably a local variable, JSON information is unsuited for 
this. The semantic analyzer is supposed to kick in here, but whether 
this works depends on how complicated your code is. So a full example 
would be interesting.

> 
> It seems to work mainly when the types are in the same model that I'm in.
> 
> It might be related to how the file value is specified(which is some 
> relative path).
> 
> I would think that it would just look up the value in the json and then 
> use the file and line info? Probably needs to have more type info for 
> ambiguities but it could do a search in the json and if the result is 
> unique then it uses it. This way it always passes for unique names, 
> which works well. Maybe if the name is long then one can do a full blown 
> search too.
> 


More information about the Digitalmars-d-ide mailing list