File tree Expand file tree Collapse file tree 4 files changed +2
-7
lines changed
src/PowerShellEditorServices/Services/TextDocument
PowerShellEditorServices.Test.Shared/TestUtilities
PowerShellEditorServices.Test/Session Expand file tree Collapse file tree 4 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ dotnet_diagnostic.CS0414.severity = error
2525dotnet_diagnostic.CA2007.severity = error
2626# CA1822: Mark members as static
2727dotnet_diagnostic.CA1822.severity = error
28+ # CA1823: Avoid unused private fields
29+ dotnet_diagnostic.CA1823.severity = error
2830# All maintainability issues (dead code etc.)
2931# See: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/maintainability-warnings
3032dotnet_analyzer_diagnostic.category-Maintainability.severity = error
Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ namespace Microsoft.PowerShell.EditorServices.Services.TextDocument
1414 /// </summary>
1515 internal static class TokenOperations
1616 {
17- // Region kinds to align with VSCode's region kinds
18- private const string RegionKindComment = "comment" ;
19- private const string RegionKindRegion = "region" ;
2017 private static readonly FoldingRangeKind ? RegionKindNone = null ;
2118
2219 // These regular expressions are used to match lines which mark the start and end of region comment in a PowerShell
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ namespace Microsoft.PowerShell.EditorServices.Test.Shared
1414 /// </summary>
1515 public static class TestUtilities
1616 {
17- private static readonly char [ ] s_unixPathSeparators = new [ ] { '/' } ;
18-
1917 private static readonly char [ ] s_unixNewlines = new [ ] { '\n ' } ;
2018
2119 /// <summary>
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ namespace Microsoft.PowerShell.EditorServices.Test.Session
1414{
1515 public class WorkspaceTests
1616 {
17- private static readonly Version PowerShellVersion = new Version ( "5.0" ) ;
18-
1917 private static readonly Lazy < string > s_lazyDriveLetter = new Lazy < string > ( ( ) => Path . GetFullPath ( "\\ " ) . Substring ( 0 , 1 ) ) ;
2018
2119 public static string CurrentDriveLetter => RuntimeInformation . IsOSPlatform ( OSPlatform . Windows )
You can’t perform that action at this time.
0 commit comments