change document_save and document_change_real to async
[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                 public override async Gee.ArrayList<Lsp.DocumentSymbol> syntax (JsRender.JsRender file) throws GLib.Error {
29                         var ret = new Gee.ArrayList<Lsp.DocumentSymbol>();      
30                         return ret;
31                 }
32         }
33         
34 }