You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you add a file to the gitignore while you have any files open that have unsaved changes then the UI will prompt you to reload those files. This will throw away unsaved changes to files that were not involved in the git action.
I think the jupyterlab warning is a bit unclear here as to which notebook is going to be reloaded. Which then makes this a dangerously easy way for someone to lose unsaved work.
Description
If you add a file to the gitignore while you have any files open that have unsaved changes then the UI will prompt you to reload those files. This will throw away unsaved changes to files that were not involved in the git action.
I think the jupyterlab warning is a bit unclear here as to which notebook is going to be reloaded. Which then makes this a dangerously easy way for someone to lose unsaved work.
This is caused by these lines:
jupyterlab-git/src/commandsAndMenu.ts
Lines 203 to 206 in 7f3e4cc
Which I think are run to ensure that an updated .gitignore file is displayed. @echarles is this the correct reason for the
docmanager:reload
?I think we can get the same effect without the reload by reverting the file similar to here:
jupyterlab-git/src/model.ts
Lines 1432 to 1437 in 7f3e4cc
Reproduce
Expected behavior
Context
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: