mirror of
https://github.com/bwya77/vscode-dark-islands.git
synced 2026-05-09 08:25:35 +02:00
[PR #134] fix(install.ps1): preserve user settings.json instead of overwriting #136
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#136
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?
📋 Pull Request Information
Original PR: https://github.com/bwya77/vscode-dark-islands/pull/134
Author: @roshan-3
Created: 5/5/2026
Status: 🔄 Open
Base:
main← Head:fix/preserve-user-settings-on-install📝 Commits (1)
1833d27fix(install.ps1): merge into user settings.json instead of overwriting📊 Changes
1 file changed (+55 additions, -5 deletions)
View changed files
📝
install.ps1(+55 -5)📄 Description
Summary
install.ps1currentlyCopy-Item -Forces the bundledsettings.jsonover the user's file, wiping unrelated keys (font, linters, theme, etc.). This PR deep-merges instead, with user keys winning on conflict. The.pre-islands-darkbackup is still created.The merge logic is lifted from
install-antigravity.ps1(already in this repo), so the approach is precedented. Only the conflict-resolution direction differs.Addresses #86, #111, #128 (and the settings half of #102).
Behavior
editor.fontFamily,python.*, theme, etc.custom-ui-style.stylesheettweaksKnown limitation
JSONC comments in the user's file get stripped (PowerShell can't roundtrip them). Backup preserves them verbatim. Proper fix needs a real JSONC parser, which is out of scope.
Out of scope
install.sh,extensions.json(#119), README warning (#132), replacingcustom-ui-style(#123).Test plan
settings.jsonparses through Strip-Jsonc + ConvertFrom-Jsonsettings.jsonsettings.json🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.