mirror of
https://github.com/Microsoft/vscode
synced 2024-07-05 01:08:57 +00:00
parent
e23be3ca5b
commit
0f5502c1a7
|
@ -31,12 +31,12 @@
|
|||
"type": "object",
|
||||
"title": "Media Previewer",
|
||||
"properties": {
|
||||
"previewer.videos.autoPlay": {
|
||||
"mediaPreview.video.autoPlay": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%videoPreviewerAutoPlay%"
|
||||
},
|
||||
"previewer.videos.loop": {
|
||||
"mediaPreview.video.loop": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%videoPreviewerLoop%"
|
||||
|
|
|
@ -54,7 +54,7 @@ class VideoPreview extends MediaPreview {
|
|||
|
||||
protected async getWebviewContents(): Promise<string> {
|
||||
const version = Date.now().toString();
|
||||
const configurations = vscode.workspace.getConfiguration('previewer.videos');
|
||||
const configurations = vscode.workspace.getConfiguration('mediaPreview.video');
|
||||
const settings = {
|
||||
src: await this.getResourcePath(this.webviewEditor, this.resource, version),
|
||||
autoplay: configurations.get('autoPlay'),
|
||||
|
|
Loading…
Reference in New Issue
Block a user