This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269946 - Please add view definition inline for modules, methods and so on.
Summary: Please add view definition inline for modules, methods and so on.
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC Other
: P3 normal (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2017-02-28 11:48 UTC by ChrisLE
Modified: 2017-02-28 11:59 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description ChrisLE 2017-02-28 11:48:44 UTC
As I wrote it here: it would be awesome to have a functionality to see a preview (and edit COULD be able too) of some stuff in the editor, now directly for JavaScript. For ES6 we have the module pattern so there it is possible to have such functionalty to have a preview right inside the file, withough switching the context as you can see it here: and for example here:

So it should be possible for modules (inside the import context), modules in general of the using. When I use my MyModule inside the code, there should be a functionality to show the preview too. For requireJs it would be great too, because we already have the information about the exported module. And for Methods it is a must have too, to see the definition.


Comment 1 ChrisLE 2017-02-28 11:55:29 UTC
Here you can see it too for react components: scroll a bit to see the part with the <HelloMessage />. So for React, angular and angular2 it is needed too.
Comment 2 ChrisLE 2017-02-28 11:57:56 UTC
For this, the HTML editor and JS editor should know each components of the whole application. When I use <my-test-comp /> I should navigate to the JS code or html, I don't know what makes more sense, maybe a hint to choose HTML or JS file to navigate and see the component code (HTML or JS). The whole application should be aware of each components. Doesn't matter whether you use Web-Components, React, Angular1, Angular2, Vuejs maybe but this is not implemented yet so maybe we can ignore it.
Comment 3 ChrisLE 2017-02-28 11:59:26 UTC
Here you can see directly what I mean: