Completions for private members appear in JavaScript files #34934
Labels
Bug
A bug in TypeScript
Domain: Completion Lists
The issue relates to showing completion lists in an editor
Domain: JavaScript
The issue relates to JavaScript specifically
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Help Wanted
You can do this
Rescheduled
This issue was previously scheduled to an earlier milestone
Milestone
When a .d.ts file is included with a .js file (ostensibly created by some .ts file in a galaxy far far away) in order to get intellisense, private class members appear in completions lists. This is probably a bug and we have gotten some feedback from users that they would rather not see this.
A possibly greater pain point is that when the private member shows up in completion, the icon is wrong, I'm guessing because we do not have the full signature for private members in .d.ts files. I believe the lack of full signatures is by design though and I don't believe there is a way to make those members appear method-like without them.
TypeScript Version: 3.6.3
Search Terms:
private completion
Code
.d.ts
.js
Expected behavior:
The completion list contains
MethodTwo
.Actual behavior:
The completion list contains
MethodOne
andMethodTwo
.The text was updated successfully, but these errors were encountered: