mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 15:05:28 +02:00
fix(ssh_config): Fix formatting for unknown options
This commit is contained in:
parent
60ac7cf961
commit
90b62cf01f
@ -109,7 +109,11 @@ func formatSSHOption(
|
||||
var key string
|
||||
|
||||
if option.Key != nil {
|
||||
key = fields.FieldsNameFormattedMap[option.Key.Key]
|
||||
if optionName, found := fields.FieldsNameFormattedMap[option.Key.Key]; found {
|
||||
key = optionName
|
||||
} else {
|
||||
key = option.Key.Value.Raw
|
||||
}
|
||||
} else {
|
||||
key = ""
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user