From 02f6c9f5e2594c233c65aa14fc9704cfc19952d2 Mon Sep 17 00:00:00 2001 From: mlhiter <3076438032@qq.com> Date: Thu, 14 Nov 2024 13:46:17 +0800 Subject: [PATCH] fix: path include bug --- extensions/ide/vscode/devbox/package.json | 2 +- extensions/ide/vscode/devbox/src/commands/remoteConnector.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/ide/vscode/devbox/package.json b/extensions/ide/vscode/devbox/package.json index 4901305661b..45c56a3ac32 100644 --- a/extensions/ide/vscode/devbox/package.json +++ b/extensions/ide/vscode/devbox/package.json @@ -2,7 +2,7 @@ "name": "devbox-aio", "displayName": "Devbox", "description": "help code for cloud devbox in sailos/sealos", - "version": "1.0.4", + "version": "1.0.5", "keywords": [ "devbox", "remote development", diff --git a/extensions/ide/vscode/devbox/src/commands/remoteConnector.ts b/extensions/ide/vscode/devbox/src/commands/remoteConnector.ts index 7e3016b392d..be4e90a810b 100644 --- a/extensions/ide/vscode/devbox/src/commands/remoteConnector.ts +++ b/extensions/ide/vscode/devbox/src/commands/remoteConnector.ts @@ -36,6 +36,8 @@ export class RemoteSSHConnector extends Disposable { return content.replace(includePattern, includeLine) } else if (includePattern2.test(content)) { return content.replace(includePattern2, includeLine) + } else if (content.includes(includeLine)) { + return content } else { return `${includeLine}\n${content}` }