Autosave content of files being created or edited
We have this for issues, MRs and comments, but not yet new/edited blobs.
One detail to keep in mind:
- Person 1 starts editing a file
- Person 1 changes their mind and closes the tab
- Person 2 edits the file
- Person 1 doesn't like the changes and starts editing the file
In the naive implementation, person 1 will now see their edits from step 1, but they should see the new version from step 3. Solution: Include the sha of the file last commit in the autosave localstorage key.
cc @JobV