Exclude `*` from class completions

master
Brad Cornes 2021-12-06 16:06:30 +00:00
parent 80336ae320
commit f5006a8ff2
1 changed files with 6 additions and 3 deletions

View File

@ -876,7 +876,10 @@ async function createProjectService(
state.jitContext = state.modules.jit.createContext.module(state) state.jitContext = state.modules.jit.createContext.module(state)
state.jitContext.tailwindConfig.separator = state.config.separator state.jitContext.tailwindConfig.separator = state.config.separator
if (state.jitContext.getClassList) { if (state.jitContext.getClassList) {
state.classList = state.jitContext.getClassList().map((className) => { state.classList = state.jitContext
.getClassList()
.filter((className) => className !== '*')
.map((className) => {
return [className, { color: getColor(state, className) }] return [className, { color: getColor(state, className) }]
}) })
} }