You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched all issues to ensure it has not already been requested.
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
Summary
It appears that it does not provide prompt for parameter aliases such as -Target as an alias for -Value in New-Item command.
The completion values comes from PowerShell itself and it intentionally leaves out parameter aliases if the real parameter is available in the completion result list. If you type in New-Item -T<Tab> you should get Target as one of the available options.
The idea behind this design is simple: It declutters the completion result list and it encourages the use of the real parameter names. Why do you want to use the alias over the real value?
I just think it should be available anyway. Sometimes alias is more readable such as when you create a symlink with -Target instead of -Value. And I wonder how could I do -T<Tab> in neovim, is it builtin for vscode extension or ISE? I'm not familiar with lsp, I guess it should be a trigger character or something?
<Tab> represents hitting the tab key to tab complete the text. So whatever method you use to trigger completions in neovim should be triggered after you've typed -T.
Activity
MartinGC94 commentedon Dec 21, 2024
The completion values comes from PowerShell itself and it intentionally leaves out parameter aliases if the real parameter is available in the completion result list. If you type in
New-Item -T<Tab>
you should getTarget
as one of the available options.The idea behind this design is simple: It declutters the completion result list and it encourages the use of the real parameter names. Why do you want to use the alias over the real value?
sharpchen commentedon Dec 21, 2024
I just think it should be available anyway. Sometimes alias is more readable such as when you create a symlink with
-Target
instead of-Value
. And I wonder how could I do-T<Tab>
in neovim, is it builtin for vscode extension or ISE? I'm not familiar with lsp, I guess it should be a trigger character or something?MartinGC94 commentedon Dec 21, 2024
<Tab>
represents hitting the tab key to tab complete the text. So whatever method you use to trigger completions in neovim should be triggered after you've typed-T
.sharpchen commentedon Dec 21, 2024
Yeah, there's no
-Target
in the list when after-T
so I thought maybe I missed somethingMartinGC94 commentedon Dec 21, 2024
Most likely the completion request is triggered by neovim when you type
-
and then it filters the results locally, which would give you this: