hansec / vscode-fortran-ls

Fortran IntelliSense for Visual Studio Code
MIT License
37 stars 7 forks source link

hoverSignature displays multiple signatures #22

Closed gnikit closed 4 years ago

gnikit commented 4 years ago

I am not sure if this is intentional or not, but since the update to 1.11.1, when enabling hoverSignature and you are inside a subroutine A hovering over one of the arguments of a call to subroutine B, both signatures of A and B will be displayed.

In the picture, sub A is the current scope and sub B is copy_adjoint_options. The top row of the hover message corresponds to the signature of particles (that's where the mouse pointer was located) which is an argument of sub A. The bottom row corresponds to the signature of adj_opt_dest which is an argument of sub B.

Screenshot from 2020-04-04 03-38-27

gnikit commented 4 years ago

Closing since it is actually pretty helpful seeing the types and intents of the variables for a function/subroutine and its caller.