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

Only autocomplete matching types #31

Open
joehoyle opened this issue Mar 13, 2015 · 2 comments
Open

Only autocomplete matching types #31

joehoyle opened this issue Mar 13, 2015 · 2 comments

Comments

@joehoyle
Copy link

Given I have a function foo() that accepts a string, doing the below should only auto complete strings (or maybe there should atleast be an option to).

$bar = 123;
$foo = "123";

foo( $ ); // should only show a completion for $foo, as $bar is of type int

I tried to dig into the code to accomplish this - however I got pretty lost! It seems codeintel2 can resolve the type from a variable, for example, $a = new Query(); $a-> // will show completions from Query however in the case of autocompletions the autocompletions for current scope doesn't seem to return type information, hence the information at that point is lost.

@wizza-smile
Copy link
Contributor

This is a scalpel level suggestion. This plugin, while not being an axe, is more like a hatchet.

@ghost
Copy link

ghost commented Mar 22, 2015

👍 for the feature. Could you implements it @wizza-smile ?

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