🐛 fix: align trace value type

This commit is contained in:
csh 2025-12-21 16:12:28 +08:00
parent eb44afe2be
commit f56cf960f1
2 changed files with 4 additions and 6 deletions

View File

@ -56,12 +56,12 @@ export namespace lsp::protocol
ProgressToken token; ProgressToken token;
}; };
using TraceValue = std::string_view; using TraceValue = string;
namespace TraceValueLiterals namespace TraceValueLiterals
{ {
inline constexpr TraceValue Off = "off"; inline const TraceValue Off = "off";
inline constexpr TraceValue Messages = "messages"; inline const TraceValue Messages = "messages";
inline constexpr TraceValue Verbose = "verbose"; inline const TraceValue Verbose = "verbose";
} }
struct SetTraceParams struct SetTraceParams

View File

@ -1,7 +1,5 @@
module; module;
#include <string_view>
export module lsp.provider.trace.set_trace; export module lsp.provider.trace.set_trace;
import spdlog; import spdlog;