Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Optional Object Fields Autocomplete Appending Question Mark (?)  #646

Copy link
Copy link
Open
@angelplusultra

Description

@angelplusultra
Issue body actions

Bug Summary

I've encountered a bug where if you have an object with an optional field and use autocomplete to access the field, it will append a question mark ? to the end of the property name.

Steps to Reproduce Bug

  1. Create an object with an optional field:
const obj: {
name?: string
} = {}
  1. Access the field and let the LSP suggest completion and accept when name? appears in the dropdown modal
obj.name?

Video Re-Creation

Screen.Recording.2024-10-07.at.12.12.30.PM.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.