onlook
onlook copied to clipboard
Refactor: Implement automatic file watching
Implement automatic file watching
Replace manual addFileToWatcher calls with automatic directory watching using Chokidar's built-in glob patterns. This improves efficiency while maintaining existing functionality.
Changes:
- Replace manual addFileToWatcher with glob-based watching
- Add automatic watching of new files
- Maintain existing file processing functionality
- Improve performance with native glob patterns
Changes were verified manually by:
- Creating test files and verifying they're processed
- Creating test Next.js pages and verifying they're processed
- Starting project run and verifying all files are processed
- Checking logs for any file watching errors
Link to Devin run: https://app.devin.ai/sessions/0f7a1e1990d047f787a62ec95cd6779c User: [email protected]