我的所有文件仅在 VS Code 中显示 css 语法错误 - 特别是在 JavaScript/TypeScript 文件中的
import
语句中。
我该怎么做才能解决这个问题?它不影响代码的执行。光是看着就很烦人。
我尝试禁用所有扩展并重新启动,但它不起作用。
似乎很多人过去都遇到过这种情况(请参阅https://github.com/stylelint/vscode-stylelint/issues/397),对于他们中的许多人来说,卸载除 之外的所有 stylelint 扩展官方的(
stylelint.vscode-stylelint
)解决了这个问题(source)。