mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
doc(sshd_config): Add more documentation
This commit is contained in:
parent
b7e786810e
commit
a4a8e8888f
@ -4,4 +4,18 @@ This folder contains the glue between the config documentation and
|
||||
our language server.
|
||||
|
||||
`fields.go` usually contains a list of all the available options / fields
|
||||
the config file offers.
|
||||
the config file offers.
|
||||
|
||||
It's usually a map of:
|
||||
|
||||
```
|
||||
OptionName: docValue
|
||||
```
|
||||
|
||||
A docvalue is a simple parser that can validate the value and fetch completions for it.
|
||||
You should use a docvalue for most types. See `doc-values` for all available docvalues.
|
||||
|
||||
However, some types are so complex or require more context to validate or fetch completions,
|
||||
that we need to write a custom function for it. In that case we do it dirty and simply check
|
||||
in the completions if the key is the one we are looking for, and then execute the custom function.
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user