Different cwd behavior in VSCodeVim and native Vim
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
After upgrading to vscode 1.74.2, I start observing a behavior change when openning another buffer with :e or :split in current buffer.
VSCode version: 1.74.2
VSCodeVim version: 1.24.3
Operatiing System: Windows 10
How to reproduce:
- In VSCodeVim, open up terminal with working directory as
/my/path/ - Open up a buffer:
code dir/foo.txt - In buffer
foo.txt, do:split <tab>, it just searchs and autocomplets files within/my/path/dirinstead of/my/path.
From this observation, it behaves like the variableautochdiris set so thecwdis changed.
Behavior in native
Things are different in native vim if I do it directly from vscode terminal.
Workaround
Currently autochdir is not supported yet thus there's no way to change this behavior on VSCodeVim.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported :split completion behavior in VSCodeVim 1.24.3 with VSCode 1.74.2 on Windows 10, using a terminal rooted at /my/path/ and opening dir/foo.txt. Compare the resulting cwd and file completion with native Vim; done means the behavior is explained and the cwd handling matches the intended native behavior or the limitation is clearly addressed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100