mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-19 00:03:33 +00:00
Two fixes from Copilot review on #1031: 1. installClaudeCodeHooks used JSON.parse() for the idempotency check on settings.json. If the file contained JSONC comments, parse would fail, parsed became null, hasGitnexusHook returned false, and duplicate hook entries could be appended. Now uses jsonc-parser's parse() instead. 2. mergeHooksJsonc computed insertIndex from the original tree and never updated it after applying edits. If two entries targeted the same eventName, the second iteration used a stale index and overwrote the previously-inserted element. Now re-parses the tree inside the loop so each iteration gets a fresh insertion index. |
||
|---|---|---|
| .. | ||
| fixtures | ||
| helpers | ||
| integration | ||
| unit | ||
| utils | ||
| global-setup.ts | ||
| vitest.d.ts | ||