Skip to content

Commit 4f02fb6

Browse files
committed
Treat CS0169 (unused private field) as error and fix
1 parent 1645338 commit 4f02fb6

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ trim_trailing_whitespace = true
1313
csharp_space_before_open_square_brackets = true
1414
csharp_space_after_keywords_in_control_flow_statements = true
1515

16+
# CS0169: The private field 'class member' is never used
17+
dotnet_diagnostic.CS0169.severity = error
1618
# CA2007: Do not directly await a Task
1719
dotnet_diagnostic.CA2007.severity = error
1820
# CA1822: Mark members as static

src/PowerShellEditorServices/Services/DebugAdapter/DebugService.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ internal class DebugService
4343
private StackFrameDetails[] stackFrameDetails;
4444
private readonly PropertyInfo invocationTypeScriptPositionProperty;
4545

46-
private static int breakpointHitCounter;
47-
4846
private readonly SemaphoreSlim debugInfoHandle = AsyncUtils.CreateSimpleLockingSemaphore();
4947
#endregion
5048

test/PowerShellEditorServices.Test.E2E/LanguageServerProtocolMessageTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ public class LanguageServerProtocolMessageTests : IClassFixture<LSPTestsFixture>
3535
private readonly static string s_binDir =
3636
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
3737

38-
private static bool s_registeredOnLogMessage;
39-
4038
private readonly ILanguageClient PsesLanguageClient;
4139
private readonly List<Diagnostic> Diagnostics;
4240
private readonly List<PsesTelemetryEvent> TelemetryEvents;

0 commit comments

Comments
 (0)