Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/tailwindcss-language-server/src/lib/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const CONFIG_GLOB = '{tailwind,tailwind.config,tailwind.*.config,tailwind.config.*}.{js,cjs}'
export const PACKAGE_LOCK_GLOB = '{package-lock.json,yarn.lock,pnpm-lock.yaml}'
export const CSS_GLOB = '*.{css,scss,sass,less,pcss}'
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,3 @@ export function clearDiagnostics(state: State, document: TextDocument): void {
diagnostics: [],
})
}

export function clearAllDiagnostics(state: State): void {
state.editor?.documents.all().forEach((document) => {
clearDiagnostics(state, document)
})
}

export function updateAllDiagnostics(state: State): void {
state.editor?.documents.all().forEach((document) => {
provideDiagnostics(state, document)
})
}
Loading