Skip to content

Improvement completion #1121

Open
Open

Description

@camilledejoye

Two ideas of improvements:
Given we have a use statement: use Symfony\Component\Validator\Constraints as Assert;

  • Handle completing partial namespace: new Assert\NotBl<> should suggest NotBlank
  • Use existing aliases instead of adding an import when completing new NotBl<> should insert Assert\NotBlank() instead of NotBlank() and not add any use statement. [POC][Improvement] completion handle aliases completion#33
  • Add a way to configure some generic aliases like Assert, ORM, etc. so that when completing NotBl<> for the first type we insert Assert\NotBlank and a use statement with the Assert alias

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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