PowerShell / PowerShell/vscode-powershell

Go To Definition/Find All References with Set-Variable

Open
#379 6 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Symbols & References 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 how feasible this is with your plugin, but if a variable is defined using the Set-Variable cmdlet (such as how you define constants) if is not possible to use Find All References or Go To Definition command on them because they are not defined using the $ notation.

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

Start by reproducing Go To Definition and Find All References for a variable created with Set-Variable, then inspect the existing variable-resolution behavior for these commands. Done means both commands resolve the definition and references for that form; the issue names no files or tests, so repository-wide search and existing tests are needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.