mirror of
https://github.com/bwya77/vscode-dark-islands.git
synced 2026-05-09 08:25:35 +02:00
[GH-ISSUE #31] fix: prevent VS Code startup crash ("Unexpected token ','") after Custom UI Style patch #27
Labels
No labels
bug
bug
duplicate
enhancement
enhancement
Missing Info
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vscode-dark-islands#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @msirprism on GitHub (Feb 16, 2026).
Original GitHub issue: https://github.com/bwya77/vscode-dark-islands/issues/31
PR Title
fix: prevent VS Code startup crash ("Unexpected token ','") after Custom UI Style patch
PR Description (ready to paste)
Summary
This PR fixes a startup crash that some users hit right after running the theme bootstrap:
Root Cause
The
subframe7536.custom-ui-styleextension patches VS Code'sout/main.js.Its patch logic appends
custom-ui-style.electronoptions to this token:experimentalDarkMode:!0When
custom-ui-style.electronis empty, the generated patch can produce:experimentalDarkMode:!0,,That double comma is invalid JavaScript and crashes VS Code before UI startup.
What this PR changes
"custom-ui-style.electron": { "backgroundColor": "#121216" }Recovery steps for users already broken
Quit VS Code completely.
Edit VS Code's patched main file and replace:
experimentalDarkMode:!0,,experimentalDarkMode:!0,Ensure
settings.jsoncontains:Reopen VS Code.
Quick macOS command (repair)
MAIN="/Applications/Visual Studio Code.app/Contents/Resources/app/out/main.js"
perl -0pi -e 's/experimentalDarkMode:!0,,/experimentalDarkMode:!0,/g' "$MAIN"
Validation
@subframe7536 commented on GitHub (Feb 16, 2026):
Custom UI Style extension author here, it should be fixed in next release soon.