Skip to content

Commit fc9a0e8

Browse files
committed
Fix #264: Variable and parameter IntelliSense broken in VS Code 1.4.0
In VS Code 1.4.0, the completion behavior has changed to require the use of the filterText field to ensure that completions which insert text not equal to the label field will get displayed. Since PowerShell often suggests completions with labels different than the actual insert string, this caused some completions to be broken. The fix is to put the value of the insertText field into the filterText field also.
1 parent d00ed40 commit fc9a0e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,7 @@ private static CompletionItem CreateCompletionItem(
11641164
Detail = detailString,
11651165
Documentation = documentationString,
11661166
SortText = sortText,
1167+
FilterText = completionDetails.CompletionText,
11671168
TextEdit = new TextEdit
11681169
{
11691170
NewText = completionDetails.CompletionText,

0 commit comments

Comments
 (0)