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

fix(vscode): repeat registration on reload #3005

Merged
merged 2 commits into from Aug 19, 2023

Conversation

Jannchie
Copy link
Contributor

@Jannchie Jannchie commented Aug 19, 2023

Resolved #2993, #3000, #3001. This is a bug I introduced in #2979. I mistakenly removed the code that initializes contextLoader.

And now, the contextLoader will not be created repeatedly. Only if the config is not found in the current working directory (cwd) -- it implies unocss is not installed -- a registration will be attempted.

@Jannchie Jannchie requested a review from antfu as a code owner August 19, 2023 14:50
@netlify
Copy link

netlify bot commented Aug 19, 2023

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit 1a6f451
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/64e0d972de62c5000822c4ad
😎 Deploy Preview https://deploy-preview-3005--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.

@antfu antfu changed the title fix: repeat registration on reload fix(vscode): repeat registration on reload Aug 19, 2023
@antfu antfu merged commit abacd5b into unocss:main Aug 19, 2023
10 checks passed
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.

vscode extension cannot init in vscode v1.81.1 with unocss-extension 0.55.1
2 participants