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 void document_open (JsRender.JsRender file)  {}
17                 public override async void document_save (JsRender.JsRender file)   {}
18                 public override void document_change (JsRender.JsRender file    )     {}
19                 public override async void document_change_force (JsRender.JsRender file, string contents    )     {}
20                 public override void document_close (JsRender.JsRender file) {}
21                 public override void exit () throws GLib.Error { }
22                 public override async void shutdown () throws GLib.Error { }
23                 public override async Lsp.CompletionList?  completion(JsRender.JsRender file, int line, int offset , int triggerType = 1) throws GLib.Error {
24                         var ret = new Lsp.CompletionList();     
25                         return ret;
26                 }
27                 
28          
29                 public override async  Lsp.Hover hover (JsRender.JsRender file, int line, int offset) throws GLib.Error {
30                         return new Lsp.Hover();
31                 }
32                 public override void queueDocumentSymbols (JsRender.JsRender file) { }
33                 public override async Gee.ArrayList<Lsp.DocumentSymbol> documentSymbols (JsRender.JsRender file) throws GLib.Error {
34                         var ret = new Gee.ArrayList<Lsp.DocumentSymbol>();      
35                         return ret;
36                 }
37                 public override async Gee.ArrayList<Lsp.SignatureInformation> signatureHelp (JsRender.JsRender file, int line, int offset) throws GLib.Error
38                 {
39                         return new Gee.ArrayList<Lsp.SignatureInformation>();   
40                 }
41                 public override async Gee.ArrayList<Lsp.SymbolInformation> symbol (string sym) throws GLib.Error 
42                 {
43                         return new Gee.ArrayList<Lsp.SymbolInformation>();
44                 }
45         }
46         
47 }