fortran-lang/vscode-fortran-support

bug(syntax): Selection background on peek definition lingers indefinitely

jpmvferreira opened this issue · 3 comments

Is there an existing issue for this?

  • I have searched the existing issues

Description

Whenever the command "Peek Definition" is used, the background highlight lingers indefinitely until new code is written.
It returns if you switch to a different tab and return to the first one.

Screenshots

If I use "Peek definition" in a Fortran program this happens

batata.mp4

To make sure this is not a more general problem, I've done the same with a Julia script and a C program and got the following result

batata2.mp4

Code Example

No response

Fortran Version (Free/Fixed Form)

Free Form e.g. F90+

Version of Modern Fortran

v3.2.0

Version of Visual Studio Code

v1.87.0

Platform and Architecture

Linux (Manjaro)

Additional Information

Installation was done via the official repositories and system is up to date.

Okay this seems to be a little more general that this.

Every time I change focus from VS Code to another window and back, it highlights the last word that was written. Once again, this highlight hangs indefinitely until something is modified.

Here's a video showcasing precisely that.

batata2.mp4

This is not a game breaking bug, but I have to admit, it's very, very, annoying

Okay I'm going to withdraw this issue it now also started happening to me in files in different programming languages, even with this extension disabled.

Regardless if anybody has some hints on how to debug this I would greatly appreciate it.

I started replying to you yesterday, but I got pulled away by some other stuff. I wasn't able to replicate the behaviour. What I would suggest is reinstallling/updating vscode.

I know it's a pain, but generally speaking vscode extensions wouldn't be responsible for this highlighting. It a core functionality of the editor.

P.S. syncing your settings to your GitHub account makes it slightly easier to reinstall.