Skip to content
GitHub Copilot Train-the-Trainer
Prepare CLI language servers

Prepare CLI language servers

Install and check the language server before the workshop. Use the training machine's package policy and keep tool permissions in place. A language-server process is executable software; read the project configuration before opening the workspace in Copilot.

JavaScript: Session M3-04

Use Node.js 22.22.2 or later for the JavaScript server used in this lab.

Check for typescript-language-server on PATH. If it is missing, install the server and its TypeScript dependency:

npm install --global typescript@6 typescript-language-server

Use TypeScript 6 with this server, as its installation guide specifies. Do not replace it with TypeScript 7.

The lab supplies .github/lsp.json and jsconfig.json. Open copilot from the copied agent-project directory and run:

/lsp show
/lsp test typescript

test starts a temporary server to check startup. You must also run an actual definition/reference lookup in the lab.

Python: Session M2-06

Check for pyright-langserver on PATH. If it is missing:

npm install --global pyright

Session M2-06 supplies a project .github/lsp.json with the server name python. Start the CLI in the copied inventory project and run:

/lsp show
/lsp test python

Run these checks before delivery. Wait until the application parses and its tests pass before starting the code-navigation exercise.

If a check fails

Use /lsp logs to read the error. Check the executable path, project root, and file-extension mapping. Use /lsp reload after correcting the configuration. Do not label text-search output as an LSP result. Stop the LSP exercise if the server cannot start or return the requested lookup.

Project configuration applies to its Git repository. These labs use copied projects as separate repositories; do not place their configuration at the curriculum repository root or overwrite an existing project server definition.

Checked October 15, 2026: Adding LSP servers.