Files
clice/include/Protocol/Document.h
2024-10-18 11:32:08 +08:00

27 lines
611 B
C++

#pragma once
#include "Basic.h"
namespace clice::proto {
struct DidOpenTextDocumentParams {
/// The document that was opened.
TextDocumentItem textDocument;
};
struct TextDocumentContentChangeEvent {
/// The new text of the whole document.
string text;
};
struct DidChangeTextDocumentParams {
/// The document that did change. The version number points
/// to the version after all provided content changes have
/// been applied.
VersionedTextDocumentIdentifier textDocument;
std::vector<TextDocumentContentChangeEvent> contentChanges;
};
} // namespace clice::proto