-
Notifications
You must be signed in to change notification settings - Fork 49
Parameters are shown using variables-color #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I came here to echo this issue. This seems to be related to the new semantic highlighting feature. Primary Theme: Dark+ |
Also, semantic token highlighting issues need to be taken over to https://github.com/PowerShell/vscode-powershell. The semantic tokenizing is handled in the PowerShell extension, not in the basic language syntaxing module here. The PowerShell ISE Theme also comes from there as well. |
@msftrncs I'm not sure how the picture of your theme without semantic helps. Maybe most/all themes forgot to color the parameters before, but the end result is that it worked. The issue is only when semantic is enabled. Are we sure the themes can separate the token types? I was redirected here for "editor syntax colorization issues" in vscode-powershell's new issue template-menu. If that's wrong, you might want to make them rephrase or change that, because atm you both point at each other. |
@fflaten I've updated our FAQ to clarify the interaction between the extension's highlighting and the highlighting grammar (this repo): https://github.com/PowerShell/vscode-powershell/blob/master/docs/troubleshooting.md#problems-with-syntax-highlighting Funnily enough, I've also updated the issue form on the extension...but GitHub still hasn't added us to the beta for new issue forms so it's still a draft PR: PowerShell/vscode-powershell#3332 |
Thanks @andschwa. I also noticed that the editor syntax-redirect in the issue template is removed in vscode-powershell 👍 Haven't looked into which tokenColor that fixed it, but I guess this might now be more of a theme-issue with "PowerShell ISE". Btw. didn't know about the issue forms private beta). They look awesome! |
Environment
Issue Description
While semantic highlighting is enabled (theme default), parameters are shown using the same color as the variables, making it hard to split parameter from value. Literals are shown using their separate color as expected.
Also tested with Powershell ISE theme.
Screenshots
Semantic highlighting enabled:


Expected Behavior
Variables and parameters should have different colors like before.
Semantic highlighting disabled in settings:


Code Samples
The text was updated successfully, but these errors were encountered: