JSON Language Server

Tips and information on how to install and use language servers with the editor.
Post Reply
User avatar
Rickard Johansson
Site Admin
Posts: 6740
Joined: 19 Jul 2006 14:29

JSON Language Server

Post by Rickard Johansson »

JSON Language Server
Support JSON files and provide diagnostics, hover information, completion...

Install
* Install Nodejs for Windows https://nodejs.org/en/download/
* Install server

Code: Select all

>npm install --global vscode-json-languageserver-bin
Add the server in project/site settings

Server name
JSON Language Server

Command
json-languageserver.cmd

Command line arguments
--stdio

Initial folder
%AppData%\npm

File extension and language id
.json=json

Communication channel
* Command line (stdio)

Source folders
<Main site folder>

Initialize options

You can also use socket communication. Just replace the argument --stdio with --socket={number} e.g. --socket=5000.
Post Reply