Skip to content

Outline shows multiple identical variables in the same function #1175

Open
@JimMeLad

Description

@JimMeLad

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions