Skip to content

Explore removing rather than blanking lines inside remove_env_simnet #2274

@xoloki-stacks

Description

@xoloki-stacks

Is your feature request related to a problem? Please describe.
The current PR for #2022 leaves empty lines behind when removing code annotated as #[env(simnet)]. This is because if we remove the lines fully, the spans in the remaining code are shifted, which breaks the LSP.

Describe the solution you'd like
Remove the lines fully while keeping the spans correct for when the lines are not removed.

Describe alternatives you've considered
Doing the removal inside stacks-core. This is difficult, because the relevant code ignores comments entirely, not to mention the difficulty in updating stacks-core.

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