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
- Put the below in
.github/lsp.json
"lspServers": {
"gopls": {
"command": "gopls",
"args": ["serve"],
"fileExtensions": {
".go": "go"
}
}
}
}
- Run
/lsp show to see:
● LSP Server Status:
Project-configured servers:
• gopls: (.go)
- Run
/lsp test gopls and you'll get:
✗ Server "gopls" not found. Available: (none)
- Move the exact file to the global conf:
mv .github/lsp.json ~/.copilot/lsp-config.json
- 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