Skip to content

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

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
wartje opened this issue Mar 1, 2018 · 2 comments
Closed

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

wartje opened this issue Mar 1, 2018 · 2 comments
Labels
Issue-Bug A bug to squash.

Comments

@wartje
Copy link

wartje commented Mar 1, 2018

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.

@rjmholt
Copy link
Contributor

rjmholt commented Mar 21, 2018

Thanks for opening an issue!

Would you be able to provide an example of this behaviour? We just need to reproduce it

@TylerLeonhardt
Copy link
Member

Closing due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash.
Projects
None yet
Development

No branches or pull requests

3 participants