kylin-code/extensions/media-preview/package.json

137 lines
3.7 KiB
JSON

{
"name": "media-preview",
"displayName": "%displayName%",
"description": "%description%",
"extensionKind": [
"ui",
"workspace"
],
"version": "1.0.0",
"publisher": "vscode",
"icon": "icon.png",
"license": "MIT",
"aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",
"engines": {
"vscode": "^1.70.0"
},
"main": "./out/extension",
"browser": "./dist/browser/extension.js",
"categories": [
"Other"
],
"activationEvents": [],
"capabilities": {
"virtualWorkspaces": true,
"untrustedWorkspaces": {
"supported": true
}
},
"contributes": {
"configuration": {
"type": "object",
"title": "Media Previewer",
"properties": {
"mediaPreview.video.autoPlay": {
"type": "boolean",
"default": false,
"markdownDescription": "%videoPreviewerAutoPlay%"
},
"mediaPreview.video.loop": {
"type": "boolean",
"default": false,
"markdownDescription": "%videoPreviewerLoop%"
}
}
},
"customEditors": [
{
"viewType": "imagePreview.previewEditor",
"displayName": "%customEditor.imagePreview.displayName%",
"priority": "builtin",
"selector": [
{
"filenamePattern": "*.{jpg,jpe,jpeg,png,bmp,gif,ico,webp,avif}"
}
]
},
{
"viewType": "vscode.audioPreview",
"displayName": "%customEditor.audioPreview.displayName%",
"priority": "builtin",
"selector": [
{
"filenamePattern": "*.{mp3,wav,ogg,oga}"
}
]
},
{
"viewType": "vscode.videoPreview",
"displayName": "%customEditor.videoPreview.displayName%",
"priority": "builtin",
"selector": [
{
"filenamePattern": "*.{mp4,webm}"
}
]
}
],
"commands": [
{
"command": "imagePreview.zoomIn",
"title": "%command.zoomIn%",
"category": "Image Preview"
},
{
"command": "imagePreview.zoomOut",
"title": "%command.zoomOut%",
"category": "Image Preview"
},
{
"command": "imagePreview.copyImage",
"title": "%command.copyImage%",
"category": "Image Preview"
}
],
"menus": {
"commandPalette": [
{
"command": "imagePreview.zoomIn",
"when": "activeCustomEditorId == 'imagePreview.previewEditor'",
"group": "1_imagePreview"
},
{
"command": "imagePreview.zoomOut",
"when": "activeCustomEditorId == 'imagePreview.previewEditor'",
"group": "1_imagePreview"
},
{
"command": "imagePreview.copyImage",
"when": "false"
}
],
"webview/context": [
{
"command": "imagePreview.copyImage",
"when": "webviewId == 'imagePreview.previewEditor'"
}
]
}
},
"scripts": {
"compile": "gulp compile-extension:media-preview",
"watch": "npm run build-preview && gulp watch-extension:media-preview",
"vscode:prepublish": "npm run build-ext",
"build-ext": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:media-preview ./tsconfig.json",
"compile-web": "npx webpack-cli --config extension-browser.webpack.config --mode none",
"watch-web": "npx webpack-cli --config extension-browser.webpack.config --mode none --watch --info-verbosity verbose"
},
"dependencies": {
"@vscode/extension-telemetry": "^0.9.0",
"vscode-uri": "^3.0.6"
},
"repository": {
"type": "git",
"url": "https://github.com/microsoft/vscode.git"
}
}