mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Switches all samples to use eslint 9 with flat configs. I've tried to migrate existing settings as much as possible. However our eslint configs were also inconsistent so I've tried to align these too
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
Running the sample
- Run
npm installin terminal to install depedencies - Run the
Run Extensiontarget in the Debug View. This will:- Start a task
npm: watchto compile the client code - Run the extension in a new VS Code window.
- Start a task
- Open a folder in the new VS Code window.
- Open a code file.
- Run the
Toggle Tutor Annotationscommand from the command palette.