This document assesses which patches from the VSCodium-style builder are still needed for the CortexIDE 1.106 fork.
Date: 2025-11-27
The CortexIDE repository at ../cortexide already has significant branding and customization built-in via its product.json and source code. Many patches that were necessary for VSCodium may no longer be needed or may conflict with existing CortexIDE code.
These patches modify things that are likely already customized in the CortexIDE fork:
-
brand.patch - Changes "VS Code" to "CortexIDE" in UI text
- Status: LIKELY NOT NEEDED
- Reason: CortexIDE product.json already has correct branding
- Action: Test build without this patch first
-
version-0-release.patch / version-1-update.patch
- Status: CHECK NEEDED
- Reason: CortexIDE has its own versioning (cortexVersion/cortexRelease)
- Action: Verify version handling works correctly
These patches modify build infrastructure that isn't product-specific:
-
binary-name.patch - Changes binary from "code" to application name
- Status: NEEDED
- Reason: Build system needs to output correct binary name
- Action: Keep and verify applies cleanly to 1.106
-
cli.patch - CLI-related changes
- Status: NEEDED
- Reason: CLI naming and behavior
- Action: Keep and verify
-
disable-signature-verification.patch
- Status: NEEDED
- Reason: Allows loading non-marketplace extensions
- Action: Keep and verify
-
extensions-disable-mangler.patch
- Status: NEEDED
- Reason: Build process customization
- Action: Keep and verify
These patches disable Microsoft-specific features:
-
disable-cloud.patch - Disables cloud sync features
- Status: OPTIONAL
- Reason: May want to keep sync features
- Action: Decide based on product requirements
-
feat-announcements.patch
- Status: OPTIONAL
- Reason: CortexIDE may have its own announcements
- Action: Review and decide
These are needed for specific platforms:
-
linux/* - Linux-specific patches
- Status: NEEDED FOR LINUX BUILDS
- Action: Keep all, verify they apply
-
windows/* - Windows-specific patches
- Status: NEEDED FOR WINDOWS BUILDS
- Action: Keep all, verify they apply
-
osx/* - macOS-specific patches
- Status: NEEDED FOR MACOS BUILDS
- Action: Keep all, verify they apply
These fix specific bugs or issues:
- fix-eol-banner.patch
- fix-node-gyp-env-paths.patch
- fix-remote-libs.patch
- Status: REVIEW EACH
- Reason: May still be needed, may be fixed upstream
- Action: Test with and without each patch
Start with only critical patches:
- binary-name.patch
- cli.patch
- Platform-specific patches for your target OS
If Phase 1 succeeds, add:
- disable-signature-verification.patch
- extensions-disable-mangler.patch
Based on requirements, add:
- disable-cloud.patch (if you don't want cloud features)
- Custom patches as needed
Only if branding isn't correct after Phases 1-3:
- brand.patch (but verify it doesn't conflict with CortexIDE's existing branding)
-
Update prepare_vscode.sh to:
- Apply patches with error tolerance
- Log which patches fail (don't abort on all failures)
- Skip patches that fail due to "already applied" or "file not found"
-
Test each platform build with minimal patches first
-
Document which patches are actually needed after successful builds
-
Remove unnecessary patches from the repo to reduce maintenance burden
VS Code 1.106 may have structural changes that affect patches:
- File paths may have moved
- Code structure may have changed
- Some issues patches fixed may be resolved upstream
IMPORTANT: Don't force-apply all patches blindly. Many may no longer be needed or may conflict with CortexIDE's existing customizations.
- Test build with minimal patches
- Document which patches are actually needed
- Update patch list in prepare_vscode.sh
- Remove or archive unnecessary patches
- Create new patches if needed for 1.106-specific issues