fix(47062): support generic arrow function with default type parameter in tsx (#47112)

* fix(47062): support generic arrow function with default type parameter in tsx

* test: update test "completionListIsGlobalCompletion"
This commit is contained in:
Hiroshi Ogawa
2021-12-15 02:02:36 +09:00
committed by GitHub
parent 67872a50d0
commit 8974fead2d
7 changed files with 29 additions and 2 deletions

View File

@@ -4433,7 +4433,7 @@ namespace ts {
return true;
}
}
else if (third === SyntaxKind.CommaToken) {
else if (third === SyntaxKind.CommaToken || third === SyntaxKind.EqualsToken) {
return true;
}
return false;