Skip to content

Commit 57164b3

Browse files
Kapil Borledaviwil
authored andcommitted
Add option for comment style in comment help
1 parent b3c1859 commit 57164b3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/PowerShellEditorServices.Protocol/LanguageServer/CommentHelpRequest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public class CommentHelpRequestParams
2222
{
2323
public string DocumentUri { get; set; }
2424
public Position TriggerPosition { get; set; }
25+
public bool BlockComment { get; set; }
2526
}
2627
}
2728

src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,7 @@ protected async Task HandleCommentHelpRequest(
10961096
var ruleSettings = new Hashtable();
10971097
ruleSettings.Add("ExportedOnly", false);
10981098
ruleSettings.Add("Enable", true);
1099+
ruleSettings.Add("BlockComment", requestParams.BlockComment);
10991100
settings.Add("PSProvideCommentHelp", ruleSettings);
11001101
var pssaSettings = EditorSession.AnalysisService.GetPSSASettingsHashtable(settings);
11011102

0 commit comments

Comments
 (0)