Skip to content

Commit

Permalink
fix: path include bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mlhiter committed Nov 14, 2024
1 parent fcced78 commit 02f6c9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/ide/vscode/devbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions extensions/ide/vscode/devbox/src/commands/remoteConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}
Expand Down

0 comments on commit 02f6c9f

Please sign in to comment.