mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +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{
|
errs = append(errs, common.LSPError{
|
||||||
Range: option.Key.LocationRange,
|
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
|
continue
|
||||||
|
@ -39,7 +39,9 @@ func GetRootCompletions(
|
|||||||
|
|
||||||
return utils.MapMapToSlice(
|
return utils.MapMapToSlice(
|
||||||
availableOptions,
|
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{
|
completion := &protocol.CompletionItem{
|
||||||
Label: string(name),
|
Label: string(name),
|
||||||
Kind: &kind,
|
Kind: &kind,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user