27 lines
617 B
C++
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
|