Skip to content

✨ Reflect External File Updates in Open Files #1826

Closed

Description

@thecoolwinter

Description

CodeEdit currently does not reflect changes made to a file outside of the application. This enhancement would introduce support for external file modification detection, ensuring that the editor stays in sync with the file system and prevents potential data loss or confusion for the user.

Expected Behavior

  • CodeEdit detects external file modifications in real time or on focus regain
  • If the file in CodeEdit has no unsaved changes, it should automatically reload the latest version from disk
  • If the file has unsaved changes, CodeEdit should:
  • Alert the user that the file has been modified externally
  • Offer options such as:
  • Discard local changes and reload from disk
  • Keep current changes and overwrite on save
  • View a diff or merge the changes (future enhancement)

Additional Context

  • This feature is especially important for collaborative or multi-tool workflows, build processes that modify files, or using tools like Git that check out different versions of files.
  • File watching should be performant and scalable (e.g., via FSEvents on macOS or DispatchSourceFileSystemObject) and resilient across large projects.
  • Behavior should align with user expectations from other editors (Xcode, VS Code, etc.) but also respect CodeEdit’s design philosophy of clarity and safety.

Edge Cases to Consider

  • Symbolic links
  • Deleted or renamed files
  • Files restored from trash or replaced
  • Line ending or encoding changes
  • Hidden files modified by scripts

Activity

  1. changed the title [-]🐞 File Don't Update When Updated From Outside The Editor[/-] [+]🐞 Files Don't Update When Updated From Outside The Editor[/+] on Jul 27, 2024
  2. moved this from 🆕 New to 📋 Todo in CodeEdit Projecton Sep 3, 2024
  3. changed the title [-]🐞 Files Don't Update When Updated From Outside The Editor[/-] [+]🐞 External File Updates Are Not Reflected in Open Files[/+] on Apr 21, 2025
  4. changed the title [-]🐞 External File Updates Are Not Reflected in Open Files[/-] [+]✨ Reflect External File Updates in Open Files[/+] on Jun 14, 2025
  5. added
    enhancementNew feature or request
    and removed
    bugSomething isn't working
    PRIORITYThis issue has priority over other issues.
    on Jun 14, 2025
  6. moved this from 📋 Todo to 🏃‍♂️ In Progress in CodeEdit Projecton Jul 9, 2025
  7. added a commit that references this issue on Jul 16, 2025
    61a5e67
  8. moved this from 🏃‍♂️ In Progress to 🏁 Complete in CodeEdit Projecton Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions