Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand extractSymbol ranges (#42770)
* allow partial selections of node ranges * separate tests for better failure investigation * gate span expansion behind invoked command * add invoked test * comment wording * for test
- Loading branch information
Jesse Trinity
committed
Feb 17, 2021
1 parent
5cdc870
commit d640313
Showing
4 changed files
with
113 additions
and
68 deletions.
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/// <reference path='fourslash.ts' /> | ||
|
||
////const foo = ba/*a*/r + b/*b*/az; | ||
|
||
// Expand selection to fit nodes if refactors are explicitly requested | ||
goTo.select("a", "b"); | ||
verify.not.refactorAvailableForTriggerReason("implicit", "Extract Symbol"); | ||
verify.refactorAvailableForTriggerReason("invoked", "Extract Symbol", "constant_scope_0"); |