Skip to content

Display AfterUserAction errors and remove undo on successful checkout #725

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

Merged
merged 1 commit into from
Jul 22, 2021

Conversation

ty-d
Copy link
Contributor

@ty-d ty-d commented Jul 21, 2021

This PR fixes #701, #703

Errors reported by AfterUserAction were previously ignored, now they are displayed in the output window.

When checking out a file your edit was always undone. Now it only undoes the edit if the user selects "No" or "Cancel" or if an error is reported when trying to check out the file.

@ty-d ty-d requested a review from daimor as a code owner July 21, 2021 20:06
@gjsjohnmurray
Copy link
Contributor

When checking out a file your edit was always undone. Now it only undoes the edit if the user selects "No" or "Cancel" or if an error is reported when trying to check out the file.

@ty-d Does this mean that if the checkout operation intentionally changed the file (e.g. because the namespace didn't already have the "latest" version), then the developer will continue to work on an outdated version?

@ty-d
Copy link
Contributor Author

ty-d commented Jul 22, 2021

If the user chooses to checkout the file then no undo commands will be done (unless the file was not checked out successfully). So if checkout updates the file it should not undo that update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Server side source control fails but no error in VS Code
3 participants