I'm getting unwanted autocomplete suggestions and I'm not sure how to disable them.
Example of suggestions
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!
答案 0 :(得分:2)
RTCIceCandidatePairChangedEvent
是一种dom类型。默认情况下,JS和TS包含Dom输入建议,以及标准JavaScript库的类型。
要明确控制包含哪些类型,请创建一个设置lib
的{{3}}文件:
{
"compilerOptions": {
"lib": ["es6"]
}
}
以上配置意味着仅包含es6
标准库类型。 jsconfig.json