Skip to content

Code syntax highlighting doesn’t update colors when using 'auto detect color scheme', then switching themes #8847

@fnschmidt

Description

@fnschmidt

Before submitting your bug report

Relevant environment info

- OS: macOS
- Continue version: 1.2.11
- IDE version: VSCodium 1.106

Description

#1734 might be related, but doesn’t say what the root cause is and doesn’t mention changing the theme. However the outcome is the same.

When the VSCode theme is changed from light to dark mode automatically (by the OS changing theme), the syntax highlighting colors in code cells stay as they were initially (therefore mixing dark mode with light colors and vice versa).

This doesn’t happen when disabling the theme detection in VSCode and switching manually

To reproduce

  1. Start using continue in light mode
  2. Switch to OS dark mode (which VSCode follows automatically)
  3. Look at a code cell
  • Also happens on Linux so I assume any platform is affected as long as auto detect color scheme is enabled
  • The same issue occurs if starting in dark mode, then switching to light mode
  • F1 > Reload Window fixes this (until the theme is switched again)

First two pictures: intended dark/light, second two pictures: broken dark with light mode colors/light with dark mode colors

Image Image Image Image

Log output

Didn't see anything relevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    ide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:macHappening specifically on Mac

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions