p4lang / p4analyzer

A Language Server Protocol (LSP) compliant analyzer for the P4 language
Apache License 2.0
19 stars 3 forks source link

Handle watched file changes in workspaces #12

Closed timjroberts closed 1 year ago

timjroberts commented 1 year ago

Although the textDocument/did* notifications are being handled, we also need to be notified when files change on the file system. This is especially important when the Analyzer has been initialized within a workspace. The current handler for the workspace/didChangeWatchedFiles notification is empty meaning that these file system changes are currently being ignored.

With access to an EnumerableFileSystem implementation, the machinery is in place to handle this notification.