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

src/Builder4/Editor.bjs
src/Builder4/Editor.vala
src/Palete/LanguageClientVala.vala

index 80524c9..e32f43e 100644 (file)
               "        _this.file.setSource(str);",
               "\t    BuilderApplication.showSpinner(\"appointment soon\",\"document change pending\");",
               "    \t_this.file.getLanguageServer().document_change(_this.file);",
-              "",
+              "\t\t_this.file.getLanguageServer().queueDocumentSymbols(_this.file);",
               "        _this.file.setSource(oldcode);",
               "        ",
               "\t\t ",
index 83d06e3..11f3fbf 100644 (file)
@@ -1092,7 +1092,7 @@ public class Editor : Object
                        _this.file.setSource(str);
                            BuilderApplication.showSpinner("appointment soon","document change pending");
                        _this.file.getLanguageServer().document_change(_this.file);
-               
+                               _this.file.getLanguageServer().queueDocumentSymbols(_this.file);
                        _this.file.setSource(oldcode);
                        
                                 
index 38f9bbe..7f2e3b5 100644 (file)
@@ -691,7 +691,7 @@ namespace Palete {
                public override void queueDocumentSymbols (JsRender.JsRender file) 
                {
                        if (this.doc_queue_file != null && this.doc_queue_file.path != file.path) {
-                               var sendfile = this.doc_queue_file,;
+                               var sendfile = this.doc_queue_file;
                                this.documentSymbols.begin(this.doc_queue_file, (o, res) => {
                                        var ret = documentSymbols.end(res);
                                        sendfile.navigation_tree_updated(ret);