Skip to content

Optionally is missing from completions #3043

@ghostdevv

Description

@ghostdevv

Describe the bug

When an option is optional, the completion label is missing the ?

Svelte Language Server vtsls
Image Image

Reproduction

function foo(options: { bar: boolean; baz?: number }) {}
foo({ bar: false,   })
//                       ?^ See completions here 

Expected behaviour

The label returned by the language server has a ? when it's optional

System Info

n/a

Which package is the issue about?

svelte-language-server

Additional Information, eg. Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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