Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restrict autocomplete after "use" to only traits when in a class.
Summary: When autocompleting after the "use" keyword, if it's in a class we shoud only return trait names. Differential Revision: D7999875
- Loading branch information
1 parent
2760d86
commit a4da482
Showing
3 changed files
with
39 additions
and
3 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
<?hh // strict | |||
class MyAutocompleteAfterUse { | |||
use MyAUTO332 | |||
} | |||
|
|||
trait MyTrait { | |||
|
|||
} |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
MyTrait trait |