From 90c9eadd78d360ca2ac6e206438177458744f9eb Mon Sep 17 00:00:00 2001 From: Colin Blaise Date: Wed, 2 Feb 2022 13:55:29 -0600 Subject: [PATCH 1/2] Throttled no-op loop --- .../Services/PowerShell/Host/PsesInternalHost.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs b/src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs index dc1f1bc41..ace11fa79 100644 --- a/src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs +++ b/src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs @@ -593,6 +593,7 @@ private void RunExecutionLoop() { task.ExecuteSynchronously(cancellationScope.CancellationToken); } + Thread.Sleep(100); } } From 754c6b8a24186a665c79afc13155bff1b9041c52 Mon Sep 17 00:00:00 2001 From: Colin Blaise Date: Mon, 25 Mar 2024 14:00:18 -0500 Subject: [PATCH 2/2] fix: update editorconfig rule for static methods --- .editorconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index b1bfe93a1..d1e0fd9bf 100644 --- a/.editorconfig +++ b/.editorconfig @@ -70,7 +70,7 @@ dotnet_diagnostic.CA1805.severity = error # CA1820: Test for empty strings using string length dotnet_diagnostic.CA1820.severity = error # CA1822: Mark members as static -dotnet_diagnostic.CA1822.severity = error +dotnet_diagnostic.CA1822.severity = suggestion # CA1823: Avoid unused private fields dotnet_diagnostic.CA1823.severity = error # CA2007: Do not directly await a Task