♻️ 重构
This commit is contained in:
@@ -212,8 +212,8 @@ namespace lsp::protocol
|
||||
std::optional<integer> processId;
|
||||
std::optional<ClientInfo> clientInfo;
|
||||
std::optional<string> locale;
|
||||
std::optional<string> rootPath;
|
||||
std::optional<DocumentUri> rootUri;
|
||||
[[deprecated("LSP deprecated: prefer workspaceFolders/rootUri")]] std::optional<string> rootPath;
|
||||
[[deprecated("LSP deprecated: prefer workspaceFolders")]] std::optional<DocumentUri> rootUri;
|
||||
std::optional<LSPAny> initializationOptions;
|
||||
std::optional<ClientCapabilities> capabilities;
|
||||
TraceValue trace;
|
||||
|
||||
@@ -84,6 +84,7 @@ namespace lsp::protocol
|
||||
std::optional<CompletionItemKind> kind;
|
||||
std::optional<string> detail;
|
||||
std::optional<std::variant<string, MarkupContent>> documentation;
|
||||
[[deprecated("LSP deprecated: use tags instead")]] std::optional<boolean> deprecated;
|
||||
std::optional<boolean> preselect;
|
||||
std::optional<string> sortText;
|
||||
std::optional<string> filterText;
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace lsp::protocol
|
||||
struct TextDocumentContentChangeEvent
|
||||
{
|
||||
Range range;
|
||||
std::optional<uinteger> rangeLength;
|
||||
[[deprecated("LSP deprecated: use range instead")]] std::optional<uinteger> rangeLength;
|
||||
string text;
|
||||
};
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace lsp::protocol
|
||||
string name;
|
||||
SymbolKind kind;
|
||||
std::optional<std::vector<SymbolTag>> tags;
|
||||
std::optional<boolean> deprecated;
|
||||
[[deprecated("LSP deprecated: use tags instead")]] std::optional<boolean> deprecated;
|
||||
Location location;
|
||||
std::optional<string> containerName;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user