Skip to content

__proto__ is not in completion list correctly #850

@sheetalkamat

Description

@sheetalkamat
////module M {
////    export interface /*1*/__proto__ {}
////}
////var /*2*/__proto__: M.__proto__;
/////*3*/
////var /*4*/fun: (__proto__: any) => boolean;

goTo.marker('3');
verify.completionListContains("proto", "(var) proto: M.proto", "");

Completion list at 3 fails and the entry in the completion list is _proto instead of just proto
edit.insert("proto");
goTo.definition();
verify.caretAtMarker('2');

Also goto definition currently fails

tests\cases\fourslash_old\proto.ts

(moving this to tests\cases\fourslash\proto.ts as part of changes to quickInfo)

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions