-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This allows for exclusion of specific subdirs or files under the dirs specified via `yangPath`. Also added github ci checks markdown files to fix markdownlint issues. This addresses #232 Signed-off-by: Siddharth Sharma <[email protected]>
- Loading branch information
Showing
8 changed files
with
144 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,6 @@ end_of_line = crlf | |
[*.yml] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[{*.xtext,*.xtend}] | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,6 @@ | |
], | ||
"url": "./schema/yang-lsp-settings-schema.json" | ||
} | ||
] | ||
], | ||
"markdownlint.ignore": ".gitignore" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
# Extensions | ||
|
||
The yang-lsp allows to have additional third party extensions, configured through `yang.settings`. | ||
For details on file format and schema see [Settings.md](./Settings.md). | ||
The yang-lsp allows to have additional third party extensions, configured | ||
through `yang.settings`. For details on file format and schema see | ||
[Settings.md](./Settings.md). | ||
|
||
So far two different kinds of extensions are supported : | ||
|
||
|
@@ -10,7 +11,9 @@ So far two different kinds of extensions are supported : | |
|
||
## Create a Validator | ||
|
||
A validator extension is a Java class that implements the interface `io.typefox.yang.validation.IValidatorExtension`. | ||
A validator extension is a Java class that implements the interface | ||
`io.typefox.yang.validation.IValidatorExtension`. | ||
|
||
Here is a small example: | ||
|
||
```java | ||
|
@@ -50,7 +53,7 @@ class MyCommand implements ICommandExtension { | |
* return a list of commands. A command string is used as ID internally and as a label in the UI. | ||
Check failure on line 53 in docs/Extensions.md GitHub Actions / mdlintLine length
|
||
*/ | ||
override getCommands() { | ||
#[COMMAND] | ||
#[COMMAND] | ||
} | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.