root 3bf41bf355 update | преди 1 година | |
---|---|---|
.. | ||
lib | преди 1 година | |
CHANGELOG.md | преди 1 година | |
LICENSE.md | преди 1 година | |
README.md | преди 1 година | |
package.json | преди 1 година |
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