Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
February 26, 2021 go to definition/declaration and selective imports | ||||
---|---|---|---|---|
| ||||
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? |
February 26, 2021 Re: go to definition/declaration and selective imports | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin | 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 |
February 26, 2021 Re: Visual-D go to definition/declaration and selective imports | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | 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
|
February 27, 2021 Re: Visual-D go to definition/declaration and selective imports | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin |
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.
|
March 01, 2021 Re: Visual-D go to definition/declaration and selective imports | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rainer Schuetze | 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
|
Copyright © 1999-2021 by the D Language Foundation