Skip to content

VSCode variables ${workspaceFolder} and ${workspaceRoot} are not populated #178

@dfluff

Description

@dfluff

I'm trying to use SSHFS along with the PHP Debug plugin. The latter requires that you make path mappings between the PHP remote server and the local workspace, like:

"pathMappings": {
    "file:///var/www/html/myfiles/": "${workspaceRoot}/"
}

However, this is not working, and I believe the reason is that when you have an SSHFS workspace open the VSCode internal variable ${workspaceRoot} is not being populated. I believe the same is true for ${workspaceFolder}.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions