Tarrowren / css-class-intellisense

css class 智能提示
MIT License
5 stars 1 forks source link

[error] Error: Wrong languageId #23

Open drago1520 opened 22 hours ago

drago1520 commented 22 hours ago

Hello,

Problem

I am always getting [error] Error: Wrong [error] Error: Wrong languageId Error when trying to use the extention. I get intellisense only in the css file and ONLY for classes.

Configuration

  1. Typescript (.tsx)
  2. React + Vite
  3. Windows
  4. Latest VS code
  5. Latest version of extention

tsconfig.js

{ "files": [], "references": [ { "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" } ], "compilerOptions": { "baseUrl": ".", "paths": { "@/*": ["./src/*"] } }, }

tsconfig.app.json

`{ "compilerOptions": { "baseUrl": ".", "paths": { "@/": ["./src/"] }, "target": "ES2020", "useDefineForClassFields": true, "lib": ["ES2020", "DOM", "DOM.Iterable"], "module": "ESNext", "skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,
"jsx": "react-jsx",

/* Linting */
"strict": false,
"noFallthroughCasesInSwitch": true,
"allowJs": true,                                     /* Allow JavaScript files to be a part of your program. */

}, "include": ["src/*/"], } `

tsconfig.node.json

`{ "compilerOptions": { "target": "ES2022", "lib": ["ES2023"], "module": "ESNext", "skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,

/* Linting */
"strict": false,

}, "include": ["vite.config.ts"], } `

Tarrowren commented 21 hours ago

I tried it and didn't find a problem. image Can you provide provide a minimal code example repo?