Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[git] the repo info in git view can't be updated when click the refresh button in some case #3800

Closed
zixuemeng opened this issue Dec 11, 2018 · 7 comments
Assignees
Labels
bug bugs found in the application git issues related to git scm issues related to the source control manager

Comments

@zixuemeng
Copy link
Contributor

1.open a workspace which has one git repo
2.select git view tab
3.delete the repo folder in terminal
4.click the refresh button in git view
The deleted repo info is still shown in git view.

@akosyakov akosyakov added bug bugs found in the application git issues related to git labels Dec 11, 2018
@kittaakos
Copy link
Contributor

Duplicate of #927. Please reopen if required.

@zixuemeng
Copy link
Contributor Author

zixuemeng commented Dec 12, 2018

Duplicate of #927. Please reopen if required.

I don't think this issue is duplicate of #927. #927 have two git repositories, after deleting one of them, we can click the refresh button in git view to update the git view. In this issue, there has only one repository, after deleting the only repository, git view can't be updated even by clicking the refresh button manually.
refresh

@kittaakos kittaakos reopened this Dec 12, 2018
@westbury
Copy link
Contributor

I was hoping this issue would be fixed by PR #3831. It almost is. After deleting the repository, the repository is no longer shown in the status bar. However I had to click away from the Git view and back before the view switched to show the orange box with "version control is not available at this time".

@zixuemeng
Copy link
Contributor Author

I was hoping this issue would be fixed by PR #3831. It almost is. After deleting the repository, the repository is no longer shown in the status bar. However I had to click away from the Git view and back before the view switched to show the orange box with "version control is not available at this time".

As shown in the picture below, in 'initialize' function, if there has a repo, this.toDispose.dispose will be called, so onDidChangeRepository will be disposed. In this case, git-widget will not be able to listen to the onDidChangeRepository event. In 'initialize' function, if there has no repo, 'updateView ' shall also be called to update the view.

git-widget

@zixuemeng
Copy link
Contributor Author

This issue still exists in version 0.4.0

@akosyakov
Copy link
Member

@zixuemeng Could you provide a PR?

@akosyakov
Copy link
Member

akosyakov commented May 27, 2019

@vinokurig it is broken after merging SCM PR

the original fix is here: e73566f#diff-dfd901ad320c23defbf3bbb075d307b9

but it is not applicable since the code changed much

@akosyakov akosyakov reopened this May 27, 2019
@akosyakov akosyakov added the scm issues related to the source control manager label May 27, 2019
@vinokurig vinokurig mentioned this issue May 27, 2019
10 tasks
vinokurig added a commit that referenced this issue May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application git issues related to git scm issues related to the source control manager
Projects
None yet
Development

No branches or pull requests

5 participants