Skip to content

replace sort with sort-object #619

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 3, 2018

Conversation

TylerLeonhardt
Copy link
Member

For some reason, on macOS Sort did not exist.

I switched it to Sort-Object which is universal and not an alias.

It's a shame we can't run PSSA on our script strings in the c# of PSES :) No aliases allowed!

Resolves PowerShell/vscode-powershell#1185

Copy link
Contributor

@rkeithhill rkeithhill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sort alias is not created on Linux (and apparently macOS) because there is a built-in sort utility that can't deal with PowerShell pipeline objects. So yeah, Sort-Object is what we want. We need to make sure we don't use any aliases in PS script - even the script embedded in our C# code.

@TylerLeonhardt TylerLeonhardt merged commit 697f8b0 into PowerShell:master Feb 3, 2018
@TylerLeonhardt TylerLeonhardt deleted the sort-object branch February 3, 2018 06:14
TylerLeonhardt pushed a commit to TylerLeonhardt/PowerShellEditorServices that referenced this pull request Feb 26, 2019
This change adds new behavior which causes VS Code's debugger UI to be
activated when a breakpoint is hit in the Integrated Console while not
currently in debug mode.  This allows the user to set breakpoints and
run scripts from the console while still leveraging VS Code's rich
debugging UI.

Resolves PowerShell#619.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants