aboutsummaryrefslogtreecommitdiff
path: root/installer/install-omnisharp-lsp.cmd
blob: dd4efac41a3bdf3c37bdb08bc76b96db03c3d074 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@echo off

setlocal

cd /d %~dp0

set installer_dir=%cd%
set server_dir=..\servers\omnisharp-lsp
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"

curl -L -o omnisharp-win-x64.zip "https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v1.34.9/omnisharp-win-x64.zip"
call %installer_dir%\run_unzip omnisharp-win-x64.zip
del omnisharp-win-x64.zip

echo @echo off ^

%%~dp0\omnisharp.exe %%* ^

> omnisharp-lsp.cmd