Skip to content

Conversation

zth
Copy link
Member

@zth zth commented Jan 11, 2023

This is a QoL thing to make working with options easier in typed completion, allowing you to skip a step completing inside of Some and directly have access to the possible Some values.

@zth zth requested a review from cristianoc January 11, 2023 17:34
@zth zth mentioned this pull request Jan 11, 2023
24 tasks
"tags": [],
"detail": "otherRecord",
"documentation": null,
"insertText": "Some({$0})",
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this intended in addition to the previous completion?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. Logic being that you might want to do one of three things:

  • Add None
  • Add Some but with any
  • Add Some, plus whatever value for the nested type you're interested in

That's why I'm adding it in addition rather than fully replacing the completions.

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK seems sensible.

@zth zth force-pushed the expand-options-in-completions branch from 80c453a to 96e1db0 Compare January 11, 2023 18:46
@zth zth merged commit cd59d83 into master Jan 11, 2023
@zth zth deleted the expand-options-in-completions branch January 11, 2023 18:47
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.

2 participants