Skip to content

fix(autocomplete): respect variant autocomplete template without mutipass#4891

Merged
zyyv merged 2 commits intomainfrom
autocomplete-template
Aug 20, 2025
Merged

fix(autocomplete): respect variant autocomplete template without mutipass#4891
zyyv merged 2 commits intomainfrom
autocomplete-template

Conversation

@zyyv
Copy link
Member

@zyyv zyyv commented Aug 20, 2025

I think autocomplete should fully parse the existing template, regardless of the internal logic.

@zyyv zyyv requested a review from antfu as a code owner August 20, 2025 05:49
@netlify
Copy link

netlify bot commented Aug 20, 2025

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit e7e763a
🔍 Latest deploy log https://app.netlify.com/projects/unocss/deploys/68a565aa9f2fdb000807a5ed
😎 Deploy Preview https://deploy-preview-4891--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 project configuration.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Aug 20, 2025

Open in StackBlitz

commit: e7e763a

})

it('should skip single-pass variants', async () => {
expect(await ac.suggest('dark:dar')).not.toContain('dark:')
Copy link
Member Author

Choose a reason for hiding this comment

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

I think there is no need to skip not mutipass variants. Such errors should be returned to the user themselves. We should provide them, and users can choose not to select them. Otherwise, all non-mutipass variant templates will become invalid.

@zyyv zyyv merged commit 3587ab9 into main Aug 20, 2025
12 checks passed
@zyyv zyyv deleted the autocomplete-template branch August 20, 2025 06:13
This was referenced Aug 31, 2025
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.

1 participant