Skip to content

Commit

Permalink
Document multiple extension classpaths
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Sharma <[email protected]>
  • Loading branch information
esmasth committed Apr 23, 2024
1 parent 31d587c commit 85a51bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions docs/Extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
5 changes: 2 additions & 3 deletions schema/yang-lsp-settings-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 ':'",
Expand Down

0 comments on commit 85a51bd

Please sign in to comment.