src/Palete/LanguageClientVala.vala
authorAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2024 15:17:31 +0000 (23:17 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2024 15:17:31 +0000 (23:17 +0800)
src/Palete/LanguageClientVala.vala

index 66d0f6f..2364d37 100644 (file)
@@ -74,6 +74,9 @@ namespace Palete {
                        if (this.change_queue_file == null) {
                                return ;
                        }
+                       if (this.countdown < -1) {
+                               return;
+                       }
                        if (this.getting_diagnostics) {
                                return;
                        }
@@ -97,10 +100,11 @@ namespace Palete {
                        if (this.doc_queue_file == null) {
                                return ;
                        }
-                        
+                       if (this.doc_countdown < -1) {
+                               return;
+                       }
                        this.doc_countdown--;
 
-               
                        if (this.doc_countdown < 0){
                                var sendfile = this.doc_queue_file;
                                this.documentSymbols.begin(this.doc_queue_file (o, res) => {