[Vala] Autocomplete server



Hey guys.

First of all, Vala is awesome. I'm kinda new in the Vala world, but as
a C# developer, I found myself willing to invest my time learning the
language. I like the idea of a familiar syntax with powerfull
performance.

I use the new Visual Studio Code IDE/Editor and decide to develope the
plugin for Vala [0]. I already have syntax highlight, I'm writing the
snippets, and I was wondering how much work it would take to bring
autocompletion to that editor. 
I mean, I searched a little and found a lot of discontinued projects
(like libafrodite) and others tightly integrated with host editor.

I think it'd be nice to have a language server which is independent
from editors. Something like the OmniSharp project for the C# language
[1].

After my little research this last couple weeks, here's what I got:

1. The best autocomplete behavior I found (imho) was the Valencia
plugin for Gedit. But it had to rewrite all of the tokens that is
already on the libvala.

2. The autocomplete with the cleanest code was in Anjuta's Vala plugin,
which uses libvala extensivelly.

I didn't want to reinvent the wheel, libvala seems to do all the
heavylifting, so I tried to mimic the Anjuta's behavior, but I got
stuck in some issues like the class base types returning null.

Then I came here for help. Am I in the right track? Where can I find
documentation about libvala? Or is it just not worth it and I should
use another (existing) tool?

Thank you for your attention.

Thiago Abreu

[0] - https://github.com/thiagoabreu/vala-code
[1] - http://www.omnisharp.net/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]