mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +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"
|
protocol "github.com/tliron/glsp/protocol_3_16"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var matchOption = fields.CreateNormalizedName("Match")
|
||||||
|
|
||||||
func GetRootCompletions(
|
func GetRootCompletions(
|
||||||
d *sshdconfig.SSHDDocument,
|
d *sshdconfig.SSHDDocument,
|
||||||
parentMatchBlock *ast.SSHDMatchBlock,
|
parentMatchBlock *ast.SSHDMatchBlock,
|
||||||
@ -77,7 +79,7 @@ func GetOptionCompletions(
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if entry.Key.Key == "Match" {
|
if entry.Key.Key == matchOption {
|
||||||
return getMatchCompletions(
|
return getMatchCompletions(
|
||||||
d,
|
d,
|
||||||
cursor,
|
cursor,
|
||||||
|
@ -5,6 +5,7 @@ import (
|
|||||||
sshdconfig "config-lsp/handlers/sshd_config"
|
sshdconfig "config-lsp/handlers/sshd_config"
|
||||||
"config-lsp/handlers/sshd_config/fields"
|
"config-lsp/handlers/sshd_config/fields"
|
||||||
"config-lsp/handlers/sshd_config/match-parser"
|
"config-lsp/handlers/sshd_config/match-parser"
|
||||||
|
|
||||||
protocol "github.com/tliron/glsp/protocol_3_16"
|
protocol "github.com/tliron/glsp/protocol_3_16"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user