diff --git a/root-handler/text-document-did-change.go b/root-handler/text-document-did-change.go index a6291af..295a091 100644 --- a/root-handler/text-document-did-change.go +++ b/root-handler/text-document-did-change.go @@ -4,6 +4,7 @@ import ( aliases "config-lsp/handlers/aliases/lsp" fstab "config-lsp/handlers/fstab/lsp" hosts "config-lsp/handlers/hosts/lsp" + sshdconfig "config-lsp/handlers/sshd_config/lsp" wireguard "config-lsp/handlers/wireguard/lsp" "github.com/tliron/glsp" @@ -41,7 +42,7 @@ func TextDocumentDidChange(context *glsp.Context, params *protocol.DidChangeText case LanguageFstab: return fstab.TextDocumentDidOpen(context, params) case LanguageSSHDConfig: - break + return sshdconfig.TextDocumentDidOpen(context, params) case LanguageWireguard: return wireguard.TextDocumentDidOpen(context, params) case LanguageHosts: @@ -55,7 +56,7 @@ func TextDocumentDidChange(context *glsp.Context, params *protocol.DidChangeText case LanguageFstab: return fstab.TextDocumentDidChange(context, params) case LanguageSSHDConfig: - return nil + return sshdconfig.TextDocumentDidChange(context, params) case LanguageWireguard: return wireguard.TextDocumentDidChange(context, params) case LanguageHosts: diff --git a/root-handler/text-document-did-open.go b/root-handler/text-document-did-open.go index 799d6aa..3d18585 100644 --- a/root-handler/text-document-did-open.go +++ b/root-handler/text-document-did-open.go @@ -7,6 +7,7 @@ import ( aliases "config-lsp/handlers/aliases/lsp" fstab "config-lsp/handlers/fstab/lsp" hosts "config-lsp/handlers/hosts/lsp" + sshdconfig "config-lsp/handlers/sshd_config/lsp" wireguard "config-lsp/handlers/wireguard/lsp" "github.com/tliron/glsp" @@ -33,7 +34,7 @@ func TextDocumentDidOpen(context *glsp.Context, params *protocol.DidOpenTextDocu case LanguageFstab: return fstab.TextDocumentDidOpen(context, params) case LanguageSSHDConfig: - break + return sshdconfig.TextDocumentDidOpen(context, params) case LanguageWireguard: return wireguard.TextDocumentDidOpen(context, params) case LanguageHosts: diff --git a/root-handler/workspace-execute-command.go b/root-handler/workspace-execute-command.go index dd7f906..506384e 100644 --- a/root-handler/workspace-execute-command.go +++ b/root-handler/workspace-execute-command.go @@ -1,6 +1,7 @@ package roothandler import ( + aliases "config-lsp/handlers/aliases/lsp" hosts "config-lsp/handlers/hosts/lsp" wireguard "config-lsp/handlers/wireguard/lsp" @@ -21,6 +22,8 @@ func WorkspaceExecuteCommand(context *glsp.Context, params *protocol.ExecuteComm edit, err = wireguard.WorkspaceExecuteCommand(context, params) case "hosts": edit, err = hosts.WorkspaceExecuteCommand(context, params) + case "aliases": + edit, err = aliases.WorkspaceExecuteCommand(context, params) } if err != nil {