3 public class LanguageClientDummy: LanguageClient {
6 public LanguageClientDummy(Project.Project project)
8 // extend versions will proably call initialize to start and connect to server.
13 public override void initialize_server() {
14 GLib.debug("initialize dummy server");
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();
30 public override async Lsp.Hover hover (JsRender.JsRender file, int line, int offset) throws GLib.Error {
31 return new Lsp.Hover();
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>();
38 public override async Gee.ArrayList<Lsp.SignatureInformation> signatureHelp (JsRender.JsRender file, int line, int offset) throws GLib.Error
40 return new Gee.ArrayList<Lsp.SignatureInformation>();
42 public override async Gee.ArrayList<Lsp.SymbolInformation> symbol (string sym) throws GLib.Error
44 return new Gee.ArrayList<Lsp.SymbolInformation>();