Consider a `onVFSChange` callback
Open
good first issue
ZuriHac
- Dominant language
- Haskell
- Stars
- 423
- Forks
- 105
- PR merge metrics
- No merged PRs in 30d
Description
At the moment, if a server wants to react to document changes, it has to add its own handlers for the various document change notifications. This is somewhat repetitious, and anyway `lsp` is managing these inside the VFS for you.
Contrast with what we do for config changes, where we abstract this away and just offer an `onConfigChange` callback. This is necessitated because config state changes are not always triggered by a notification, but perhaps the general principle is good.
Hence I think maybe we want to offer some kind of `onVFSChange` callback which might offer a more straightforward interface for common usecases.
Contributor guide
Assessment
This issue has not been assessed yet.