Skip to content

Prevent File System Cache Conflicts - #19

Draft
schrieveslaach wants to merge 2 commits into
mainfrom
fix-file-system-changes
Draft

Prevent File System Cache Conflicts#19
schrieveslaach wants to merge 2 commits into
mainfrom
fix-file-system-changes

Conversation

@schrieveslaach

Copy link
Copy Markdown
Collaborator

This change attempts to fix the constant display of “File Cache Conflict” dialogs.

Fixes #16

This change attempts to fix the constant display of “File Cache
Conflict” dialogs.

Fixes #16
@schrieveslaach

Copy link
Copy Markdown
Collaborator Author

@blinry, @zormit, FYI I came across a bug in teamtype while trying to fix #16, see teamtype/teamtype#497

@schrieveslaach
schrieveslaach force-pushed the fix-file-system-changes branch from bbad4a3 to 1257651 Compare July 23, 2026 11:47
@schrieveslaach

Copy link
Copy Markdown
Collaborator Author

Things I've tried so far:

  • implement a com.intellij.openapi.fileEditor.FileDocumentSynchronizationVetoer: mayReloadFileContent after the dialog popped up, so the user still gets annoyed by the dialog
  • implement com.intellij.openapi.vfs.WritingAccessProvider: turns the editor into read-only mode so the user cannot make changes.
  • implement com.intellij.openapi.vfs.VirtualFileSystem as a facade for "file" protocol so that I can redirect write to /dev/null: Intellij does not allow to do that. Only new protocols can be added.

This PR so far provides a couple of more unrelated improvements. I'll pull them out bring them to the mainline branch.

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.

Remote Edits Trigger Jetbrains Load File System Changes

1 participant