Currently, the language-server.ts has a function to register a text document handler. This function is hardly overridable, and doesn't allow to query whether certain operations are supported (such as onWillSave).
It would be a good idea to extract this handler method into an interface + default implementation that can be used to provide better server capability info and more fine grained text document handling.
Currently, the
language-server.ts
has a function to register a text document handler. This function is hardly overridable, and doesn't allow to query whether certain operations are supported (such asonWillSave
).It would be a good idea to extract this handler method into an interface + default implementation that can be used to provide better server capability info and more fine grained text document handling.