Skip to content
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

The automatic variable $PSHOME is not highlighted #5166

Open
6 tasks done
cos4ni2s opened this issue Apr 3, 2025 · 2 comments
Open
6 tasks done

The automatic variable $PSHOME is not highlighted #5166

cos4ni2s opened this issue Apr 3, 2025 · 2 comments
Labels
Area-Semantic Highlighting Issue-Bug A bug to squash. Verified This issue has been determined to be a legitimate issue that requires a fix.

Comments

@cos4ni2s
Copy link

cos4ni2s commented Apr 3, 2025

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

I am experiencing a problem with syntax highlighting. I think $PSHOME should be highlighted but it is not.

PowerShell Version

7.5.0

Visual Studio Code Version

1.98.2

Extension Version

2025.0.0

Steps to Reproduce

Type $PSHOME in the Visual Studio Code Text Editor area.

Visuals

Image

Logs

No response

@cos4ni2s cos4ni2s added Issue-Bug A bug to squash. Needs: Triage Maintainer attention needed! labels Apr 3, 2025
@JustinGrote
Copy link
Collaborator

Thanks for your submission!

Unfortunately that highlighting comes from a Textmate file that is very difficult to get changes pushed because it lands in the main vscode. Note that it is highlighted if semantic versioning is enabled, but that currently has some stability issues.

Image

@JustinGrote JustinGrote added Area-Semantic Highlighting Verified This issue has been determined to be a legitimate issue that requires a fix. and removed Needs: Triage Maintainer attention needed! labels Apr 3, 2025
@andyleejordan
Copy link
Member

To be fair, that TextMate grammar is due for some TLC. Just very careful TLC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Semantic Highlighting Issue-Bug A bug to squash. Verified This issue has been determined to be a legitimate issue that requires a fix.
Projects
None yet
Development

No branches or pull requests

3 participants