Socket
Socket
Sign inDemoInstall

@redocly/vscode-json-languageservice

Package Overview
Dependencies
4
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @redocly/vscode-json-languageservice

Language service for JSON


Version published
Weekly downloads
17K
increased by23.1%
Maintainers
3
Install size
1.05 MB
Created
Weekly downloads
 

Readme

Source

vscode-json-languageservice

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

npm Package NPM Downloads Build Status License: MIT

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 proposal

  • doResolve resolves a completion proposals.

  • doHover provides a hover text for a given location.

  • findDocumentSymbols provides all symbols in the given document

  • findDocumentColors provides all color symbols in the given document, getColorPresentations returns available color formats for a color symbol.

  • format formats the code at the given range.

  • getFoldingRanges gets folding ranges for the given document

  • getSelectionRanges gets selection ranges for a given location.

  • use parseJSONDocument create a JSON document from source code, or newJSONDocument to create the document from an AST.

Installation

npm install --save vscode-json-languageservice

FAQs

Last updated on 11 Nov 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc