Vscode: Hide interface suggestion in intellisense

Created on 10 Mar 2017  路  13Comments  路  Source: microsoft/vscode

  • 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 :(

*as-designed javascript typescript

Most helpful comment

We're also working to improve this upstream on the TypeScript side: https://github.com/Microsoft/TypeScript/issues/15750

All 13 comments

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"
        ]
    }
}

omg thank you !

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

were you able to solve this issue @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

No i don't :(

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.

We're also working to improve this upstream on the TypeScript side: https://github.com/Microsoft/TypeScript/issues/15750

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

Should this have been fixed with #27899?

@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

Yes, working perfectly. Thanks for the update.

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

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

Was this page helpful?
0 / 5 - 0 ratings