PowerShell / vscode-powershell

Provides PowerShell language and debugging support for Visual Studio Code
https://marketplace.visualstudio.com/items/ms-vscode.PowerShell
MIT License
1.69k stars 487 forks source link

Intellisense always starts at the common parameters instead of at the command parameters #3141

Closed JustinGrote closed 3 years ago

JustinGrote commented 3 years ago

System Details

System Details Output

### VSCode version: 1.53.0-insider 32b28f6f8f9dfe36efad102cc460e14a84ba756a x64

### VSCode extensions:
anseki.vscode-color@0.4.5
AwesomeAutomationTeam.azureautomation@1.0.2
bencoleman.armview@0.4.5
bierner.emojisense@0.8.0
bierner.markdown-checkbox@0.1.3
chrisdias.vscode-opennewinstance@0.0.7
CoenraadS.bracket-pair-colorizer-2@0.2.0
cschleiden.vscode-github-actions@0.13.0
DennisMaxJung.vscode-dotnet-auto-attach@1.1.1
eamodio.gitlens@11.1.3
fabianlauer.vs-code-xml-format@0.1.5
formulahendry.dotnet-test-explorer@0.7.5
Fudge.auto-using@0.7.15
GitHub.vscode-pull-request-github@0.22.0
golang.go@0.21.0
GrapeCity.gc-excelviewer@3.0.40
Gruntfuggly.todo-tree@0.0.196
GSGBen.fortigate-fortios-syntax@1.0.1
hbenl.vscode-test-explorer@2.19.5
hediet.vscode-drawio@1.2.0
humao.rest-client@0.24.4
Ionide.Ionide-fsharp@5.2.0
ironmansoftware.powershell-universal@1.7.4
johnpapa.vscode-peacock@3.9.1
karigari.chat@0.35.0
LouisWT.regexp-preview@0.1.5
mhutchie.git-graph@1.28.0
ms-azure-devops.azure-pipelines@1.183.0
ms-azuretools.vscode-azurefunctions@1.2.0
ms-azuretools.vscode-azurestorage@0.11.0
ms-azuretools.vscode-docker@1.9.1
ms-dotnettools.csharp@1.23.8
ms-dotnettools.vscode-dotnet-runtime@1.0.0
ms-vscode-remote.remote-containers@0.154.2
ms-vscode-remote.remote-ssh-edit-nightly@2021.1.26820
ms-vscode-remote.remote-ssh-nightly@2021.1.26820
ms-vscode-remote.remote-wsl@0.52.0
ms-vscode.azure-account@0.9.4
ms-vscode.js-debug-nightly@2021.1.817
ms-vscode.powershell-preview@2020.9.0
ms-vsliveshare.vsliveshare@1.0.3484
ms-vsliveshare.vsliveshare-audio@0.1.91
ms-vsonline.vsonline@1.0.3076
msazurermtools.azurerm-vscode-tools@0.14.0
oderwat.indent-rainbow@7.5.0
patcx.vscode-nuget-gallery@0.0.24
redhat.vscode-yaml@0.14.0
richie5um2.vscode-sort-json@1.19.2
slevesque.vscode-zipexplorer@0.3.1
SyncfusionInc.Blazor-VSCode-Extensions@18.4.30
tamasfe.even-better-toml@0.10.0
TylerLeonhardt.vscode-pester-test-adapter@0.0.19
usernamehw.errorlens@3.2.4
vscode-icons-team.vscode-icons@11.1.0
vsls-contrib.codetour@0.0.42
vsls-contrib.gistfs@0.2.1
vsls-contrib.gitdoc@0.0.6
vsls-contrib.spaces@0.1.2
Vtrois.gitmoji-vscode@1.0.4
wwm.better-align@1.1.6
yzhang.markdown-all-in-one@3.4.0

### PSES version: 2.3.0.0

### PowerShell version:

Name                           Value
----                           -----
PSVersion                      7.1.1
PSEdition                      Core
GitCommitId                    7.1.1
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Issue Description

Intellisense always starts at the common parameters, you have to "scroll up" to see your normal parameters Capture

Expected Behaviour

Should start at the top of the list

Actual Behaviour

Starts at "erroraction" in this example.

Attached Logs

Follow the instructions in the troubleshooting docs about capturing and sending logs.

PrzemyslawKlys commented 3 years ago

I can't reproduce it. What settings you have here?

image

What about others?

image

Maybe you have changed some defaults?

JustinGrote commented 3 years ago

This was a derp on my part, it was the RecentlyUsed setting, for some reason it seemed to persist to me but maybe I was just starting with erroraction by habit. Thanks for eyeballing @PrzemyslawKlys