Skip to content

Syntax highlighting sometimes slips? #246943

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

Open
thesoftwarephilosopher opened this issue Apr 19, 2025 · 11 comments
Open

Syntax highlighting sometimes slips? #246943

thesoftwarephilosopher opened this issue Apr 19, 2025 · 11 comments
Assignees

Comments

@thesoftwarephilosopher
Copy link
Contributor

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: Latest
  • OS Version: Latest

Steps to Reproduce:

  1. Comment out a line
  2. Notice the syntax highlighting

More and more often lately, segments of a line are not greened out:

Image

It feels like this has been going on for a couple years now.

@RedCMD
Copy link
Contributor

RedCMD commented Apr 19, 2025

what language?
code snippet please

@thesoftwarephilosopher
Copy link
Contributor Author

what language?

English.

code snippet please

Image

@RedCMD
Copy link
Contributor

RedCMD commented Apr 19, 2025

sorry
as in what programming language?
html, javascript, css, basic?

and can you copy paste the code text
not a screenshot please

@thesoftwarephilosopher
Copy link
Contributor Author

Correct.

@bhavyaus bhavyaus assigned mjbvz and unassigned bhavyaus Apr 23, 2025
@mjbvz mjbvz assigned alexr00 and unassigned mjbvz Apr 23, 2025
@mjbvz
Copy link
Collaborator

mjbvz commented Apr 23, 2025

VS Code Version: Latest
OS Version: Latest

Please list the specific versions you are using

@thesoftwarephilosopher
Copy link
Contributor Author

VS Code Version: Latest
OS Version: Latest

Please list the specific versions you are using

Version: 1.99.3 (user setup)
Commit: 17baf841131aa23349f217ca7c570c76ee87b957
Date: 2025-04-15T23:18:46.076Z
Electron: 34.3.2
ElectronBuildId: 11161073
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100
Edition	Windows 11 Pro
Version	24H2
Installed on	‎11/‎10/‎2024
OS build	26100.3775
Experience	Windows Feature Experience Pack 1000.26100.66.0

@alexr00
Copy link
Member

alexr00 commented Apr 24, 2025

@thesoftwarephilosopher can you please share the values for all editor.experimental.preferTreeSitter.* settings? Which programming language is your snippet?

@thesoftwarephilosopher
Copy link
Contributor Author

@alexr00 It appears to be unset (I can't find it in the JSON, and they're all unchecked in the GUI). Language is TSX.

@alexr00
Copy link
Member

alexr00 commented Apr 24, 2025

@mjbvz I think this is coming from the typescript language service with semantic highlighting.

@alexr00 alexr00 assigned mjbvz and hediet and unassigned alexr00 Apr 24, 2025
@mjbvz
Copy link
Collaborator

mjbvz commented Apr 24, 2025

@thesoftwarephilosopher Can you please share the text of that file too. Thanks

@thesoftwarephilosopher
Copy link
Contributor Author

I don't have the exact text, the file has since been changed, and it's not consistently reproducable. But it's been happening for a few years on and off, so I would have assumed it's already been reported at least a few times already by now, although if so, it's also probably been closed as can't-reproduct each time. Feel free to close this since I can't (currently) reproduce it, and ifwhen it happens again, I'll post the whole code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants