wrong CWD in Dev Containers (extensionKind = "ui")
Author: mharradonCreated Sep 22, 2024Updated Feb 12, 2026
Labelsenhancementquestionremoteblocked
Check the following:
- I have tried setting
vscode-neovim.neovimCleanin VSCode settings and restarting VSCode. - I have read the vscode-neovim docs.
- I have searched existing (closed!) issues.
Neovim version (nvim -v)
v0.10.1
Operating system/version
Mac 14.4.1
Problem (including log messages)
On a fresh setup with a Dev Container Neovim sets the CWD to /. This prevents e.g. tab path completion working when opening new files.
Steps To Reproduce
- Open a project with Neovim and Dev Container Extensions
:followed bylua print(vim.fn.getcwd())- Output is
/
Expected Behavior
I expect the reported working directory to be the root of the project I am working in.
Source: vscode-neovim/vscode-neovim