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
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1031:Do not catch general exception types",Justification="Uses ThrowTerminatingError() instead")]
218
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage","VSTHRD002:Avoid problematic synchronous waits",Justification="We have to wait here, it's the whole program.")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Performance","CA1825:Avoid zero-length array allocations",Justification="Cannot use Array.Empty, since it must work in net452")]
385
386
privatestaticVersionGetPSVersion()
386
387
{
387
388
// In order to read the $PSVersionTable variable,
388
389
// we are forced to create a new runspace to avoid concurrency issues,
389
390
// which is expensive.
390
391
// Rather than do that, we instead go straight to the source,
391
392
// which is a static property, internal in WinPS and public in PS 6+
Copy file name to clipboardexpand all lines: test/PowerShellEditorServices.Test.E2E/Processes/StdioServerProcess.cs
+1-2
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,8 @@ public class StdioServerProcess : ServerProcess
23
23
/// <summary>
24
24
/// The current server process (if any).
25
25
/// </summary>
26
-
#pragma warning disable CA2213
26
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage","CA2213:Disposable fields should be disposed",Justification="It is diposed but with a lock.")]
27
27
privateProcess_serverProcess;
28
-
#pragma warning restore CA2213
29
28
30
29
/// <summary>
31
30
/// Create a new <see cref="StdioServerProcess"/>.
0 commit comments