lsp-setup

Enable code intelligence (go-to-definition, find-references, hover, type info) for any programming language by installing and configuring an LSP server for…

INSTALLATION
npx skills add https://github.com/github/awesome-copilot --skill lsp-setup
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

$27

  • User-level: ~/.copilot/lsp-config.json
  • Repo-level: lsp.json (repo root) or .github/lsp.json

The JSON structure:

{

  "lspServers": {

    "<server-key>": {

      "command": "<binary>",

      "args": ["--stdio"],

      "fileExtensions": {

        ".<ext>": "<languageId>",

        ".<ext2>": "<languageId>"

      }

    }

  }

}

Key rules

  • command is the binary name (must be on $PATH) or an absolute path.
  • args almost always includes "--stdio" to use standard I/O transport.
  • fileExtensions maps each file extension (with leading dot) to a Language ID.
  • Multiple servers can coexist in lspServers.
  • When merging into an existing file, never overwrite other server entries — only add or update the target language key.

Behavior

  • Always use ask_user with choices when asking the user to pick a language or scope.
  • If the language is not listed in references/lsp-servers.md, search the web for " LSP server" and guide the user through manual configuration.
  • If a package manager is not available (e.g. no Homebrew on macOS), suggest alternative install methods from the reference file.
  • After installation, run which <binary> (or where.exe on Windows) to confirm the binary is accessible.
  • Show the user the final config JSON before writing it.
  • If the config file already exists, read it first and merge — do not clobber.

Verification

After setup, tell the user:

  • Type /exit to quit Copilot CLI — this is required so the new LSP configuration is loaded on next launch
  • Re-launch copilot in a project with files of the configured language
  • Run /lsp to check the server status
  • Try code intelligence features like go-to-definition or hover
BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card