Skip to content

Await git.pullFrom and gitt.pushTo to ensure any failures display an …#49167

Merged
joaomoreno merged 1 commit intomicrosoft:masterfrom
chenhowa:git-errors
Jun 18, 2018
Merged

Await git.pullFrom and gitt.pushTo to ensure any failures display an …#49167
joaomoreno merged 1 commit intomicrosoft:masterfrom
chenhowa:git-errors

Conversation

@chenhowa
Copy link

@chenhowa chenhowa commented May 4, 2018

…error dialog to the user

@chenhowa chenhowa closed this May 4, 2018
@chenhowa chenhowa deleted the git-errors branch May 4, 2018 03:07
@chenhowa chenhowa restored the git-errors branch May 4, 2018 03:07
@chenhowa
Copy link
Author

chenhowa commented May 4, 2018

Refers to #41519.

@chenhowa
Copy link
Author

chenhowa commented May 4, 2018

This just adds two 'await' statements to ensure that if git.pushTo or git.pullFrom fail when using the Command Palette, the failure is not silent. Instead, the user is notified with an error dialog.

@chenhowa chenhowa reopened this May 4, 2018
@joaomoreno joaomoreno added the git GIT issues label May 6, 2018
@joaomoreno joaomoreno added this to the Backlog milestone May 6, 2018

const remoteCharCnt = remotePick.label.length;

repository.pullFrom(false, remotePick.label, branchPick.label.slice(remoteCharCnt + 1));

Choose a reason for hiding this comment

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

Choose a reason for hiding this comment

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

Hi @loridawn,
Is this related to implementing #52116 ("Extension Permission Management, Updating, Security & Categories") or did you mean to reference another issue?

@joaomoreno joaomoreno merged commit 4e575be into microsoft:master Jun 18, 2018
@joaomoreno
Copy link
Member

Great fix! Thanks! 🍻

@joaomoreno joaomoreno modified the milestones: Backlog, June 2018 Jun 18, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

git GIT issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants