Skip to content

Completion - Memberwise init #11

@MartTave

Description

@MartTave

The auto-completion suggestion when instancing a struct have an item for the memberwise init, but with no arguments.

The item should be filled with all members as arguments.

Example :

struct A {
  public memberwise init
  public init(arg1: Bool) {
    self.m1 = !arg1  
  }
  public let m1: Bool
}

A  // <-Trigger autcompletion here
// Results :
// - A()            <-- This should fill the different members of A as arguments of constructor
// - A(arg1: Bool)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions