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

VSCode: bioSyntax extension causes theme to reset to VSCode default #60

Open
harryjubb opened this issue Aug 3, 2021 · 5 comments
Open

Comments

@harryjubb
Copy link

Issue Type: Bug

Issue: When making a new tab and editing it, or switching tab, the VSCode theme is always reset to the default dark VSCode theme. After setting the theme preference, the theme is always overwritten upon editing in a different tab.

I used extensions bisect to identify that bioSyntax was the cause of the issue.

Extension version: 0.0.11
VS Code version: Code 1.58.2 (c3f126316369cd610563c75b1b1725e0679adfb3, 2021-07-14T22:09:06.581Z)
OS version: Darwin x64 19.6.0
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 14, 11, 8
Memory (System) 32.00GB (0.79GB free)
Process Argv --crash-reporter-id f4314a58-389e-4e6d-950a-9d7a2781ee97
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30322571
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
vscextlang:30333561
binariesv615:30325510
pythonvssor306:30344512
bridge0708:30335490
vstre464:30346472

@liyao001
Copy link
Contributor

liyao001 commented Aug 4, 2021

MillironX helped fix this issue. You can assign a theme for all other file types by the following steps:

  • Locate the settings for bioSyntax by clicking:

    1. Extensions
    2. bioSyntax (Manage)
    3. Extension Settings

  • Change the value of BioSyntax.nonBioTheme to the name of the theme that you want to use for all other file types (for example, Monokai)

  • Restart VS Code to make the changes effective.

@harryjubb
Copy link
Author

@liyao001 thanks for your quick reply, much appreciated.

This issue only started happening for me within the last few days, and as a user it was frustrating because it wasn't at all clear what was causing my theme to revert. I ended up spending a fair amount of time diagnosing it.

Is there a reason that Biosyntax can't leave the user's theme choice alone when the user isn't in a compatible file: and / or revert the user's theme when entering a non-compatible file?

If that is not possible I would respectfully suggest that theme changing could be an opt-in feature, documented in the install steps, rather than an opt-out. I appreciate that it's a core part of the Biosyntax functionality, but I would suggest that it shouldn't be at the expense of VSCode's normal expected behaviour. Just an opinion!

All the best,

@celinebalaa
Copy link

The solution doesn't fix the issue when auto-detect color scheme is activated (will change the theme based on OS theme light or dark) so the user can't define a specific theme using the extensions settings bio syntax non bio theme since it changes automatically. The default theme refers back to dark+ even when OS is in light mode.
Extension version: 0.0.11
VS code: 1.83.1 (Universal)
Date: 2023-10-19
OS: Darwin arm64 20.6.0

@williamrowell
Copy link

I'm still seeing this issue as well, even after following the instructions above.

@ababaian
Copy link
Member

ababaian commented Mar 2, 2024

@harryjubb I think is right, I put up a "Caution" note on the install instructions for VSCode.

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

5 participants