Skip to content

Commit 0f5502c

Browse files
authored
Rename settings for media preview video settings (microsoft#186231)
For microsoft#176418
1 parent e23be3c commit 0f5502c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

extensions/media-preview/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
"type": "object",
3232
"title": "Media Previewer",
3333
"properties": {
34-
"previewer.videos.autoPlay": {
34+
"mediaPreview.video.autoPlay": {
3535
"type": "boolean",
3636
"default": false,
3737
"markdownDescription": "%videoPreviewerAutoPlay%"
3838
},
39-
"previewer.videos.loop": {
39+
"mediaPreview.video.loop": {
4040
"type": "boolean",
4141
"default": false,
4242
"markdownDescription": "%videoPreviewerLoop%"

extensions/media-preview/src/videoPreview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class VideoPreview extends MediaPreview {
5454

5555
protected async getWebviewContents(): Promise<string> {
5656
const version = Date.now().toString();
57-
const configurations = vscode.workspace.getConfiguration('previewer.videos');
57+
const configurations = vscode.workspace.getConfiguration('mediaPreview.video');
5858
const settings = {
5959
src: await this.getResourcePath(this.webviewEditor, this.resource, version),
6060
autoplay: configurations.get('autoPlay'),

0 commit comments

Comments
 (0)