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): show suggestions in postcss files #2240

Merged
merged 1 commit into from Feb 23, 2023
Merged

Conversation

sibbng
Copy link
Member

@sibbng sibbng commented Feb 23, 2023

No description provided.

@sibbng sibbng requested a review from antfu as a code owner February 23, 2023 11:35
@netlify
Copy link

netlify bot commented Feb 23, 2023

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit fcc8a89
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/63f74f9a49b0e10008a027e3
😎 Deploy Preview https://deploy-preview-2240--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 settings.

@@ -98,7 +98,7 @@ export function getMatchedPositions(code: string, matched: string[], hasVariantG

// highlight for plain classes
let start = 0
code.split(/([\s"'`;<>]|:\(|\)"|\)\s)/g).forEach((i) => {
code.split(/([\s"'`;<>*]|:\(|\)"|\)\s)/g).forEach((i) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is fixing the highlighting of classes if @unocss-include is provided in multiline comment syntax:

/* @unocss-include */
@screen at-xs { 
  .class {
    display: flex;
    overflow: hidden;
    @apply flex-col-reverse;
  }
}

@antfu antfu merged commit 0e21aa7 into main Feb 23, 2023
@antfu antfu deleted the fix/vscode-postcss branch February 23, 2023 14:01
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.

None yet

2 participants