Add ability to reload a file icon theme without restarting the editor#60136
Add ability to reload a file icon theme without restarting the editor#60136JimiC wants to merge 5 commits intomicrosoft:masterfrom JimiC:reloadFileIconTheme
Conversation
|
@JimiC Can you make the changes minimal? No |
|
@aeschli Sure. I so much guessed that all these changes will not make the code review an easy task. |
|
@aeschli Submitted code with minimal changes. |
|
What's the latest status on this PR? I use |
|
@aeschli |
|
Sorry, I was out for 2 month. The code changes to the theme service look good to me, but the controversial part are the APIs. They don't fit with the existing vscode APIs and contribution points. We have no other API that signals that a static contribution point (or parts of it) needs to be reloaded. I think the proper ways would be:
Would the first suggestion work for you? |
|
@aeschli A watcher over the icon definition file would do the job as well. Is there somewhere in the code-base a similar case so I can have a look at it and maybe provide a revised PR? |
|
The fileService has methods |
|
Closing in favor of #66115 |
Resolves #45963
This PRs adds the ability to reload the file icon theme without the need to restart the editor.
@aeschli I also took the liberty to do some refactoring in
workbenchThemeServiceandfileIconThemeDatafiles.The changes are:
lettoconstwhere applicable.functionsthat where used by theclassbut where outside them, so I moved those functions inside theclass.functionswritten in anes5syntax, which I switched toes6syntax.If those refactorings are unwanted, I have no problem to revert them.
I also value your guidance and input, in case I implemented this feature against the coding guidelines or the code can be improved.