Frontmatter
| id | 5773 |
| title | Neo.setupClass() => better IDE support |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Aug 18, 2024, 10:46 AM |
| updatedAt | Aug 18, 2024, 10:51 AM |
| githubUrl | https://github.com/neomjs/neo/issues/5773 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Aug 18, 2024, 10:51 AM |
Neo.setupClass() => better IDE support
tobiu assigned to @tobiu on Aug 18, 2024, 10:46 AM

tobiu
Aug 18, 2024, 10:51 AM
with making clear for setupClass(cls) that the return value is the same type as the param, the IDE support got a bit better again.
The hint still points to the current file and the color is still purple instead of white:
But it is at least no longer saying Neo.core.Base, but the correct class extension. Clicking on the class (blue .Text in this case), points to the correct file:
tobiu closed this issue on Aug 18, 2024, 10:51 AM
The recent code changes do affect the IDE support.
Before:
/** * The base class for (almost) all classes inside the Neo namespace * Exceptions are e.g. core.IdGenerator, vdom.VNode * @class Neo.core.Base */ class Base { // ... } Neo.setupClass(Base); export default Base;Now:
/** * The base class for (almost) all classes inside the Neo namespace * Exceptions are e.g. core.IdGenerator, vdom.VNode * @class Neo.core.Base */ class Base { // ... } export default Neo.setupClass(Base);My IDE was showing classes in white and the file src was correct
Now the IDE switched to purple, declares everything as
Neo.core.Baseand points to the current file: