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): autocomplete for css #1118
Conversation
✅ Deploy Preview for unocss ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
Hi, thanks for the contribution. I think the changed condition is still the same, and css-like files actually have context cache. unocss/packages/vscode/src/contextLoader.ts Lines 235 to 238 in 1097c5b
What's the problem with the current implementation? After fixing #1119 I don't see any issue on my side. |
The changed Conditional isn't totally same as before. |
I think... AutoComplete will still work since The current logic before change basically is:
EDIT: Oh I know, css-like files which have a context but don't pass the filter will not be resolved. |
it will cause another issue.
Actually, the context of css-like file is |
yeah, it's a real issue(see #985). By the way, i don't know why the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, it's ok.
If resolveClosestContext
could be called only when needed then it would be better. It's not that expensive tho.
cdb2e97
to
2fd05d3
Compare
Can you help resolve the conflicts? Thanks |
Ok, just a minute. |
…ache of css-like file
2fd05d3
to
01fa3ec
Compare
Done. |
motivation
support prompt of autocomplete and annotation for css file as before.
cc @QiroNT