File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
PowerShellEditorServices.Protocol/Server
PowerShellEditorServices/Analysis Expand file tree Collapse file tree 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(
309309 {
310310 var markers = await editorSession . AnalysisService . GetSemanticMarkersAsync (
311311 editorSession . Workspace . GetFile ( requestParams . fileUri ) ,
312- editorSession . AnalysisService . GetPSSASettingsHashtable ( requestParams . settings ) ) ;
312+ AnalysisService . GetPSSASettingsHashtable ( requestParams . settings ) ) ;
313313 await requestContext . SendResult ( new ScriptFileMarkerRequestResultParams
314314 {
315315 markers = markers
@@ -1097,7 +1097,7 @@ protected async Task HandleCommentHelpRequest(
10971097 ruleSettings . Add ( "VSCodeSnippetCorrection" , true ) ;
10981098 ruleSettings . Add ( "Placement" , "before" ) ;
10991099 settings . Add ( "PSProvideCommentHelp" , ruleSettings ) ;
1100- var pssaSettings = EditorSession . AnalysisService . GetPSSASettingsHashtable ( settings ) ;
1100+ var pssaSettings = AnalysisService . GetPSSASettingsHashtable ( settings ) ;
11011101
11021102 // todo create a semantic marker api that take only string
11031103 var analysisResults = await EditorSession . AnalysisService . GetSemanticMarkersAsync (
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ public IEnumerable<string> GetPSScriptAnalyzerRules()
186186 /// </summary>
187187 /// <param name="ruleSettingsMap">A settings hashtable</param>
188188 /// <returns></returns>
189- public Hashtable GetPSSASettingsHashtable ( IDictionary < string , Hashtable > ruleSettingsMap )
189+ public static Hashtable GetPSSASettingsHashtable ( IDictionary < string , Hashtable > ruleSettingsMap )
190190 {
191191 var hashtable = new Hashtable ( ) ;
192192 var ruleSettingsHashtable = new Hashtable ( ) ;
You can’t perform that action at this time.
0 commit comments