language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

chokidar fallback file watcher no longer works

Open joshua-cooper opened this issue 1 year ago • 0 comments

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.

joshua-cooper avatar Oct 20 '24 13:10 joshua-cooper