Files
vscode-extension-samples/lm-api-tutorial
Matt Bierner 2ee6b0b7b9 Update all of our samples to target VSCode 1.100 or newer
This makes sure that if folks get a relatively recent `vscode.d.ts`. It also lets us safely bump up the target to es2024 so you can use all the latest lib additions
2025-08-07 07:57:14 -07:00
..
2024-10-08 12:44:57 -05:00
2024-10-26 17:44:03 -07:00
2024-11-26 22:59:45 -08:00
2024-10-08 12:44:47 -05:00

Language Model API Tutorial Sample

This is the source code for the Language Model API Tutorial. It demonstrates how to use the GitHub Copilot Language Model API to build an extension that annotates your code with inline tutoring tips.

Demo

Link to demo from docs

Running the sample

  • Run npm install in terminal to install depedencies
  • Run the Run Extension target in the Debug View. This will:
    • Start a task npm: watch to compile the client code
    • Run the extension in a new VS Code window.
  • Open a folder in the new VS Code window.
  • Open a code file.
  • Run the Toggle Tutor Annotations command from the command palette.