feat: Add Antigravity IDE support and Cross-Platform SyncHelper Script - #4
Open
npg418 wants to merge 11 commits into
Open
feat: Add Antigravity IDE support and Cross-Platform SyncHelper Script#4npg418 wants to merge 11 commits into
npg418 wants to merge 11 commits into
Conversation
- Implement `profile-sync-helper.ps1` based on the existing bash script - Support detached profile sync and relaunch strategy for Windows environments
- Add EditorType.AntigravityIDE to enum and identity resolution - Map 'Antigravity IDE' to proper user data directories across platforms (macOS, Windows, Linux)
…ation metadata Previously, syncing only an array of extension IDs worked fine for the default profile, but caused errors in custom profiles because VS Code natively expects an array of objects (with `identifier.id`, etc.) for profile `extensions.json`. This commit updates the profile extension synchronization to preserve VS Code's native object format while excluding environment-specific metadata (such as `location` and `relativeLocation`) from the sync payload. - `config.ts`: Allow `extensions` to be an array of objects (`any[]`) - `ConfigReader`: Strip `location` and `relativeLocation` from parsed objects - `ConfigWriter`: Re-inject existing local location data or reconstruct it dynamically via the `vscode.extensions` API when restoring profiles - `SyncManager`: Handle extraction of extension IDs from both strings and objects prior to global installation
- Sort imports alphabetically in ProfileSyncHelper.ts - Break down long lines to resolve prettier warnings
Author
|
This PR also solves #3 |
npg418
marked this pull request as draft
June 13, 2026 09:09
- Replaced OS-specific shell scripts (.ps1, .sh) with a unified `profile-sync-helper.js` script to resolve Windows PowerShell detached spawning issues. - Updated `ProfileSyncHelper.ts` to execute the helper script using `process.execPath` with `ELECTRON_RUN_AS_NODE=1`, ensuring reliable and transparent background execution. - Fixed process detection in the helper script to explicitly exclude its own PID, resolving a timeout bug where the script waited indefinitely for itself to close. - Fixed the application relaunch sequence by removing the `ELECTRON_RUN_AS_NODE` environment variable before spawning VS Code, ensuring it launches with the standard UI instead of running as a headless Node.js process.
npg418
marked this pull request as ready for review
June 14, 2026 01:42
Author
|
PowerShell scripts have specific behaviors that make them unsuitable for helper scripts on Windows, so I have switched to cross-platform scripts using JS. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR includes the following features and improvements:
Features
Refactoring & Fixes