File tree 2 files changed +3
-3
lines changed
PowerShellEditorServices/Analysis
PowerShellEditorServices.Protocol/Server 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ private async Task HandleScriptFileMarkersRequest(
309
309
{
310
310
var markers = await editorSession . AnalysisService . GetSemanticMarkersAsync (
311
311
editorSession . Workspace . GetFile ( requestParams . fileUri ) ,
312
- editorSession . AnalysisService . GetPSSASettingsHashtable ( requestParams . settings ) ) ;
312
+ AnalysisService . GetPSSASettingsHashtable ( requestParams . settings ) ) ;
313
313
await requestContext . SendResult ( new ScriptFileMarkerRequestResultParams
314
314
{
315
315
markers = markers
@@ -1097,7 +1097,7 @@ protected async Task HandleCommentHelpRequest(
1097
1097
ruleSettings . Add ( "VSCodeSnippetCorrection" , true ) ;
1098
1098
ruleSettings . Add ( "Placement" , "before" ) ;
1099
1099
settings . Add ( "PSProvideCommentHelp" , ruleSettings ) ;
1100
- var pssaSettings = EditorSession . AnalysisService . GetPSSASettingsHashtable ( settings ) ;
1100
+ var pssaSettings = AnalysisService . GetPSSASettingsHashtable ( settings ) ;
1101
1101
1102
1102
// todo create a semantic marker api that take only string
1103
1103
var analysisResults = await EditorSession . AnalysisService . GetSemanticMarkersAsync (
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ public IEnumerable<string> GetPSScriptAnalyzerRules()
186
186
/// </summary>
187
187
/// <param name="ruleSettingsMap">A settings hashtable</param>
188
188
/// <returns></returns>
189
- public Hashtable GetPSSASettingsHashtable ( IDictionary < string , Hashtable > ruleSettingsMap )
189
+ public static Hashtable GetPSSASettingsHashtable ( IDictionary < string , Hashtable > ruleSettingsMap )
190
190
{
191
191
var hashtable = new Hashtable ( ) ;
192
192
var ruleSettingsHashtable = new Hashtable ( ) ;
You can’t perform that action at this time.
0 commit comments