Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for workspace/didChangeWatchedFiles #807

Open
angelozerr opened this issue Sep 14, 2023 · 0 comments
Open

Support for workspace/didChangeWatchedFiles #807

angelozerr opened this issue Sep 14, 2023 · 0 comments

Comments

@angelozerr
Copy link
Contributor

angelozerr commented Sep 14, 2023

In our Qute LS we need workspace/didChangeWatchedFiles support.

With Qute you can write a template like this:

{#include foo.html}
{/include}

At this step, It reports an error to foo.html which doesn't exists.

If you create the foo.html, LSP4E should send workspace/didChangeWatchedFiles notfication with a FileEvent

  • uri = foo.html
  • type = Created

The Qute LS reacts on this event to retrigger validation (the template which include foo.html will not be on error).

Today we manage this usecase by creating a FileSystemWatcher on Qute LS side but it is not really performant (because we need to create a Watcher per sub directories).

//cc @sbouchet please note this support is very important for JBoss Quarkus because Qute LS has a bug when the folder src/main/resources/templates doesn't exist and freeze the Qute language server. See redhat-developer/quarkus-ls#931

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant