robb0wen / synthwave-vscode

Synthwave inspired colour theme for VS Code 🌅🕶
MIT License
5.14k stars 1.18k forks source link

Extension doesn't glow last days #281

Closed GeorgiNiagulov closed 1 year ago

GeorgiNiagulov commented 1 year ago

Hi, extension doesn't glow last days after update I follow steps: 1.Restart after enable neon dreams 2.Fix checksums issue

novym commented 1 year ago

+1 Glow no longer working after update

Version: 1.74.0
Commit: 5235c6bb189b60b01b1f49062f4ffa42384f8c91
Date: 2022-12-05T16:43:37.594Z (2 days ago)
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin x64 22.1.0
Sandboxed: No
lourain commented 1 year ago

yes. I also have the same problem when vscode update to v1.74

mrth2 commented 1 year ago

confirm. It was working with previous version but not v1.74. I tried to reinstall follow the steps but can't help

HectorCode8 commented 1 year ago

confirm. not working.

MichaelAmadheo commented 1 year ago

I'm Using VScode v1.74 and the glow is not working

tiruns commented 1 year ago

It looks like the ".vscode-tokens-styles" element may contain some default value instead of being empty, which triggers the theme to initialize too early.

A temporary workaround might be like: [VSCode Dir]\resources\app\out\vs\code\electron-sandbox\workbench\neondreams.js:164

// does it have content ?
const tokenStyles = document.querySelector('.vscode-tokens-styles').innerText
  && document.querySelector('.vscode-tokens-styles').innerText !== ''
  && document.querySelector('.vscode-tokens-styles').innerText.includes(".mtk7");

You may also need to restart the vscode app to make the modification take effect.

WRangers commented 1 year ago

It looks like the ".vscode-tokens-styles" element may contain some default value instead of being empty, which triggers the theme to initialize too early.

A temporary workaround might be like: [VSCode Dir]\resources\app\out\vs\code\electron-sandbox\workbench\neondreams.js:164

// does it have content ?
const tokenStyles = document.querySelector('.vscode-tokens-styles').innerText
  && document.querySelector('.vscode-tokens-styles').innerText !== ''
  && document.querySelector('.vscode-tokens-styles').innerText.includes(".mtk7");

You may also need to restart the vscode app to make the modification take effect.

It works! Thanks!

orange181 commented 1 year ago

It looks like the ".vscode-tokens-styles" element may contain some default value instead of being empty, which triggers the theme to initialize too early.

A temporary workaround might be like: [VSCode Dir]\resources\app\out\vs\code\electron-sandbox\workbench\neondreams.js:164

// does it have content ?
const tokenStyles = document.querySelector('.vscode-tokens-styles').innerText
  && document.querySelector('.vscode-tokens-styles').innerText !== ''
  && document.querySelector('.vscode-tokens-styles').innerText.includes(".mtk7");

You may also need to restart the vscode app to make the modification take effect.

It works, thanks ! And for those who ask about Ubuntu, the path is ~/.vscode/extensions/robbowen.synthwave-vscode-0.1.14/src/js/theme_template.js

HectorCode8 commented 1 year ago

It looks like the ".vscode-tokens-styles" element may contain some default value instead of being empty, which triggers the theme to initialize too early.

A temporary workaround might be like: [VSCode Dir]\resources\app\out\vs\code\electron-sandbox\workbench\neondreams.js:164

// does it have content ?
const tokenStyles = document.querySelector('.vscode-tokens-styles').innerText
  && document.querySelector('.vscode-tokens-styles').innerText !== ''
  && document.querySelector('.vscode-tokens-styles').innerText.includes(".mtk7");

You may also need to restart the vscode app to make the modification take effect.

Ty. Works for me.!!

robb0wen commented 1 year ago

Thanks all for the feedback and triage! I've been busy with a client work recently so haven't had a lot of time to devote to a new release, but I'll get it on asap

imsrikant commented 1 year ago

After the November 2022 Update (version 1.74) text is not glowing.

image

It was working fine yesterday but after the update the text is not glowing.

