12#include "llvm/ADT/StringMap.h"
13#include "llvm/Support/VirtualFileSystem.h"
43 llvm::StringRef Contents);
48 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>
asVFS()
const;
52 static std::string
encodeVersion(std::optional<int64_t> LSPVersion);
54 static std::optional<int64_t>
decodeVersion(llvm::StringRef Encoded);
61 mutable std::mutex Mutex;
62 llvm::StringMap<DraftAndTime> Drafts;
static std::string encodeVersion(std::optional< int64_t > LSPVersion)
std::vector< Path > getActiveFiles() const
std::optional< Draft > getDraft(PathRef File) const
void removeDraft(PathRef File)
Remove the draft from the store.
std::string addDraft(PathRef File, llvm::StringRef Version, llvm::StringRef Contents)
llvm::IntrusiveRefCntPtr< llvm::vfs::FileSystem > asVFS() const
static std::optional< int64_t > decodeVersion(llvm::StringRef Encoded)
Whether current platform treats paths case insensitively.
std::shared_ptr< const std::string > Contents