JSPM

  • Created
  • Published
  • Downloads 1369788
  • Score
    100M100P100Q212020F
  • License MIT

Language service for JSON

Package Exports

  • vscode-json-languageservice
  • vscode-json-languageservice/lib/parser/jsonParser
  • vscode-json-languageservice/lib/services/configuration
  • vscode-json-languageservice/lib/services/jsonCompletion
  • vscode-json-languageservice/lib/services/jsonDocumentSymbols
  • vscode-json-languageservice/lib/services/jsonHover
  • vscode-json-languageservice/lib/services/jsonSchemaService
  • vscode-json-languageservice/lib/services/jsonValidation

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vscode-json-languageservice) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vscode-json-languageservice

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

npm Package NPM Downloads Build Status

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