Skip to content

AutoComplete does not works with Wordpress or custom functions or class methods. #309

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

Closed
codewp opened this issue Feb 19, 2017 · 7 comments

Comments

@codewp
Copy link

codewp commented Feb 19, 2017

Hi, and thank you for this project.

Is it possible to make this extension works with Wordpress functions and class methods or custom functions and custom class methods?

Because when I use $this-> in my own custom class it can not show me class methods, also it can not shows method parameters.

Best Regards.

@felixfbecker
Copy link
Owner

Please clarify. Autocomplete does work for custom functions and class methods. What exact code does not give you expected suggestions?

@codewp
Copy link
Author

codewp commented Feb 19, 2017

Please look at these examples.

For Wordpress you can test it with wp_enqueue_script function of Wordpress.

autocomplete-test-1
autocomplete-test-2
autocomplete-test-3
autocomplete-test-4
autocomplete-test-5

As you can see for str_replace autocomplete works well, but for test class methods it suggests unrelated methods. Also it can't show parameters information of custom functions write like str_replace. example.

In image 2 after $this-> it suggests unrelated functions too.

@felixfbecker
Copy link
Owner

That is VS Code's built-in autocompletion, which you should disable as explained in the readme
In the future please paste the code instead of screenshots ;)

@codewp
Copy link
Author

codewp commented Feb 19, 2017

I used ctrl+space to showing that autocomplete.
I used "editor.quickSuggestions": false to disabling VS Code built in autocomplete but it can't help.
So please let me know can this extension works with custom codes like above and Wordpress functions?

Best Regards.

@felixfbecker
Copy link
Owner

https://github.com/felixfbecker/vscode-php-intellisense#installation

@codewp
Copy link
Author

codewp commented Feb 19, 2017

Thanks.

When I disabled VS Code built in suggestion it can not shows php functions parameters information too like in image 1, so it seems that, that feature was built in feature of VS Code and does not relates to this extension.

Do you have any plan for supporting this feature image 1 in this extension for custom codes and Wordpress?

@felixfbecker
Copy link
Owner

That is signature help, which is not supported atm #18

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