2
我有一個非常簡單的'jsconfig.json'來爲我的* .js和* .html(< script>)文件提供intellisense。VSCode jsconfig.json無法提供intellisense
'common.js'中的ES6部分工作正常,但「script1.js」,「lib/lib1.js」中的代碼無法被編輯器識別。
似乎intellisense沒有啓用HTML內的腳本?有沒有辦法檢查/解決這個問題?
這裏是我的jsconfig.json的副本,HTML腳本塊
{
"compilerOptions":
{
"target": "es6",
"module": "commonjs",
"experimentalDecorators" : true,
"allowSyntheticDefaultImports": true
},
"files": [ "script1.js", "lib/lib1.js" ],
"exclude": [ "node_modules" ]
}
任何解決方案呢? –