From d37a8266c59940c6668bb923d5d67deb52168c9d Mon Sep 17 00:00:00 2001 From: logicmoo Date: Fri, 8 Nov 2024 06:13:56 -0800 Subject: [PATCH] Our request listener hooks monitor these on their own --- libraries/lsp_server_metta/prolog/lsp_server_metta.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/lsp_server_metta/prolog/lsp_server_metta.pl b/libraries/lsp_server_metta/prolog/lsp_server_metta.pl index a12a544fd8c..1609e454a79 100644 --- a/libraries/lsp_server_metta/prolog/lsp_server_metta.pl +++ b/libraries/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} }) :-