Skip to content

Extension does not load in a multi-root workspace if the project folder is excluded in a different root #615

Closed
@michaelschufi

Description

@michaelschufi

What version of Tailwind CSS IntelliSense are you using?

0.8.7

What version of Tailwind CSS are you using?

3.1.7

What package manager are you using?

pnpm

What operating system are you using?

Linux Ubuntu 20.04 in WSL2 on Windows 10

Reproduction URL

https://github.com/michaelschufi/temp-twcss

Describe your issue

  1. Clone the repo.
  2. Open the VS Code workspace using the temp-twcss.code-workspace in the root of the repo.
  3. Go to website/pages/index.tsx:16 and try to get suggestions from TailwindCSS Intellisense. It will not work.
  4. Comment out the file exclusion rule ("website/**": true) at temp-twcss/.vscode/settings.json:4.
  5. Go to website/pages/index.tsx:16 and try to get suggestions from TailwindCSS Intellisense. It will work.

I expect the extension to work, since I open a file in the root website and not in the temp-twcss.

I also tried with tailwindCSS.experimental.configFile but this setting does not work at all in multi-root workspaces.

Note: Opening the folder website as a new VS Code window works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions