diff --git a/packs/lsp_server_metta/prolog/lsp_server_metta.pl b/packs/lsp_server_metta/prolog/lsp_server_metta.pl index a12a544fd8c..1609e454a79 100644 --- a/packs/lsp_server_metta/prolog/lsp_server_metta.pl +++ b/packs/lsp_server_metta/prolog/lsp_server_metta.pl @@ -660,6 +660,10 @@ handle_msg(Method, Msg, Response):- lsp_hooks:handle_msg_hook(Method, Msg, Response),!. +% Our request listener hooks monitor these on their own +handle_msg(Method, Msg, false) :- \+ string(Method), _{id: Id} :< Msg, \+ number(Id),!. + + % messages (with a response) handle_msg("initialize", Msg, _{id: Id, result: _{capabilities: ServerCapabilities} }) :-