-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Quick Infoe.g. hover text, tool-tips, and tooltips.e.g. hover text, tool-tips, and tooltips.Good First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green light
Milestone
Description
Bug Report
π Search Terms
static class instance intellisense
π Version & Regression Information
Tested TS 3.3 till nightly
- This is the behavior in every version I tried, and I reviewed the FAQ
β― Playground Link and π» Code
class foo {
constructor() { }
/** instance bar */
readonly bar = 'instance foo';
}
class foo2 extends foo {
static readonly bar = 'class foo2'; // <- look at tooltip for 'bar' here
}
A bit larger example:
class foo{
constructor() {
}
/** instance bar */
readonly bar = 'instance foo'; // <- tooltip here for 'bar' is correct
/** class bar */
static readonly bar: string = 'class foo'; // <- tooltip here for 'bar' is correct
}
class foo2 extends foo{
static readonly bar = 'class foo2'; // <- look at tooltip for 'bar' here
}
π Actual behavior
Hover with the mouse over the static property of the inherited class. Is shows the jsdoc / tsdoc information from the instance property.
π Expected behavior
In the first example the tooltip should show nothing. In the second example I should see class bar
.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Quick Infoe.g. hover text, tool-tips, and tooltips.e.g. hover text, tool-tips, and tooltips.Good First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green light