Skip to content

Commit

Permalink
Add constants.go
Browse files Browse the repository at this point in the history
Signed-off-by: JonahSussman <[email protected]>
  • Loading branch information
JonahSussman committed Oct 26, 2023
1 parent e80a669 commit 52229df
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package server_configurations

import (
"context"

"github.com/go-logr/logr"
"github.com/konveyor/analyzer-lsp/provider"
"github.com/konveyor/generic-external-provider/pkg/lsp"
"github.com/konveyor/generic-external-provider/pkg/server_configurations/generic"
"github.com/konveyor/generic-external-provider/pkg/server_configurations/pylsp"
"github.com/konveyor/generic-external-provider/pkg/server_configurations/yaml_language_server"
)

type ServiceClientConstructor func(context.Context, logr.Logger, provider.InitConfig) (provider.ServiceClient, error)

var SupportedLanguages = map[string]ServiceClientConstructor{
// "": generic.NewGenericServiceClient,
"generic": generic.NewGenericServiceClient,
"pylsp": pylsp.NewPythonServiceClient,
"yaml_language_server": yaml_language_server.NewYamlServiceClient,
}

var SupportedCapabilities = map[string][]lsp.LSPServiceClientCapability{
// "": generic.GenericServiceClientCapabilities,
"generic": generic.GenericServiceClientCapabilities,
"pylsp": pylsp.PythonServiceClientCapabilities,
"yaml_language_server": yaml_language_server.YamlServiceClientCapabilities,
}

0 comments on commit 52229df

Please sign in to comment.