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
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-28 11:48 UTC by Christian Lenz
Modified: 2017-02-28 11:59 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Lenz 2017-02-28 11:48:44 UTC
As I wrote it here: https://netbeans.org/bugzilla/show_bug.cgi?id=267375 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: https://twitter.com/WebStormIDE/status/836536426539929601 and for example here: https://msdn.microsoft.com/en-us/library/dn160178.aspx

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.


Regards

Chris
Comment 1 Christian Lenz 2017-02-28 11:55:29 UTC
Here you can see it too for react components: https://blog.jetbrains.com/webstorm/2015/10/working-with-reactjs-in-webstorm-coding-assistance/ scroll a bit to see the part with the <HelloMessage />. So for React, angular and angular2 it is needed too.
Comment 2 Christian Lenz 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 Christian Lenz 2017-02-28 11:59:26 UTC
Here you can see directly what I mean: https://d3nmt5vlzunoa1.cloudfront.net/webstorm/files/2015/10/react_quick_definition.png