File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -3426,7 +3426,8 @@ namespace FourSlashInterface {
3426
3426
"readonly" ,
3427
3427
"get" ,
3428
3428
"set" ,
3429
- "constructor"
3429
+ "constructor" ,
3430
+ "async"
3430
3431
] ;
3431
3432
3432
3433
constructor ( protected state : FourSlash . TestState , private negative = false ) {
Original file line number Diff line number Diff line change @@ -618,7 +618,8 @@ namespace ts.Completions {
618
618
619
619
if ( classLikeContainer = tryGetClassLikeCompletionContainer ( contextToken ) ) {
620
620
// cursor inside class declaration
621
- return tryGetClassLikeCompletionSymbols ( classLikeContainer ) ;
621
+ getGetClassLikeCompletionSymbols ( classLikeContainer ) ;
622
+ return true ;
622
623
}
623
624
624
625
if ( jsxContainer = tryGetContainingJsxElement ( contextToken ) ) {
@@ -929,7 +930,7 @@ namespace ts.Completions {
929
930
*
930
931
* @returns true if 'symbols' was successfully populated; false otherwise.
931
932
*/
932
- function tryGetClassLikeCompletionSymbols ( classLikeDeclaration : ClassLikeDeclaration ) : boolean {
933
+ function getGetClassLikeCompletionSymbols ( classLikeDeclaration : ClassLikeDeclaration ) {
933
934
// We're looking up possible property names from parent type.
934
935
isMemberCompletion = true ;
935
936
// Declaring new property/method/accessor
@@ -965,8 +966,6 @@ namespace ts.Completions {
965
966
baseProperty => baseProperty . getDeclarations ( ) && ! ( getDeclarationModifierFlagsFromSymbol ( baseProperty ) & ModifierFlags . Private ) ) ;
966
967
}
967
968
}
968
-
969
- return true ;
970
969
}
971
970
972
971
/**
@@ -1431,6 +1430,7 @@ namespace ts.Completions {
1431
1430
case SyntaxKind . ReadonlyKeyword :
1432
1431
case SyntaxKind . GetKeyword :
1433
1432
case SyntaxKind . SetKeyword :
1433
+ case SyntaxKind . AsyncKeyword :
1434
1434
return true ;
1435
1435
}
1436
1436
}
Original file line number Diff line number Diff line change 84
84
////class M extends B {
85
85
//// private static identi/*classThatStartedWritingIdentifierAfterPrivateStaticModifier*/
86
86
//// }
87
+ ////class N extends B {
88
+ //// async /*classThatHasWrittenAsyncKeyword*/
89
+ //// }
87
90
88
91
const allowedKeywordCount = verify . allowedClassElementKeywords . length ;
89
92
type CompletionInfo = [ string , string ] ;
@@ -171,6 +174,7 @@ const classInstanceElementLocations = [
171
174
"classThatStartedWritingIdentifierOfGetAccessor" ,
172
175
"classThatStartedWritingIdentifierOfSetAccessor" ,
173
176
"classThatStartedWritingIdentifierAfterModifier" ,
177
+ "classThatHasWrittenAsyncKeyword"
174
178
] ;
175
179
verifyClassElementLocations ( instanceMemberInfo , classInstanceElementLocations ) ;
176
180
You can’t perform that action at this time.
0 commit comments