vscode-powershell icon indicating copy to clipboard operation
vscode-powershell copied to clipboard

Semantic Highlighting Meta Issue

Open SydneyhSmith opened this issue 2 years ago • 4 comments

This is an issue to track all issues with Semantic Highlighting

Summary

Related issues: #3830 #3211 #2959 #2860 #2852 #3997

SydneyhSmith avatar May 13 '22 16:05 SydneyhSmith

image Am seeing a likely-related issue where one commented line will be properly formatted (green & italic), then when commenting another line the hash mark is green and italic, but the leading variable token(?) is only italicized while the rest of the line is properly formatted. Restarting the session will result in both lines being fully, correctly formatted. VSCode 1.68.1 PowerShell Extension 2022.6.1

AspenForester avatar Jun 30 '22 14:06 AspenForester

@AspenForester are you certain you've manually enabled semantic highlighting? It is off by default.

andyleejordan avatar Jun 30 '22 18:06 andyleejordan

from settings.json

"[powershell]": {
        "editor.semanticHighlighting.enabled": true,
    }

AspenForester avatar Jun 30 '22 19:06 AspenForester

Thanks for the confirmation!

andyleejordan avatar Jun 30 '22 21:06 andyleejordan