mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 15:05:28 +02:00
feat(ssh_config): Use formatted names for completions
This commit is contained in:
parent
e60a118d72
commit
8bb54e62a9
@ -29,7 +29,7 @@ func analyzeValuesAreValid(
|
||||
|
||||
errs = append(errs, common.LSPError{
|
||||
Range: option.Key.LocationRange,
|
||||
Err: errors.New(fmt.Sprintf("Unknown option: %s", option.Key.Key)),
|
||||
Err: errors.New(fmt.Sprintf("Unknown option: %s", option.Key.Value.Value)),
|
||||
})
|
||||
|
||||
continue
|
||||
|
@ -39,7 +39,9 @@ func GetRootCompletions(
|
||||
|
||||
return utils.MapMapToSlice(
|
||||
availableOptions,
|
||||
func(name fields.NormalizedOptionName, doc docvalues.DocumentationValue) protocol.CompletionItem {
|
||||
func(normalizedName fields.NormalizedOptionName, doc docvalues.DocumentationValue) protocol.CompletionItem {
|
||||
name := fields.FieldsNameFormattedMap[normalizedName]
|
||||
|
||||
completion := &protocol.CompletionItem{
|
||||
Label: string(name),
|
||||
Kind: &kind,
|
||||
|
Loading…
x
Reference in New Issue
Block a user