Properly support flow with textDocument/didOpen
There are some intricacies that we should support at some point; when a document is opened with didOpen
, we may not try to read contents from disk via the URI. We may only do that when it is closed.
Also, when didSave
is called, we the documentation doesn't say which source is the "truth", so we probably shouldn't be indexing anything on didSave
, only on didChange or didChangeWatchedFiles
.