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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

137 lines
3.7 KiB
JSON
Raw Normal View History

2022-06-14 14:37:10 +08:00
{
2024-04-30 20:57:13 +08:00
"name": "media-preview",
2022-06-14 14:37:10 +08:00
"displayName": "%displayName%",
"description": "%description%",
"extensionKind": [
"ui",
"workspace"
],
"version": "1.0.0",
"publisher": "vscode",
"icon": "icon.png",
"license": "MIT",
2024-04-30 20:57:13 +08:00
"aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",
2022-06-14 14:37:10 +08:00
"engines": {
2024-04-30 20:57:13 +08:00
"vscode": "^1.70.0"
2022-06-14 14:37:10 +08:00
},
"main": "./out/extension",
"browser": "./dist/browser/extension.js",
"categories": [
"Other"
],
2024-04-30 20:57:13 +08:00
"activationEvents": [],
2022-06-14 14:37:10 +08:00
"capabilities": {
"virtualWorkspaces": true,
"untrustedWorkspaces": {
"supported": true
}
},
"contributes": {
2024-04-30 20:57:13 +08:00
"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%"
}
}
},
2022-06-14 14:37:10 +08:00
"customEditors": [
{
"viewType": "imagePreview.previewEditor",
2024-04-30 20:57:13 +08:00
"displayName": "%customEditor.imagePreview.displayName%",
2022-06-14 14:37:10 +08:00
"priority": "builtin",
"selector": [
{
"filenamePattern": "*.{jpg,jpe,jpeg,png,bmp,gif,ico,webp,avif}"
}
]
2024-04-30 20:57:13 +08:00
},
{
"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}"
}
]
2022-06-14 14:37:10 +08:00
}
],
"commands": [
{
"command": "imagePreview.zoomIn",
"title": "%command.zoomIn%",
"category": "Image Preview"
},
{
"command": "imagePreview.zoomOut",
"title": "%command.zoomOut%",
"category": "Image Preview"
2024-04-30 20:57:13 +08:00
},
{
"command": "imagePreview.copyImage",
"title": "%command.copyImage%",
"category": "Image Preview"
2022-06-14 14:37:10 +08:00
}
],
"menus": {
"commandPalette": [
{
"command": "imagePreview.zoomIn",
"when": "activeCustomEditorId == 'imagePreview.previewEditor'",
"group": "1_imagePreview"
},
{
"command": "imagePreview.zoomOut",
"when": "activeCustomEditorId == 'imagePreview.previewEditor'",
"group": "1_imagePreview"
2024-04-30 20:57:13 +08:00
},
{
"command": "imagePreview.copyImage",
"when": "false"
}
],
"webview/context": [
{
"command": "imagePreview.copyImage",
"when": "webviewId == 'imagePreview.previewEditor'"
2022-06-14 14:37:10 +08:00
}
]
}
},
"scripts": {
2024-04-30 20:57:13 +08:00
"compile": "gulp compile-extension:media-preview",
"watch": "npm run build-preview && gulp watch-extension:media-preview",
2022-06-14 14:37:10 +08:00
"vscode:prepublish": "npm run build-ext",
2024-04-30 20:57:13 +08:00
"build-ext": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:media-preview ./tsconfig.json",
2022-06-14 14:37:10 +08:00
"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": {
2024-04-30 20:57:13 +08:00
"@vscode/extension-telemetry": "^0.9.0",
"vscode-uri": "^3.0.6"
2022-06-14 14:37:10 +08:00
},
"repository": {
"type": "git",
"url": "https://github.com/microsoft/vscode.git"
}
}