language-tools
language-tools copied to clipboard
chokidar fallback file watcher no longer works
Describe the bug
Since fc2144b8 the fallback file watcher using chokidar no longer works.
Reproduction
Can reproduce in neovim using this config:
in ~/.config/nvim/after/ftplugin/svelte.lua
vim.lsp.start({
name = "svelte",
cmd = { "/path/to/language-tools/packages/language-server/bin/server.js", "--stdio" },
root_dir = vim.fs.root(0, { "package.json" }),
capabilities = {
workspace = {
didChangeWatchedFiles = false,
},
},
})
With this, changes in TypeScript files aren't detected in Svelte files.
Expected behaviour
Changes in TypeScript files should be detected in Svelte files. For example, diagnostics should update.
System Info
- OS: Linux
- IDE: NeoVim
Which package is the issue about?
svelte-language-server
Additional Information, eg. Screenshots
Reverting fc2144b8 fixes this issue, but I'm not sure how to fix it while keeping chokidar v4.