projects
/
roobuilder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fdd0aa3
)
update version number when sending temporary change from node
author
Alan Knowles
<alan@roojs.com>
Sat, 20 Jan 2024 17:11:07 +0000
(
01:11
+0800)
committer
Alan Knowles
<alan@roojs.com>
Sat, 20 Jan 2024 17:11:07 +0000
(
01:11
+0800)
src/Builder4/Editor.bjs
patch
|
blob
|
history
src/Builder4/Editor.vala
patch
|
blob
|
history
src/JsRender/NodeProp.vala
patch
|
blob
|
history
src/Palete/LanguageClientJavascript.vala
patch
|
blob
|
history
diff --git
a/src/Builder4/Editor.bjs
b/src/Builder4/Editor.bjs
index
b1a00f9
..
16e7df7
100644
(file)
--- a/
src/Builder4/Editor.bjs
+++ b/
src/Builder4/Editor.bjs
@@
-309,7
+309,9
@@
"\tvar oldcode = _this.prop.val;",
"\t",
"\t_this.prop.val = str;",
"\tvar oldcode = _this.prop.val;",
"\t",
"\t_this.prop.val = str;",
+ "\t_this.node.updated_count++;",
" _this.file.getLanguageServer().document_change(_this.file);",
" _this.file.getLanguageServer().document_change(_this.file);",
+ " _this.node.updated_count++;",
" _this.prop.val = oldcode;",
" ",
" ",
" _this.prop.val = oldcode;",
" ",
" ",
diff --git
a/src/Builder4/Editor.vala
b/src/Builder4/Editor.vala
index
845175e
..
2b47e91
100644
(file)
--- a/
src/Builder4/Editor.vala
+++ b/
src/Builder4/Editor.vala
@@
-885,7
+885,9
@@
public class Editor : Object
var oldcode = _this.prop.val;
_this.prop.val = str;
var oldcode = _this.prop.val;
_this.prop.val = str;
+ _this.node.updated_count++;
_this.file.getLanguageServer().document_change(_this.file);
_this.file.getLanguageServer().document_change(_this.file);
+ _this.node.updated_count++;
_this.prop.val = oldcode;
_this.prop.val = oldcode;
diff --git
a/src/JsRender/NodeProp.vala
b/src/JsRender/NodeProp.vala
index
9350212
..
1cf7d32
100644
(file)
--- a/
src/JsRender/NodeProp.vala
+++ b/
src/JsRender/NodeProp.vala
@@
-215,6
+215,7
@@
public class JsRender.NodeProp : Object {
this.rtype = rtype;
this.val = val;
this.childstore = new GLib.ListStore( typeof(NodeProp));
this.rtype = rtype;
this.val = val;
this.childstore = new GLib.ListStore( typeof(NodeProp));
+
}
}
diff --git
a/src/Palete/LanguageClientJavascript.vala
b/src/Palete/LanguageClientJavascript.vala
index
87303aa
..
19371a4
100644
(file)
--- a/
src/Palete/LanguageClientJavascript.vala
+++ b/
src/Palete/LanguageClientJavascript.vala
@@
-16,18
+16,7
@@
namespace Palete {
public override void startServer()
{
}
public override void startServer()
{
}
- string generateTempContents(JsRender.JsRender file, JsRender.NodeProp? prop, string alt_code) {
-
- var oldcode = "";
- var contents = alt_code;
- if (prop != null) {
- oldcode = prop.val;
- prop.val = alt_code;
- contents = file.toSourceCode();
- prop.val = oldcode;
- }
- return contents;
- }
+