Skip to content

fix(vscode): rootRegisterAuto broken#3337

Merged
antfu merged 2 commits intounocss:mainfrom
Simon-He95:vscode
Nov 15, 2023
Merged

fix(vscode): rootRegisterAuto broken#3337
antfu merged 2 commits intounocss:mainfrom
Simon-He95:vscode

Conversation

@Simon-He95
Copy link
Member

No description provided.

@netlify
Copy link

netlify bot commented Nov 15, 2023

Deploy Preview for unocss ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit e4565ee
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/6554d4ab4218270008e7eda2
😎 Deploy Preview https://deploy-preview-3337--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Simon-He95 Simon-He95 marked this pull request as ready for review November 15, 2023 08:21
@Simon-He95 Simon-He95 requested a review from antfu as a code owner November 15, 2023 08:21
const ctx = (Array.isArray(root) && root.length)
? await rootRegisterManual(ext, root, projectPath, status)
: await rootRegisterAuto(ext, typeof root === 'string' ? root : projectPath, config, status)
: await rootRegisterAuto(ext, typeof root === 'string' ? root : projectPath, config, status, projectPath)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we resolve root in the second argument directly?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

@Simon-He95
Copy link
Member Author

Simon-He95 commented Nov 15, 2023

I think rootRegisterManual and rootRegisterAuto seem to be merged into one. I will open a new pr to reconstruct them later.

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

Successfully merging this pull request may close these issues.

2 participants