Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent concurrent RW access to the same file #48

Open
pr2502 opened this issue Oct 19, 2023 · 0 comments
Open

Prevent concurrent RW access to the same file #48

pr2502 opened this issue Oct 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@pr2502
Copy link
Owner

pr2502 commented Oct 19, 2023

This is not strictly our domain but we could add a very simple fix to it, maybe.

Helix has currently no mechanism for preventing multiple concurrent RW opens of the same file helix-editor/helix#4257 which has already caused me real data loss by saving an old buffer from a forgotten window.

Once open document tracking per client is implemented (to resolve #44) ra-multiplex could solve this helix issue by synthesizing a LSP error when it receives a DidOpenTextDocument for a file that is opened by another active client. It seems very simple so I want to try it, but we'll have to see how well that works.

@pr2502 pr2502 added the enhancement New feature or request label Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant