From: Alan Knowles Date: Sat, 20 Jan 2024 17:01:21 +0000 (+0800) Subject: change run to use meson/ninja and then exec. - remove libvala code from application... X-Git-Tag: release-5.0.1~13 X-Git-Url: http://git.roojs.org/?p=roobuilder;a=commitdiff_plain;h=fbe24f66da7703beca0f8a1b3348b4696f725ccb change run to use meson/ninja and then exec. - remove libvala code from application (as its not used for compile) + caching on toSource --- diff --git a/src/Palete/LanguageClientJavascript.vala b/src/Palete/LanguageClientJavascript.vala new file mode 100644 index 000000000..87303aa68 --- /dev/null +++ b/src/Palete/LanguageClientJavascript.vala @@ -0,0 +1,57 @@ + +namespace Palete { + public class LanguageClientJavascript : LanguageClient { + + + public LanguageClientJavascript(Project.Project project) + { + // extend versions will proably call initialize to start and connect to server. + base(project); + + + } + public override void initialize_server() { + GLib.debug("initialize javascript server"); + } + 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; + } + + + + public new bool isReady() + { + return false; + } + public new void document_open (JsRender.JsRender file) + { + + Javascript.singleton().validate(file.toSourceCode(), file ); + BuilderApplication.updateCompileResults(); + + } + public new void document_save (JsRender.JsRender file) + { + Javascript.singleton().validate(file.toSourceCode(), file ); + BuilderApplication.updateCompileResults(); + } + public new void document_change (JsRender.JsRender file ) + { + Javascript.singleton().validate(file.toSourceCode(), file ); + BuilderApplication.updateCompileResults(); + } + } + +} \ No newline at end of file