mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 15:05:28 +02:00
fix(sshd_config): Fix match option tag
This commit is contained in:
parent
55b55ac13e
commit
f690147528
@ -11,6 +11,8 @@ import (
|
||||
protocol "github.com/tliron/glsp/protocol_3_16"
|
||||
)
|
||||
|
||||
var matchOption = fields.CreateNormalizedName("Match")
|
||||
|
||||
func GetRootCompletions(
|
||||
d *sshdconfig.SSHDDocument,
|
||||
parentMatchBlock *ast.SSHDMatchBlock,
|
||||
@ -77,7 +79,7 @@ func GetOptionCompletions(
|
||||
return nil
|
||||
}
|
||||
|
||||
if entry.Key.Key == "Match" {
|
||||
if entry.Key.Key == matchOption {
|
||||
return getMatchCompletions(
|
||||
d,
|
||||
cursor,
|
||||
|
@ -5,6 +5,7 @@ import (
|
||||
sshdconfig "config-lsp/handlers/sshd_config"
|
||||
"config-lsp/handlers/sshd_config/fields"
|
||||
"config-lsp/handlers/sshd_config/match-parser"
|
||||
|
||||
protocol "github.com/tliron/glsp/protocol_3_16"
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user