Skip to content

Conversation

@Andarist
Copy link
Contributor

fixes #62689

*/
function filterClassMembersList(baseSymbols: readonly Symbol[], existingMembers: readonly ClassElement[], currentClassElementModifierFlags: ModifierFlags): Symbol[] {
const existingMemberNames = new Set<__String>();
const existingMemberNames = new Set(["prototype" as __String]); // always exclude 'prototype' from completions
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically, this only has to be excluded when the completion request is for a static member... but I feel this is enough and it's not worth adding an extra parameter to filterClassMembersList to cover for this distinction here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

VSCode IntelliSense not suggesting methods from dynamic type or interface generated with template literals

1 participant