I'm sorry, I think we had talked past each other. I think you where talking about placing the text cursor somewhere in the code by yourself. But I where talking about how the outline view places the cursor in your code after selecting the function.
So you mean the outline view has two different functions where to place the cursor?
- Case 1: JSDoc present: cursor is placed in the JSDoc comment func
- Case 2: JSDoc not present: cursor is placed at the static method variable definition
Then all this makes sense now! Also this underline works now. In the second picture which I posted, foo1() is now underlined instead to foo().
Thank you for the work!