Skip to content

[php] Ability to turn off PHP autocompletion by VSCode #9003

Closed

Description

@Ciantic

There is now a better Intellisense plugins for Vscode PHP: vscode-php-intellisense and crane.

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.

Activity

  1. jrieken commented on Jul 12, 2016

    @jrieken
    Contributor

    It should be possible to uninstall the VS Code php extension.

  2. added
    feature-request
    on Jul 12, 2016
  3. jrieken commented on Jul 12, 2016

    @jrieken
    Contributor
  4. Ciantic commented on Jul 12, 2016

    @Ciantic
    Author

    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.

  5. jrieken commented on Jul 12, 2016

    @jrieken
    Contributor

    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.

  6. changed the title [-]Ability to turn off PHP autocompletion by VSCode[/-] [+][php] Ability to turn off PHP autocompletion by VSCode[/+] on Aug 29, 2016
  7. Ciantic commented on Dec 8, 2016

    @Ciantic
    Author

    This is now annoying the testing of proper language server in here : felixfbecker/php-language-server#165

    Quote:

    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.

  8. felixfbecker commented on Dec 8, 2016

    @felixfbecker
    Contributor

    Related #16586

  9. felixfbecker commented on Dec 24, 2016

    @felixfbecker
    Contributor

    Any update on this?

  10. 4 remaining items

  11. added a commit that references this issue on Jan 23, 2017
  12. mousetraps commented on Jan 23, 2017

    @mousetraps
    Contributor

    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.?)

  13. felixfbecker commented on Jan 23, 2017

    @felixfbecker
    Contributor

    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).

  14. added a commit that references this issue on Jan 23, 2017
  15. aeschli commented on Jan 23, 2017

    @aeschli
    Contributor

    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.

  16. ADmad commented on Jan 26, 2017

    @ADmad

    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.

  17. felixfbecker commented on Jan 26, 2017

    @felixfbecker
    Contributor

    ADmad I don't think this is related, this only removes the built-in completion provider.

  18. ADmad commented on Jan 26, 2017

    @ADmad

    So something else which controls the display of suggestions list from extensions like php intellisense is broken?

  19. aeschli commented on Feb 3, 2017

    @aeschli
    Contributor

    Part of the January build.
    Add
    "php.suggest.basic": false
    to your settings to disable all completions from the built-in PHP extension.

  20. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestphp

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions