Files
clice/include/Protocol/Document.h
2024-09-15 13:50:49 +08:00

27 lines
617 B
C++

#pragma once
#include "Basic.h"
namespace clice::protocol {
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::protocol