mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
fix(34621): show suggestions in class property initializer (#35999)
This commit is contained in:
committed by
Daniel Rosenwasser
parent
94e8db7e07
commit
afa11d3c7a
@@ -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| }
|
||||
|
||||
Reference in New Issue
Block a user