redhat-developer / quarkus-ls

Language server for Quarkus tooling
Eclipse Public License 2.0
43 stars 15 forks source link

Qute LS freezes when LSP client doesn't support `workspace/didChangeWatchedFiles` and have no templates folder #931

Open angelozerr opened 1 year ago

angelozerr commented 1 year ago

When LSP client cannot support workspace/didChangeWatchedFiles, the Qute LS uses FileSystemWatcher and if the project have no src/main/resources/templates, it blocks the language server https://github.com/redhat-developer/quarkus-ls/blob/2be29a3628711e829aa99fd8fcf9a67432a888c9/qute.ls/com.redhat.qute.ls/src/main/java/com/redhat/qute/project/WatchDir.java#L102

We need to poll the existing of src/main/resources/templates in Thread.

Please note that: