www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - go to definition/declaration and selective imports

reply John Colvin <john.loughran.colvin gmail.com> writes:
If I have a selective import then go to definition and go to 
declaration on the imported symbol (in the import statement or in 
actual use) just go the import statement. Is there some way to 
make it take me to the actual definition? Maybe declaration could 
take me to the import and definition could take me to the real 
definition?
Feb 26
parent reply Jacob Carlborg <doob me.com> writes:
On 2021-02-26 14:59, John Colvin wrote:
 If I have a selective import then go to definition and go to declaration 
 on the imported symbol (in the import statement or in actual use) just 
 go the import statement. Is there some way to make it take me to the 
 actual definition? Maybe declaration could take me to the import and 
 definition could take me to the real definition?
Which tool are you using? It works fine for me using DCD, at least the version I'm running. -- /Jacob Carlborg
Feb 26
parent reply John Colvin <john.loughran.colvin gmail.com> writes:
On Friday, 26 February 2021 at 19:29:14 UTC, Jacob Carlborg wrote:
 On 2021-02-26 14:59, John Colvin wrote:
 If I have a selective import then go to definition and go to 
 declaration on the imported symbol (in the import statement or 
 in actual use) just go the import statement. Is there some way 
 to make it take me to the actual definition? Maybe declaration 
 could take me to the import and definition could take me to 
 the real definition?
Which tool are you using? It works fine for me using DCD, at least the version I'm running.
That’s embarrassing, I forgot to put visual-d in the title
Feb 26
parent reply Rainer Schuetze <r.sagitario gmx.de> writes:
On 26/02/2021 21:43, John Colvin wrote:
 On Friday, 26 February 2021 at 19:29:14 UTC, Jacob Carlborg wrote:
 On 2021-02-26 14:59, John Colvin wrote:
 If I have a selective import then go to definition and go to
 declaration on the imported symbol (in the import statement or in
 actual use) just go the import statement. Is there some way to make
 it take me to the actual definition? Maybe declaration could take me
 to the import and definition could take me to the real definition?
Which tool are you using? It works fine for me using DCD, at least the version I'm running.
That’s embarrassing, I forgot to put visual-d in the title
That problem has been bothering me, too. AFAICT it works for symbols, but not for types imported (and aliased) through a selective import. I think I have a fix for this in the upcoming release.
Feb 27
parent John Colvin <john.loughran.colvin gmail.com> writes:
On Saturday, 27 February 2021 at 08:00:43 UTC, Rainer Schuetze 
wrote:
 On 26/02/2021 21:43, John Colvin wrote:
 On Friday, 26 February 2021 at 19:29:14 UTC, Jacob Carlborg 
 wrote:
 On 2021-02-26 14:59, John Colvin wrote:
 [...]
Which tool are you using? It works fine for me using DCD, at least the version I'm running.
That’s embarrassing, I forgot to put visual-d in the title
That problem has been bothering me, too. AFAICT it works for symbols, but not for types imported (and aliased) through a selective import. I think I have a fix for this in the upcoming release.
FYI: This was on Visual D 1.1.0-beta1 with VS 2019
Mar 01