aboutsummaryrefslogtreecommitdiff
path: root/installer/install-javascript-typescript-langserver.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'installer/install-javascript-typescript-langserver.cmd')
-rw-r--r--installer/install-javascript-typescript-langserver.cmd16
1 files changed, 16 insertions, 0 deletions
diff --git a/installer/install-javascript-typescript-langserver.cmd b/installer/install-javascript-typescript-langserver.cmd
new file mode 100644
index 0000000..19c5f91
--- /dev/null
+++ b/installer/install-javascript-typescript-langserver.cmd
@@ -0,0 +1,16 @@
+@echo off
+
+cd %~dp0
+if exist "..\servers\javascript-typescript-langserver" rd /S /Q "..\servers\javascript-typescript-langserver"
+md "..\servers\javascript-typescript-langserver"
+cd "..\servers\javascript-typescript-langserver"
+git clone https://github.com/sourcegraph/javascript-typescript-langserver .
+npm install
+npm build
+
+echo @echo off ^
+
+node %%~dp0\lib\language-server-stdio.js ^
+
+> javascript-typescript-langserver.cmd
+