fix auto completion function call signature paste
authorAlan <alan@roojs.com>
Fri, 19 Jan 2024 08:30:21 +0000 (16:30 +0800)
committerAlan <alan@roojs.com>
Fri, 19 Jan 2024 08:30:21 +0000 (16:30 +0800)
src/Builder4/DialogFiles.bjs
src/Builder4/DialogFiles.vala
src/Palete/CompletionProvider.vala

index ec42b33..224aafb 100644 (file)
    "xtype" : "Window",
    "| void load" : [
     "() {",
-    "     // clear list...",
+    "     // cl list...",
     "    ",
     "       ",
     "     _this.is_loading = true;",
     "    ",
     "    _this.projectselection.el.selected = Gtk.INVALID_LIST_POSITION; ",
     "\t_this.btn_delfile.el.hide();",
-    "\t",
+    " ",
     "  ",
     "}",
     ""
index 8627246..ede09f4 100644 (file)
@@ -176,7 +176,7 @@ public class DialogFiles : Object
                 
        }//
        public void load () {
-            // clear list...
+            // cl list...
            
               
             _this.is_loading = true;
@@ -192,7 +192,7 @@ public class DialogFiles : Object
            
            _this.projectselection.el.selected = Gtk.INVALID_LIST_POSITION; 
                _this.btn_delfile.el.hide();
-               
+        
          
        }
        public class Xcls_Box2 : Object
index d8858bd..35a0f61 100644 (file)
@@ -59,8 +59,10 @@ namespace Palete {
                                word += "(";
                                for(var i = 0 ; i < args.length; i++) {
                                        word += i > 0 ? ", " : " ";
-                                       var wbit = args[i].split(" ");
-                                       word += wbit[1];
+                                       var wbit = args[i].strip().split(" ");
+                                       var ty = wbit[wbit.length - 2];
+                                       ty = ty.has_suffix("?") ? "?" : "";  
+                                       word += ty + wbit[wbit.length-1]; // property type..?
                                }
                                word += args.length > 0 ? " )" : ")";
                        }