Skip to content

Tooltip show wrong information after about 2000 chars when using custom classRegex #844

Closed
@kermanx

Description

@kermanx

What version of VS Code are you using?

v1.18.1

What version of Tailwind CSS IntelliSense are you using?

v0.9.13

What version of Tailwind CSS are you using?

v3.3.3

What package manager are you using?

pnpm

What operating system are you using?

Windows

Tailwind config

/** @type {import('tailwindcss').Config} */
export default {
  content: [],
  theme: {
    extend: {},
  },
  plugins: [],
}

VS Code settings

{
  "editor.quickSuggestions": {
    "strings": "on"
  },
  "tailwindCSS.experimental.classRegex": [
    ["_.\\$cls`([\\s\\S]*?)`", "(\\S+)"]
  ]
}

Reproduction URL

https://github.com/KermanX/tailwindcss-intellisense-repro

Describe your issue

image

The char num 2000 sounds like it is the same with #837.
However, unlike #837, autocompletion is still working after 2000 chars.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions