Skip to content

Enable resolution of an alias to its function definition #1662

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
Jan 13, 2022

Conversation

andyleejordan
Copy link
Member

Two caveats:

  1. The alias must be set in the runspace, which means the script needs
    to have been executed.
  2. The definition is the function itself, not the Set-Alias command.

Resolves PowerShell/vscode-powershell#2800

Two caveats:

1. The alias must be set in the runspace, which means the script needs
   to have been executed.
2. The definition is the function itself, not the `Set-Alias` command.
@andyleejordan
Copy link
Member Author

FYI @PrzemyslawKlys

@PrzemyslawKlys
Copy link

@andschwa Thanks :-) I am closely monitoring your progress ;-)

Copy link
Member

@daxian-dbw daxian-dbw left a comment

Choose a reason for hiding this comment

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

LGTM

@andyleejordan andyleejordan merged commit f3d4bf2 into master Jan 13, 2022
@andyleejordan andyleejordan deleted the andschwa/get-definition-of-alias branch January 13, 2022 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Symbols and References Issue-Enhancement A feature request (enhancement).
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

References/Go To Definition Does not work with aliases
3 participants