lsp-setup

Configure and activate LSP servers in Copilot CLI via lsp-config.json.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/RogerioSobrinho/codeme-copilot --skill lsp-setup-rogeriosobrinho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lsp-setup
Source: https://github.com/RogerioSobrinho/codeme-copilot/tree/main/skills/lsp-setup
Command: npx skills add https://github.com/RogerioSobrinho/codeme-copilot --skill lsp-setup-rogeriosobrinho

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configures Copilot CLI to provide language-aware code intelligence via LSP across local and project contexts.

Core Features & Use Cases

  • Per-language LSP setup and automatic enablement of language servers (Java/jdtls, TypeScript/JavaScript/typescript-language-server, Dart language server, Go gopls, Python pylsp) within Copilot CLI.
  • Project-scoped and user-scoped configurations managed via lsp-config.json files.
  • Verification and troubleshooting commands to ensure LSP servers are running and correctly bound to file extensions.

Quick Start

Run the /lsp command to verify and configure your LSP setup across supported languages.

Frequently Asked Questions about lsp-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enable language server protocol support for go-to-definition and hover in Copilot CLI?

To enable language server protocol (LSP) support in Copilot CLI, you configure an lsp-config.json file with the appropriate command, args, and fileExtensions for your target language, then run the /lsp command to activate and verify the server bindings.

What is the best way to add code intelligence for Java and TypeScript in my local development environment?

Adding code intelligence for Java and TypeScript involves configuring project-scoped or user-scoped lsp-config.json files to launch language servers like jdtls and typescript-language-server, which provide diagnostics and hover features directly within Copilot CLI.

Does Copilot CLI support language servers for Python and Go projects?

Yes, Copilot CLI supports language servers for Python and Go projects by configuring lsp-config.json entries for pylsp and gopls respectively, enabling code intelligence features across both user-level and project-level contexts.

How do I configure lsp-config.json to bind a language server to specific file extensions?

You configure lsp-config.json by creating entries that follow a strict JSON schema, specifying the server command, its launch arguments, and the target fileExtensions array to ensure the language server correctly binds to your project files.

Why is my LSP setup not working for diagnostics in Copilot CLI?

If your LSP setup is not working for diagnostics, verify the language server is installed and running, check that your lsp-config.json command and fileExtensions match the schema, and use the troubleshooting commands to ensure correct server binding.

Can I use project-scoped LSP configurations for Dart alongside user-scoped TypeScript settings?

Yes, you can manage both project-scoped and user-scoped configurations simultaneously, allowing a Dart language server to run in a specific project context while TypeScript settings apply globally across your Copilot CLI environment.