PowerShell / PowerShell/vscode-powershell

System and Scope Modifier variables do not evaluate in hover tooltip

Open
#377 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Debugging Issue-Enhancement
Dominant language
TypeScript
Stars
1.9k
Forks
547
PR merge metrics
No merged PRs in 30d

Description

Please fill in these details so that we can help you!

System Details
  • Operating system name and version:
  • VS Code version: 1.8.0
  • PowerShell extension version: 0.7.2
  • Output from $PSVersionTable:
    PSVersion 5.0.10240.17146
    WSManStackVersion 3.0
    SerializationVersion 1.1.0.1
    CLRVersion 4.0.30319.42000
    BuildVersion 10.0.10011.16384
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    PSRemotingProtocolVersion 2.3
Issue Description

Not sure if this is considered a bug or not, but I noticed that when you use scope modifiers ($script: $global:, etc.) or the $env: prefix, these variables do not evaluate when hovered over like normal variables. They do display if paste them into Watches however. Is this something that is already a known issue or has plans to be addressed.

Also, I have additional feedback I would like to provide, is there a process to submit enhancement ideas to be evaluated?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in VS Code 1.8.0 with PowerShell extension 0.7.2 using the supplied PowerShell version, then compare hover evaluation with Watches for scope modifiers and the $env: prefix. Done means these variables evaluate correctly in the hover tooltip, with the existing Watch behavior preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.