Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Try out a new outline view for Javascript

That would be very cool!

I've split it into https://github.com/mamacdon/outliner

Mark

Inactive hide details for John J Barton ---09/01/2011 12:08:47 PM---Any chance you would consider breaking out your plugin intoJohn J Barton ---09/01/2011 12:08:47 PM---Any chance you would consider breaking out your plugin into a new github repro? Then I could fork it

From: John J Barton <johnjbarton@xxxxxxxxxxxxxxx>
To: Orion developer discussions <orion-dev@xxxxxxxxxxx>
Date: 09/01/2011 12:08 PM
Subject: Re: [orion-dev] Try out a new outline view for _javascript_
Sent by: orion-dev-bounces@xxxxxxxxxxx





Any chance you would consider breaking out your plugin into a new github repro? Then I could fork it and incorporate uglifoc, 
https://github.com/johnjbarton/uglifoc
which has a more elaborate heuristic for names based on the work of Salman Mirghasemi.


jjb


On Thu, Sep 1, 2011 at 8:40 AM, Mark MacDonald <Mark_MacDonald@xxxxxxxxxx> wrote:
    Recently I've been experimenting with UglifyJS's parse-js library [1] for building _javascript_ syntax trees. I've used it to provide a version of the outline view that shows your _javascript_ functions in a tree, rather than the flat list we currently get from JSLint.

    It's packaged as an Orion plugin, which you can try out like this:
          1. Make sure you're running an Orion build from 08/29 or later
          2. (Workaround for Bug 355895) Open the file /org.eclipse.orion.client.core/web/defaults.pref and comment out this line:
          "/
          plugins/jslintPlugin.html":true,
          Then reload
          http://localhost:8080/defaults.pref in your browser to make sure it's not cached.
          3. Log into Orion, go to the Plugins page, uninstall jslintPlugin.html
          4. Install the new plugin:
          http://mamacdon.github.com/0.3/plugins/newoutline/newoutlinePlugin.html
          5. The next time you edit a _javascript_ file, you'll see the outline tree in the left-hand pane.

    To revert, uninstall newoutlinePlugin.html and uncomment the line from Step 2.

    The plugin uses a few heuristics to infer the names of anonymous functions. If you find cases where the names are confusing or wrong, please let me know.

    Mark


    [1]
    https://github.com/mishoo/UglifyJS/blob/master/lib/parse-js.js

    _______________________________________________
    orion-dev mailing list

    orion-dev@xxxxxxxxxxx
    https://dev.eclipse.org/mailman/listinfo/orion-dev
_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev

GIF image


Back to the top