Skip to content

convertFunctionToEs6Class: Avoid insertNodeAfter #23871

Closed

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterDomain: LS: 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