JSON language service extracted from VSCode to be reused, e.g in the Monaco editor.
JSON language service extracted from VSCode to be reused, e.g in the Monaco editor.
The vscode-json-languageservice contains the language smarts behind the JSON editing experience of Visual Studio Code
and the Monaco editor.
For the complete API see jsonLanguageService.ts and jsonLanguageTypes.ts
npm install --save vscode-json-languageservice
See sample.ts for an example on how to use the JSON language service.
To run the sample use yarn sample
git clone https://github.com/microsoft/vscode-json-languageservice
cd vscode-json-languageservice
yarn
Use yarn test to compile and run tests
jsonCompletion.ts
yarn link vscode-json-languageservice in vscode/extensions/json-language-features/server to run VSCode with the latest changes from vscode-json-languageservicevscode/scripts/code.sh|bat) and open a .json filevscode-json-languageservice sources, run command Debug: Attach to Node process and pick the code-oss process with the json-language-features path
jsonCompletion.ts.json fileWe use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.