♻️ 重构

This commit is contained in:
csh
2025-12-05 21:03:18 +08:00
parent 4c2e242920
commit 549f1d1b0a
161 changed files with 26415 additions and 28009 deletions
@@ -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;
};
+1 -1
View File
@@ -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;
};