From 29b33bce7f3f2f453ed3b0dea71f0a32c2611065 Mon Sep 17 00:00:00 2001 From: czw Date: Sat, 5 Oct 2024 16:21:34 +0800 Subject: [PATCH 1/2] 2.5.5 --- CHANGELOG.md | 6 +++++- README.md | 4 ++-- package.json | 2 +- src/FileDom.ts | 3 ++- src/version.ts | 2 +- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b8173d..87d0fc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -120,4 +120,8 @@ #### ver 2.5.4 (2024/08/22) - 1.修复Linux系统本地图片无法使用的问题 \ No newline at end of file + 1.修复Linux系统本地图片无法使用的问题 + +#### ver 2.5.5 (2024/10/05) + + 1.修复vsc1.94.0版本导致的异常 \ No newline at end of file diff --git a/README.md b/README.md index 9cac158..a709951 100644 --- a/README.md +++ b/README.md @@ -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.4 (2024/08/22) +#### ver 2.5.5 (2024/10/05) - 1.修复Linux系统本地图片无法使用的问题 + 1.修复vsc1.94.0版本导致的异常 --- ### Thanks 感谢 diff --git a/package.json b/package.json index b1858dd..5f26f53 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.4", + "version": "2.5.5", "publisher": "manasxx", "engines": { "vscode": "^1.38.0" diff --git a/src/FileDom.ts b/src/FileDom.ts index a4637c3..011a2c6 100644 --- a/src/FileDom.ts +++ b/src/FileDom.ts @@ -7,6 +7,7 @@ import { window, InputBoxOptions, commands, + env, } from 'vscode'; import { exec } from 'child_process'; import vsHelp from './vsHelp'; @@ -15,7 +16,7 @@ const cssName: string = version >= "1.38" ? 'workbench.desktop.main.css' : 'work export class FileDom { // 文件路径 - private filePath = path.join(path.dirname((require.main as NodeModule).filename), 'vs', 'workbench', cssName); + private filePath = path.join(env.appRoot, "out", "vs", "workbench", "workbench.desktop.main.css");;//path.join(path.dirname((require.main as NodeModule).filename), 'vs', 'workbench', cssName); private extName = "backgroundCover"; private imagePath: string = ''; private imageOpacity: number = 1; diff --git a/src/version.ts b/src/version.ts index 635a44e..106dc95 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export default '2.5.4'; \ No newline at end of file +export default '2.5.5'; \ No newline at end of file From 987e43f2eefe70d573cb07676c08aacacfc54902 Mon Sep 17 00:00:00 2001 From: czw Date: Sat, 5 Oct 2024 16:22:48 +0800 Subject: [PATCH 2/2] 2.5.5 --- src/FileDom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FileDom.ts b/src/FileDom.ts index 011a2c6..e8d7127 100644 --- a/src/FileDom.ts +++ b/src/FileDom.ts @@ -16,7 +16,7 @@ const cssName: string = version >= "1.38" ? 'workbench.desktop.main.css' : 'work export class FileDom { // 文件路径 - private filePath = path.join(env.appRoot, "out", "vs", "workbench", "workbench.desktop.main.css");;//path.join(path.dirname((require.main as NodeModule).filename), 'vs', 'workbench', cssName); + private filePath = path.join(env.appRoot, "out", "vs", "workbench", cssName);;//path.join(path.dirname((require.main as NodeModule).filename), 'vs', 'workbench', cssName); private extName = "backgroundCover"; private imagePath: string = ''; private imageOpacity: number = 1;