You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to title this "It's not just a mouthwash!" but...
Anyway, this brought me back to making sure I knew about scope - when I have a variable outside of the if statement, and then reference it inside the if statement, the system shouldn't complain about that. It's perfectly valid syntax. Why does VSCode think my variable is unused?
This is a C# file (which the little info in the bottom info bar agrees with), running 0.10.8, on Mac OS X Yosemite. This appears to be a new issue.
The text was updated successfully, but these errors were encountered:
Tyriar
changed the title
Variable scope not being seen properly
Variable scope not being seen properly in Dark/Light (Visual Studio) themes
Feb 11, 2016
Moving to OmniSharp for commenting on the warning on the variable. @Tyriar Let's have a separate issue for the 'var' coloring.
aeschli
changed the title
Variable scope not being seen properly in Dark/Light (Visual Studio) themes
[csharp] Unused variable warning, but variable is written
Feb 11, 2016
I wanted to title this "It's not just a mouthwash!" but...
Anyway, this brought me back to making sure I knew about scope - when I have a variable outside of the if statement, and then reference it inside the if statement, the system shouldn't complain about that. It's perfectly valid syntax. Why does VSCode think my variable is unused?
This is a C# file (which the little info in the bottom info bar agrees with), running 0.10.8, on Mac OS X Yosemite. This appears to be a new issue.
The text was updated successfully, but these errors were encountered: