fix: theme completion

This commit is contained in:
TravisTX 2021-02-05 21:26:42 -07:00 committed by Jan De Dobbeleer
parent ef6f7fc63c
commit 55fb04335e

View file

@ -123,7 +123,7 @@ function ThemeCompletion {
) )
$themes = Get-ChildItem -Path "$PSScriptRoot\themes\*" -Include '*.omp.json' | Sort-Object Name | Select-Object -Property @{ $themes = Get-ChildItem -Path "$PSScriptRoot\themes\*" -Include '*.omp.json' | Sort-Object Name | Select-Object -Property @{
label='BaseName' label='BaseName'
expression={$_.BaseName.TrimEnd(".omp")} expression={$_.BaseName.Replace('.omp', '')}
} }
$themes | $themes |
Where-Object { $_.BaseName.ToLower().StartsWith($wordToComplete.ToLower()); } | Where-Object { $_.BaseName.ToLower().StartsWith($wordToComplete.ToLower()); } |