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

Pug class literal underline range incorrect #1767

Closed
johnsoncodehk opened this issue Aug 26, 2022 · 2 comments · Fixed by #4652
Closed

Pug class literal underline range incorrect #1767

johnsoncodehk opened this issue Aug 26, 2022 · 2 comments · Fixed by #4652
Labels
bug Something isn't working 🍰 p2-nice-to-have

Comments

@johnsoncodehk
Copy link
Member

<template lang="pug">
.foo
^^^
</template>

<style scoped>
.foo {}
</style>
@johnsoncodehk johnsoncodehk added the bug Something isn't working label Aug 26, 2022
@dnomak
Copy link

dnomak commented Jan 7, 2023

is it possible to disable with "volar.codeLens.references": false?

@KermanX
Copy link
Collaborator

KermanX commented Jul 31, 2024

I debugged for some time, but still can't fix this. Here are some findings:

It seems that all classes are mapped based on the start of the document, instead of the start of the element. I checked the generated AST of the Pug parser, which looks right. And the logic in baseParse in volar-service-pug also seems right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🍰 p2-nice-to-have
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants