Go Setup LSPs for Your Copilot

April 15, 2026    Copilot AI Agentic AI

Go Setup LSPs for Your Copilot

A co-worker was presenting about his home Agentic AI programming setup and mentioned that his Open Code agent was using grep to find and change code. He said that an Language Server Protocol (LSP) would be better and it can be setup.

So I had to figure out how to set this up for GitHub Copilot CLI.

What is an LSP?

An LSP is a protocol that allows code editors and IDEs to communicate with language servers that provide features like code completion, linting, and refactoring.

Copilot CLI Setup

Copilot supports LSPs since 2025-02-10.

The official setup guide has instructions for using an agent skill or manually.

The path to place the skill was incorrect. I needed to put my in c:\Users\<username>\.agents\skills\

After that I prompted the agent to use the skill with setup lsp in VS Code.

It asked me “Q: Which programming language(s) do you want LSP support for? A: Python, TypeScript/JavaScript, Go, Rust, C#, Java, Other”

I answered adding F# and YAML to the list.

I created ~/.copilot/lsp-config.json

It did attempt Go and Rust, but that failed.

Here’s the final summary output:

erfect! LSP setup is complete. Here's the summary:

✅ Installed LSP Servers:

TypeScript/JavaScript — typescript-language-server
Python — pyright-langserver
YAML — yaml-language-server
C# — dotnet (Roslyn Language Server)
F# — fsautocomplete
⚠️ Not installed (prerequisites missing on this system):

Go — requires Go SDK
Rust — requires rustup
📁 Configuration:

Config file: lsp-config.json
Scope: User-level (available for all projects)
Next steps:

Type /exit to quit Copilot CLI — this is required so the new LSP configuration loads on next launch
Re-launch copilot in a project with files of the configured languages
Run /lsp to check server status
Try code intelligence features like go-to-definition or hover
To add Go and Rust later, install their respective SDKs and run their install commands, then I can update the config.

Now I’ll keep my eyes open and expect less grep and more LSP usage from Copilot. Hopefully that will make my token usage more effective as well.

VS Code

Copilot in VS Code already has LSP support built in. Just install the GitHub Copilot extension and you’re good to go.



Watch the Story for Good News
I gladly accept BTC Lightning Network tips at strike.me/aligned

Check out my Resources Page for referrals that would help me.


Swan logo
Use Swan Bitcoin to onramp with low fees and automatic daily cost averaging and get $10 in BTC when you sign up.

Use the Brave browser to block ads and trackers! Use Brave