JavaScriptソースファイルの内容を表示するアウトラインビューの質問は新しいものではなく、答えも見つかりました。
ただし、その答えはNeon(4.6.0)では機能しなくなりました。Eclipseのバージョンごとに1つずつ、2つの別々のワークスペースにインポートされた1つのプロジェクトのまったく同じファイルを開きました。Marsは完全なアウトライン(3つの名前空間、約80メンバー)一方、ネオンは2つの名前空間と0のメンバーを示しています。Javaの観点から。
たとえば、上記にリンクした質問から抜粋した次のコードは、火星SR2とネオンで次の結果をもたらします。
var myNamespace = function()
{
/**
* @memberOf myNamespace
*/
function myFunc1()
{
}
/**
* @memberOf myNamespace
*/
function myFunc2()
{
}
return {
name : "myNamespace",
myFunc1 : myFunc1,
myFunc2 : myFunc2
}
}();
火星SR2の結果(OK):
ネオン(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).
このバグはJSDTBugzillaで報告され、修正されました。特定のバグページを確認してください。ここでは、開発者がどのように協力して解決策を見つけたかを確認できます。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加