Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode Extension doesn't seem to work in Devcontainers #3106

Closed
4 tasks done
Dan6erbond opened this issue Sep 10, 2023 · 1 comment
Closed
4 tasks done

VSCode Extension doesn't seem to work in Devcontainers #3106

Dan6erbond opened this issue Sep 10, 2023 · 1 comment

Comments

@Dan6erbond
Copy link

Dan6erbond commented Sep 10, 2023

UnoCSS version

v0.55.6 (Unocss) / v0.55.7 (Extension)

Describe the bug

I am using the Unocss extension for VSCode with a monorepo project that I'm developing in Devcontainers. I'm using a Node.js based Devcontainer from Microsoft with the following Dockerfile:

FROM mcr.microsoft.com/devcontainers/javascript-node:1-20-bullseye

Since it's a monorepo, I also have the following .vscode/settings.json:

{
  "unocss.root": "client"
}

I also tried switching to multi-root workspaces to see if it would make any difference, to no avail, with the following config:

{
  "folders": [
    {
      "path": "."
    },
    {
      "path": "client"
    },
    {
      "path": "server"
    }
  ],
  "settings": {
    "unocss.root": [
      "client"
    ]
  }
}

Without the Devcontainer both configurations work. It's only in Devcontainers where Unocss isn't able to give me Intellisense or autocomplete. There's also no output in the extensions tab that seems suspicious.

Reproduction

Can't, this is a VSCode extension issue.

System Info

MacOS, VSCode latest, all updates installed.

Validations

@Simon-He95
Copy link
Contributor

I think this issue could be closed.

@antfu antfu closed this as completed Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants