MCPcopy Create free account
hub / github.com/github/gh-aw / Validate

Method Validate

pkg/workflow/lsp_manager.go:64–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64func (m *LSPManager) Validate() error {
65 if !m.HasServers() {
66 return nil
67 }
68 for language, config := range m.servers {
69 if config.Command == "" {
70 return fmt.Errorf("lsp.%s.command is required", language)
71 }
72 if len(config.FileExtensions) == 0 {
73 return fmt.Errorf("lsp.%s.fileExtensions must define at least one file extension mapping", language)
74 }
75 }
76 return nil
77}
78
79func (m *LSPManager) CopilotLSPServers() map[string]LSPServerConfig {
80 if !m.HasServers() {

Calls 2

HasServersMethod · 0.95
ErrorfMethod · 0.45