Skip to content

Feature request: Go to definition should be read-only when going outside workspace #17569

Closed
@TethysSvensson

Description

@TethysSvensson

I often edit files in ~/.cargo/registry by accident, because I thought I was in a local copy of a crate.

Vscode has support for marking files as read-only (and other editors probably do as well). It would be nice mark files outside the current workspace as read-only by default, or otherwise introduce a small speedbump to prevent accidental editing of these files.

As a bonus extra feature, perhaps it should be possible to white-list certain paths outside the workspace, so they would also open in read-write mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-vscodevscode plugin issuesC-featureCategory: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions