From 71917a8dfb6ea96094840bc88ff751e45b38e5ab Mon Sep 17 00:00:00 2001 From: czw <916817706@qq.com> Date: Mon, 27 May 2024 10:24:17 +0800 Subject: [PATCH] 2.5.1 --- CHANGELOG.md | 3 ++- README.md | 1 + package-lock.json | 4 ++-- package.json | 6 +++--- src/PickLIst.ts | 24 +++++++++++++++--------- src/extension.ts | 2 +- src/version.ts | 2 +- 7 files changed, 25 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 129347d..fbdf124 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -107,4 +107,5 @@ 2.在线社区集成进vscode左侧栏,发布图片、设置默认页 3.社区支持注册(需邮箱激活) 4.社区支持回复主题,上传图片、添加第三方图片(用于设置背景图) - 5.社区支持发布个人主题(私人图库)(需要作者审核) \ No newline at end of file + 5.社区支持发布个人主题(私人图库)(需要作者审核) + 6.修复开启自动更换的异常 (2.5.1/2024.05.27) \ No newline at end of file diff --git a/README.md b/README.md index 0d8096f..ca90499 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,7 @@ Add a picture you like to cover the entire vscode.. 3.社区支持注册(需邮箱激活) 4.社区支持回复主题,上传图片、添加第三方图片(用于设置背景图) 5.社区支持发布个人主题(私人图库)(需要作者审核) + 6.修复开启自动更换的异常 (2.5.1/2024.05.27) --- ### Thanks 感谢 diff --git a/package-lock.json b/package-lock.json index 50ff0da..0d0cfd4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "background-cover", - "version": "2.5.0", + "version": "2.5.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "background-cover", - "version": "2.5.0", + "version": "2.5.1", "license": "ISC", "devDependencies": { "@types/mocha": "^5.2.7", diff --git a/package.json b/package.json index 89c9ea0..bc3d032 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "background-cover", "displayName": "background-cover", "description": "Add a picture you like to cover the entire vscode..", - "version": "2.5.0", + "version": "2.5.1", "publisher": "manasxx", "engines": { "vscode": "^1.38.0" @@ -151,8 +151,8 @@ "devDependencies": { "@types/mocha": "^5.2.7", "@types/node": "^12.20.42", - "typescript": "^4.5.4", "@types/vscode": "^1.30.0", - "@vscode/test-electron":"^2.3.2" + "@vscode/test-electron": "^2.3.2", + "typescript": "^4.5.4" } } diff --git a/src/PickLIst.ts b/src/PickLIst.ts index 9ce7d4b..20a2f02 100644 --- a/src/PickLIst.ts +++ b/src/PickLIst.ts @@ -147,6 +147,7 @@ export class PickList { return false; } PickList.itemList = new PickList(config); + PickList.itemList.imageFileType = 1; PickList.itemList.autoUpdateBackground(); return PickList.itemList = undefined; } @@ -162,6 +163,7 @@ export class PickList { return false; } PickList.itemList = new PickList(config); + PickList.itemList.imageFileType = 1; PickList.itemList.autoUpdateBackground(); PickList.itemList = undefined; return commands.executeCommand('workbench.action.reloadWindow'); @@ -671,15 +673,19 @@ export class PickList { this.quickPick.ignoreFocusOut = true; this.quickPick.show(); }else{ - // 弹出提示框确认是否重启 - window.showInformationMessage( - '"' + this.imgPath + '"' + ' | Reloading takes effect? / 重新加载生效?', 'YES', 'NO').then( - (value) => { - if (value === 'YES') { - commands.executeCommand( - 'workbench.action.reloadWindow'); - } - }); + + // 通过在线图库更新提示弹窗 + if(this.imageFileType == 2){ + // 弹出提示框确认是否重启 + window.showInformationMessage( + '"' + this.imgPath + '"' + ' | Reloading takes effect? / 重新加载生效?', 'YES', 'NO').then( + (value) => { + if (value === 'YES') { + commands.executeCommand( + 'workbench.action.reloadWindow'); + } + }); + } } } diff --git a/src/extension.ts b/src/extension.ts index 8647681..e77a850 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -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.0:集成在线图库 --- 🐷\r🐶🐷🐔🦊立即体验!!🐯🐮🐹🐽❓'); + vsHelp.showWebview('🐷已更新到2.5.1:集成在线图库 --- 🐷\r🐶🐷🐔🦊立即体验!!🐯🐮🐹🐽❓'); } setContext(context); } diff --git a/src/version.ts b/src/version.ts index c873685..5eb31aa 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export default '2.5.0'; \ No newline at end of file +export default '2.5.1'; \ No newline at end of file