diff options
Diffstat (limited to 'installer')
-rw-r--r-- | installer/install-json-languageserver.cmd | 49 |
1 files changed, 48 insertions, 1 deletions
diff --git a/installer/install-json-languageserver.cmd b/installer/install-json-languageserver.cmd index 654f377..871c92c 100644 --- a/installer/install-json-languageserver.cmd +++ b/installer/install-json-languageserver.cmd @@ -1,3 +1,50 @@ @echo off
-call "%~dp0\npm_install.cmd" json-languageserver vscode-json-languageserver-bin
+git clone --depth=1 https://github.com/vscode-langservers/vscode-json-languageserver ./
+
+echo {^
+
+ "compilerOptions": {^
+
+ "target": "es2018",^
+
+ "module": "commonjs",^
+
+ "strict": true,^
+
+ "alwaysStrict": true,^
+
+ "noImplicitAny": true,^
+
+ "noImplicitReturns": true,^
+
+ "noUnusedLocals": true,^
+
+ "noUnusedParameters": true,^
+
+ "outDir": "./out",^
+
+ "sourceMap": true,^
+
+ "sourceRoot": "../src"^
+
+ },^
+
+ "include": [^
+
+ "src/**/*"^
+
+ ]^
+
+}^
+
+> tsconfig.json
+
+call npm i
+call npx tsc -p .
+
+echo @echo off ^
+
+node %%~dp0\out\jsonServerMain.js %%* ^
+
+> json-languageserver.cmd
|