-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Spec] Settings Model - Actions #9428
Merged
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3905c49
[Spec] Settings Model - Actions
carlos-zamora 40f817b
maybe this'll fix the references?
carlos-zamora f1efe1a
apply feedback from spec meeting & comments
carlos-zamora 75f486b
spell check
carlos-zamora de7cba9
Apply the lessons I've learned
carlos-zamora 71060b9
apply PR feedback
carlos-zamora 71ee4ca
resolve PR comments from Dustin
carlos-zamora 02dd1b8
consolidated actions
carlos-zamora 0485a87
spell fix
carlos-zamora File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still worried about this.
Consider that you have the following nested/repeated commands:
those have the same name. They are very much different commands. We're not keying anything off their names, right? Well, except the Name Map which will immediately and horribly explode when you do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there seems to be some confusion from my word choice. When I say "nested commands", I always mean the root. So in your example, there are 2 nested commands:
Part 1:
AddAction
the nested commandAddAction
receives these commands and does the following:_NestedCommands
Part 2:
AddAction
a conflicting commandLater, let's say we get a new
Command x
who's name is "Split Pane...". We have two paths here:x
is a nested command:_NestedCommands
such that "Split Pane..." maps tox
x
is a standard command:Split Pane...
from_NestedCommands
x
with_ActionMap
NOTE: We don't care what is inside of these nested commands. We just care about the root.
Part 3:
NameMap
generation with our parentsNow we get to part 3 of our story: dealing with parents. We don't really care about our parents until we have to generate the
NameMap
._NestedCommands
are new to those from the standard actions.NameMap
filled with just nested commands. We don't know if any of them will persist, but that's ok, because then we move on to step 2...