Skip to content

VSCode reformat code due fallback to default settings without resolving workspace symlink #954

@messense

Description

@messense

Say I have a project in ~/workspace/project, for disk space usage reason I had to move it to another disk say /export/data/workspace/project, so I created a symlink to avoid having to changing paths in VSCode: ~/workspace -> /export/data/workspace, now ruff in VSCode starts to reformat code on save and conflicts with ruff-format in pre-commit, the ruff language server logs shows that it still thinks the workspace is at ~/workspace/project without resolving symlinks so it use the default settings as fallback, which is a bit annoying.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-infoMore information is needed from the issue author

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions