Skip to content

Monorepo nested workspace folders issue #127

@hassanhe

Description

@hassanhe

Thanks for this great extension ✨

The Usecase

Working on a monorepo that has multiple packages inside, i usually open the root of the repo alongside some packages inside, as a multi-root workspace.

The Issue

The extension always picks the outermost workspace folder (the root) to run the server on it which results ignoring nested packages configurations although they are separate apps with seperate configs, right here :
https://github.com/bradlc/vscode-tailwindcss/blob/44131edd936272557548622e6751396b7b59b821/src/extension.ts#L172-L173

The Solution

  • Temporarily i excluded the root workspace folder and the extension works fine 👍🏼
  • I tried on finding the reason for selecting the outermost workspace folder as the convenient server folder, i couldn't (may you clarify please, thanks)
  • Am wondering if the convention of selecting the server folder would be The first folder having tailwind config file while searching up for the outer most workspace folder, i think this solution wouldn't break any current uses for the extention

Thanks.

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