Skip to content

[LS] Improve responsiveness of editor diagnostic updates#510

Draft
jribbink wants to merge 4 commits intomasterfrom
jribbink/file-reload
Draft

[LS] Improve responsiveness of editor diagnostic updates#510
jribbink wants to merge 4 commits intomasterfrom
jribbink/file-reload

Conversation

@jribbink
Copy link
Copy Markdown
Contributor

@jribbink jribbink commented Oct 3, 2025

Closes #???

Description

Improves responsiveness of editor diagnostics updates, helping streamline LLM feedback loops when writing Cadence (and general UX).


  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

@jribbink jribbink changed the title Jribbink/file reload [LS] Improve responsiveness of editor diagnostic updates Oct 23, 2025
@jribbink jribbink added the Improvement Technical work without new features, refactoring, improving tests label Oct 23, 2025
@jribbink jribbink force-pushed the jribbink/file-reload branch from 2674a1d to bfea988 Compare October 23, 2025 13:05
- Extract debouncer into reusable helper type
- Move callback logic into named methods on FlowIntegration
- Store server reference to avoid closure captures
- Reduce nesting and improve readability
- Create FileWatcher in server package to handle .cdc file watching
- FileWatcher directly manages cache invalidation and re-checks
- Remove callback infrastructure from integration
- ConfigManager now only calls server.FileWatcher() for .cdc changes
- Clean separation: server owns cache/watching, integration owns Flow state
- Eliminates exposed methods like Store(), CollectAffectedOpenRootURIs()
- Much cleaner architecture with proper layering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement Technical work without new features, refactoring, improving tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant