Skip to content

gf incorrectly interprets path delimiters on WSL #8787

@cronsorcery

Description

@cronsorcery

Describe the bug
After upgrading to 1.27.0 or later on WSL, gf keybinding opens a new file in the same directory as source file instead of opening the file under the cursor.
When saving this file, the name of the file is just an absolute path to the actual file, but with backslashes instead of forward slashes.

Earlier versions don't have this issue, and it is currently present in 1.27.1.

To Reproduce
Steps to reproduce the behavior:

  1. Open VSCode with vim extension 1.27.0 or above in WSL
  2. Create two files, one containing path to the second file
  3. Move cursor over this path and press gf
  4. See a new empty file

Expected behavior
The file under the cursor should open.

Screenshots

output.mp4

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.27.1
  • VSCode version: 1.85.1
  • OS: Windows_NT x64 10.0.22631 (WSL Ubuntu 22.04.3 LTS)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions