Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making the label formatter configurable #2277

Merged
merged 4 commits into from
May 28, 2023

Conversation

mamazu
Copy link
Contributor

@mamazu mamazu commented May 28, 2023

Closes #2260

@@ -99,7 +111,14 @@ private function registerCompletion(ContainerBuilder $container): void
});

$container->register(LabelFormatter::class, function (Container $container) {
return new HelpfulLabelFormatter();
switch ($formatter = $container->parameter(self::PARAM_LABEL_FORMATTER)->string()) {
Copy link
Collaborator

@dantleech dantleech May 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could use return match ($container->parameter('..')->string()) { here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah of course.

@mamazu
Copy link
Contributor Author

mamazu commented May 28, 2023

Is that a flaky test?

@dantleech dantleech merged commit a206f23 into phpactor:master May 28, 2023
8 of 9 checks passed
@dantleech
Copy link
Collaborator

yes it is, thanks 🎉

@mamazu mamazu deleted the phpactor_2260 branch May 28, 2023 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to show full class name in completion items
2 participants