This is an archive of the discontinued LLVM Phabricator instance.

[mlir-lsp-server] Add support for recording text document versions
ClosedPublic

Authored by rriddle on May 17 2021, 11:48 AM.

Details

Summary

The version is used by LSP clients to ignore stale diagnostics, and can be used in a followup to help verify incremental changes.

Diff Detail

Event Timeline

rriddle created this revision.May 17 2021, 11:48 AM
rriddle requested review of this revision.May 17 2021, 11:48 AM
jpienaar accepted this revision.May 17 2021, 11:55 AM
jpienaar added inline comments.
mlir/lib/Tools/mlir-lsp-server/lsp/Transport.h
161

Should this be debug?

This revision is now accepted and ready to land.May 17 2021, 11:55 AM
rriddle marked an inline comment as done.May 17 2021, 12:38 PM
rriddle added inline comments.
mlir/lib/Tools/mlir-lsp-server/lsp/Transport.h
161

No, this matches what we already do with the other methods. It's also nice to have this logging be at a higher level, because it doesn't really clog up the terminal much and gives a high level indicator of what the server is doing.

This revision was automatically updated to reflect the committed changes.
rriddle marked an inline comment as done.