Skip to content

Wrong default directory with workspace #94

Open
@martinellison

Description

@martinellison

If I click on the file location of an error, it should take me to the location of the error, but instead it opens up a file search dialog. This is because the "default directory" is wrong.

My project has a workspace which is probably triggering the problem. I've checked the code and it seems to be looking up the file tree until it finds a Cargo.toml, and then it uses this directory as the "default directory". Unfortunately, because my subdirectory (containing the workspace member) also has a Cargo.toml, it is stopping too early and using the workspace member directory as the "default directory" when it should be using the parent (top level, whole workspace) directory as the "default directory".

This might be the same as errors #31 and #56, but those have been closed and I am getting this error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions