mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
17 lines
443 B
Go
17 lines
443 B
Go
package lsp
|
|
|
|
import (
|
|
sshdconfig "config-lsp/handlers/sshd_config"
|
|
"config-lsp/handlers/sshd_config/handlers"
|
|
|
|
"github.com/tliron/glsp"
|
|
protocol "github.com/tliron/glsp/protocol_3_16"
|
|
)
|
|
|
|
func TextDocumentCodeAction(context *glsp.Context, params *protocol.CodeActionParams) ([]protocol.CodeAction, error) {
|
|
d := sshdconfig.DocumentParserMap[params.TextDocument.URI]
|
|
actions := handlers.FetchCodeActions(d, params)
|
|
|
|
return actions, nil
|
|
}
|