Skip to content

fix(watch): apply IDE excludes from real JSONC settings - #59

Open
younna-ai-opencode wants to merge 6 commits into
devfrom
fix/ide-excludes-jsonc-watch-budget
Open

fix(watch): apply IDE excludes from real JSONC settings#59
younna-ai-opencode wants to merge 6 commits into
devfrom
fix/ide-excludes-jsonc-watch-budget

Conversation

@younna-ai-opencode

Copy link
Copy Markdown
Collaborator

Summary

Live watching stayed off after IDE watcher excludes shipped. VS Code writes workspace settings as JSONC. The loader used strict JSON, so comments or a trailing comma emptied the rule set. Tracked vendor trees stayed in the Linux census and the UI still reported the capped 4097-folder warning.

This PR parses that file as JSONC, records whether it loaded, and names files.watcherExclude in the warning. When the walk stops at the budget, the count is worded as more than the budget, not as an exact total.

Continues the IDE-exclude work from #57.

Test plan

  • cargo test -p gitcomet-state — 779 passed
  • cargo clippy -p gitcomet-state -- -D warnings — clean
  • JSONC fixture with comments, trailing comma, and // inside a string loads repos/
  • Browser tests skipped: no web routes in this change

Related: #58


Compound Engineering

Strict serde_json treated real VS Code settings as empty, so tracked
vendor trees stayed in the Linux watch census and tripped TooManyFolders
at the capped 4097 count. Parse comments and trailing commas, record
load status, and tell the truth in the degraded-watch warning.
Drop the stored sibling count so it cannot drift from patterns.len().
jsonc-parser does not treat U+FEFF as whitespace, so a BOM-prefixed
settings.json stayed Unreadable and dropped every watcherExclude.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant