Skip to content

Commit 660444f

Browse files
committed
Emit logs when we use a fallback file watcher
1 parent b7e06e3 commit 660444f

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
@@ -489,6 +489,10 @@ export class TW {
489489
}
490490
}
491491
} else if (parcel.getBinding()) {
492+
console.log(
493+
'[Global] Your LSP client does not support watching files on behalf of the server',
494+
)
495+
console.log('[Global] Using bundled file watcher: @parcel/watcher')
492496
let typeMap = {
493497
create: FileChangeType.Created,
494498
update: FileChangeType.Changed,
@@ -515,6 +519,10 @@ export class TW {
515519
},
516520
})
517521
} else {
522+
console.log(
523+
'[Global] Your LSP client does not support watching files on behalf of the server',
524+
)
525+
console.log('[Global] Using bundled file watcher: chokidar')
518526
let watch: typeof chokidar.watch = require('chokidar').watch
519527
let chokidarWatcher = watch(
520528
[`**/${CONFIG_GLOB}`, `**/${PACKAGE_LOCK_GLOB}`, `**/${CSS_GLOB}`, `**/${TSCONFIG_GLOB}`],

0 commit comments

Comments
 (0)