Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text colors in editor sometimes randomly change when scrolling #3295

Open
bwarren18 opened this issue Apr 14, 2021 · 8 comments
Open

Text colors in editor sometimes randomly change when scrolling #3295

bwarren18 opened this issue Apr 14, 2021 · 8 comments
Labels
Area-UI Issue-Bug A bug to squash.

Comments

@bwarren18
Copy link

bwarren18 commented Apr 14, 2021

Issue Description

When editing code in an editor window, on very rare occasions, the text coloring that is based on the code content type will randomly change as you scroll down the page. To demonstrate the effect I created a bunch of comment lines between my code.

image

Other notes:
The Minimap shows the same coloring. There also appears to be 'ghost' characters in it.
The formatting is preserved if copied and pasted into another program, a new message in Outlook for example.
Closing and re-opening VSC fixes the issue.

Another person reported the same issue before and it was closed and suggested to be moved here: microsoft/vscode#120800

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.19042
VSCode 1.55.2
PowerShell Extension Version 2021.2.2

PowerShell Information

Name Value
PSVersion 5.1.19041.906
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.19041.906
BuildVersion 10.0.19041.906
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
azurerm-vscode-tools msazurermtools 0.15.0
Bookmarks alefragnani 13.0.4
powershell ms-vscode 2021.2.2
vscode-dotnet-runtime ms-dotnettools 1.0.0
@ghost ghost added the Needs: Triage Maintainer attention needed! label Apr 14, 2021
@SydneyhSmith
Copy link
Collaborator

Thanks @bwarren18 we have seen this issue at times as well-- but it is a bit of a tricky one that will take resources to debug--thanks!

@SydneyhSmith SydneyhSmith added Area-UI Issue-Bug A bug to squash. Needs-Repro-Info and removed Needs: Triage Maintainer attention needed! labels Apr 20, 2021
@bwarren18
Copy link
Author

Thanks @SydneyhSmith, let me know if there is anything I can do to collect more debug information for this.

@andyleejordan
Copy link
Member

@bwarren18 Does this only happen when semantic highlighting is enabled?

@bwarren18
Copy link
Author

@andschwa Yes. If Semantic Highlighting is set to false it looks fine; the bug reappears if set to true again.

@ghost ghost added the Needs: Maintainer Attention Maintainer attention needed! label May 25, 2021
@andyleejordan
Copy link
Member

Helpful to know, thank you!

@bwarren18
Copy link
Author

I wish I knew a way to consistently reproduce the issue.
It seems to happen when a file is left open in VS code for a while.
Let me know if there is any thing you would like me to check when it happens again. Thanks.

@andyleejordan
Copy link
Member

I've seen it occasionally, we have a whole project planned to address the semantic highlighting issues. It was helpful to be able to categorize this. I'm contemplating disabling semantic highlighting by default until we have it working better.

@SydneyhSmith SydneyhSmith removed the Needs: Maintainer Attention Maintainer attention needed! label May 27, 2021
@shelby-carter
Copy link

OMG it's a horrible feature! I hate it so much!

For others who struggle with it, just set config to:

"editor.semanticHighlighting.enabled": false,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-UI Issue-Bug A bug to squash.
Projects
None yet
Development

No branches or pull requests

4 participants