Skip to content

Commit b4a4561

Browse files
committed
Emit logs when we use a fallback file watcher
1 parent 0610bf4 commit b4a4561

File tree

1 file changed

+8
-0
lines changed
  • packages/tailwindcss-language-server/src

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,10 @@ export class TW {
521521
}
522522
}
523523
} else if (parcel.getBinding()) {
524+
console.log(
525+
'[Global] Your LSP client does not support watching files on behalf of the server',
526+
)
527+
console.log('[Global] Using bundled file watcher: @parcel/watcher')
524528
let typeMap = {
525529
create: FileChangeType.Created,
526530
update: FileChangeType.Changed,
@@ -547,6 +551,10 @@ export class TW {
547551
},
548552
})
549553
} else {
554+
console.log(
555+
'[Global] Your LSP client does not support watching files on behalf of the server',
556+
)
557+
console.log('[Global] Using bundled file watcher: chokidar')
550558
let watch: typeof chokidar.watch = require('chokidar').watch
551559
let chokidarWatcher = watch(
552560
[`**/${CONFIG_GLOB}`, `**/${PACKAGE_LOCK_GLOB}`, `**/${CSS_GLOB}`, `**/${TSCONFIG_GLOB}`],

0 commit comments

Comments
 (0)