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

Outline shows multiple identical variables in the same function #1175

Open
JimMeLad opened this issue Jul 10, 2024 · 0 comments
Open

Outline shows multiple identical variables in the same function #1175

JimMeLad opened this issue Jul 10, 2024 · 0 comments

Comments

@JimMeLad
Copy link

Code editor

Visual Studio Code

Platform

Windows

Version

v1.41.0

What steps will reproduce the bug?

I have a bash script containing a 'main' function and 5 utility functions.
Each function has a number of 'local' variables defined within it.
In 4 of the functions, the outline view correctly shows a single instance of each local variable, but in 'main' and one other, one or more variables are listed twice. This same behaviour shows up in other bash scripts that I have written
Screenshot 2024-07-10 171644

How often does it reproduce? Is there a required condition?

Can reproduce every time, nothing special is needed

What is the expected behavior?

That each variable defined to a function is listed only once within the outline view of that function

What do you see instead?

Multiple entries for the variables

Additional information

One script that contains just 'main' and one other function, the outline view hasn't picked up either function name
Screenshot 2024-07-10 172003
Screenshot 2024-07-10 172041

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant