From b1b0a8d8d5d847081f41ef927b9fab4a99319b07 Mon Sep 17 00:00:00 2001 From: Albert Nigmatzianov Date: Sat, 24 Oct 2020 20:07:07 +0200 Subject: [PATCH] README: Improve "Development" section --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 87e3da3..85080f7 100644 --- a/README.md +++ b/README.md @@ -34,17 +34,20 @@ For the complete API see [jsonLanguageService.ts](./src/jsonLanguageService.ts) ## Development -- clone this repo, run yarn -- `yarn test` to compile and run tests + git clone https://github.com/microsoft/vscode-json-languageservice + cd vscode-json-languageservice + yarn -How can I run and debug the service? +Use `yarn test` to compile and run tests + +### How can I run and debug the service? - open the folder in VSCode. - set breakpoints, e.g. in `jsonCompletion.ts` - run the Unit tests from the run viewlet and wait until a breakpoint is hit: ![image](https://user-images.githubusercontent.com/6461412/94239202-bdad4e80-ff11-11ea-99c3-cb9dbeb1c0b2.png) -How can I run and debug the service inside an instance of VSCode? +### How can I run and debug the service inside an instance of VSCode? - run VSCode out of sources setup as described here: https://github.com/Microsoft/vscode/wiki/How-to-Contribute - use `yarn link vscode-json-languageservice` in `vscode/extensions/json-language-features/server` to run VSCode with the latest changes from `vscode-json-languageservice`