|
| 1 | +# Hyperjump - JSON Schema VSCode Extension |
| 2 | + |
| 3 | +A VSCode extension for using the JSON Schema Language Server. |
| 4 | + |
| 5 | +## Disable JSON Language Features |
| 6 | + |
| 7 | +VSCode's built-in "JSON Language Features" extension includes JSON Schema |
| 8 | +functionality. That means you could end up getting the same messages twice (once |
| 9 | +from the built-in extension and once from this extension) or you might get |
| 10 | +incorrect or confusing messaging. For example, JSON Language Features will warn |
| 11 | +you against using 2020-12 because it doesn't support dynamic references, but |
| 12 | +this extension fully supports 2020-12 and you are encouraged to use it. |
| 13 | + |
| 14 | +If you wish, you can disable the built-in extension. In the "Extensions" tool, |
| 15 | +search for `@builtin json language features`. This is the built-in extension |
| 16 | +that's causing the conflict. Click "Disable" to disable this extension. |
| 17 | + |
| 18 | +If you do choose to disable the built-in extension, keep in mind that this |
| 19 | +extension is not yet a complete replacement and you may end up losing some |
| 20 | +functionality you're used to. |
| 21 | + |
| 22 | +## Contributing |
| 23 | + |
| 24 | +### Launch Extension |
| 25 | + |
| 26 | +This is the launcher I use to launch the extension for development. Yours may |
| 27 | +vary slightly depending on your environment. |
| 28 | + |
| 29 | +`.vscode/launch.json` |
| 30 | +```jsonc |
| 31 | +{ |
| 32 | + // Use IntelliSense to learn about possible attributes. |
| 33 | + // Hover to view descriptions of existing attributes. |
| 34 | + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
| 35 | + "version": "0.2.0", |
| 36 | + "configurations": [ |
| 37 | + { |
| 38 | + "args": [ |
| 39 | + "--extensionDevelopmentPath=${workspaceFolder}/vscode" |
| 40 | + ], |
| 41 | + "name": "Launch Extension", |
| 42 | + "outFiles": [ |
| 43 | + "${workspaceFolder}/vscode/out/**/*.js" |
| 44 | + ], |
| 45 | + "preLaunchTask": "npm: build - vscode", |
| 46 | + "request": "launch", |
| 47 | + "type": "extensionHost" |
| 48 | + } |
| 49 | + ] |
| 50 | +} |
| 51 | +``` |
| 52 | + |
| 53 | +`.vscode/tasks.json` |
| 54 | +```json |
| 55 | +{ |
| 56 | + "version": "2.0.0", |
| 57 | + "tasks": [ |
| 58 | + { |
| 59 | + "type": "npm", |
| 60 | + "script": "build", |
| 61 | + "path": "vscode", |
| 62 | + "group": "build", |
| 63 | + "problemMatcher": [], |
| 64 | + "label": "npm: build - vscode", |
| 65 | + "detail": "npm run build-client -- --sourcemap && npm run build-server -- --sourcemap" |
| 66 | + } |
| 67 | + ] |
| 68 | +} |
| 69 | +``` |
0 commit comments