Open alexr00 opened 1 year ago
@laurentlb FYI in case you would also find this useful.
Here's what it looks like:
Will it also allow to show gutter markers? If yes, perhaps https://github.com/microsoft/vscode/issues/167306 can be implemented with an extension
Yes, this shows gutter markers.
@alexr00 I've tried out this proposal (thrilled about it BTW) and I've run into an issue where it doesn't seem like the quickdiff is removed from the editor properly when disposed. I am currently turning on the feature by calling registerQuickDiffProvider
on-demand (in response to a user action) and want to turn it back off when they toggle it back off, but even when disposing the returned disposable it doesn't clear it from the document.
Also minor, but why is there a label both on the registerQuickDiffProvider
call and on the provider itself?
Playing with this some more (in today's insiders), it seems dispose works more reliably, but still not 100%.
@eamodio there was a dispose that wasn't happening. It is fixed in insiders, though if you're not seeing it work 100% then I'll need to investigate further.
Also minor, but why is there a label both on the registerQuickDiffProvider call and on the provider itself?
This will likely be deduplicated.
Is provideOriginalResource
should be called for existing editors at the moment of registration?
I have the following sequence of events (vscode 1.76):
registerQuickDiffProvider
.@alexr00 Any chance this could land soon? I would love to get this in.
@eamodio do you have any other feedback on the API?
Adding to February to revisit then.
Not really it seems to work well as is. I have a branch with it implemented for the File Changes annotations in GitLens: https://github.com/gitkraken/vscode-gitlens/tree/feature/gutter-changes
Thanks!
We'll also need to determine what should happen when there are multiple quick diff providers on the same range.
Related? #196759
Moving back to the backlog as we're not going to get to https://github.com/microsoft/vscode/issues/196759 this month.
@alexr00 are there any plans to finalize this API?
We don't have a plan to finalize it. Tentatively assigning to October to see if we have time then.
Why this would be useful: https://github.com/microsoft/vscode-pull-request-github/issues/392
We'll also need to determine what should happen when there are multiple quick diff providers on the same range.