Show completions when using parameterized and/or labelled variants
parent
72569b00dd
commit
d073bb9de6
|
@ -14,8 +14,8 @@ export function getVariantsFromClassName(
|
||||||
if (
|
if (
|
||||||
allVariants.includes(part) ||
|
allVariants.includes(part) ||
|
||||||
(state.jit &&
|
(state.jit &&
|
||||||
part.startsWith('[') &&
|
((part.includes('[') && part.endsWith(']')) ||
|
||||||
part.endsWith(']') &&
|
(part.includes('<') && part.includes('>'))) &&
|
||||||
jit.generateRules(state, [`${part}${state.separator}[color:red]`]).rules.length > 0)
|
jit.generateRules(state, [`${part}${state.separator}[color:red]`]).rules.length > 0)
|
||||||
) {
|
) {
|
||||||
variants.add(part)
|
variants.add(part)
|
||||||
|
|
Loading…
Reference in New Issue