Skip to content

Commit 6ced73b

Browse files
netsnekclaude
andcommitted
Patch product.json to use Microsoft VS Code Marketplace
Cursor ships with its own limited marketplace. Since we build on open-source VS Code, we patch extensionsGallery in product.json to point to Microsoft's marketplace, giving access to all VS Code extensions (GitHub Codespaces, Remote SSH, etc.) out of the box. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent afe7f56 commit 6ced73b

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

build-cursor-arm64.sh

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,24 @@ else
121121
echo " All clean — ARM64 only!"
122122
fi
123123

124-
# 10. Rename binary: code → cursor
124+
# 10. Use Microsoft VS Code Marketplace instead of Cursor's limited marketplace
125+
echo "==> Patching product.json for Microsoft Marketplace..."
126+
python3 -c "
127+
import json
128+
p = 'vscode-arm64/resources/app/product.json'
129+
d = json.load(open(p))
130+
d['extensionsGallery'] = {
131+
'nlsBaseUrl': 'https://www.vscode-unpkg.net/_lp/',
132+
'serviceUrl': 'https://marketplace.visualstudio.com/_apis/public/gallery',
133+
'itemUrl': 'https://marketplace.visualstudio.com/items',
134+
'publisherUrl': 'https://marketplace.visualstudio.com/publishers',
135+
'resourceUrlTemplate': 'https://{publisher}.vscode-unpkg.net/{publisher}/{name}/{version}/{path}',
136+
'controlUrl': 'https://main.vscode-cdn.net/extensions/marketplace.json',
137+
}
138+
json.dump(d, open(p, 'w'), indent=2)
139+
"
140+
141+
# 11. Rename binary: code → cursor
125142
echo "==> Renaming binary..."
126143
mv vscode-arm64/code vscode-arm64/cursor 2>/dev/null || true
127144
mv vscode-arm64/bin/code vscode-arm64/bin/cursor 2>/dev/null || true

0 commit comments

Comments
 (0)