mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Add as completions (#36359)
This commit is contained in:
committed by
GitHub
parent
75f88eee48
commit
ef5573b266
@@ -1152,6 +1152,7 @@ namespace FourSlashInterface {
|
||||
"let",
|
||||
"package",
|
||||
"yield",
|
||||
"as",
|
||||
"asserts",
|
||||
"any",
|
||||
"async",
|
||||
@@ -1352,6 +1353,7 @@ namespace FourSlashInterface {
|
||||
"let",
|
||||
"package",
|
||||
"yield",
|
||||
"as",
|
||||
"asserts",
|
||||
"any",
|
||||
"async",
|
||||
|
||||
@@ -2461,6 +2461,7 @@ namespace ts.Completions {
|
||||
|| kind === SyntaxKind.ModuleKeyword
|
||||
|| kind === SyntaxKind.TypeKeyword
|
||||
|| kind === SyntaxKind.NamespaceKeyword
|
||||
|| kind === SyntaxKind.AsKeyword
|
||||
|| isTypeKeyword(kind) && kind !== SyntaxKind.UndefinedKeyword;
|
||||
case KeywordCompletionFilters.FunctionLikeBodyKeywords:
|
||||
return isFunctionLikeBodyKeyword(kind);
|
||||
|
||||
Reference in New Issue
Block a user