Skip to content

fix: MarkdownPreview editor should not show icon when disabled file icons - #84984

Closed
DiamondYuan (DiamondYuan) wants to merge 1 commit into
microsoft:masterfrom
DiamondYuan:fix/markdown_preview_icon
Closed

DiamondYuan (DiamondYuan) wants to merge 1 commit into
microsoft:masterfrom
DiamondYuan:fix/markdown_preview_icon

Conversation

@DiamondYuan

@DiamondYuan DiamondYuan (DiamondYuan) commented Nov 17, 2019 •

Copy link
Copy Markdown
Contributor

This PR fixes #84962

@DiamondYuan DiamondYuan (DiamondYuan) changed the title fix: MarkdownPreview editor should now shows icon when disabled file … fix: MarkdownPreview editor should not shows icon when disabled file icons Nov 17, 2019
@DiamondYuan DiamondYuan (DiamondYuan) changed the title fix: MarkdownPreview editor should not shows icon when disabled file icons fix: MarkdownPreview editor should not show icon when disabled file icons Nov 17, 2019

@mjbvz Matt Bierner (mjbvz) left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for taking a look. However I don’t think fixing the issue at the markdown extension level is correct. What if the user toggles the icon setting for example? This fix is also markdown specific but the problem also applies to other web views.

Instead take a look in the core code base where we set the icon paths. I believe it’s in the WebviewInput class. There should be a css class we can add to the icon css rules for when icons are enabled in the editor

@DiamondYuan

DiamondYuan (DiamondYuan) commented Nov 18, 2019 •

Copy link
Copy Markdown
Contributor Author

Thanks for taking a look. However I don’t think fixing the issue at the markdown extension level is correct. What if the user toggles the icon setting for example? This fix is also markdown specific but the problem also applies to other web views.

Instead take a look in the core code base where we set the icon paths. I believe it’s in the WebviewInput class. There should be a css class we can add to the icon css rules for when icons are enabled in the editor

This issue is fixed in 1.40.1 ?

image

And I can't reproduce the issue

@mjbvz

Copy link
Copy Markdown
Contributor

Closing since I don't think the current direction is correct

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.

Markdown preview editor shows icon even though I disabled file icons

2 participants