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

Enable locals completion for defmethod form #84

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

rrudakov
Copy link
Contributor

No description provided.

(strip-tags (src/candidates "" *ns* (ctx/parse-context
'(defmethod multimethod "dispatch-val"
[foo bar & rest] __prefix__))))
=> (just ["multimethod" "foo" "bar" "rest"]))
Copy link
Contributor

@vemv vemv Apr 29, 2022

Choose a reason for hiding this comment

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

Suggestion: additionally have a defmethod another-multimethod, and assert that the completions don't get conflated

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the suggestion. I think it makes more sense to add another dispatch value instead of another multimethod, though I cannot figure out how to do that with current parse-context implementation. Could you please provide an example?

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please provide an example?

I might PR that at some point, let's merge this one in 👍

@bbatsov
Copy link
Collaborator

bbatsov commented Jun 17, 2022

@rrudakov I'm fine with the proposed improvement. Can you also mention it in the changelog?

@rrudakov
Copy link
Contributor Author

@bbatsov done!

@bbatsov bbatsov merged commit 55c3723 into alexander-yakushev:master Jun 17, 2022
@bbatsov
Copy link
Collaborator

bbatsov commented Jun 17, 2022

Thanks!

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

Successfully merging this pull request may close these issues.

4 participants