Skip to content

Allow pipeline stages to run without a context #785

@pokey

Description

@pokey

In order to expand the places where we can use modifier stages we'd like to remove the necessity to pass a context object into the run method. This would allow us, for example, to determine what scope we're in when we are inserting a snippet.

The notion that processedTargetsContext completely captures the state of the environment is an illusion anyway, since a target already has access to an editor, which we use in multiple places.

Instead, we should pass the graph object into a modifier stage when we construct it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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