mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
fix vscode-json-languageserver readme. Fixes #116720
This commit is contained in:
parent
e33c868876
commit
e938901e2a
|
@ -167,7 +167,6 @@ interface ISchemaAssociation {
|
|||
* A match succeeds when there is at least one pattern matching and last matching pattern does not start with '!'.
|
||||
*/
|
||||
fileMatch: string[];
|
||||
|
||||
/*
|
||||
* The schema for the given URI.
|
||||
* If no schema is provided, the schema will be fetched with the schema request service (if available).
|
||||
|
@ -203,16 +202,16 @@ The JSON language server is shipped with [Visual Studio Code](https://code.visua
|
|||
If you plan to integrate the JSON language server into an editor and IDE, check out [this page](https://microsoft.github.io/language-server-protocol/implementors/tools/) if there's already an LSP client integration available.
|
||||
|
||||
You can also launch the language server as a command and connect to it.
|
||||
For that, install the `json-language-server` npm module:
|
||||
For that, install the `vscode-json-languageserver` npm module:
|
||||
|
||||
`npm install -g json-language-server`
|
||||
`npm install -g vscode-json-languageserver`
|
||||
|
||||
Start the language server with the `json-language-server` command. Use a command line argument to specify the preferred communication channel:
|
||||
Start the language server with the `vscode-json-languageserver` command. Use a command line argument to specify the preferred communication channel:
|
||||
|
||||
```
|
||||
json-language-server --node-ipc
|
||||
json-language-server --stdio
|
||||
json-language-server --socket=<port>
|
||||
vscode-json-languageserver --node-ipc
|
||||
vscode-json-languageserver --stdio
|
||||
vscode-json-languageserver --socket=<port>
|
||||
```
|
||||
|
||||
To connect to the server from NodeJS, see Remy Suen's great write-up on [how to communicate with the server](https://github.com/rcjsuen/dockerfile-language-server-nodejs#communicating-with-the-server) through the available communication channels.
|
||||
|
|
Loading…
Reference in a new issue