root 3bf41bf355 update | 1 gadu atpakaļ | |
---|---|---|
.. | ||
lib | 1 gadu atpakaļ | |
CHANGELOG.md | 1 gadu atpakaļ | |
LICENSE.md | 1 gadu atpakaļ | |
README.md | 1 gadu atpakaļ | |
package.json | 1 gadu atpakaļ |
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-languageservice
vscode/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
file