microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.59k stars 29.03k forks source link

ZDOTDIR variable is replaced #157664

Closed DusanLesan closed 2 years ago

DusanLesan commented 2 years ago

Type: Bug

When I start vs code, my profile is not recognized and and default one is created at /tmp/vscode-zsh. My .zshrc file is not at default location in home but its path is set by ZDOTDIR to ~/.config/zsh I have tried setting:

    "terminal.integrated.profiles.linux": {
        "zsh": {
            "path": "zsh",
            "env": {
                "ZDOTDIR": "/home/dusan/.config/zsh",
                "TEST_VAL": "test value"
            }

        }
    },
    "terminal.integrated.defaultProfile.linux": "zsh"

but ZDOTDIR value is replaced. Test value is valid

VS Code version: Code - OSS 1.70.0 (da76f93349a72022ca4670c1b84860304616aaa2, 2022-08-05T10:46:05.991Z) OS version: Linux x64 5.18.16-arch1-1 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (8 x 2680)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|1, 2, 1| |Memory (System)|11.57GB (2.03GB free)| |Process Argv|| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|undefined| |XDG_CURRENT_DESKTOP|undefined| |XDG_SESSION_DESKTOP|undefined| |XDG_SESSION_TYPE|tty|
Extensions (8) Extension|Author (truncated)|Version ---|---|--- gitlens|eam|12.1.2 java|red|1.9.0 brightscript|Rok|2.34.0 vscode-java-debug|vsc|0.43.0 vscode-java-dependency|vsc|0.21.0 vscode-java-pack|vsc|0.25.0 vscode-java-test|vsc|0.36.0 vscode-maven|vsc|0.37.0
albertosantini commented 2 years ago

Duplicate https://github.com/microsoft/vscode/issues/157128?

It is a candidate issue for July recovery https://github.com/microsoft/vscode/issues/157122

meganrogge commented 2 years ago

/duplicate https://github.com/microsoft/vscode/issues/157128

vscodenpa commented 2 years ago

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!

DusanLesan commented 2 years ago

Duplicate #157128?

It is a candidate issue for July recovery #157122

@albertosantini Thanks. I did see the other issue but I did not realize that is the same issue as I have no idea what zim is nor do I have any frameworks for zsh, I do not get any error messages, I do not need any extensions active or apply any non-default settings...