loganch / AutoIt-VSCode

AutoIt Extension for Visual Studio Code

Home Page:https://marketplace.visualstudio.com/items?itemName=Damien.autoit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add "Go to definition"

guigeek34 opened this issue · comments

Can you add "Go to definition" feature, with shortcut "F12", like in other language ?

In AutoIt, this feature is assigned on shortcut Ctrl+J.

Yep it's part of the VSCode API, so I should be able to get that working

Yes please add this feature.

I would really appreciate this feature too.

Added into v0.2.3

Hi and sorry Logan,

your fix in file src\ai_definition.js for adding "Go to definition" seems to be uncomplete. It works for definitions in the same file which is the usage of the function. But when I have the definiton in a separate file which is also located in the workspace and on the same level, I can not do the "jump" to that file.

It doesn't work unfortunatly.


I really tried to do it on my own and set a pull request then, but I couldn't achieve the correct result.
I tried to combine code of src\ai_definition.js and src\ai_workspaceSymbols.js to iterate through all files, but I loosed.

If you need more information, please let me know.
Thanks for your investigation and an answer.

Best regards,
Sven