Skip to content

Wrong alignment while adding placeholder for class instances #2998

Open
@July541

Description

@July541

Steps to reproduce

With the following code

data A
instance Eq A where

Execute code action to add placeholder for == with signature

Expected behaviour

instance Eq A where
  (==) :: A -> A -> Bool
  (==) = _

Actual behaviour

instance Eq A where  (==) :: A -> A -> Bool
  (==) = _

It only happens while the instance definition is at the last line and there is no extra line later. It doesn't matter before we have add instance signature code action but will result in errors after #2920.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: hls-class-plugintype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions