Skip to content
Code Intelligence for Vala
Vala Python Meson
Branch: master
Clone or download
Latest commit 6143111 Aug 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows CI (#32) Aug 18, 2019
gnome-builder Fix plugin. Aug 5, 2019
.editorconfig vala.codecontext Nov 23, 2017
.gitignore ignore node_module Jul 30, 2017
COPYING Change to LGPL 2.1 to address #9. Oct 27, 2018
README.md Fix link in README. Aug 19, 2019
config.vala.in vala.codecontext Nov 23, 2017
context.vala Make warnings fatal. Aug 10, 2019
iterator.vala Improvements to document symbol outlining. Aug 11, 2019
main.vala CI (#32) Aug 18, 2019
meson.build Make warnings fatal. Aug 10, 2019
protocol.vala Reformat protocol.vala Aug 13, 2019
reporter.vala update comment Jan 4, 2018
vala038_workarounds.vala Fix bug #4 Feb 19, 2018

README.md

Vala Language Server

Features

  • diagnostics
  • code completion (in progress)
  • document symbol outline
  • goto definition
  • symbol references
  • goto implementation
  • hover

build systems / environments:

  • meson
  • cmake
  • compiler_commands.json

Dependencies

  • jsonrpc-glib-1.0
  • libvala-dev

Setup

$ meson build
$ ninja -C build

With Vim

Once you have VLS installed, you can use it with vim.

  1. Make sure vim-lsp is installed
  2. Add the following to your .vimrc:
if executable('vala-language-server')                     
  au User lsp_setup call lsp#register_server({              
        \ 'name': 'vala-language-server',
        \ 'cmd': {server_info->[&shell, &shellcmdflag, 'vala-language-server']}, 
        \ 'whitelist': ['vala'],
        \ })
endif

With VSCode

  • Clone this repo: https://github.com/benwaffle/vala-code
  • Check out the language-server branch
  • Run npm install
  • open this folder in VS Code
  • git submodule update --init
  • cd vala-lanugage-server
  • git checkout master
  • meson build
  • ninja -C build
  • Hit F5 in VS Code to run a new instance with the VLS

With GNOME Builder (experimental)

  • In progress. See this issue
  • if you really want to try it out:
  1. open a Vala project in GNOME Builder
  2. make sure Vala plugin is installed and enabled, and Vala Pack is disabled
  3. open a file and run kill <pidof vala-language-server>. The server should restart and from then on you should be able to type and get diagnostics.

libvala docs

https://benwaffle.github.io/vala-language-server/index.html

You can’t perform that action at this time.