Skip to content

Hide interface suggestion in intellisense #22372

Closed

Description

  • VSCode Version: 1.10.2
  • OS Version: MacOs Sierra

Steps to Reproduce:

  • in javascript file :
    suggestions

Is there an existing option to hide all of this (never usefull) interfaces snippets ?
It completely foul my intellisense :(

Activity

  1. changed the title [-]Hide interface suggestion by default[/-] [+]Hide interface suggestion in intellisense[/+] on Mar 10, 2017
  2. added
    typescript
    on Mar 10, 2017
  3. added
    javascript
    *as-designed
    on Mar 10, 2017
  4. mjbvz commented on Mar 10, 2017

    @mjbvz
    Contributor

    All of the suggestions you are seeing are coming from the dom and many have associated instances. Instances are also used on their own for jsdocs typigns

    To disable dom intellisense, create a jsconfig.json with the content:

    {
        "compilerOptions": {
            "lib": [
                "es2015"
            ]
        }
    }
  5. DavidBabel commented on Mar 12, 2017

    @DavidBabel
    Author

    omg thank you !

  6. DavidBabel commented on Mar 13, 2017

    @DavidBabel
    Author

    Oh, this remove all methods from classic javascript too. Not usefull at all

  7. patrickxie commented on May 13, 2017

    @patrickxie

    were you able to solve this issue David Babel (@DavidBabel)? If so could you briefly state the solution to this problem? I am running into the same problems, would appreciate any kind of guidance. Thank you

  8. DavidBabel commented on May 14, 2017

    @DavidBabel
    Author

    No i don't :(

  9. james89 commented on May 15, 2017

    @james89

    Looking for a way to do the same thing, the 'interface' types are just clogging up the autosuggestion list :/ and I know I'll never use them.

  10. mjbvz commented on May 15, 2017

    @mjbvz
    Contributor

    We're also working to improve this upstream on the TypeScript side: microsoft/TypeScript#15750

  11. kczx3 commented on Nov 1, 2017

    @kczx3

    Being able to filter out certain types of Intellisense would be a welcome addition. I agree that the interfaces are just clutter.

  12. greggb commented on Nov 7, 2017

    @greggb

    Should this have been fixed with #27899?

  13. mjbvz commented on Nov 8, 2017

    @mjbvz
    Contributor

    Gregg B (@greggb) Yes we did end up implementing this with #27899. Please let me know if you are still seeing unexpected JavaScript intellisense suggestions in VS Code 1.18

  14. greggb commented on Nov 9, 2017

    @greggb

    Yes, working perfectly. Thanks for the update.

  15. greggb commented on Nov 9, 2017

    @greggb

    Actually, Matt Bierner (@mjbvz) I'm seeing flakiness with this feature. Files will occasionally still show me these suggestions. Should I open a new issue?

  16. mjbvz commented on Nov 9, 2017

    @mjbvz
    Contributor

    Gregg B (@greggb) Yes. Please include some sample code or a small example project that demonstrates the problem

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

Metadata

Metadata

Labels

*as-designedjavascripttypescript

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions