You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[php] Ability to turn off PHP autocompletion by VSCode #9003
In it's known issues it says "There may be duplicate suggestions for functions or variables. This is because VS Code has it's own (very limited) code-completion support for PHP, and there is currently no way to turn this off."
This indeed is annoying, the vscode suggestions are too broad and are just noise compared to accurate entries by crane.
Reacted by James Kingsley, Felix Becker, Jens Hausdorf and Sebastian Holmqvist
I think crane still uses vscode's syntax highlighter for PHP. So if one were to remove VSCode's internal PHP extension, would it also remove the syntax highlighter?
P.S. I think simple options would suffice, e.g. "php.vscode.autocomplete", so it could be turned off.
Yes - but we can also think about splitting our extension into one part that does highlighting and bracket config and another that does completions. That would allow for more freedom.
VS Code has its own inferior completion. The only way to disable is going to the installation dir under resources/app/extensions/php/out/phpMain.js and commenting out the registration of the completionProvider.
P.S. I think the option would be a simplest thing to implement for now.
Also Felix Becker (@felixfbecker), just checking - at this point in time, is there anything else about the built-in support that is interfering with the experience? (hover, signature help, etc.?)
Sara Itani (@mousetraps) thanks for looking into this. Signature help is being implemented right now, iirc there is no built-in hover. It would be great if all of them could be disabled (everything except syntax highlighting).
I don't think the php.suggest.basic setting achieves the desired result. Setting php.suggest.basic to false I no longer get completion suggestions even from PHP Intellisense extension. If have to use Ctrl + space to trigger the completion suggestions list.
Activity
jrieken commentedon Jul 12, 2016
It should be possible to uninstall the VS Code php extension.
jrieken commentedon Jul 12, 2016
João Moreno (@joaomoreno) fyi
Ciantic commentedon Jul 12, 2016
I think crane still uses vscode's syntax highlighter for PHP. So if one were to remove VSCode's internal PHP extension, would it also remove the syntax highlighter?
P.S. I think simple options would suffice, e.g. "php.vscode.autocomplete", so it could be turned off.
jrieken commentedon Jul 12, 2016
Yes - but we can also think about splitting our extension into one part that does highlighting and bracket config and another that does completions. That would allow for more freedom.
[-]Ability to turn off PHP autocompletion by VSCode[/-][+][php] Ability to turn off PHP autocompletion by VSCode[/+]Ciantic commentedon Dec 8, 2016
This is now annoying the testing of proper language server in here : felixfbecker/php-language-server#165
Quote:
P.S. I think the option would be a simplest thing to implement for now.
felixfbecker commentedon Dec 8, 2016
Related #16586
felixfbecker commentedon Dec 24, 2016
Any update on this?
4 remaining items
microsoft#9003 Provide temporary option to disable the built-in PHP c…
mousetraps commentedon Jan 23, 2017
Also Felix Becker (@felixfbecker), just checking - at this point in time, is there anything else about the built-in support that is interfering with the experience? (hover, signature help, etc.?)
felixfbecker commentedon Jan 23, 2017
Sara Itani (@mousetraps) thanks for looking into this. Signature help is being implemented right now, iirc there is no built-in hover. It would be great if all of them could be disabled (everything except syntax highlighting).
Merge pull request #19015 from mousetraps/9003
aeschli commentedon Jan 23, 2017
I pushed the PR and changes the setting name for the code completion to "php.suggest.basic".
If disabled, hover and signature help are also disabled.
[php] setting to disable suggestions and hover (for #9003)
fix wording for #9003
ADmad commentedon Jan 26, 2017
I don't think the
php.suggest.basicsetting achieves the desired result. Settingphp.suggest.basictofalseI no longer get completion suggestions even from PHP Intellisense extension. If have to useCtrl + spaceto trigger the completion suggestions list.felixfbecker commentedon Jan 26, 2017
ADmad I don't think this is related, this only removes the built-in completion provider.
ADmad commentedon Jan 26, 2017
So something else which controls the display of suggestions list from extensions like php intellisense is broken?
aeschli commentedon Feb 3, 2017
Part of the January build.
Add
"php.suggest.basic": falseto your settings to disable all completions from the built-in PHP extension.