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
87 lines
2.1 KiB
JSON
87 lines
2.1 KiB
JSON
{
|
|
"name": "chat-sample",
|
|
"publisher": "vscode-samples",
|
|
"displayName": "Copilot Chat Sample",
|
|
"description": "Sample chat extension, a trusty cat tutor that will can teach you computer science topics.",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/Microsoft/vscode-extension-samples"
|
|
},
|
|
"version": "0.1.0",
|
|
"engines": {
|
|
"vscode": "^1.92.0"
|
|
},
|
|
"categories": [
|
|
"AI",
|
|
"Chat"
|
|
],
|
|
"activationEvents": [],
|
|
"contributes": {
|
|
"chatParticipants": [
|
|
{
|
|
"id": "chat-sample.cat",
|
|
"fullName": "Cat",
|
|
"name": "cat",
|
|
"description": "Meow! What can I teach you?",
|
|
"isSticky": true,
|
|
"commands": [
|
|
{
|
|
"name": "randomTeach",
|
|
"description": "Pick at random a computer science concept then explain it in purfect way of a cat"
|
|
},
|
|
{
|
|
"name": "play",
|
|
"description": "Do whatever you want, you are a cat after all",
|
|
"disambiguation": [
|
|
{
|
|
"category": "cat_play",
|
|
"description": "The user just wants to relax and see the cat play.",
|
|
"examples": [
|
|
"Enough learning, let the cat play with a ball of yarn",
|
|
"Can you show me a cat playing with a laser pointer?"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"disambiguation": [
|
|
{
|
|
"category": "cat",
|
|
"description": "The user wants to learn a specific computer science topic in an informal way.",
|
|
"examples": [
|
|
"Teach me C++ pointers using metaphors",
|
|
"Explain to me what is a linked list in a simple way",
|
|
"Can you explain to me what is a function in programming?"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"commands": [
|
|
{
|
|
"command": "cat.namesInEditor",
|
|
"title": "Use Cat Names in Editor"
|
|
}
|
|
]
|
|
},
|
|
"main": "./out/extension.js",
|
|
"scripts": {
|
|
"vscode:prepublish": "npm run compile",
|
|
"compile": "tsc -p ./",
|
|
"lint": "eslint",
|
|
"watch": "tsc -watch -p ./"
|
|
},
|
|
"dependencies": {
|
|
"@vscode/prompt-tsx": "^0.2.11-alpha"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.13.0",
|
|
"@stylistic/eslint-plugin": "^2.9.0",
|
|
"@types/node": "^20",
|
|
"@types/vscode": "1.90.0",
|
|
"eslint": "^9.13.0",
|
|
"typescript": "^5.6.2",
|
|
"typescript-eslint": "^8.11.0"
|
|
}
|
|
}
|