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

Ensure re-request-review command is handled in activityBarViewProvider #4540

Conversation

joshuaobrien
Copy link
Contributor

@joshuaobrien joshuaobrien commented Feb 19, 2023

Whilst working on #4539 I noticed that this command wasn't handled for this view. This change reveals a bit of layout shift after the user clicks the button. I'm happy to take a look at that this week :)

Before

old-click.mp4

After

new-click.mp4

@@ -113,6 +115,18 @@ export class PullRequestViewProvider extends WebviewViewBase implements vscode.W
}
}

private reRequestReview(message: IRequestMessage<string>): void {
Copy link
Contributor Author

@joshuaobrien joshuaobrien Feb 19, 2023

Choose a reason for hiding this comment

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

Copied verbatim from

private reRequestReview(message: IRequestMessage<string>): void {

Would you like me to have a look at unifying any duplicated handlers?

Copy link
Member

Choose a reason for hiding this comment

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

There's likely a lot of duplication between these two files. I'll take it as a debt item to clean them up.

Copy link
Member

@alexr00 alexr00 left a comment

Choose a reason for hiding this comment

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

Thank you for the fix!

@@ -113,6 +115,18 @@ export class PullRequestViewProvider extends WebviewViewBase implements vscode.W
}
}

private reRequestReview(message: IRequestMessage<string>): void {
Copy link
Member

Choose a reason for hiding this comment

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

There's likely a lot of duplication between these two files. I'll take it as a debt item to clean them up.

@alexr00 alexr00 added this to the February 2023 milestone Feb 20, 2023
@alexr00 alexr00 enabled auto-merge (squash) February 20, 2023 15:26
@alexr00 alexr00 merged commit 1cad0cf into microsoft:main Feb 20, 2023
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.

3 participants