diff --git a/docs/Extensions.md b/docs/Extensions.md index db573f1..7e38f66 100644 --- a/docs/Extensions.md +++ b/docs/Extensions.md @@ -86,11 +86,12 @@ project's root directory. ## Add the plugin Create (or open) the `yang.settings` file and add the plugin using the following -configuration: +configuration. Other classpaths, validator and commands classes can be provided +as well. ```json "extension" : { - "classpath" : "extension.jar", + "classpath" : "extension.jar:./second-extension.jar:./local-classdir/.", "validators" : "my.pack.MyExampleValidator:my.pack.MyYetAnotherExampleValidator", "commands" : "my.pack.MyCommand:my.pack.MyOtherCommand" } diff --git a/schema/yang-lsp-settings-schema.json b/schema/yang-lsp-settings-schema.json index 4180d20..8c7b73e 100644 --- a/schema/yang-lsp-settings-schema.json +++ b/schema/yang-lsp-settings-schema.json @@ -34,9 +34,8 @@ "type": "object", "properties": { "classpath": { - "description": "Location of extension jar relative to the project's root directory", - "type": "string", - "pattern": "\\.jar$" + "description": "Location of extension jar relative to the project's root directory.\nIt may also be a path to a directory.\nYou can specify multiple elements separated with a colon ':'", + "type": "string" }, "validators": { "description": "IValidatorExtension implementor classes e.g., 'my.pack.MyExampleValidator'.\nYou can specify multiple elements separated with a colon ':'",