Skip to content

Commit 837dc11

Browse files
committed
Add TODOs
1 parent 911a0ac commit 837dc11

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ export class TW {
329329
let needsRestart = false
330330
let needsSoftRestart = false
331331

332+
// TODO: This should use the server-level path matcher
332333
let isPackageMatcher = picomatch(`**/${PACKAGE_LOCK_GLOB}`, { dot: true })
333334
let isCssMatcher = picomatch(`**/${CSS_GLOB}`, { dot: true })
334335
let isConfigMatcher = picomatch(`**/${CONFIG_GLOB}`, { dot: true })
@@ -343,6 +344,7 @@ export class TW {
343344
normalizedFilename = normalizeDriveLetter(normalizedFilename)
344345

345346
for (let ignorePattern of ignore) {
347+
// TODO: This should use the server-level path matcher
346348
let isIgnored = picomatch(ignorePattern, { dot: true })
347349

348350
if (isIgnored(normalizedFilename)) {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default async function isExcluded(
2020
pattern = normalizePath(pattern)
2121
pattern = normalizeDriveLetter(pattern)
2222

23+
// TODO: This should use the server-level path matcher
2324
if (picomatch(pattern)(file)) {
2425
return true
2526
}

0 commit comments

Comments
 (0)