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(
193
193
var dynParam = param as dynamic ;
194
194
foreach ( dynamic ruleInfo in dynParam )
195
195
{
196
-
197
- if ( ( Boolean ) ruleInfo . IsEnabled )
196
+ if ( ( Boolean ) ruleInfo . isEnabled )
198
197
{
199
- activeRules . Add ( ( string ) ruleInfo . Name ) ;
198
+ activeRules . Add ( ( string ) ruleInfo . name ) ;
200
199
}
201
200
}
202
201
editorSession . AnalysisService . ActiveRules = activeRules . ToArray ( ) ;
@@ -217,7 +216,7 @@ private async Task HandleGetPSSARulesRequest(
217
216
var activeRules = editorSession . AnalysisService . ActiveRules ;
218
217
foreach ( var ruleName in ruleNames )
219
218
{
220
- rules . Add ( new { Name = ruleName , IsEnabled = activeRules . Contains ( ruleName , StringComparer . OrdinalIgnoreCase ) } ) ;
219
+ rules . Add ( new { name = ruleName , isEnabled = activeRules . Contains ( ruleName , StringComparer . OrdinalIgnoreCase ) } ) ;
221
220
}
222
221
}
223
222
You can’t perform that action at this time.
0 commit comments