dotnet / dotnet/project-system

Support concurrent editing of .resx files

Open
#5,759 0 comments 0 reactions 1 assignee Claimed by @tmeschter View on GitHub
Feature-Codespaces Triage-Approved
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

Currently, in a LiveShare session, both the client and server can edit the .resx file in the designer. However, when one of them saves it completely overwrites the text buffer, causing the other one to reload the data--and throw away any unsaved changes.

Instead, we should preserve local unsaved changes across remote modifications to the text buffer. One way to do this would be to have the designer maintain a snapshot of the document as it was loaded as well as a snapshot of the current state. When a remote change to the text buffer is detected the local designer differ the current state against the previous state, and then apply that diff on top of the new buffer.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.