Skip to content

Support images in 'review' and pr diff viewers#1387

Merged
RMacfarlane merged 7 commits intomasterfrom
jackson/image-diffs
Oct 18, 2019
Merged

Support images in 'review' and pr diff viewers#1387
RMacfarlane merged 7 commits intomasterfrom
jackson/image-diffs

Conversation

@JacksonKearl
Copy link
Contributor

Fixes #1356.

Uses a trick from the builtin git extension to represent images as data URL's, as the provideTextDocument API does not handle images. There is a fileSystemProvider API that we could use instead, but it ends up being more complicated.

Copy link
Contributor

@RMacfarlane RMacfarlane left a comment

Choose a reason for hiding this comment

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

Nice work! Just a few minor comments

@JacksonKearl JacksonKearl changed the title Support images in 'review' diff viewers Support images in 'review' and pr diff viewers Oct 18, 2019
Copy link
Contributor

@RMacfarlane RMacfarlane left a comment

Choose a reason for hiding this comment

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

Awesome!

@RMacfarlane RMacfarlane merged commit 41e51ff into master Oct 18, 2019
@RMacfarlane RMacfarlane deleted the jackson/image-diffs branch October 18, 2019 23:51
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.

Adding gif in PR shows "An error occurred while loading the image"

2 participants