How to use the vscode-json-languageservice/lib/umd/services/jsonValidation.JSONValidation function in vscode-json-languageservice

To help you get started, we’ve selected a few vscode-json-languageservice examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github redhat-developer / yaml-language-server / src / languageservice / services / yamlValidation.ts View on Github external
public constructor(schemaService: YAMLSchemaService, promiseConstructor: PromiseConstructor) {
        this.promise = promiseConstructor || Promise;
        this.validationEnabled = true;
        this.jsonValidation = new JSONValidation(schemaService, this.promise);
    }