bintools-sql-languageservice
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

/bintools-sql-languageservice/

    Package Sidebar

    Install

    npm i bintools-sql-languageservice

    Weekly Downloads

    4

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    55.3 kB

    Total Files

    26

    Last publish

    Collaborators

    • qipeng.lu