mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-09 07:55:10 -05:00
fix(49548): show completions after keywords in block (#49600)
This commit is contained in:
@@ -4094,6 +4094,10 @@ namespace ts.Completions {
|
||||
}
|
||||
break;
|
||||
case SyntaxKind.Identifier: {
|
||||
const originalKeywordKind = (location as Identifier).originalKeywordKind;
|
||||
if (originalKeywordKind && isKeyword(originalKeywordKind)) {
|
||||
return undefined;
|
||||
}
|
||||
// class c { public prop = c| }
|
||||
if (isPropertyDeclaration(location.parent) && location.parent.initializer === location) {
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user