This extension allows you to validate a json schema from within Visual Studio Code. It supports the json schema draft 4 spec.
This plugin allows you to validate the schema you are currently viewing. It supports all json schema spec including $refs.
I wouldn't have bothered making this plugin without the following two NPM modules. Check them out - you might find them useful too.