You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Placing the UnoCSS configuration file outside of the project root directory breaks the VSCode IntelliSense. Based on the extension's output, it seems that the extension correctly finds and loads the configuration. Also, I'm using the CLI for generation and it seems to work correctly.
Reproduction
Move the UnoCSS configuration file from the project root /unocss.config.ts into a sub-directory, e.g., /foo/bar/unocss.config.ts
Point the extension to the configuration file by adding the following line in your VSCode settings.json: "unocss.root": "foo/bar"
Reload the editor (Close & Open VSCode, or F1 > Developer: Reload Window, or F1 > UnoCSS: Reload UnoCSS)
This happens to me too, the settings.json configuration seems to be recognized but the intellisense is not working until I move my config file to root and removed the settings.json property :/ this is a problem for monorepos
UnoCSS version
v0.55.2
Describe the bug
Placing the UnoCSS configuration file outside of the project root directory breaks the VSCode IntelliSense. Based on the extension's output, it seems that the extension correctly finds and loads the configuration. Also, I'm using the CLI for generation and it seems to work correctly.
Reproduction
/unocss.config.ts
into a sub-directory, e.g.,/foo/bar/unocss.config.ts
settings.json
:"unocss.root": "foo/bar"
Close & Open VSCode
, orF1 > Developer: Reload Window
, orF1 > UnoCSS: Reload UnoCSS
)System Info
No response
Validations
The text was updated successfully, but these errors were encountered: