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

Separate quick diff API from SCM #170544

Merged
merged 3 commits into from
Jan 12, 2023
Merged

Separate quick diff API from SCM #170544

merged 3 commits into from
Jan 12, 2023

Conversation

alexr00
Copy link
Member

@alexr00 alexr00 commented Jan 4, 2023

Part 1: split up the API.
upcoming in part 2: In editor UX for multiple quick diffs.
Part of #169012

Part 1: split up the API.
upcoming in part 2: In editor UX for multiple quick diffs.
Fixes #169012
@alexr00 alexr00 self-assigned this Jan 4, 2023
@VSCodeTriageBot VSCodeTriageBot added this to the January 2023 milestone Jan 4, 2023
@alexr00 alexr00 marked this pull request as draft January 4, 2023 10:19
@alexr00 alexr00 marked this pull request as ready for review January 4, 2023 10:19
}

export interface QuickDiff {
label: string;
Copy link
Member

Choose a reason for hiding this comment

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

What is this label for? How would it be any different from QuickDiffProvider.label?

Copy link
Member Author

Choose a reason for hiding this comment

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

I expect to use it when showing UX to differentiate quick diffs from different providers. It's copied here from QuickDiffProvider so that callers of getQuickDiffs have access to the label.

src/vs/workbench/contrib/scm/common/quickDiffService.ts Outdated Show resolved Hide resolved
src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.ts Outdated Show resolved Hide resolved
joaomoreno
joaomoreno previously approved these changes Jan 12, 2023
@joaomoreno joaomoreno dismissed stale reviews from ghost and themself via 7655e74 January 12, 2023 10:04
@joaomoreno joaomoreno enabled auto-merge (squash) January 12, 2023 10:04
@joaomoreno joaomoreno merged commit 04f0fb4 into main Jan 12, 2023
@joaomoreno joaomoreno deleted the alexr00/issue169012 branch January 12, 2023 10:19
@github-actions github-actions bot locked and limited conversation to collaborators Feb 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants