Skip to content

Commit 1cdfd75

Browse files
authored
Fix comment-based help snippet (#726)
1 parent df57cb6 commit 1cdfd75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1125,8 +1125,8 @@ protected async Task HandleCommentHelpRequest(
11251125
helpLocation));
11261126

11271127
var help = analysisResults?.FirstOrDefault()?.Correction?.Edits[0].Text;
1128-
result.Content = help != null
1129-
? (lines ?? ScriptFile.GetLines(funcText)).ToArray()
1128+
result.Content = help != null
1129+
? (lines ?? ScriptFile.GetLines(help)).ToArray()
11301130
: null;
11311131

11321132
if (helpLocation != null &&

0 commit comments

Comments
 (0)