JSON language server - SkorikSergey/Language-servers-test-plan GitHub Wiki
Preconditions:
- Create workspace from the Node stack with nodejs-hello-world project.
- Enable JSON language server in the Installers tab and start the workspace.
Testing process
- Language server initialization
- From the project open "package.json" file.
- Check
Finished language servers initialization, file path '/nodejs-hello-world/package.json'message in the dev-machine console.
- Code validation feature
- Open "package.json" file.
- Remove
,symbol in line 8. Make sure that error marker appears. Click on the marker and check message likeExpected '(end)' and instead saw ':'.in the proposal window. - Hover mouse on "author" text and wait for hover popup with
Expected comma or closing bracetext. Return the just deleted coma and wait disappearance of the marker. - Go to the line 9 and add fragment like:
"newObj":[1,2,3],. Make sure that json file does not have any errors. - Add this object again and check error marker with
Duplicate object keymessage. Delete just add object and check wait disappearance of the marker. - Go to the line 6 and press ENTER. Add
"newObj":[1,2,3],object and check there is not any errors.
-
Hover feature ?
-
Autocomplete feature ?
-
Go To Symbol
- Open "package.json" file.
- Start Go To Symbol feature by Ctrl+F12 buttons or from Assistant menu.
- Wait for Go To Symbol form is opened with next lines:
name symbols(10)
version
description
main
scripts
test
author
license
dependencies
express
- Click on any of them and check that it correctly selected in file.