hansec / vscode-fortran-ls

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

Syntax highlighting for hovers #17

Closed letmaik closed 4 years ago

letmaik commented 5 years ago

Especially when hovering over a subroutine name then the big hover text with argument list and types is a bit daunting without syntax highlighting. If possible, it would be great if this was Fortran-highlighted.

hansec commented 5 years ago

Hmmmm, hover boxes should be highlighted. Can you tell me what other extensions you are using and give me an example? Do you ever see syntax highlighted hover content or is it always plain text?

I have noticed that sometimes VSCode generates its own hovers from the definition location and displays that region as non-highlighted text. However, when/why this happens doesn't appear to be too consistent. Although, I think generally it doesn't happen when the hover request returns a result.

letmaik commented 5 years ago

I have gimly81.fortran (fortran) installed. When I disable this and instead install krvajalm.linter-gfortran (Modern Fortran) then the highlighting works.

AndreHorst commented 4 years ago

I'm afraid there is an issue now. Somehow the hover-text is not working correctly anymore, but it was all working like a charm in the last version. Here are two examples:

grafik

grafik

My extensions are unchanged:

hansec commented 4 years ago

@AndreHorst Thanks for the report! Sorry about that. I pushed a patch (1.11.1) to fix this a little while ago. See fortls issue #159 for more information.