-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[mini-browser] support '.xhtml' file for preview #6969
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, sorry for the late review, I missed the notification.
Approved! Works as advertised, many thanks.
I also tried to find realistic edge-cases for files ending with *html
where you don't want to reset the mini-browser background, but I didn't find any (only false positives I could think of are directories ending with html
, or binaries called something2html
, but we don't open these in mini-browsers anyway).
Fixes #6969 With this change, `.xhtml` files can now be successfully previewed similarly to `.html` files. The method `resetBackground` has also been updated with a minor change to also support resetting the background for `.xhtml` files. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
f4d0427
to
8d09d16
Compare
Fixes #6969 This change allows previewing multiple different file types from the `HtmlHandler` endpoint. The supported file types include: - `.html` (previously supported) - `.xhtml` (newly supported) - `.htm` (newly supported) The resetBackground method has also been updated to support the new file types. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
8d09d16
to
d96b879
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thanks! 💯
One small unnecessary thing below, but still approved. 🙂 Please feel free to merge whenever it's ready.
Fixes #6969 This change allows previewing multiple different file types from the `HtmlHandler` endpoint. The supported file types include: - `.html` (previously supported) - `.xhtml` (newly supported) - `.htm` (newly supported) The resetBackground method has also been updated to support the new file types. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
d96b879
to
b98aa8a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks! Travis windows build fail looks unrelated, so Go For Launch. 🚀
(On a side-note, I think this could have been added to the Changelog. But that’s not super important, so feel free to merge as is.)
Every release I usually go over all changes during a month and create entries for fixes, new features, and breaking changes if I find any :) #7014 |
Fixes #6969 This change allows previewing multiple different file types from the `HtmlHandler` endpoint. The supported file types include: - `.html` (previously supported) - `.xhtml` (newly supported) - `.htm` (newly supported) The resetBackground method has also been updated to support the new file types. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
b98aa8a
to
d1bb884
Compare
Fixes eclipse-theia#6969 This change allows previewing multiple different file types from the `HtmlHandler` endpoint. The supported file types include: - `.html` (previously supported) - `.xhtml` (newly supported) - `.htm` (newly supported) The resetBackground method has also been updated to support the new file types. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
Fixes eclipse-theia#6969 This change allows previewing multiple different file types from the `HtmlHandler` endpoint. The supported file types include: - `.html` (previously supported) - `.xhtml` (newly supported) - `.htm` (newly supported) The resetBackground method has also been updated to support the new file types. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
What it does
Fixes #6968
The pull-request adds support to display
.xhtml
files as a preview using themini-browser
.resetBackground
to also accept resetting backgrounds for.xhtml
files.How to test
.html
file (verify that preview works using the toolbar item).xhtml
file (verify that the preview works using the toolbar item).htm
file (verify that the preview works using the toolbar item)Review checklist
Reminder for reviewers
Signed-off-by: Vincent Fugnitto vincent.fugnitto@ericsson.com