Skip to content

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

Merged
João Moreno (joaomoreno) merged 1 commit into
microsoft:masterfrom
chenhowa:git-errors
Jun 18, 2018
Merged

João Moreno (joaomoreno) merged 1 commit into
microsoft:masterfrom
chenhowa:git-errors

Conversation

@chenhowa

Copy link
Copy Markdown

…error dialog to the user

@chenhowa
Howard Chen (chenhowa) deleted the git-errors branch May 4, 2018 03:07
@chenhowa
Howard Chen (chenhowa) restored the git-errors branch May 4, 2018 03:07
@chenhowa

Copy link
Copy Markdown
Author

Refers to #41519.

@chenhowa

Copy link
Copy Markdown
Author

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.


const remoteCharCnt = remotePick.label.length;

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

@joaomoreno
João Moreno (joaomoreno) merged commit 4e575be into microsoft:master Jun 18, 2018
@joaomoreno

Copy link
Copy Markdown
Contributor

Great fix! Thanks! 🍻

@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