Hide Markdown preview editor icon when there is no active icon theme#88692
Hide Markdown preview editor icon when there is no active icon theme#88692mjbvz merged 5 commits intomicrosoft:masterfrom
Conversation
|
I still don't think this should be fixed at the markdown extension. Extensions should be free to set the icon to whatever they wish, but then VS Code should determine if it should display those icons or not If we can't fix this with css rules, I recommend moving the logic into this class in core VS Code instead: |
|
I'm trying to move the logic into core but I'm not sure how to read configuration values from within the |
|
I pushed d6fba31 that makes the change simpler. Icon manager code: You'll want to use the |
|
Thanks for that! I have a good idea of how to fix this, but now I can't seem to reproduce the bug on the latest master. Can you confirm this? |
1d92449 to
b9276a6
Compare
|
I've updated the PR with the following implementation:
|
src/vs/workbench/contrib/webview/electron-browser/webviewService.ts
Outdated
Show resolved
Hide resolved
b9276a6 to
9666816
Compare
|
Thanks for the comments! I refactored the approach to only check for an active icon theme when updating the stylesheet. This ensures that:
I do have a question however – Why does |
mjbvz
left a comment
There was a problem hiding this comment.
Only one more minor change needed. Otherwise looks good!
…me is set to null
9666816 to
ee40563
Compare
|
Alright, should be good to go! |
|
Thanks! This will be in the next insiders build and will ship with VS Code 1.42 |

This PR fixes #84962.
Approach
onDidChangeConfigurationevent so that preference changes are reflected liveI've seen in this comment that the issue shouldn't be fixed at the Markdown extension level but I still went with this approach because:
iconPathregardless of the workbench preferences