Skip to content

Commit

Permalink
Merge pull request #131 from AShujiao/dev_2.5.3
Browse files Browse the repository at this point in the history
Dev 2.5.3
  • Loading branch information
AShujiao authored Jun 30, 2024
2 parents 20e1232 + 3774b21 commit 8f54389
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,8 @@

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

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

#### ver 2.5.3 (2024/06/30)

1.修复mac下本地图片不显示问题
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ 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.2 (2024/06/24)
#### ver 2.5.3 (2024/06/30)

1.修复图片无法显示的bug
1.修复mac下本地图片不显示问题

---
### Thanks 感谢
Expand Down
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.2",
"version": "2.5.3",
"publisher": "manasxx",
"engines": {
"vscode": "^1.38.0"
Expand Down
10 changes: 9 additions & 1 deletion src/FileDom.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as path from 'path';
import * as fs from 'fs';
import version from './version';
import * as os from 'os';
import {
Uri,
window,
Expand Down Expand Up @@ -29,7 +30,14 @@ export class FileDom {
}
this.sizeModel = sizeModel;
if(imagePath.substr(0, 8).toLowerCase() !== 'https://'){
this.localImgToVsc();
// mac对vscodefile协议支持存在异常,所以mac下使用base64
var osType = os.type()
if(osType == 'Darwin'){
this.imageToBase64();
}else{
this.localImgToVsc();
}

}
}

Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function activate(context: ExtensionContext) {
let title:string = ex ? ex.packageJSON['one_title'] : '';
if(openVersion != version && title != ""){
context.globalState.update('ext_version',version);
vsHelp.showWebview('🐷已更新到2.5.2:修复图片无法显示的问题 --- 🐷\r🐶🐷🐔🦊立即体验!!🐯🐮🐹🐽❓');
vsHelp.showWebview('🐷已更新到2.5.3:修复mac下本地图片不显示问题--- 🐷\r🐶🐷🐔🦊立即体验!!🐯🐮🐹🐽❓');
}
setContext(context);
}
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default '2.5.2';
export default '2.5.3';

0 comments on commit 8f54389

Please sign in to comment.