Skip to content

Correct anonymous function signature not inserted #2891

@ybbus

Description

@ybbus
  • Plugin version (or commit hash): 0.171.1931

  • IDE name and version: IntelliJ IDEA Ultimate 2017.1

  • Java version: JDK8

  • OS name and version: Win10

  • What are you trying to do?

  1. Writing: http.HandleFunc("/hello", <cursor here>)
  2. Pressing CRTL-SPACE for and selecting the first entry func
  3. following is inserted: func() {}
  • What would you expect to happen?
    Following should be inserted: func(w http.ResponseWriter, r *http.Request) {}
    Of course the param names can be typed in by the user.
    But since the signature is known it should not be a problem to insert the correct function signature.
    Or am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions