Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Suggestions are being dropped when they have the same text. #615

Description

Hello

I have a provider that supplies multiple suggestions that share the same text property, but that are in fact different suggestions. However, autocomplete-plus seems to be filtering them out. If I prefix them with something to ensure they are unique strings, they suddenly do show up. This behavior seems unwanted as it's the provider's responsibility to ensure the suggestions are unique when they need to be, i.e. it would be bug in my code.

(More information about my specific use case:) I'm autocompleting PHP class names using their FQCN (fully qualified class name, separated by slashes) such as Foo\Class1 and Foo\Bar\Class1. These full names are passed as displayText, but when the user selects the suggestion, I only complete the last part of the class name. A use (import) statement is then automatically added on top. Hence, Foo\Class1 and Foo\Bar\Class1 will both share the same text property, but a different displayText, and they will also be treated differently on onDidInsertSuggestion.

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions