Skip to content

Commit c8a3bb3

Browse files
committed
Ignore some warnings
1 parent 09fc5d0 commit c8a3bb3

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

src/PowerShellEditorServices/Services/PowerShell/Console/LegacyReadLine.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ public LegacyReadLine(
3535
_onIdleAction = onIdleAction;
3636
}
3737

38+
#pragma warning disable CA1502 // Cyclomatic complexity we don't care about
3839
public override string ReadLine(CancellationToken cancellationToken)
40+
#pragma warning restore CA1502
3941
{
4042
string inputBeforeCompletion = null;
4143
string inputAfterCompletion = null;

src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ namespace Microsoft.PowerShell.EditorServices.Services.PowerShell.Host
2929
using Microsoft.PowerShell.EditorServices.Server;
3030
using OmniSharp.Extensions.DebugAdapter.Protocol.Server;
3131

32+
#pragma warning disable CA1506 // Coupling complexity we don't care about
3233
internal class PsesInternalHost : PSHost, IHostSupportsInteractiveSession, IRunspaceContext, IInternalPowerShellExecutionService
34+
#pragma warning restore CA1506
3335
{
3436
internal const string DefaultPrompt = "> ";
3537

src/PowerShellEditorServices/Services/Symbols/SymbolReference.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ internal record SymbolReference
3636
/// </summary>
3737
/// <param name="symbolType">The higher level type of the symbol</param>
3838
/// <param name="symbolName">The name of the symbol</param>
39+
/// <param name="displayString">The string used by outline, hover, etc.</param>
3940
/// <param name="nameExtent">The extent of the symbol's name</param>
4041
/// <param name="scriptExtent">The script extent of the symbol</param>
4142
/// <param name="file">The script file that has the symbol</param>

src/PowerShellEditorServices/Services/TextDocument/TokenOperations.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ internal static class TokenOperations
2525
/// <summary>
2626
/// Extracts all of the unique foldable regions in a script given the list tokens
2727
/// </summary>
28-
internal static FoldingReferenceList FoldableReferences(
29-
Token[] tokens)
28+
#pragma warning disable CA1502 // Cyclomatic complexity we don't care about
29+
internal static FoldingReferenceList FoldableReferences(Token[] tokens)
30+
#pragma warning restore CA1502
3031
{
3132
FoldingReferenceList refList = new();
3233

0 commit comments

Comments
 (0)