Skip to content

Commit 75ebf04

Browse files
committed
Only resolve stylesheet versions once
1 parent 23dc770 commit 75ebf04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ class FileEntry {
729729
* Determine which Tailwind versions this file might be using
730730
*/
731731
async resolvePossibleVersions() {
732-
this.meta = this.content ? analyzeStylesheet(this.content) : null
732+
this.meta ??= this.content ? analyzeStylesheet(this.content) : null
733733
}
734734

735735
/**

0 commit comments

Comments
 (0)