Impossible to update an open diff
See original GitHub issueDescription
If you have a tab with the diff of a file and then make further changes to the file you will be unable to see these changes reflected in the diff until you close the diff tab and create a new one.
Clicking the diff action button again does not update the diff on account of the checking done here: https://github.com/jupyterlab/jupyterlab-git/blob/8d56986409461cd9968d7208da4946fca8c70392/src/components/diff/DiffWidget.tsx#L31-L35
Reproduce
- Make changes to a file
- Open a diff of that file
- make more changes
- try to update the diff without closing the diff tab.
Expected behavior
When clicking the Diff button the diff will be recomputed.
Two nice to have features would be:
- Option to refresh the diff from a context menu when right clicking the diff widget
- diffs that are visible are recomputed every so often, or whenever the diff is focused.
Context
- Python package version: 0.20.0rc0
- Extension version: 0.20.0-rc.0
Command Line Output
Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
iOS update and restore errors - Apple Support
Learn how to solve iOS update and restore errors.
Read more >Can't update apps in iOS App Store; can only Open
When I open the App Store and go to the Updates page, there are two apps at the top, which for a split-second...
Read more >Troubleshoot problems updating Windows - Microsoft Support
Learn how to troubleshoot problems updating Windows. Find answers to common questions and issues installing Windows updates.
Read more >Can you convert an open differential to a limited slip? - Quora
The question is about converting the open diff to an LSD, most appear to think you want to swap it out for an...
Read more >How to Fix WhatsApp Not Updating on iPhone/Android - iMobie
This guide explains why you are unable to update WhatsApp and ... this issue and different solutions on how to update WhatsApp on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Agreed with @kgryte that this shouldn’t be configurable.
https://github.com/jupyterlab/jupyterlab-git/blob/8d56986409461cd9968d7208da4946fca8c70392/src/components/diff/DiffWidget.tsx#L31-L35
The intent of this line was to not open a new tab every-time the diff button is clicked. I do think we should retain that UX while addressing this to avoid an explosion of diff tabs.
Now, if a
mainAreaItem
with anid
is found, We could address this in two ways to ensure the content gets updated with the latest diff.mainAreaItem
and then activate it.P.S. Thanks for all the recent reports and PRs @ianhi !
👍
Turns out this is indeed a jupyterlab issue: https://github.com/jupyterlab/jupyterlab/issues/8509