Skip to content

Commit 4ae74cc

Browse files
committed
Emit logs when we use a fallback file watcher
1 parent 7a4f8d5 commit 4ae74cc

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
@@ -465,6 +465,10 @@ export class TW {
465465
}
466466
}
467467
} else if (parcel.getBinding()) {
468+
console.log(
469+
'[Global] Your LSP client does not support watching files on behalf of the server',
470+
)
471+
console.log('[Global] Using bundled file watcher: @parcel/watcher')
468472
let typeMap = {
469473
create: FileChangeType.Created,
470474
update: FileChangeType.Changed,
@@ -491,6 +495,10 @@ export class TW {
491495
},
492496
})
493497
} else {
498+
console.log(
499+
'[Global] Your LSP client does not support watching files on behalf of the server',
500+
)
501+
console.log('[Global] Using bundled file watcher: chokidar')
494502
let watch: typeof chokidar.watch = require('chokidar').watch
495503
let chokidarWatcher = watch(
496504
[`**/${CONFIG_GLOB}`, `**/${PACKAGE_LOCK_GLOB}`, `**/${CSS_GLOB}`, `**/${TSCONFIG_GLOB}`],

0 commit comments

Comments
 (0)