Skip to content
A language server for the Kerboscript (kOS) a language for Kerbal Space Program
TypeScript JavaScript
Branch: master
Clone or download
Latest commit 0806a22 Jul 27, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update issue templates Jun 1, 2019
.vscode Updates to symbol table Jul 27, 2019
build ignore coverage, delete build folder for publish May 17, 2019
clients Add Search docs commands Jul 27, 2019
kerboscripts New suffix type checker test Jul 27, 2019
server New suffix type checker test Jul 27, 2019
.gitignore added package-locks Apr 26, 2019
.gitmodules potential fix to submodules May 10, 2019
.prettierrc Real setting sync May 4, 2019
.vscodeignore fixed readme .vscodeignore Jul 5, 2019 disable type diagnostics Jul 25, 2019
LICENSE Actually add my name to MIT Liscense May 14, 2019 disable type diagnostics Jul 25, 2019 Update to changelog readme, and extension icon. Jan 5, 2019
azure-pipelines.yml Update azure-pipelines.yml for Azure Pipelines May 10, 2019
kos.configuration.json Pre release updates May 17, 2019
package-lock.json bump dependencies Jul 21, 2019
package.json Add Search docs commands Jul 27, 2019
tsconfig.base.json Initial Atom Stub Jan 10, 2019

kOS Language Server

Build Status Azure DevOps tests Azure DevOps coverage (branch)

A language server for Kerboscript within the KOS mod for Kerbal Space Program. A language server can provide features typical to an IDE language for the supported target language, in this case Kerboscript.

The project currently has client support for Visual Studio Code. The extension can be found here. Some work is currently being done to get a client in place for github's Atom editor as well. For additional client support such as sublime text, vim, notepad++ or others please post an issue with the requested editor.


Currently the vscode client 0.9.1 implements the follow features

  • syntax highlighting
  • brace detection
  • code snippets
  • diagnostics on parsing errors
  • go to definition and symbols and run statements
  • symbol auto complete
  • suffix auto complete
  • rename symbol
  • function signature help
  • file symbol lookup
  • identify symbols that don't exist
  • identify unused symbols
  • identify symbols that shadow (hide) an existing variable
  • identify symbols that may not exist at runtime
  • on hover type definitions (experimental)
  • foldable regions with \\ #region and \\ #endregion


All commands can be launched with ctrl+shift+p

  • launch kerbal space program kOS: Start Kerbal Space Program
  • launch telnet client using kOS: Connect Telnet Client
  • Route server logging to LSP inspector kOS: Route Logging to LSP inspector
  • Route server logging to Vscode kOS: Route Logging to Vscode


These settings are currently included with the tool

  • kos-vscode.kerbalSpaceProgramPath Path to kerbal space program
  • kos-vscode.completionCase Indicate the preferred completion case for built in symbols
  • kos-vscode.telnetHost Host name of the telnet server
  • kos-vscode.telnetPort Host port of the telnet server
  • kos-vscode.lspPort Port to send lsp message to for the LSP Inspector
  • kos-vscode.trace.server
    • verbosity Detail level of the logs
    • format Log format
    • level Message level


This project is heavily inspired by the crafting interpreters series. Definitely check it out if your interested in creating your own language, or language tooling.

You can’t perform that action at this time.