Closed surban closed 7 years ago
@jasonmalinowski Could you give some hints on fixing this issue?
Here is a summary:
It seems to work fine for normal scenarios e.g. installing VFPT, restarting VS, and then changing themes. The bug here occurs when installing VFPT, and then changing themes without actually restarting VS. Why restarting VS in between makes the bug go away? What are we missing?
Thank you.
I really have no clue how the theme stuff works. @olegtk might know more?
@olegtk Could you have a look?
Here is another repro case for the bug https://github.com/fsprojects/VisualFSharpPowerTools/issues/1128#issuecomment-184085561
(how do you know all these people?? :))
We don't really support well the scenario when you install an extension and start using it right away without restarting VS. That's why "You must restart Microsoft Visual Studio in order for the changes to take effect" message in Extensions and Updates dialog.
@olegtk Thank you for the answer.
I would expect that color would be in sync after VS restart. But it seems changing themes right after extension install leaves colors in a wrong state.
Where do editor colors persist? Do you have any suggestion to handle color theme change in a more robust way (e.g. using pkgdef files)?
I'm not sure what are you trying to solve, sorry. You have to restart VS after installing an extension, otherwise it's not guaranteed to work correctly. According to @dungpa:
It seems to work fine for normal scenarios e.g. installing VFPT, restarting VS, and then changing themes.
Yes, looks like this bug affects functions/methods and operators highlighting. Not so sure why yet. I'm trying to look into it. It definitely is not related to Depth colorization, I am able to reproduce this bug with depth colorization disabled.
Even if I restart VS after installing the extension and/or changing the color theme, the colors are not updated correctly.
Is there any config file or registry setting that I could delete to force F# Power Tools to adopt the new Visual Studio color scheme without having to reinstall?
Description
F# Power Tools color scheme does not adjust when Visual Studio color scheme is changed.
Repro steps
Please provide the steps required to reproduce the problem
Expected behavior
F# Power Tools color scheme adjusts to match Visual Studio color scheme.
Actual behavior
F# Power Tools color scheme does not adjust, making many words unreadable (see screenshot).
Known workarounds
Uninstall, then reinstall the extension. (disable, then enable, does not help)
Related information