npx --package yo --package generator-code -- yo code
Update package.json
:
"contributes": {
"commands": [
{
"command": "cotr-chat.helloWorld",
"title": "Hello World"
}
], "chatParticipants": [
{
"id": "cotr-chat",
"name": "cotr",
"description": "Use COTR snippets in Copilot Chat",
"isSticky": true
}
]
},
"extensionDependencies": [
"github.copilot-chat"
],
"enabledApiProposals": [
"chatParticipant",
"chatVariableResolver",
"languageModels"
],
Copy .d.ts
files from chat example into project.
https://code.visualstudio.com/api/extension-guides/chat
https://code.visualstudio.com/api/extension-guides/language-model
https://supabase.com/docs/guides/auth/auth-deep-dive/auth-deep-dive-jwts#jwts-in-supabase
https://github.com/microsoft/vscode-extension-samples/tree/main/chat-sample