Skip to content

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

@danielpodwysocki-gini

Description

@danielpodwysocki-gini

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"
      }
    }
  }
}

  1. Run /lsp show to see:
● LSP Server Status:


  Project-configured servers:
    • gopls: (.go)
  1. Run /lsp test gopls and you'll get:
✗ Server "gopls" not found. Available: (none)
  1. Move the exact file to the global conf: mv .github/lsp.json ~/.copilot/lsp-config.json
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions