We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 282e084 + 0a6e5de commit f2c4bc5Copy full SHA for f2c4bc5
packages/tailwindcss-language-service/src/util/getLanguageBoundaries.ts
@@ -96,8 +96,10 @@ export function getLanguageBoundaries(
96
text: string = doc.getText()
97
): LanguageBoundary[] | null {
98
let cacheKey = `${doc.languageId}:${text}`
99
- if (cache.has(cacheKey)) {
100
- return cache.get(cacheKey)
+
+ let cachedBoundaries = cache.get(cacheKey)
101
+ if (cachedBoundaries !== undefined) {
102
+ return cachedBoundaries
103
}
104
105
let defaultType = isVueDoc(doc)
0 commit comments