Skip to content

Typescript: Code action implement inherited abstract class will override the class body  #23333

Closed
@mjbvz

Description

@mjbvz

From @yaohaizh on April 11, 2018 1:54

  • VSCode Version: 1.22
  • OS Version: Windows 10

Steps to Reproduce:

  1. Typescript code:
abstract class Base {
    abstract getProperty() : void;
}


class Subclass extends Base {
    // This is comment
}
  1. Select the SubClass and trigger the code action, invoke it

Expected: The new code should insert after the comment or other existing code

Actually: The existing code is overwrote.

Does this issue occur when all extensions are disabled?: Yes

Copied from original issue: microsoft/vscode#47623

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Quick FixesEditor-provided fixes, often called code actions.FixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions