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
SCSS syntax highlighting partially breaking intermittently #208834
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.87.2. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
all files? [F1] => are you able to send a file? |
Only noticed it in SCSS syntax documents, but its hard to say if CSS or others are affected as I dont work with them. Yeah, I could send a file. I would imagine it would be helpful if it didn't have any external dependancies (variables, mixins, etc)? I'll just add that it happens in different project directories, any SCSS file really. Do you want me to inspect the TextMate tokens while the issue is happening? Under the expected highlighting I have this:
|
It just started doing it again as I wrote that. Here is the inspector on the portion that has no highlighting. I have the cursor placed on a property name.
After fixing the issue, the output of the debug is exactly the same. I also noticed that if i scroll that part of the code out of the viewport, when I scroll it back in I can see the correct highlighting momentarily before the text goes all white again. Kind of feels like a rendering issue. |
Other files don't impact the syntax highlighting of a document. So if we can nail it down to a particular content and change that would be very useful. |
If it helps at all, I noticed only a few moments ago the same scrolling behaviour. A part of the code went white as I scrolled (no edits were made). As I continued scrolling down, I could see the correct syntax highlighting for a brief moment before that code also went white. If I scrolled down fast enough, it would stop "spreading". But as soon as I went back up to where the highlighting had been lost, it started to "spread" downwards again. Its odd, I don't think I've seen it do that before (guess its acting up now that I reported it 😂). I'll try without extensions later. |
could you provide a sample file please?
syntax highlighting is limited to within each document were you able to confirm that no extensions are causing the problem? |
Type: Bug
The syntax highlighting in scss files will suddenly break for a small portion of the file while I am working in it.
This is the expected highlighting:
This is when the issue occurs:
The two solutions I've found that fix it are:
This has been a recurring issue for me for about a year, I figured I'd wait it out to see if it would stop happening in an update.
Unfortunately I still haven't managed to determine the exact circumstances under which the problem occurs:
Sometimes it happens when I scroll through the file. Other times while I'm editing, regardless of the type of editing I'm doing (eg. adding new code blocks or properties, editing existing properties, pasting code, etc.).
Sometimes it will be further up in the file, sometimes further down, and it only happens occasionally (appears to be random). I don't remember it happening to the code directly around where I'm working.
VS Code version: Code 1.87.1 (1e790d7, 2024-03-06T00:22:39.156Z)
OS version: Darwin arm64 23.2.0
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (32)
(2 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: