[英]VS Code, typings - no IntelliSense
我有一個具有以下(縮短的)結構的項目。
.
├── app
│ ├── app.css
│ ├── app.js
│ └── home
│ ├── home.css
│ ├── home.html
│ └── home.js
├── jsconfig.json
├── package.json
├── tsconfig.json
├── typings
│ ├── globals
│ │ ├── jquery
│ │ │ ├── index.d.ts
│ │ │ └── typings.json
│ │ └── office-js
│ │ ├── index.d.ts
│ │ └── typings.json
│ └── index.d.ts
└── typings.json
如您所見,我已經初始化並安裝了該項目的類型。
但是,VS Code無法識別IntelliSense的* .d.ts文件。
所以我沒有得到正確的代碼完成,快速信息等。
tsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "commonjs"
},
"files": [
"typings/index.d.ts"
]
}
jsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "commonjs"
},
"exclude": [
"node_modules"
]
}
我已經閱讀了有關此主題的所有相關博客和問題,但沒有遇到有效的解決方案。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.