mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-14 16:56:06 -05:00
fix(54954): Javascript Intellisense adding "this." to function declaration (#55119)
This commit is contained in:
@@ -5298,6 +5298,11 @@ function tryGetObjectTypeDeclarationCompletionContainer(sourceFile: SourceFile,
|
||||
return cls;
|
||||
}
|
||||
break;
|
||||
case SyntaxKind.PrivateIdentifier:
|
||||
if (tryCast(location.parent, isPropertyDeclaration)) {
|
||||
return findAncestor(location, isClassLike);
|
||||
}
|
||||
break;
|
||||
case SyntaxKind.Identifier: {
|
||||
const originalKeywordKind = identifierToKeywordKind(location as Identifier);
|
||||
if (originalKeywordKind) {
|
||||
|
||||
Reference in New Issue
Block a user