microsoft / microsoft/TypeScript
Prototype property assignments don't work for js-native-types
Open
Nobody has claimed this yet.
Awaiting More Feedback
Bug
Domain: JavaScript
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
From @Yegorich555 on October 19, 2018 12:40
- VSCode Version: 1.28.2
- OS Version: Window 10 x64
- All extensions disabled
Steps to Reproduce:
Array.prototype.test = function() {
return 'ok';
}
var arr = [];
arr.te - I want to see function 'test' in intellisense

Copied from original issue: Microsoft/vscode#61315
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the example in a JavaScript file with TypeScript-powered IntelliSense enabled, then trace how prototype assignments on native types are handled. Done means typing arr.te after assigning Array.prototype.test offers test in IntelliSense without breaking existing suggestions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100