Skip to content

Autocompletion not triggered when comment has single quote #1200

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

Closed
smhmd opened this issue Feb 12, 2025 · 2 comments · Fixed by #1202
Closed

Autocompletion not triggered when comment has single quote #1200

smhmd opened this issue Feb 12, 2025 · 2 comments · Fixed by #1202
Assignees
Labels
bug Something isn't working

Comments

@smhmd
Copy link

smhmd commented Feb 12, 2025

It seems having a quotation mark in a comment before the class name string (That's) makes TW autocomplete not trigger.

Code:

import clsx from 'clsx'

export function Component() {
  return (
    <div
      className={clsx(
        // That's great!
        'flex',
      )}
    />
  )
}

Expected vs actual behavior:
Image
Image

@thecrypticace thecrypticace self-assigned this Feb 13, 2025
@thecrypticace
Copy link
Contributor

Huh. This is a fun bug 🐛

Will look into it!

@thecrypticace
Copy link
Contributor

This will be fixed in the next release (probably gonna be next week when its out)

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

Successfully merging a pull request may close this issue.

2 participants