Skip to content

Commit 0ff6722

Browse files
committed
fix(vscode): Keep HOME variable when starting VSCode
Removing the HOME variable has adverse effects on many tools, most notable git. Without it, tools can't find the configurations.
1 parent 5ad68fa commit 0ff6722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/boxcli/integrate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func runIntegrateVSCodeCmd(cmd *cobra.Command, flags integrateCmdFlags) error {
108108
// PATH after VSCode opens and resets it to global shellenv. This causes the VSCode
109109
// terminal to not be able to find devbox packages after the reopen in devbox
110110
// environment action is called.
111-
return ok && (strings.HasPrefix(k, "DEVBOX_OG_PATH") || k == "HOME" || k == "NODE_CHANNEL_FD")
111+
return ok && (strings.HasPrefix(k, "DEVBOX_OG_PATH") || k == "NODE_CHANNEL_FD")
112112
})
113113

114114
// Send message to parent process to terminate

0 commit comments

Comments
 (0)