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
Product Information:
Version: 2.1.4
Commit SHA-1 hash: 5e8add2190
Runtime Environment:
OS Name: Windows
OS Version: 10.0.16299
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.1.4\
Microsoft .NET Core Shared Framework Host
Version : 2.0.5
Build : 17373eb129b3b05aa18ece963f8795d65ef8ea54
VS Code version:
1.19.2 (x64)
C# Extension version:
1.13.1
Steps to reproduce
Create a Console Application project with dotnet new console
Declare [and optionally assign] a value to any variable. For instance, int x = 1;
Do not use it anywhere in the code.
Hover the mouse over it.
Obs.: sometimes you need to hover twice to get the fault behavior, or let the pointer over the variable for a bit.
Expected behavior
A warning stating:
The variable 'x' is assigned but its value is never used [namespace]
int x
Actual behavior
The warning appears twice:
The variable 'x' is assigned but its value is never used [namespace]
The variable 'x' is assigned but its value is never used [namespace]
int x
The text was updated successfully, but these errors were encountered:
vieirandre
changed the title
Warning about variable never used is being shown twice
Warning/errors being shown twice
Jan 20, 2018
Environment data
dotnet --info
output:VS Code version:
C# Extension version:
Steps to reproduce
dotnet new console
int x = 1;
Obs.: sometimes you need to hover twice to get the fault behavior, or let the pointer over the variable for a bit.
Expected behavior
A warning stating:
Actual behavior
The warning appears twice:
The text was updated successfully, but these errors were encountered: