Skip to content

[BUG]: MacOS下直接vscode环境变量不一致 #637

@hzgotb

Description

@hzgotb

Version
1.0.6
OS
macOS
Shell
zsh
Editor
vscode 1.110.1 arm
Describe the bug

node 全局版本: 25,项目版本:24

当 vscode 的 terminal.integrated.inheritEnv = false 时,直接用 vscode 打开项目后,在内置的终端执行 node -v 显示的node版本是项目版本,执行 vfox current 显示 node 版本是项目版本,符合期望;

当 vscode 的 terminal.integrated.inheritEnv = true 时,直接用 vscode 打开项目后,其内置的终端执行 node -v 显示的node版本是全局版本,执行 vfox current 显示的 node 版本是项目版本,这是有问题的;但如果通过终端软件(tabby,系统自带终端)执行 code <project_path> 打开项目后,两个命令指向的 node 版本均是正常的。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions