lit-analyzer
lit-analyzer copied to clipboard
css does not support :has(~ and :has(+ syntax
This is newer but valid css, lit plugin does not accept it.
#362
this was solved in the dependency already: https://github.com/microsoft/vscode-css-languageservice/pull/279 Not sure how well this analyzer is still supported, but updating the dependencies would solve it in my understanding
Meanwhile I added an override to my package.json to overcome this:
"devDependencies": {
"ts-lit-plugin": "^2.0.2",
"typescript": "~5.5.3",
"vite": "^5.3.4"
},
"overrides": {
"ts-lit-plugin": {
"lit-analyzer": {
"vscode-css-languageservice": "latest"
}
}
}
make sure to remove your lock file, the node_modules and run npm install again.