JSON language service extracted from VSCode to be reused, e.g in the Monaco editor.
Перейти к файлу
Martin Aeschlimann 6ebfc982cd add filter string for proposals 2016-06-27 22:36:07 +02:00
.vscode Initial commit 2016-06-24 15:35:04 +02:00
src add filter string for proposals 2016-06-27 22:36:07 +02:00
test Initial commit 2016-06-24 15:35:04 +02:00
.gitignore Initial commit 2016-06-24 15:35:04 +02:00
.npmignore Initial commit 2016-06-24 15:35:04 +02:00
LICENSE.md Initial commit 2016-06-24 15:35:04 +02:00
README.md 1.0 2016-06-26 12:44:16 +02:00
gulpfile.js Initial commit 2016-06-24 15:35:04 +02:00
package.json add filter string for proposals 2016-06-27 22:36:07 +02:00
thirdpartynotices.txt Initial commit 2016-06-24 15:35:04 +02:00

README.md

vscode-json-languageservice

JSON language service extracted from VSCode to be reused, e.g in the Monaco editor.

npm Package NPM Downloads

Why?

The vscode-json-languageservice contains the language smarts behind the JSON editing experience of Visual Studio Code and the Monaco editor.

  • doValidation analyses an input string and returns syntax and lint errros.
  • doComplete provides completion proposals for a given location.
  • doResolve resolves a completion proposals.
  • doHover provides a hover text for a given location.
  • findDocumentSymbols provides all symbols in the given document
  • format formats the code at the given range.

Installation

npm install --save vscode-json-languageservice