juamperuiz commented 1 year ago

The solution of @tiruns is working fine at 9th december in vscode version 1.74. Thanks so much!

EvilCult commented 1 year ago

It looks like the ".vscode-tokens-styles" element may contain some default value instead of being empty, which triggers the theme to initialize too early.

A temporary workaround might be like: [VSCode Dir]\resources\app\out\vs\code\electron-sandbox\workbench\neondreams.js:164

// does it have content ?
const tokenStyles = document.querySelector('.vscode-tokens-styles').innerText
  && document.querySelector('.vscode-tokens-styles').innerText !== ''
  && document.querySelector('.vscode-tokens-styles').innerText.includes(".mtk7");

You may also need to restart the vscode app to make the modification take effect.

works for me,thanks a lot!!!!

Kapral67 commented 1 year ago

It looks like the ".vscode-tokens-styles" element may contain some default value instead of being empty, which triggers the theme to initialize too early.

A temporary workaround might be like: [VSCode Dir]\resources\app\out\vs\code\electron-sandbox\workbench\neondreams.js:164

// does it have content ?
const tokenStyles = document.querySelector('.vscode-tokens-styles').innerText
  && document.querySelector('.vscode-tokens-styles').innerText !== ''
  && document.querySelector('.vscode-tokens-styles').innerText.includes(".mtk7");

You may also need to restart the vscode app to make the modification take effect.

Confirmed to work as well on 6.0.11-arch1-1

3v3L1na commented 1 year ago

How can I make it work on Mac operating system?

briggleman commented 1 year ago

~/.vscode/extensions/robbowen.synthwave-vscode-

as noted above, navigate to ~/.vscode/extensions/robbowen.synthwave-vscode-0.1.14/src/js/theme_template.js and add the additional line of code.

robb0wen commented 1 year ago

Thanks all! As @tiruns said, the fix above will work temporarily but the .mtk classes are generated by VScode and they do sometimes change (this happened in the past and broke the colour scheme).

That said, the workaround pointed me straight to the cause of the issue, so massive thanks to @tiruns! 🙌

Last night I rewrote all of the bootstrap checks to be a bit more resilient - Before trying to replace the styles, the script now checks that all of the synthwave theme colours are present in the workbench dom styles. If the styles aren't there, it will try again the next time they update.

Anyhow, I did a local build of the fix and have been running it all day today. I haven't had any issues, so I'll try to tidy up the code a bit and push out a new version later this evening.

robb0wen commented 1 year ago

v0.1.15 is now available from the VS Code marketplace. 🎉🚀 As always with updates:

  1. Run the Disable Neon Dreams function from the command palette
  2. Uninstall the extension completely.
  3. Install the updated version of the extension (now v0.1.15)
  4. Run the Enable Neon Dreams function from the command palette.

VScode has so many moving parts that rescuing this theme when it breaks is often way more difficult than it should be. Thanks for all the help in figuring this one out - I really appreciate it.

3v3L1na commented 1 year ago

v0.1.15 is now available from the VS Code marketplace. 🎉🚀 As always with updates:

  1. Run the Disable Neon Dreams function from the command palette
  2. Uninstall the extension completely.
  3. Install the updated version of the extension (now v0.1.15)
  4. Run the Enable Neon Dreams function from the command palette.

VScode has so many moving parts that rescuing this theme when it breaks is often way more difficult than it should be. Thanks for all the help in figuring this one out - I really appreciate it.

Wow thank you so so much! I was so sad when I discovered my theme wasn't glowing and I was hoping it would. It's a favourite of mine, I can't code when it doesn't glow 🤣

It feels like characters and strings are dancing at the rhythm of my fingers. Super happy it's working now.

imsrikant commented 1 year ago

Thank you so much @robb0wen.


Now I can work again. image

GeorgiNiagulov commented 1 year ago

Thank you @robb0wen. It's working now.

robb0wen commented 1 year ago

Thanks all! I'll close this and keep my fingers crossed that the next VS code update doesn't change too much 😅