The plugin looses the workspace context if the user once opens a tab for which the path is not defined. As a consequence, the plugin tries to open/create the code-review file from/in the root directory (obviously failing) and the current commit SHA is unknown.
Reproduction
Open a diff, for example, from a commit in Git Graph plugin (mhutchie.git-graph). Try to add a review note on any file. Failure.
Error message
Error when trying to create code review file: '/code-review.csv': Error: EROFS: read-only file system, open '/code-review.csv'
🐞 Bug report
Description
The plugin looses the workspace context if the user once opens a tab for which the path is not defined. As a consequence, the plugin tries to open/create the code-review file from/in the root directory (obviously failing) and the current commit SHA is unknown.
Reproduction
Open a diff, for example, from a commit in Git Graph plugin (mhutchie.git-graph). Try to add a review note on any file. Failure.
Error message
🌍 Your Environment
I'm on Mac.