Skip to content

TM4E context menu actions should not be allowed in read-only documents #789

@rubenporras

Description

@rubenporras

Currently, if you open a read-only file and try to perform any of the comment actions (Toggle Line Comment, Add Block Comment, Remove Block Comment), the contents of the file will appear to change.

Note that it is not possible to save the file with these modifications.

Nevertheless, it should not be possible to apply commenting to a read-only document, even just at the UI level, if the document is read only, the menu items should be disabled, as for the delete/copy actions in the screenshot.

image-2024-08-13-15-37-13-332

Probably same problem and same pattern for the fix as in eclipse-lsp4e/lsp4e#1078

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions