WebIDE: Explicitly closing a file with removed content gives the wrong diff in Commit tab
As reported in !51527 (comment 509363138) there is a minor issue when explicitly closing a file before going to "Commit" tab. However, it happens only in case one completely removes the content of the file. SImply changing the file still produces the correct diff.
Steps to Reproduce
- Open a file in WebIDE
- Remove the content of the file
- Close the file
- The file should still be marked as changed in the navigation tree
- Go to "Commit" tab
- The diff will show original content in both panels
Correct behavior
The diff in the Commit tab should show an empty file in the right panel as the current state.