Skip to content

Expose option for selecting wrapping startegy for try/catch fix #200

@marinasundstrom

Description

@marinasundstrom

Add wrap strategy to settings

{
    "surroundWithTryCatch.wrapStrategy": ""
}

The existing enum in code:

    private enum WrapStrategy
    {
        Minimal,    // Wraps the throw site and the immediate dependencies in a try.
        MinimalTransitive, // Wraps the throw site and the transitive dependencies in at try
        Remainder,  // Wraps the remainder of the statements (from the throw site to the end of the block) in a try.
        FullBlock   // Wraps all the statements in the current block in a try.
    }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions