vscode-powershell icon indicating copy to clipboard operation
vscode-powershell copied to clipboard

Ordering of completion suggestions

Open scotthardwick opened this issue 6 years ago • 4 comments

A question for the group:

I have both VSCode and VSCode Insiders here. The VSCode is very plain vanilla and just has the Powershell extension. My VSCode Insiders has quite a few extensions. (So the answer to my problem may well lie in a well-intentioned, but destructive extension).

When I am in VSCode and am typing a parameter, I can normally get a few letters in and hit tab. And my mind has become accustomed to doing this.

image

However, I primarily code in my VSCode Insiders and when I am typing parameters the "normal" powershell items are at the bottom of the list, so I will mindlessly hit tab and end up with a whole code block of a snippet placed in. Yikes.

image

Before I start trying to remove extensions one by one to troubleshoot this, I was curious if anyone else's VSCode Insiders had the list upside down like mine.

Thanks!

VSCode Version 1.49 PowerShell Preview 2020.9.0

VSCode Insiders Version 1..50 PowerShell Preview 2020.9.0

scotthardwick avatar Sep 25 '20 16:09 scotthardwick

Followup:

If I go in and uncheck the Show Snippets I can at least get back to work ;-) image

I notice that it is putting the "Switch" notation out to the side in a separate window now... hmmm image

scotthardwick avatar Sep 25 '20 17:09 scotthardwick

@scotthardwick you may like the setting:

"editor.snippetSuggestions":"boolean"

Which will force snippets to show up at the bottom of the list.

TylerLeonhardt avatar Sep 26 '20 05:09 TylerLeonhardt

The [switch] showing in a separate window can be toggled with ctrl+space while you have the intellisense item highlighted.

TylerLeonhardt avatar Sep 26 '20 05:09 TylerLeonhardt

WOW.... Thanks Tyler! That is just the information I needed! Have a fantastic weekend! Best

scotthardwick avatar Sep 26 '20 16:09 scotthardwick