Skip to content

Commit

Permalink
fix bug with wrong API for example
Browse files Browse the repository at this point in the history
  • Loading branch information
mkslanc committed Apr 3, 2023
1 parent d30a198 commit 0051a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/validation-against-json-schema/sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ provider.setGlobalOptions("json", {
});

provider.registerEditor(editor);
provider.setOptions(editor.session, {schemaUri: "common.schema.json"});
provider.setSessionOptions(editor.session, {schemaUri: "common.schema.json"});

//try to write something inside curly braces ->

0 comments on commit 0051a6f

Please sign in to comment.