2019-09-11 00:56:57 +00:00
|
|
|
{
|
2022-09-28 04:01:14 +00:00
|
|
|
"name": "media-preview",
|
2019-09-11 00:56:57 +00:00
|
|
|
"displayName": "%displayName%",
|
|
|
|
"description": "%description%",
|
2020-06-10 23:44:04 +00:00
|
|
|
"extensionKind": [
|
|
|
|
"ui",
|
2021-09-01 13:09:13 +00:00
|
|
|
"workspace"
|
2020-06-10 23:44:04 +00:00
|
|
|
],
|
2019-09-11 00:56:57 +00:00
|
|
|
"version": "1.0.0",
|
|
|
|
"publisher": "vscode",
|
2019-09-16 23:02:39 +00:00
|
|
|
"icon": "icon.png",
|
2019-09-11 00:56:57 +00:00
|
|
|
"license": "MIT",
|
2022-07-07 00:18:41 +00:00
|
|
|
"aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",
|
2019-09-11 00:56:57 +00:00
|
|
|
"engines": {
|
2022-10-11 23:08:17 +00:00
|
|
|
"vscode": "^1.70.0"
|
2019-09-11 00:56:57 +00:00
|
|
|
},
|
|
|
|
"main": "./out/extension",
|
2020-06-25 21:21:56 +00:00
|
|
|
"browser": "./dist/browser/extension.js",
|
2019-09-11 00:56:57 +00:00
|
|
|
"categories": [
|
|
|
|
"Other"
|
|
|
|
],
|
2023-01-31 01:25:56 +00:00
|
|
|
"activationEvents": [],
|
2021-04-21 18:54:42 +00:00
|
|
|
"capabilities": {
|
2021-04-23 08:19:46 +00:00
|
|
|
"virtualWorkspaces": true,
|
2021-04-21 18:54:42 +00:00
|
|
|
"untrustedWorkspaces": {
|
|
|
|
"supported": true
|
|
|
|
}
|
2021-04-15 03:37:01 +00:00
|
|
|
},
|
2019-09-11 00:56:57 +00:00
|
|
|
"contributes": {
|
2023-06-21 17:51:00 +00:00
|
|
|
"configuration": {
|
|
|
|
"type": "object",
|
|
|
|
"title": "Media Previewer",
|
|
|
|
"properties": {
|
2023-06-26 22:26:02 +00:00
|
|
|
"mediaPreview.video.autoPlay": {
|
2023-06-21 17:51:00 +00:00
|
|
|
"type": "boolean",
|
|
|
|
"default": false,
|
|
|
|
"markdownDescription": "%videoPreviewerAutoPlay%"
|
|
|
|
},
|
2023-06-26 22:26:02 +00:00
|
|
|
"mediaPreview.video.loop": {
|
2023-06-21 17:51:00 +00:00
|
|
|
"type": "boolean",
|
|
|
|
"default": false,
|
|
|
|
"markdownDescription": "%videoPreviewerLoop%"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2020-02-25 18:55:19 +00:00
|
|
|
"customEditors": [
|
2019-09-11 00:56:57 +00:00
|
|
|
{
|
|
|
|
"viewType": "imagePreview.previewEditor",
|
2022-08-31 20:06:06 +00:00
|
|
|
"displayName": "%customEditor.imagePreview.displayName%",
|
2019-10-15 22:02:11 +00:00
|
|
|
"priority": "builtin",
|
2019-09-11 00:56:57 +00:00
|
|
|
"selector": [
|
|
|
|
{
|
2021-01-13 21:52:34 +00:00
|
|
|
"filenamePattern": "*.{jpg,jpe,jpeg,png,bmp,gif,ico,webp,avif}"
|
2019-09-11 00:56:57 +00:00
|
|
|
}
|
|
|
|
]
|
2022-08-29 07:19:21 +00:00
|
|
|
},
|
|
|
|
{
|
2022-08-31 20:06:06 +00:00
|
|
|
"viewType": "vscode.audioPreview",
|
|
|
|
"displayName": "%customEditor.audioPreview.displayName%",
|
2022-08-29 07:19:21 +00:00
|
|
|
"priority": "builtin",
|
|
|
|
"selector": [
|
|
|
|
{
|
2023-02-08 18:24:47 +00:00
|
|
|
"filenamePattern": "*.{mp3,wav,ogg,oga}"
|
2022-08-29 07:19:21 +00:00
|
|
|
}
|
|
|
|
]
|
2022-08-31 20:06:06 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"viewType": "vscode.videoPreview",
|
|
|
|
"displayName": "%customEditor.videoPreview.displayName%",
|
|
|
|
"priority": "builtin",
|
|
|
|
"selector": [
|
|
|
|
{
|
2022-09-09 00:28:24 +00:00
|
|
|
"filenamePattern": "*.{mp4,webm}"
|
2022-08-31 20:06:06 +00:00
|
|
|
}
|
|
|
|
]
|
2019-09-11 00:56:57 +00:00
|
|
|
}
|
2019-10-23 00:11:31 +00:00
|
|
|
],
|
|
|
|
"commands": [
|
|
|
|
{
|
|
|
|
"command": "imagePreview.zoomIn",
|
|
|
|
"title": "%command.zoomIn%",
|
|
|
|
"category": "Image Preview"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "imagePreview.zoomOut",
|
|
|
|
"title": "%command.zoomOut%",
|
|
|
|
"category": "Image Preview"
|
2023-04-19 02:19:09 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "imagePreview.copyImage",
|
|
|
|
"title": "%command.copyImage%",
|
|
|
|
"category": "Image Preview"
|
2019-10-23 00:11:31 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"menus": {
|
|
|
|
"commandPalette": [
|
|
|
|
{
|
|
|
|
"command": "imagePreview.zoomIn",
|
2021-03-02 20:30:55 +00:00
|
|
|
"when": "activeCustomEditorId == 'imagePreview.previewEditor'",
|
2019-10-23 00:11:31 +00:00
|
|
|
"group": "1_imagePreview"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "imagePreview.zoomOut",
|
2021-03-02 20:30:55 +00:00
|
|
|
"when": "activeCustomEditorId == 'imagePreview.previewEditor'",
|
2019-10-23 00:11:31 +00:00
|
|
|
"group": "1_imagePreview"
|
2023-04-19 02:19:09 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "imagePreview.copyImage",
|
|
|
|
"when": "false"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"webview/context": [
|
|
|
|
{
|
|
|
|
"command": "imagePreview.copyImage",
|
|
|
|
"when": "webviewId == 'imagePreview.previewEditor'"
|
2019-10-23 00:11:31 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2019-09-11 00:56:57 +00:00
|
|
|
},
|
|
|
|
"scripts": {
|
2022-09-28 04:01:14 +00:00
|
|
|
"compile": "gulp compile-extension:media-preview",
|
|
|
|
"watch": "npm run build-preview && gulp watch-extension:media-preview",
|
2019-09-11 00:56:57 +00:00
|
|
|
"vscode:prepublish": "npm run build-ext",
|
2022-09-28 04:01:14 +00:00
|
|
|
"build-ext": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:media-preview ./tsconfig.json",
|
2020-06-10 23:44:04 +00: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"
|
2019-09-11 00:56:57 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2023-11-01 19:51:03 +00:00
|
|
|
"@vscode/extension-telemetry": "^0.9.0",
|
2022-12-09 19:45:48 +00:00
|
|
|
"vscode-uri": "^3.0.6"
|
2021-01-29 14:30:45 +00:00
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/microsoft/vscode.git"
|
2019-09-11 00:56:57 +00:00
|
|
|
}
|
|
|
|
}
|