lit-analyzer icon indicating copy to clipboard operation
lit-analyzer copied to clipboard

css does not support :has(~ and :has(+ syntax

Open RoenLie opened this issue 1 year ago • 3 comments

This is newer but valid css, lit plugin does not accept it.

image

RoenLie avatar Jul 24 '23 20:07 RoenLie

#362

andrewgtibbetts avatar Aug 01 '24 12:08 andrewgtibbetts

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

itsmebasti avatar Sep 03 '24 23:09 itsmebasti

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.

itsmebasti avatar Sep 04 '24 00:09 itsmebasti