fsprojects-archive / zzarchive-VisualFSharpPowerTools

[ARCHIVED] Power commands for F# in Visual Studio
http://fsprojects.github.io/VisualFSharpPowerTools/
Apache License 2.0
310 stars 77 forks source link

F# Power Tools color scheme does not adjust when Visual Studio color scheme is changed #1359

Closed surban closed 7 years ago

surban commented 8 years ago

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

  1. Uninstall F# Power Tools.
  2. Set Visual Studio color theme to blue.
  3. Install F# Power Tools.
  4. Set Visual Studio color theme to dark.

    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).

image

Known workarounds

Uninstall, then reinstall the extension. (disable, then enable, does not help)

Related information

dungpa commented 8 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.

jasonmalinowski commented 8 years ago

I really have no clue how the theme stuff works. @olegtk might know more?

dungpa commented 8 years ago

@olegtk Could you have a look?

Here is another repro case for the bug https://github.com/fsprojects/VisualFSharpPowerTools/issues/1128#issuecomment-184085561

OkayX6 commented 8 years ago

(how do you know all these people?? :))

olegtk commented 8 years ago

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.

dungpa commented 8 years ago

@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)?

olegtk commented 8 years ago

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.

hmemcpy commented 8 years ago

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.

surban commented 8 years ago

Even if I restart VS after installing the extension and/or changing the color theme, the colors are not updated correctly.

surban commented 8 years ago

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?