src/Palete/LanguageClientVala.vala
authorAlan <alan@roojs.com>
Wed, 27 Mar 2024 09:55:41 +0000 (17:55 +0800)
committerAlan <alan@roojs.com>
Wed, 27 Mar 2024 09:55:41 +0000 (17:55 +0800)
src/Palete/LanguageClientVala.vala

index 53afb40..881843b 100644 (file)
@@ -663,20 +663,7 @@ namespace Palete {
 
                }
                
-               async int hover_queue()
-               {
-                       SourceFunc cb = this.hover_queue.callback;
-                       hover_call_count++;
-                       var call_id = hover_call_count;
-                       
-                       GLib.Timeout.add(500, () => {
-                                GLib.Idle.add((owned) cb);
-                                return false;
-                       });
-                       
-                       yield;
-                       return call_id;
-               }
+        
                
                static int hover_call_count = 1;
  
@@ -691,7 +678,8 @@ namespace Palete {
                    if (!this.isReady()) {
                                return ret;
                        }
-                       var  call_id = yield this.hover_queue();
+                       hover_call_count++;
+                       var  call_id = yield this.queuer(hover_call_count);
                        
                        //GLib.debug("end hover call=%d   count=%d", call_id, hover_call_count);                        
                        if (call_id != hover_call_count) {