aboutsummaryrefslogtreecommitdiff
path: root/installer/install-julia-language-server.cmd
blob: d9c32af8924dec774a1f5e5b0a8dd1f0a644e24c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@echo off

julia -e "using Pkg; Pkg.add(PackageSpec(name=\"LanguageServer\", rev=\"master\"))"
julia -e "using Pkg; Pkg.add(PackageSpec(name=\"SymbolServer\", rev=\"master\"))"
julia -e "using Pkg; Pkg.add(PackageSpec(name=\"CSTParser\", rev=\"master\"))"

echo ^
import LanguageServer ^

import Pkg ^

import SymbolServer ^

envpath = dirname(Pkg.Types.Context().env.project_file) ^

server = LanguageServer.LanguageServerInstance(stdin, stdout, false, envpath) ^

server.runlinter = true ^

run(server) ^

> languageserver.jl

echo @echo off ^

julia %%~dp0\languageserver.jl %%* ^

> julia-language-server.cmd