Skip to content

Missing required argument weird wording #1195

@carsakiller

Description

@carsakiller

The warning for a missing required argument (missing-parameter) is worded incorrectly:
image

Source

https://github.com/sumneko/lua-language-server/blob/d99c23af4bf8be944f58b374141dbfb81d48b5f5/locale/en-us/script.lua#L38

Proposed Solution

It should be replaced with something like:
This function requires {:d} argument(s) but instead it is receiving {:d}.
So that it reads like so:

This function requires 1 argument(s) but instead it is receiving 0.

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