change run to use meson/ninja and then exec. - remove libvala code from application...
[roobuilder] / src / Palete / LanguageClientJavascript.vala
1
2 namespace Palete {
3         public class LanguageClientJavascript : LanguageClient {
4         
5         
6                 public LanguageClientJavascript(Project.Project project)
7                 {
8                         // extend versions will proably call initialize to start and connect to server.
9                         base(project);
10                         
11                 
12                 }
13                 public override   void  initialize_server()   {
14                         GLib.debug("initialize javascript server");                     
15                 }
16                 public override void startServer()
17                 {
18                 }
19                 string generateTempContents(JsRender.JsRender file, JsRender.NodeProp? prop, string alt_code) {
20                 
21                         var oldcode  = "";
22                         var contents = alt_code;
23                         if (prop != null) {
24                                 oldcode  = prop.val;
25                                 prop.val = alt_code;
26                                 contents = file.toSourceCode();
27                                 prop.val = oldcode;
28                         }
29                         return contents;
30                 }
31                 
32                 
33                 
34                 public new bool isReady() 
35                 {
36                         return false;
37                 }
38                 public new void document_open (JsRender.JsRender file)  
39                 {
40                         
41                         Javascript.singleton().validate(file.toSourceCode(), file );
42                         BuilderApplication.updateCompileResults();
43                 
44                 }
45                 public new void document_save (JsRender.JsRender file)  
46                 {
47                         Javascript.singleton().validate(file.toSourceCode(), file );
48                         BuilderApplication.updateCompileResults();
49                 }
50                 public new void document_change (JsRender.JsRender file   )    
51                 {
52                         Javascript.singleton().validate(file.toSourceCode(), file );
53                         BuilderApplication.updateCompileResults();
54                 }
55         }
56         
57 }