Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cea825b

Browse files
committedJan 8, 2025·
Delete extra blank lines etc. to satisfy Roslynator
1 parent 919b539 commit cea825b

File tree

7 files changed

+2
-8
lines changed

7 files changed

+2
-8
lines changed
 

‎src/PowerShellEditorServices/Logging/LanguageServerLogger.cs

-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ internal class LanguageServerLoggerProvider(ILanguageServerFacade languageServer
137137
public void Dispose() { }
138138
}
139139

140-
141140
public static class LanguageServerLoggerExtensions
142141
{
143142
/// <summary>

‎src/PowerShellEditorServices/Services/DebugAdapter/Handlers/LaunchAndAttachHandler.cs

-2
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ void RunspaceChangedHandler(object s, RunspaceChangedEventArgs _)
301301
throw new RpcErrorException(0, null, "Invalid configuration with no process ID nor custom pipe name!");
302302
}
303303

304-
305304
// Execute the Debug-Runspace command but don't await it because it
306305
// will block the debug adapter initialization process. The
307306
// InitializedEvent will be sent as soon as the RunspaceChanged
@@ -328,7 +327,6 @@ void RunspaceChangedHandler(object s, RunspaceChangedEventArgs _)
328327

329328
if (request.RunspaceId < 1)
330329
{
331-
332330
throw new RpcErrorException(0, null, "A positive integer must be specified for the RunspaceId!");
333331
}
334332

‎src/PowerShellEditorServices/Services/DebugAdapter/Handlers/StackTraceHandler.cs

-2
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,4 @@ public static StackFrame CreateStackFrame(StackFrameDetails stackFrame, long id)
128128
Column = invocationInfo.OffsetInLine,
129129
PresentationHint = StackFramePresentationHint.Label
130130
};
131-
132131
}
133-

‎src/PowerShellEditorServices/Services/DebugAdapter/Handlers/VariablesHandler.cs

+2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ public async Task<VariablesResponse> Handle(VariablesArguments request, Cancella
3434
.ToArray()
3535
};
3636
}
37+
#pragma warning disable RCS1075
3738
catch (Exception)
3839
{
3940
// TODO: This shouldn't be so broad
4041
}
42+
#pragma warning restore RCS1075
4143

4244
return variablesResponse;
4345
}

‎src/PowerShellEditorServices/Services/Workspace/Handlers/ConfigurationHandler.cs

-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ public override async Task<Unit> Handle(DidChangeConfigurationParams request, Ca
100100
return await Unit.Task.ConfigureAwait(false);
101101
}
102102

103-
104103
public event EventHandler<LanguageServerSettings> ConfigurationUpdated;
105104
}
106105
}

‎test/PowerShellEditorServices.Test.E2E/DebugAdapterProtocolMessageTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ await PsesDebugAdapterClient.SetBreakpoints(
306306
await PsesDebugAdapterClient.RequestConfigurationDone(new ConfigurationDoneArguments());
307307
await PsesDebugAdapterClient.LaunchScript(filePath, Started);
308308

309-
310309
// Get the stacktrace for the breakpoint
311310
await Assert.ThrowsAsync<JsonRpcException>(() => PsesDebugAdapterClient.RequestStackTrace(
312311
new StackTraceArguments { }

‎test/PowerShellEditorServices.Test/Debugging/DebugServiceTests.cs

-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ public async Task InitializeAsync()
7676
variableScriptFile = GetDebugScript("VariableTest.ps1");
7777
}
7878

79-
8079
public async Task DisposeAsync()
8180
{
8281
debugService.Abort();

0 commit comments

Comments
 (0)
Please sign in to comment.