Open florian-glombik opened 10 months ago
Adding a new file in the code editor adds it as an (empty) unstaged file to the repository. If you then refresh the files in the code editor, Artemis fetches the current state of the repository (which includes the unstaged file) and, upon opening it, loads its empty content from the repository.
If we executed a git clean
when refreshing the files, these unstaged files would be removed. However, this would likely cause issues whenever multiple instances of the code editor are open simultaneously. (This is not restricted to exams, but programming exercises in general.)
Describe the bug
Refresh files does not delete files that are not on the server (but clears their content)
To Reproduce
Expected behavior
Newly created files that are not pushed to remote should be deleted when pressing
Refresh files
Which version of Artemis are you seeing the problem on?
6.6.4
What browsers are you seeing the problem on?
Chrome