aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--installer/install-eslint-language-server.cmd10
-rwxr-xr-xinstaller/install-eslint-language-server.sh12
2 files changed, 10 insertions, 12 deletions
diff --git a/installer/install-eslint-language-server.cmd b/installer/install-eslint-language-server.cmd
index ee71b53..1e3608f 100644
--- a/installer/install-eslint-language-server.cmd
+++ b/installer/install-eslint-language-server.cmd
@@ -1,14 +1,12 @@
@echo off
-git clone "https://github.com/microsoft/vscode-eslint" .
-git checkout release/2.0.15
-call npm install
-call npm --prefix ./server install ./server
-call npm run compile:server
+curl -L -o "vscode-eslint.vsix" "https://github.com/microsoft/vscode-eslint/releases/download/release%2F2.1.0-next.1/vscode-eslint-2.1.0.vsix"
+call "%~dp0\run_unzip.cmd" vscode-eslint.vsix
+del vscode-eslint.vsix
echo @echo off ^
-node %%~dp0\server\out\eslintServer.js --stdio %%* ^
+node %%~dp0\extension\server\out\eslintServer.js --stdio %%* ^
> eslint-language-server.cmd
diff --git a/installer/install-eslint-language-server.sh b/installer/install-eslint-language-server.sh
index df6e4f9..b188e9f 100755
--- a/installer/install-eslint-language-server.sh
+++ b/installer/install-eslint-language-server.sh
@@ -1,16 +1,16 @@
#!/usr/bin/env bash
-git clone "https://github.com/microsoft/vscode-eslint" .
-git checkout release/2.0.15
-npm install
-npm --prefix ./server install ./server
-npm run compile:server
+url="https://github.com/microsoft/vscode-eslint/releases/download/release%2F2.1.0-next.1/vscode-eslint-2.1.0.vsix"
+asset="vscode-eslint.vsix"
+curl -L "$url" -o "$asset"
+unzip "$asset"
+rm "$asset"
cat <<EOF >eslint-language-server
#!/usr/bin/env bash
DIR=\$(cd \$(dirname \$0); pwd)
-node \$DIR/server/out/eslintServer.js --stdio \$*
+node \$DIR/extension/server/out/eslintServer.js --stdio \$*
EOF
chmod +x eslint-language-server