eirikpre / VSCode-SystemVerilog

SystemVerilog support in VS Code
MIT License
128 stars 50 forks source link

Feature request - Go to definition for functions-tasks #118

Closed tolisaverkios closed 3 years ago

tolisaverkios commented 3 years ago

Another very useful feature that is present in ST3 SV package, is the ability to use go to definition on functions/tasks. When you do "GoTo Definition" on a function/task, a dropdown menu shows up which lists all the files in which the given function/task is used/declared. It would be nice to have this feature in this SVcode SV package

tolisaverkios commented 3 years ago

Looking at the extension's code, I see that this is supported when declaration_parse of full_parse is used. I just needed to disable fastindexing. Otherwise the indexing of the function/tasks was happening as part of the incremental indexing when opening new files. Closing the feature request.