Skip to content

Commit 8fb56b4

Browse files
author
Kapil Borle
committed
Fix argument completer for settings parameter
1 parent 33bb0a9 commit 8fb56b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Engine/PSScriptAnalyzer.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if (Get-Command Register-ArgumentCompleter -ErrorAction Ignore)
3535
param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParmeter)
3636

3737
[Microsoft.Windows.PowerShell.ScriptAnalyzer.Helper]::GetSettingPresets() | `
38-
Where-Object {$_ -like "$wordToComplete"} | `
38+
Where-Object {$_ -like "$wordToComplete*"} | `
3939
ForEach-Object { New-Object System.Management.Automation.CompletionResult $_ }
4040
}
4141

0 commit comments

Comments
 (0)