PowerShell / PowerShell/vscode-powershell
The automatic variable $PSHOME is not highlighted
Open
Nobody has claimed this yet.
Area-Semantic Highlighting
Issue-Bug
Verified
- Dominant language
- TypeScript
- Stars
- 1.9k
- Forks
- 547
- PR merge metrics
- No merged PRs in 30d
Description
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
Logs
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Reproduce the missing highlighting for $PSHOME in the Visual Studio Code Text Editor, then locate the PowerShell syntax-highlighting definition and its related tests, if present; done means $PSHOME receives the expected highlighting without regressing other automatic variables.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100