xulion / scope4code

cscope support for visual studio code
MIT License
21 stars 8 forks source link

Direct function definition navigation #40

Open MileanCo opened 5 years ago

MileanCo commented 5 years ago

When there is only one function definition, go to it automatically when you do "Cscope: Find this function definition". Right now the current implementation opens a text-window with the path and then you have to open the file manually.

When there are multiple definitions, a drop-down menu should appear (it does in Intellij) - or just leave it the way it is now (opening a text window with the multiple definitions for test and impl). Another idea is to always automatically pick the first one, and give some config settings as what to do (open text window or always choose the first one).

sysoleg commented 4 years ago

@MileanCo, it's already implemented using standard DefinitionProvider, just tap F12. Please look into #43.