src/Palete/LanguageClientVala.vala
authorAlan <alan@roojs.com>
Wed, 27 Mar 2024 08:30:11 +0000 (16:30 +0800)
committerAlan <alan@roojs.com>
Wed, 27 Mar 2024 08:30:11 +0000 (16:30 +0800)
src/Palete/LanguageClientVala.vala

index 9b69168..0e1b4df 100644 (file)
@@ -668,12 +668,14 @@ namespace Palete {
                        // try and block multiple calls - better than a big timeout loop?
                        hover_call_count++;
                        var call_id = hover_call_count;
+                       GLib.debug("get hover call=%d   count=%d", call_id, hover_call_count);
                        var loop = new MainLoop();
                        GLib.Timeout.add(500, () => {
                                 loop.quit(); 
                                 return false;
                        });
                        loop.run();
+                       GLib.debug("end hover call=%d   count=%d", call_id, hover_call_count);                  
                        if (call_id != hover_call_count) {
                                GLib.debug("get hover CANCELLED %s %d %d", file.relpath, (int)line, (int)offset);
                                return ret;