fix(34621): show suggestions in class property initializer (#35999)

This commit is contained in:
Alexander T
2020-01-18 00:27:12 +02:00
committed by Daniel Rosenwasser
parent 94e8db7e07
commit afa11d3c7a
2 changed files with 32 additions and 0 deletions

View File

@@ -2608,6 +2608,9 @@ namespace ts.Completions {
if (!contextToken) return undefined;
switch (contextToken.kind) {
case SyntaxKind.EqualsToken: // class c { public prop = | /* global completions */ }
return undefined;
case SyntaxKind.SemicolonToken: // class c {getValue(): number; | }
case SyntaxKind.CloseBraceToken: // class c { method() { } | }
// class c { method() { } b| }