github / github/copilot-cli

.github/lsp.json reports issues, while identical config works OK in ~/.copilot/lsp-config.json

Abierto
#1,373 1 comentario 6 reacciones 0 asignados Ver en GitHub
area:configuration area:tools
Lenguaje dominante
Shell
Estrellas
11.2k
Forks
1.9k
Merge medio
14 h 16 min
PR fusionados (30 d)
6

Descripción

### Describe the bug

When running `/lsp test myserver` with `.github/lsp.json`, I get a message saying it's not there, blocking me from providing it as a convenient default for my teammates.

Moving `.github/lsp.json` to `~/.copilot/lsp-config.json` makes it work immediately.

### Affected version

0.0.406

### Steps to reproduce the behavior

1. Put the below in `.github/lsp.json`
```
"lspServers": {
"gopls": {
"command": "gopls",
"args": ["serve"],
"fileExtensions": {
".go": "go"
}
}
}
}

```

2. Run `/lsp show` to see:

```
● LSP Server Status:

Project-configured servers:
• gopls: (.go)
```
3. Run `/lsp test gopls` and you'll get:

```
✗ Server "gopls" not found. Available: (none)
```
4. Move the exact file to the global conf: `mv .github/lsp.json ~/.copilot/lsp-config.json`
5. Run `/lsp test gopls` and it passes:
```

● ✓ Server "gopls" started successfully!

PID: 31643
Spawn time: 7ms

Server was killed after successful test.
```

### Expected behavior

I'd expect the config to work OK in .github/

### Additional context

Linux, tested on both bash and zsh

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.