Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/media-preview/package.json
3292 views
1
{
2
"name": "media-preview",
3
"displayName": "%displayName%",
4
"description": "%description%",
5
"extensionKind": [
6
"ui",
7
"workspace"
8
],
9
"version": "1.0.0",
10
"publisher": "vscode",
11
"icon": "icon.png",
12
"license": "MIT",
13
"aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",
14
"engines": {
15
"vscode": "^1.70.0"
16
},
17
"main": "./out/extension",
18
"browser": "./dist/browser/extension.js",
19
"categories": [
20
"Other"
21
],
22
"activationEvents": [],
23
"capabilities": {
24
"virtualWorkspaces": true,
25
"untrustedWorkspaces": {
26
"supported": true
27
}
28
},
29
"contributes": {
30
"configuration": {
31
"type": "object",
32
"title": "Media Previewer",
33
"properties": {
34
"mediaPreview.video.autoPlay": {
35
"type": "boolean",
36
"default": false,
37
"markdownDescription": "%videoPreviewerAutoPlay%"
38
},
39
"mediaPreview.video.loop": {
40
"type": "boolean",
41
"default": false,
42
"markdownDescription": "%videoPreviewerLoop%"
43
}
44
}
45
},
46
"customEditors": [
47
{
48
"viewType": "imagePreview.previewEditor",
49
"displayName": "%customEditor.imagePreview.displayName%",
50
"priority": "builtin",
51
"selector": [
52
{
53
"filenamePattern": "*.{jpg,jpe,jpeg,png,bmp,gif,ico,webp,avif,svg}"
54
}
55
]
56
},
57
{
58
"viewType": "vscode.audioPreview",
59
"displayName": "%customEditor.audioPreview.displayName%",
60
"priority": "builtin",
61
"selector": [
62
{
63
"filenamePattern": "*.{mp3,wav,ogg,oga}"
64
}
65
]
66
},
67
{
68
"viewType": "vscode.videoPreview",
69
"displayName": "%customEditor.videoPreview.displayName%",
70
"priority": "builtin",
71
"selector": [
72
{
73
"filenamePattern": "*.{mp4,webm}"
74
}
75
]
76
}
77
],
78
"commands": [
79
{
80
"command": "imagePreview.zoomIn",
81
"title": "%command.zoomIn%",
82
"category": "Image Preview"
83
},
84
{
85
"command": "imagePreview.zoomOut",
86
"title": "%command.zoomOut%",
87
"category": "Image Preview"
88
},
89
{
90
"command": "imagePreview.copyImage",
91
"title": "%command.copyImage%",
92
"category": "Image Preview"
93
},
94
{
95
"command": "imagePreview.reopenAsPreview",
96
"title": "%command.reopenAsPreview%",
97
"category": "Image Preview",
98
"icon": "$(preview)"
99
},
100
{
101
"command": "imagePreview.reopenAsText",
102
"title": "%command.reopenAsText%",
103
"category": "Image Preview",
104
"icon": "$(go-to-file)"
105
}
106
],
107
"menus": {
108
"commandPalette": [
109
{
110
"command": "imagePreview.zoomIn",
111
"when": "activeCustomEditorId == 'imagePreview.previewEditor'",
112
"group": "1_imagePreview"
113
},
114
{
115
"command": "imagePreview.zoomOut",
116
"when": "activeCustomEditorId == 'imagePreview.previewEditor'",
117
"group": "1_imagePreview"
118
},
119
{
120
"command": "imagePreview.copyImage",
121
"when": "false"
122
},
123
{
124
"command": "imagePreview.reopenAsPreview",
125
"when": "activeEditor == workbench.editors.files.textFileEditor && resourceExtname == '.svg'",
126
"group": "navigation"
127
},
128
{
129
"command": "imagePreview.reopenAsText",
130
"when": "activeCustomEditorId == 'imagePreview.previewEditor' && resourceExtname == '.svg'",
131
"group": "navigation"
132
}
133
],
134
"webview/context": [
135
{
136
"command": "imagePreview.copyImage",
137
"when": "webviewId == 'imagePreview.previewEditor'"
138
}
139
],
140
"editor/title": [
141
{
142
"command": "imagePreview.reopenAsPreview",
143
"when": "editorFocus && resourceExtname == '.svg'",
144
"group": "navigation"
145
},
146
{
147
"command": "imagePreview.reopenAsText",
148
"when": "activeCustomEditorId == 'imagePreview.previewEditor' && resourceExtname == '.svg'",
149
"group": "navigation"
150
}
151
]
152
}
153
},
154
"scripts": {
155
"compile": "gulp compile-extension:media-preview",
156
"watch": "npm run build-preview && gulp watch-extension:media-preview",
157
"vscode:prepublish": "npm run build-ext",
158
"build-ext": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:media-preview ./tsconfig.json",
159
"compile-web": "npx webpack-cli --config extension-browser.webpack.config --mode none",
160
"watch-web": "npx webpack-cli --config extension-browser.webpack.config --mode none --watch --info-verbosity verbose"
161
},
162
"dependencies": {
163
"@vscode/extension-telemetry": "^0.9.8",
164
"vscode-uri": "^3.0.6"
165
},
166
"repository": {
167
"type": "git",
168
"url": "https://github.com/microsoft/vscode.git"
169
}
170
}
171
172