Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Insty Language Server

insty-lsp is the language server for the Insty language. It reuses the Insty compiler's lexer and parser to provide real diagnostics, completion, hover, go-to-definition, find-references, and rename.

Capabilities

  • Diagnostics from the compiler lexer and parser
  • Completion for keywords, types, builtins, visible symbols, imported modules, selective imports, and wildcard imports
  • Hover, go to definition, find references, rename
  • Both stdio and TCP (--socket <port>) transports

Dependency on the compiler

The server links against the Insty compiler frontend (lexer + parser) directly, so a checkout of the Compiler repo must be available. By default CMake expects it at ../Compiler:

parent/
  Compiler/      # github.com/InstyLang/Compiler
  LSP/           # this repo

Point it elsewhere with -DINSTY_COMPILER_DIR=<path-to-compiler>.

Build

cmake -S . -B build
cmake --build build --target insty-lsp

The binary is build/insty-lsp.

Editor integration

The VS Code client lives in the extension repo. It looks for insty-lsp on PATH (configurable via insty.lspPath) and supports both stdio and TCP transports.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages