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

Some variables are not highlighted ($Error, $PSVersionTable) #4944

Closed
6 tasks done
o-l-a-v opened this issue Mar 16, 2024 · 1 comment
Closed
6 tasks done

Some variables are not highlighted ($Error, $PSVersionTable) #4944

o-l-a-v opened this issue Mar 16, 2024 · 1 comment
Labels
Issue-Bug A bug to squash. Needs: Triage Maintainer attention needed!

Comments

@o-l-a-v
Copy link

o-l-a-v commented Mar 16, 2024

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

Some variables are not highlighted. I've tried on Windows and Linux, with vscode-powershell stable v2024.0.0 and preview v2024.3.1.

Expected behavior: All variables should be highlighted, like so:

$SomeVariable
$Error
$PSVersionTable

Edit: GitHub syntax highlighting does it too, weird.

Edit 2: Highlight.js demo https://highlightjs.org/demo does as I expect it to:

image

PowerShell Version

v7.4.1 x64 on Windows 11 and Pop!_OS / Ubuntu 22.04

Visual Studio Code Version

1.87.2

Extension Version

v2024.0.0 and v2024.3.1-preview

Steps to Reproduce

$SomeVariable
$Error
$PSVersionTable

Visuals

image

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash. Needs: Triage Maintainer attention needed!
Projects
None yet
Development

No branches or pull requests

1 participant