Skip to content

Commit 697f8b0

Browse files
Merge pull request #619 from tylerl0706/sort-object
replace sort with sort-object
2 parents 38c1450 + ace2a4a commit 697f8b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ function __Expand-Alias {
419419
[ref]$errors=$null
420420
421421
$tokens = [System.Management.Automation.PsParser]::Tokenize($targetScript, $errors).Where({$_.type -eq 'command'}) |
422-
Sort Start -Descending
422+
Sort-Object Start -Descending
423423
424424
foreach ($token in $tokens) {
425425
$definition=(Get-Command ('`'+$token.Content) -CommandType Alias -ErrorAction SilentlyContinue).Definition

0 commit comments

Comments
 (0)