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

[scm] refesh on widget activation #7880

Merged
merged 1 commit into from
May 25, 2020
Merged

[scm] refesh on widget activation #7880

merged 1 commit into from
May 25, 2020

Conversation

svenefftinge
Copy link
Contributor

What it does

fixes #7873

How to test

Try reproduce #7873

Review checklist

Reminder for reviewers

fixes #7873
Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
@lmcbout
Copy link
Contributor

lmcbout commented May 25, 2020

Suggestion: In this PR, there should be 1-2 lines changes, not the whole file. Everyone should use the same format, it would make it easier to identify the changes while performing the review.

Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to work.

@@ -149,6 +149,7 @@ export class ScmWidget extends BaseWidget implements StatefulWidget {

protected onActivateRequest(msg: Message): void {
super.onActivateRequest(msg);
this.refresh();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder should not we rather move it to onAfterShow, so it gets refreshed whenever the widget is revealed not focused?

@akosyakov akosyakov added the scm issues related to the source control manager label May 25, 2020
@akosyakov akosyakov merged commit f7cecf2 into master May 25, 2020
@akosyakov akosyakov deleted the se/scm-widget-fix branch May 25, 2020 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scm issues related to the source control manager
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Git changes list does not get updated
3 participants