Previously, I had modified editor.wordSeparators to remove the dollar sign from the list of word separators, because I prefer when VSCode selects the whole variable name including the leading $ when double-clicking on a variable.
The last time I opened VSCode, it did an update and I seem to have read something about the default editor.wordSeparators value being changed for PowerShell, but I can't find anything in the release note right now.
Anyway, even though I have
"editor.wordSeparators": "`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?"
in my setting.json file, it looks like VSCode doesn't honor this setting anymore as the leading dollar sign is never selected when I double-click on a variable name (e.g. $variable instead of $variable)
I also noticed that even though the hyphen is in the list of word separators, it also isn't honored by VSCode: two-part instead of two-part
Any idea why ?