Skip to content

default to client watcher pattern ala LSP #1146

Open
@acao

Description

@acao

We have a nice custom watcher built into our server using fb-watchman, however vscode and other LSP oriented IDE clients would expect to be able to provide their own, and for this server to respond to workspace watch/file change notifications sent from the IDE client.

Thus, we need to decouple this watcher from the server such that it doesn't bring many additional dependencies, and the fb-watchman dependency itself would become an optionalDependencies entry that we can suggest to the user if they are working with an IDE that expects a server watcher, and they aren't using an LSP client compatibility layer with a built-in watcher for their IDE (which is probably common). Using a server side watcher is possible, but is against the reccomendation of the microsoft LSP docs.

We could also ship it as an additional wrapper package, of the server bundled with fb-watchman. no harm in adding more packages to the monorepo. It could also move to a contrib space

Metadata

Metadata

Assignees

No one assigned

    Labels

    lsp-servergraphql-language-service-server

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions