Skip to content
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

Improve tab-completion for generic types #52

Open
mklement0 opened this issue Oct 21, 2023 · 2 comments
Open

Improve tab-completion for generic types #52

mklement0 opened this issue Oct 21, 2023 · 2 comments

Comments

@mklement0
Copy link

mklement0 commented Oct 21, 2023

First things first: Great module, thanks for sharing.

When you tab-complete a generic type, the ` characters don't get escaped, which means that the completed results cannot be used as-is; e.g.:

# Select 'List[1]' for completion
Find-Type List<tab>

This yields Find-Type List`1, which does not work, because the ` needs escaping (Find-Type List``1)

Similarly, neither Find-Type List`<tab> nor Find-Type List[<tab> result in a completion.

@SeeminglyScience
Copy link
Owner

Thank you! (sorry for the late reply, notifications are a mess)

Yep definitely agree. At some point I thought I had it set up to complete to List[any] (which does work as the name is parsed like a type signature but I guess I never actually added that. Will do though

@SeeminglyScience
Copy link
Owner

SeeminglyScience commented Jan 17, 2024

Ah, it works for parameters that accept a signature like Find-Member's ParameterType, but I should also rig it to work with Name I think. Little bit tricker since it's not actually resolvable without the namespace

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

No branches or pull requests

2 participants