Merge branch 'master' of http://git.roojs.com/roobuilder
[roobuilder] / src / Palete / LanguageClientDummy.vala
1
2 namespace Palete {
3         public class LanguageClientDummy: LanguageClient {
4         
5         
6                 public LanguageClientDummy(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 dummy server");                  
15                 }
16                 public override bool isReady ()  { return true; } 
17                 public override void document_open (JsRender.JsRender file)  {}
18                 public override async void document_save (JsRender.JsRender file)   {}
19                 public override void document_change (JsRender.JsRender file    )     {}
20                 public override async void document_change_force (JsRender.JsRender file, string contents    )     {}
21                 public override void document_close (JsRender.JsRender file) {}
22                 public override void exit () throws GLib.Error { }
23                 public override async void shutdown () throws GLib.Error { }
24                 public override async Lsp.CompletionList?  completion(JsRender.JsRender file, int line, int offset , int triggerType = 1) throws GLib.Error {
25                         var ret = new Lsp.CompletionList();     
26                         return ret;
27                 }
28                 
29          
30                 public override async  Lsp.Hover hover (JsRender.JsRender file, int line, int offset) throws GLib.Error {
31                         return new Lsp.Hover();
32                 }
33                 public override void queueDocumentSymbols (JsRender.JsRender file) { }
34                 public override async Gee.ArrayList<Lsp.DocumentSymbol> documentSymbols (JsRender.JsRender file) throws GLib.Error {
35                         var ret = new Gee.ArrayList<Lsp.DocumentSymbol>();      
36                         return ret;
37                 }
38                 public override async Gee.ArrayList<Lsp.SignatureInformation> signatureHelp (JsRender.JsRender file, int line, int offset) throws GLib.Error
39                 {
40                         return new Gee.ArrayList<Lsp.SignatureInformation>();   
41                 }
42                 public override async Gee.ArrayList<Lsp.SymbolInformation> symbol (string sym) throws GLib.Error 
43                 {
44                         return new Gee.ArrayList<Lsp.SymbolInformation>();
45                 }
46         }
47         
48 }