Skip to content

Variables in the watch section arent changed when the scope changes. #1219

Closed
@wartje

Description

@wartje

System Details

  • Operating system name and version: Windows 10 Version 1607 build 14393.1944
  • VS Code version: 1.20.1
  • PowerShell extension version:
  • Output from $PSVersionTable:
1.20.1
f88bbf9137d24d36d968ea6b2911786bfe103002
x64
 $pseditor.EditorServicesVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
1      6      0      0


 code --list-extensions --show-versions
ms-vscode.PowerShell@1.6.0
 $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.14393.1944
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.1944
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

When a variable name is reused in a different scope (from script to function) , the value in the "watch" section remains the value of script scope and isn't changed to value of the function scope.

Attached Logs

Follow the instructions in the README
about capturing and sending logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions