-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Add RefactorTriggerReason #38378
Merged
jessetrinity
merged 36 commits into
microsoft:master
from
jessetrinity:refactorTriggerReason
Jun 3, 2020
Merged
Add RefactorTriggerReason #38378
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
bac0465
add trigger reason to protocol
02fa39a
enable explicit requests for addOrRemoveBracesToArrowFunction
c3828ed
loosen convertExport conditions
1efcffc
convertImport
0296254
extractType
55880ee
extractType explicitCursorRequest
602ee99
fix lint errors
f1127e6
extract symbol
c5343f1
update refactorConvertImport_partialSelection
53e8ed0
accept new baseline
23f4dc9
use enum for RefactorTriggerReason
57e856b
convert export tests
665e434
convert import tests
23e0064
accept new baseline
f3751fb
change type of RefactorTriggerReason
96f210c
arrow function refactor test
fbf6737
use verify trigger reason for import export
dc363f1
fix some indices
85e0d8b
add refactorNotAvailableForTriggerReason
df8ff65
extract type test
3825d19
extract symbol test
673a868
update test names
86122c4
convert get set test
d37f4c3
accept new baseline
e565931
fix up some bools
a07a79b
remove unused test method
3e1e614
Revert "update refactorConvertImport_partialSelection"
4971c7d
remove declaration
a7c07d6
convert export cursor only changes
c20908a
convert export trigger reason test
06d2461
convert import trigger reason only
f479279
convert import trigger reason test
2db0054
remove outdated tests
a86a2fa
polish tests
ca58c0e
fix merge conflicts
d88ea4e
address PR comments
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Unfortunately, JS doesn't have named arguments. Instead, when we're passing a boolean, we tend to give the parameter name as a
/*comment*/
before the argument (unless the boolean already has a descriptive name, of course).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.
It wasn't my intention to pass a named argument, but to pass whatever
triggerReason === "invoked"
evaluates to (false
iftriggerReason
is"implicit"
orundefined
. Did I do that incorrectly?