mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
Adds an example extension for custom editors. This example extension shows two custom editors: one for text and one for binary files
58 lines
1.1 KiB
JSON
58 lines
1.1 KiB
JSON
{
|
|
"name": "cat-edit",
|
|
"description": "Cat Customs - Custom Editor API Samples",
|
|
"version": "0.0.1",
|
|
"enableProposedApi": true,
|
|
"publisher": "vscode-samples",
|
|
"engines": {
|
|
"vscode": "^1.43.0"
|
|
},
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"activationEvents": [
|
|
"onCustomEditor:catEdit.catScratch",
|
|
"onCustomEditor:catEdit.pawDraw"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/microsoft/vscode-extension-samples.git"
|
|
},
|
|
"main": "./out/extension.js",
|
|
"contributes": {
|
|
"customEditors": [
|
|
{
|
|
"viewType": "catEdit.catScratch",
|
|
"displayName": "Cat Scratch",
|
|
"selector": [
|
|
{
|
|
"filenamePattern": "*.cscratch"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"viewType": "catEdit.pawDraw",
|
|
"displayName": "Paw Draw",
|
|
"selector": [
|
|
{
|
|
"filenamePattern": "*.pawdraw"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"scripts": {
|
|
"vscode:prepublish": "npm run compile",
|
|
"compile": "tsc -p ./",
|
|
"lint": "tslint -p ./",
|
|
"watch": "tsc -w -p ./"
|
|
},
|
|
"dependencies": {},
|
|
"devDependencies": {
|
|
"@types/node": "^10.5.2",
|
|
"tslint": "^5.16.0",
|
|
"typescript": "^3.8.3",
|
|
"@types/vscode": "^1.43.0"
|
|
}
|
|
}
|