zzarchive-VisualFSharpPowerTools
zzarchive-VisualFSharpPowerTools copied to clipboard
F# function syntax colors weird behavior
The colors was already defined as orange in the options, but my functions were always colored in black.
I had to change its color again and then revert to the orange for it to work! Could it be because I had installed Windows 10 or VS 2015, which deleted the colors from a registry?
And other colors wouldn't be affected because they use colors from C#.
It would be great to find a consistent repro for this.
Where are custom colors typically stored?
I don't know. You can try to run Process Monitor (from SysInternals), save custom colors and check where the settings are persisted.
Maybe this repro can help or maybe it is another problem:
- Install Visual Studio 2015 Color Theme Editor extension from https://visualstudiogallery.msdn.microsoft.com/6f4b51b6-5c6b-4a81-9cb5-f2daa560430b?SRC=VSIDE
- Change theme to Solarized (Dark).
- Open F# file. After VFPT colorizes it, background for text only (not for entire editor, especially visible in short files) changes to white. But in VS fonts and colors all F# entries are set to default background color.
We support the Light, the Dark and the Blue themes only.
I have a hypothesis as to the cause.
- Set theme to Dark (maybe not necessary)
- Install the extension from Tools -> Extensions -> Online. But do not restart Visual Studio.
- Toggle to the opposite theme (e.g. Light)
- Restart Visual Studio
- Toggle to the opposite theme (e.g. Dark)
- Open a .fs or .fsx file
Actual behavior: Large portions of the source are clearly highlighted in the wrong colour. In particular, if you did step 1, then it's black text on the dark grey background.
Unfortunately I can't reset my environment fully, so I can't try to re-reproduce this issue. Can somebody else try please? I know that I wasn't affected by this bug, then I deliberately tried the steps above, and now I am affected by it.
I may be experiencing the same issue (I'm definitely experiencing some issue).
My default them is Dark. In that theme, code looks great:

When I switch to Light, however, it becomes difficult to read:

Method names, functions, values, and operators keep their colour (light grey) from the Dark theme, but since the background is now white, it's extraordinarily hard to read. The Blue theme looks like the Light theme as well.
Restarting Visual Studio doesn't help.
If I go to the Fonts and Colors options, you can see that even in the Light theme, the default colour for e.g. F# Functions / Methods is that light grey colour:

Shouldn't the default colours be different for the three themes?
Experiencing the same issue as @ploeh. I often switch between dark and light themes, but it seems that powertools setting its colors only on extension "installation". E.g. I want to switch from light to dark:
works correctly:

switched to dark theme:

restarting VS doesn't help, but disable extenstion -> restart -> enable extension -> restart sequence with currently desired theme does:

Hi all,
We asked a few Visual Studio people in this thread https://github.com/fsprojects/VisualFSharpPowerTools/issues/1359. The answer is that changing theme of a just-installed extension without restart is an undefined behaviour in VS. I'm afraid we couldn't do anything in this case.
Does anyone have other reproduces that don't involve in installing the extension without restart?
Oh, I meant that you need to reinstall the extension to get rid of the bug, I can reproduce it without installing the extension first at any moment.