julia-vscode / LanguageServer.jl

An implementation of the Microsoft Language Server Protocol for the Julia language.
Other
371 stars 81 forks source link
julia julia-language julialang language-server-protocol languageserver microsoft

LanguageServer

Project Status: Active - The project has reached a stable, usable state and is being actively developed. codecov

Overview

This package implements the Microsoft Language Server Protocol for the Julia programming language.

Text editors with a client for the Language Server Protocol are able to make use of the Julia Language Server for various code editing features:

Installation and Usage

Documentation: Dev

To install LanguageServer.jl into the current environment:

using Pkg
Pkg.add("LanguageServer")

To run an instance of LanguageServer.jl on env_path, you can run Julia as follows:

julia --project=/path/to/LanguageServer.jl/environment \
  -e "using LanguageServer; runserver()" \
  <env_path>

If env_path is not specified, the language server will run on the parent project of pwd or on the default .julia/environments/v#.# if there is no parent project.

Development of the VSCode extension

See https://github.com/julia-vscode/julia-vscode/wiki for information on how to test this package with the VSCode extension