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

refactor: Move calculating description, kind and label to CompletionValue #4500

Merged
merged 1 commit into from Oct 10, 2022

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Oct 7, 2022

Previously, we would match on completion value in multiple places, which makes it hard to modify a behaviour for single type of completion. Now, I moved most logic into specific CompletionValue.

There might be some additional things to refactor, but we can do it later on.

Additionally, this fixes the added type in CaseKeyword completions, which was especially visible in the added test case.

…alue

Previously, we would match on completion value in multiple places, which makes it hard to modify a behaviour for single type of completion. Now, I moved most logic into specific CompletionValue.

There might be some additional things to refactor, but we can do it later on.

Additionally, this fixes the added type in CaseKeyword completions.
@tgodzik tgodzik changed the title refactor: Move calculating description, kind and label to CompletionV… refactor: Move calculating description, kind and label to CompletionValue Oct 7, 2022
Copy link
Member

@dos65 dos65 left a comment

Choose a reason for hiding this comment

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

👍

@tgodzik tgodzik merged commit 3f8e8fa into scalameta:main Oct 10, 2022
@tgodzik tgodzik deleted the refactor-completion-value branch October 10, 2022 09:23
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.

None yet

2 participants