Unwanted autocomplete suggestions

时间:2017-08-05 11:44:07

标签: visual-studio-code

I'm getting unwanted autocomplete suggestions and I'm not sure how to disable them.

Example of suggestions

enter image description here

Path of which the suggestions are pulled

C:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\lib.es6.d.ts

settings.json (part)

  "files.exclude": {
    "/**/node_modules": true,
    "/**/bower_components": true,
    "**/.git": true,
    "**/.svn": true,
    "**/.hg": true,
    "**/CVS": true,
    "**/.DS_Store": true,
    ".vscode": true
  },

Any ideas to disable this would be awesome!

1 个答案:

答案 0 :(得分:2)

RTCIceCandidatePairChangedEvent是一种dom类型。默认情况下,JS和TS包含Dom输入建议,以及标准JavaScript库的类型。

要明确控制包含哪些类型,请创建一个设置lib的{​​{3}}文件:

{
    "compilerOptions": { 
        "lib": ["es6"]
     }
} 

以上配置意味着仅包含es6标准库类型。 jsconfig.json