mirror of
https://github.com/bwya77/vscode-dark-islands.git
synced 2026-05-09 08:25:35 +02:00
[PR #127] feat: add Cursor IDE support #131
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#131
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/127
Author: @McSon2
Created: 5/3/2026
Status: 🔄 Open
Base:
main← Head:feat/cursor-support📝 Commits (1)
68250a5feat: add Cursor IDE support📊 Changes
5 files changed (+933 additions, -0 deletions)
View changed files
📝
README.md(+38 -0)➕
bootstrap-cursor.sh(+64 -0)➕
install-cursor.sh(+150 -0)➕
settings-cursor.json(+586 -0)➕
uninstall-cursor.sh(+95 -0)📄 Description
Summary
Cursor is a popular VS Code fork. The current
install.sh/bootstrap.sh/uninstall.shtarget VS Code paths and thecodeCLI, so Cursor users can't use the one-liner. This PR adds a parallel install flow for Cursor without touching anything VS Code uses.Once merged, Cursor users get the same one-line install experience:
```bash
curl -fsSL https://raw.githubusercontent.com/bwya77/vscode-dark-islands/main/bootstrap-cursor.sh | bash
```
What's added
install-cursor.shinstall.shfor Cursor — uses~/.cursor/extensions/,~/Library/Application Support/Cursor/User/(or~/.config/Cursor/User/on Linux), and thecursorCLIbootstrap-cursor.shinstall-cursor.shuninstall-cursor.shuninstall.shfor Cursor pathssettings-cursor.jsonsettings.jsonplus two Cursor-specific tweaks (see below)README.mdThe two Cursor-specific tweaks in
settings-cursor.json\"custom-ui-style.webview.enable\": false— Cursor's extension detail panel renders inside a webview with a stricter Content-Security-Policy than VS Code's. Leaving the webview patch enabled triggers a CSP error and a blank panel (upstream issue).Hide the layout-toggle button — Cursor renders a "Toggle Primary Side Bar" action item at the top-left of the title bar (
<a class=\"action-label codicon codicon-panel-left\" aria-label=\"Toggle Primary Side Bar (⌘B)\">). With Islands Dark's rounded sidebar corners, this button visually overlaps the rounded corner of.part.sidebar. Hiding it via:```css
.titlebar-left .action-item:has(.codicon-panel-left),
.titlebar-left .action-item:has(.codicon-panel-left-off) {
display: none !important;
}
```
⌘B continues to toggle the sidebar normally.
Compatibility note in the README
Custom UI Style is officially "untested on VS Code forks" by its author, but works reliably on Cursor since v0.5.6 (see subframe7536/vscode-custom-ui-style#40). The README documents:
Custom UI Style: ReloadCustom UI Style: Reloadto reapply the CSS injection (Cursor self-heals itsworkbench.htmlon update, undoing the patch)Why a separate
settings-cursor.jsonvs runtime patchingI chose to ship a complete settings file rather than have
install-cursor.shpatchsettings.jsonat install time. Reasons:install.shworks — a flatcpof a settings file. No new runtime logic to review.// Cursor-specific: ...JSON-string comments).settings.json, regeneratingsettings-cursor.jsonis a 30-second job (cp+ add the two tweaks). Happy to add a sync script or convert to a runtime-patch approach if you'd rather have a single source of truth — let me know your preference and I'll update.Why this doesn't depend on the perf PR
I have a separate PR (#126) that adds GPU layer promotion to canvas containers, fixing editor/terminal lag. It's beneficial to all users (VS Code and Cursor), not just Cursor, so I kept it independent. This Cursor PR rebases cleanly on top of that one —
settings-cursor.jsonwill pick up the perf fix automatically once both are merged and someone regenerates the file.Test plan
bash install-cursor.shon Cursor 3.1.17 / macOS 15 — extension installed, fonts copied, settings applied, Custom UI Style reloads, theme rendersbash uninstall-cursor.shrestores the backed-upsettings.json.pre-islands-darkbash -n(syntax check) andshellcheckcleansettings-cursor.jsonis valid JSON (node -e \"JSON.parse(require('fs').readFileSync('settings-cursor.json'))\")~/.config/Cursor/User/) are mirrored from the existinginstall.shLinux logic, but a real Linux test would be appreciatedinstall-cursor.ps1/bootstrap-cursor.ps1/uninstall-cursor.ps1in a follow-up if you'd accept it (untested by me — no Windows machine available)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.