Skip to content

The gf command fails to navigate to files with parent directory references #9439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
peterdanwan opened this issue Jan 15, 2025 · 1 comment · May be fixed by #9452
Open

The gf command fails to navigate to files with parent directory references #9439

peterdanwan opened this issue Jan 15, 2025 · 1 comment · May be fixed by #9452

Comments

@peterdanwan
Copy link

peterdanwan commented Jan 15, 2025

Describe the bug

The gf (goto file) command in VSCode's Vim extension fails to navigate to files that reference a parent directory(../). When trying to navigate to files with relative paths that go up a directory, the command does not work as expected.

File paths with parent directory references can be opened using Ctrl + Left Click but not with the gf command.

To Reproduce

Steps to reproduce the behavior (please watch the video - the video player options might cover VSCode's status bar):

2025-01-14.19-39-02.mp4

Expected behavior

The gf command works with parent directory paths (e.g., a path like ../../some-folder/file.c should work).

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.29.0
  • VSCode version: 1.96.3
  • OS: Windows_NT x64 10.0.26100
@mogelbrod
Copy link
Contributor

Same issue with any relative path it seems; ./abc.txt also seems to open $projectroot/abc.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants