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

Connor4312/terminal types contribution #100780

Merged
merged 4 commits into from
Jun 25, 2020

Conversation

connor4312
Copy link
Member

For #98054

Tried to mirror what I saw other parts of the workbench doing.

I tried to find a way to get back structured objects from the SelectActionViewItem so that we didn't need to implement string matching, but found this difficult to do; the cleanest way would be deriving an interface from the ISelectOptionItem, but the selection options aren't exposed back to the SelectActionViewItem at any point and the types in general always have the select only emitting a string.

Seems to work, and should be fine as long as people don't contribute a terminal action that starts with [0-9]:

Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

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

Avoiding the string matching would definitely be nice, it was an existing problem though.

Just some minor comments, as it will be proposed I don't have problems with pushing this in once the comments are resolved. We should push to finalize it after it's been tested out though.

@connor4312 connor4312 requested a review from Tyriar June 25, 2020 16:19
@connor4312 connor4312 merged commit 4941478 into master Jun 25, 2020
@connor4312 connor4312 deleted the connor4312/terminal-types-contribution branch June 25, 2020 20:36
@github-actions github-actions bot locked and limited conversation to collaborators Aug 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants