File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/PowerShellEditorServices.Protocol/Server Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -193,10 +193,9 @@ private async Task HandleSetPSSARulesRequest(
193193 var dynParam = param as dynamic ;
194194 foreach ( dynamic ruleInfo in dynParam )
195195 {
196-
197- if ( ( Boolean ) ruleInfo . IsEnabled )
196+ if ( ( Boolean ) ruleInfo . isEnabled )
198197 {
199- activeRules . Add ( ( string ) ruleInfo . Name ) ;
198+ activeRules . Add ( ( string ) ruleInfo . name ) ;
200199 }
201200 }
202201 editorSession . AnalysisService . ActiveRules = activeRules . ToArray ( ) ;
@@ -217,7 +216,7 @@ private async Task HandleGetPSSARulesRequest(
217216 var activeRules = editorSession . AnalysisService . ActiveRules ;
218217 foreach ( var ruleName in ruleNames )
219218 {
220- rules . Add ( new { Name = ruleName , IsEnabled = activeRules . Contains ( ruleName , StringComparer . OrdinalIgnoreCase ) } ) ;
219+ rules . Add ( new { name = ruleName , isEnabled = activeRules . Contains ( ruleName , StringComparer . OrdinalIgnoreCase ) } ) ;
221220 }
222221 }
223222
You can’t perform that action at this time.
0 commit comments