Enabling the JSDT Outline view in Eclipse Neon

梦想的初衷 提交于 2019-12-07 05:56:42

问题


The question of the Outline view showing the contents of a JavaScript source file is not new and it had even found an answer.

However, that answer no longer works in Neon (4.6.0): I have opened the exact same file of one project imported in two separate workspaces, one for each version of Eclipse, and Mars shows the complete outline (3 namespaces, about 80 members) whereas Neon shows two namespaces and 0 members. In the Java perspective.

For instance, the following code, taken from the question I've linked to above gives the following results in Mars SR2 and Neon:

var myNamespace = function()
{
    /**
     * @memberOf myNamespace
     */
    function myFunc1()
    {
    }
    /**
     * @memberOf myNamespace
     */
    function myFunc2()
    {
    }

    return {
        name : "myNamespace",
        myFunc1 : myFunc1,
        myFunc2 : myFunc2
    }
}();

Result in Mars SR2 (OK):

Result in Neon (NOK):

Are there some new configuration settings that need to be enabled? The JSDT Wiki at eclipse.org is stark, the Help contents in Eclipse is not helpful at all and I have no idea where to find definitive instructions.

Visible spaces and the contents of the Outline view are things I cannot live without so I hope this is more a configuration thing than a bug.

[EDIT] NOTE: if you happen to use Mars with a later release and you have Oomph synchronization enabled, this outlining feature in Mars may disappear. It happened to me and the solution is to disable Oomph synchronization with later releases (Neon, in my case); I however continue to store the Mars preferences into the workspace (instead of having them saved into the user).


回答1:


This bug was reported and fixed in JSDT Bugzilla. Please, check the specific bug page, where you can see how the developers collaborated to find a solution.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=499788



来源:https://stackoverflow.com/questions/38955947/enabling-the-jsdt-outline-view-in-eclipse-neon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!