You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std.debug.panic("The client capabilities indicates that the '{s}' method is not implemented but it has been implemented in the Handler", .{method_name});
568
+
if (@hasDecl(Handler, method_name) or@hasField(Handler, method_name)) {
569
+
std.debug.panic(
570
+
\\The LSP method {}.{} has been implemented but the server capabilities still indicate that the method hasn't been implemented.
571
+
\\
572
+
\\Ensure that the server capabilities which are returned during `initialize` match the implemented method.
573
+
, .{
574
+
Handler,
575
+
std.zig.fmtId(method_name),
576
+
});
570
577
}
571
578
},
572
579
.allowed=> {},
573
580
.expected=> {
574
-
if (!@hasDecl(Handler, method_name)) {
575
-
std.debug.panic("The '{s}' method has been implemented in the Handler but the client capabilities indicates that the method is not implemented", .{method_name});
581
+
if (!@hasDecl(Handler, method_name) and!@hasField(Handler, method_name)) {
582
+
std.debug.panic(
583
+
\\The server capabilities indicate that {} is implemented in `{}` but the expected function could not be found.
584
+
\\
585
+
\\Make sure that a public function with the following signature has been added:
0 commit comments