Skip to content

Extension API to open file in read-only mode #307491

@Rexios80

Description

@Rexios80

When working on Dart/Flutter projects, it is very easy to accidentally edit files in the pub cache when viewing the source files of dependencies. This corrupts the source, which leads to corrupted builds. We would like the ability for the Dart extension to mark these files as read-only.

See Dart-Code/Dart-Code#5993

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionalityfile-ioFile I/O

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions