Skip to content

Commit f5006a8

Browse files
committed
Exclude * from class completions
1 parent 80336ae commit f5006a8

File tree

1 file changed

+6
-3
lines changed
  • packages/tailwindcss-language-server/src

1 file changed

+6
-3
lines changed

packages/tailwindcss-language-server/src/server.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -876,9 +876,12 @@ async function createProjectService(
876876
state.jitContext = state.modules.jit.createContext.module(state)
877877
state.jitContext.tailwindConfig.separator = state.config.separator
878878
if (state.jitContext.getClassList) {
879-
state.classList = state.jitContext.getClassList().map((className) => {
880-
return [className, { color: getColor(state, className) }]
881-
})
879+
state.classList = state.jitContext
880+
.getClassList()
881+
.filter((className) => className !== '*')
882+
.map((className) => {
883+
return [className, { color: getColor(state, className) }]
884+
})
882885
}
883886
} else {
884887
delete state.jitContext

0 commit comments

Comments
 (0)