Skip to content

Document symbol list should contain variables defined in functions #356

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

Closed
chrmarti opened this issue Dec 2, 2016 · 2 comments
Closed
Labels
Area-Symbols & References Issue-Enhancement A feature request (enhancement). Resolution-Fixed Will close automatically.

Comments

@chrmarti
Copy link

chrmarti commented Dec 2, 2016

From @wsmelton on December 2, 2016 18:9

  • VSCode Version: 1.7.2
  • OS Version: 10.0.14393

Steps to Reproduce:

  1. Open a ps1 file made up of just one function
  2. Issue CTRL + P
  3. Enter @ symbol
  4. Only thing listed is the function name, none of the variables are showing.
  5. Remove the function name and brackets (function {}) and then repeat.
  6. You will now see the variables listed.
  7. Open a file with multiple functions and the same thing, none of the variables will be listed.

vscode_symbollistmissingvariables

Copied from original issue: microsoft/vscode#16398

@daviwil
Copy link
Contributor

daviwil commented Dec 2, 2016

Interesting suggestion! I wonder how this would work if there are multiple instances of the same variable name used in different scopes.

@daviwil daviwil changed the title Viewing the list of symbols in the current script file does show variables within a function Document symbol list should contain variables defined in functions Dec 2, 2016
@TylerLeonhardt TylerLeonhardt modified the milestone: Future May 24, 2018
@SydneyhSmith SydneyhSmith removed this from the Future milestone Jan 26, 2021
@andyleejordan andyleejordan added the Resolution-Fixed Will close automatically. label Feb 7, 2023
@ghost ghost closed this as completed Feb 7, 2023
@ghost
Copy link

ghost commented Feb 7, 2023

This issue has been marked as fixed. It has been automatically closed for housekeeping purposes.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Symbols & References Issue-Enhancement A feature request (enhancement). Resolution-Fixed Will close automatically.
Projects
None yet
Development

No branches or pull requests

5 participants