Skip to content

Commit

Permalink
Merge pull request #129 from AShujiao/dev_2.5.2
Browse files Browse the repository at this point in the history
2.5.2
  • Loading branch information
AShujiao authored Jun 24, 2024
2 parents a8abf73 + 6926c31 commit 20e1232
Show file tree
Hide file tree
Showing 9 changed files with 209 additions and 215 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,8 @@
3.社区支持注册(需邮箱激活)
4.社区支持回复主题,上传图片、添加第三方图片(用于设置背景图)
5.社区支持发布个人主题(私人图库)(需要作者审核)
6.修复开启自动更换的异常 (2.5.1/2024.05.27)
6.修复开启自动更换的异常 (2.5.1/2024.05.27)

#### ver 2.5.2 (2024/06/24)

1.修复图片无法显示的bug
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,10 @@ Add a picture you like to cover the entire vscode..
## 最近更新日志
[完整日志](https://github.com/vscode-extension/vscode-background-cover/blob/master/CHANGELOG.md)

#### ver 2.5.0 (2024/05/26)

1.支持在线图片快速设置背景!!!
2.在线社区集成进vscode左侧栏,发布图片、设置默认页
3.社区支持注册(需邮箱激活)
4.社区支持回复主题,上传图片、添加第三方图片(用于设置背景图)
5.社区支持发布个人主题(私人图库)(需要作者审核)
6.修复开启自动更换的异常 (2.5.1/2024.05.27)

#### ver 2.5.2 (2024/06/24)

1.修复图片无法显示的bug

---
### Thanks 感谢

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "background-cover",
"displayName": "background-cover",
"description": "Add a picture you like to cover the entire vscode..",
"version": "2.5.1",
"version": "2.5.2",
"publisher": "manasxx",
"engines": {
"vscode": "^1.38.0"
Expand Down
Binary file modified resources/support.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion src/FileDom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export class FileDom {
sizeModel = "cover";
}
this.sizeModel = sizeModel;
if(imagePath.substr(0, 8).toLowerCase() !== 'https://'){
this.localImgToVsc();
}
}


Expand Down Expand Up @@ -144,7 +147,7 @@ export class FileDom {
}


public localImgToVsc() {
private localImgToVsc() {
var url = "vscode-file://vscode-app/" + this.imagePath
this.imagePath = Uri.parse(url).toString();
}
Expand Down
Loading

0 comments on commit 20e1232

Please sign in to comment.