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

Intellisense does not show up in a certain scenario on Ubuntu 21.10 #495

Closed
hunghvu opened this issue Feb 19, 2022 · 3 comments
Closed

Intellisense does not show up in a certain scenario on Ubuntu 21.10 #495

hunghvu opened this issue Feb 19, 2022 · 3 comments

Comments

@hunghvu
Copy link

hunghvu commented Feb 19, 2022

What version of Tailwind CSS IntelliSense are you using?

v0.7.7

What version of Tailwind CSS are you using?

v3.0.23

What package manager are you using?

npm

What operating system are you using?

Ubuntu 21.10

Reproduction URL

No existing codebase, I only install the extension to try out its features using a few lines of code. If a codebase is required, then it is a fresh install of NextJS and TailwindCSS.

Describe your issue

It seems an auto-complete panel does not show up in a certain scenario and can be seen in point (3) below. I also tried out in a fresh VM instance with a fresh VS Code installation (latest - v1.64.2), but the result is the same. It is not a deal-breaker but surely reduces user experience.

  1. The panel shows up if there is no closing quote.
    image
    image

  2. If there is a closing quote, there must be a space before a class name to make the panel shows up.
    image
    image

  3. If there is a closing quote, and no space before a class name, the panel does not show up.
    image
    image

  4. I did check for online examples, and point (3) should not happen.
    image
    An example is from this Youtube video

@hunghvu
Copy link
Author

hunghvu commented Feb 20, 2022

Update

I tried again with Windows 10, and it seems the bug is not there. Perhaps the issue is on VS Code - Ubuntu itself? However, I noticed another issue that might be related to the one above.

Another issue description

The autocomplete panel randomly disappears. It mostly happens when a non-existing class name is typed in. After the disappearance, it cannot be triggered again. The demonstration can be seen in the video below.

1.mp4

Expected behavior

I expect the autocomplete panel to reappear after a mistake in name is fixed. The example of that behavior can be seen in the video below. Note, this uses Python IntelliSense by Microsoft, and this is a normal behavior in several other plugins too.

2.mp4

@bradlc
Copy link
Contributor

bradlc commented Feb 21, 2022

Hey @hunghvu. I'm pretty sure this is due to how VS Code handles completions in "string" contexts. Setting editor.quickSuggestions.strings to true should improve this:

"editor.quickSuggestions": {
  "strings": true
}

@bradlc bradlc closed this as completed Feb 21, 2022
@hunghvu
Copy link
Author

hunghvu commented Feb 21, 2022

Hey @hunghvu. I'm pretty sure this is due to how VS Code handles completions in "string" contexts. Setting editor.quickSuggestions.strings to true should improve this:

"editor.quickSuggestions": {
  "strings": true
}

Great solution! It's still a bit glitchy as shown above but still, much better behavior than before. Anyway, I can certainly live with this.

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

No branches or pull requests

2 participants