Skip to content

convertFunctionToEs6Class: Avoid insertNodeAfter #23871

Closed
@ghost

Description

Currently we add a class after the function, then delete the function. This can result in extra newlines added between the function and class -- we could just replace the function instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterDomain: Quick FixesEditor-provided fixes, often called code actions.Help WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions