Skip to content

Inconsistent display of parameter information depending on notation #540

@Namenloser-Held

Description

@Namenloser-Held

Describe the bug
The way parameter information is displayed is inconsistent across different scenarios, when using the object-oriented notation.

To Reproduce

  1. For a function declaration with a self argument, type ':' on an object. The auto-completion documentation shows the function declaration with the self argument.
    bug_report_oo_notation_sc1
  2. The self argument is shown on hover, but not in the parameter information (CTRL+SHIFT+SPACE).
    2_inconsistency-hover-parameters
  3. For a method declaration, type '.' on the table name. The auto-completion documentation shows the method declaration without the self argument.
    bug_report_oo_notation_sc3
  4. Complete the function call. A hover over the method name shows the method declaration without the self argument.
    bug_report_oo_notation_sc4

Expected behavior
The parameter information is presented in a consistent way.

The way the parameter information is presented depends on the used notation
e.g. someObject:reset -> someObject:reset(param2: Test)
e.g. someObject.store -> someObject.store(self: Test2, param2: Test)

Environment (please complete the following information):

  • OS: Windows 10
  • Client: VSCode
  • VSCode version: 1.56.2
  • Extension version: 1.21.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    as designedFunctioning as intended, will not be modifiedquestionUser has a question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions