Skip to content
This repository has been archived by the owner on Jul 22, 2019. It is now read-only.

autocomplete suggestions order #371

Open
MartinP7r opened this issue Nov 25, 2017 · 5 comments
Open

autocomplete suggestions order #371

MartinP7r opened this issue Nov 25, 2017 · 5 comments

Comments

@MartinP7r
Copy link

Not sure if this is something to report here, but I'd prefer to see the class property suggestions on top, before all other suggestions.
Since I'm still using php.suggest.basic in order to see things like array_push getting suggested, writing $this-> does not show properties of the current class immediately without typing further.
is there a setting to change the order?

@nevadascout
Copy link
Member

The order of suggestions is defined by VS Code itself and last time I checked there isn't a way to re-order them (I really wish there was).

I've had the same frustration myself, but sadly I don't think I can fix it (yet)

@MartinP7r
Copy link
Author

😢 that's too bad. Thank you for looking into it!

@Kcko
Copy link

Kcko commented Jan 23, 2018

@cyrus86 you will solve it when you set php.suggest.basic=false
$this-> in object the methods and parameters are shown first in order.

see: screenshot

@MartinP7r
Copy link
Author

@Kcko please read the question completely before answering. I mentioned php.suggest.basic and why I prefer having it enabled.

@Kcko
Copy link

Kcko commented Jan 25, 2018

@cyrus86 no offense pls,

see: https://goo.gl/5y2whk (native methods are first when im trying to find some array php native functions)

see: https://goo.gl/REqGBz correct suggestions for object methods

with plugin from ben mawburn and directive php.suggest.basic=false (its recommended from author each php intelisense extension).

Or make as you think...

suggestion from @nevadascout is little buggy (i reported some things in previous issuses), but i believe that he will put it together :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants