ON-hover info for COMMON-BLOCK variables

Hi,

My code uses common blocks defined in a separate file which are then included as:
include program/src/file.inc

Is there any way I can describe the variables in my *.inc files (with !! or !>) and expect the however information would be available for code that makes us of them?

Cheers,
Lukasz

I would suggest you try to things:

First, try to associate the .inc files with the Fortran language. I am not sure if this will work.

I would also pass the .Inc extension in the --includr_suffixes option, see Configuration options - fortls

This will tell the language server to parse these files and serve LSP requests.

Restart the language server through the command pallet (Ctrl+Shift+P and type Fortran: restart language server, the option should pop up while you type).

The doxygen and ford comments inside the Inc files should be attached.

Let me know if that works.

Thanks for a prompt answer.
Looks like in my case this setting doesn’t do what’s intended.

What works (partially) is setting up following:

    "files.associations": {
        "*.inc": "FortranFreeForm"
    },

However, this allows to make on-hover available only inside the *.inc files.
If the relevant variable is used in the subroutine that makes use of the given variable the on-hover does not provide any info.

The fortls version I am using currently is 2.13.