Skip to content

gavr123456789/niva-vscode-bundle

Repository files navigation

Visual Studio Code support for Niva language

1) build vaLSe(niva lang server) from source

  1. go to https://github.com/gavr123456789/vaLSe
  2. run ./gradlew installDist
  3. copy path to vaLSe/build/install/nivals/bin/nivals binary

2) Install ext

  1. Search "niva" in marketplace and install
  2. Go to extension's settings and insert path to nivals binary image
  3. open folder which contais main.niva file and try it out image Install ext

Read the tutorial

Features include:

  • Code completion
  • Go-to-definition
  • Errors reporting
  • Documentation hover
  • Types hover
  • Function signature provider
  • Document symbols provider

Auto-complete of messages with args-type-holes

Screencast_from_2024-06-26_03-37-34.mp4

Go to definitions(types and messages only, for now)

Peek_2024-07-13_20-12.mp4

On hover types

Peek_2024-07-14_08-15.mp4

Errors reporting

Screencast_from_2024-06-09_18-39-28.webm

Document symbols provider

Peek_2024-07-15_05-15.mp4

Document symbols provider from doc-comments

Peek_2024-07-28_03-55.mp4

Suggest type names with constructors

output.mp4

You can run tests(not LSP related)

Screencast_from_2024-05-12_16-24-22.webm

One more example

Screencast_from_2024-05-21_16-37-16.1.webm

To compile run npm run compile