feat: lsp discovery

This commit is contained in:
adamdottv
2025-05-01 06:26:20 -05:00
parent 7bc542abff
commit d08e58279d
9 changed files with 830 additions and 7 deletions

View File

@@ -96,10 +96,10 @@ func NewClient(ctx context.Context, command string, args ...string) (*Client, er
go func() {
scanner := bufio.NewScanner(stderr)
for scanner.Scan() {
fmt.Fprintf(os.Stderr, "LSP Server: %s\n", scanner.Text())
logging.Info("LSP Server", "message", scanner.Text())
}
if err := scanner.Err(); err != nil {
fmt.Fprintf(os.Stderr, "Error reading stderr: %v\n", err)
logging.Error("Error reading LSP stderr", "error", err)
}
}()