You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue occur when all extensions are disabled?: Yes
VS Code Version: 1.59.0
OS Version: Windows 10
Steps to Reproduce:
Create a javascript file with this content: let myArrowFunc = () => {console.log("Arrow func here")}
Wait for the breadcrumbs to load properly and hover over the myArrowFunc. It is showing as an object and not a function.
Arrowfunctions are currently treated as an object (SymbolKind 12) in javascript and typescript instead of a function (SymbolKind 11). I am writing a plugin that requests the symbol provider given by VSCode and navigates the symbols found. It needs to treat functions differently than simple object declarations.
Arrow functions are used a lot in classes for example and the following code would treat the arrow function myArrowFunc differently from the function regularMethod even though they are both methods of the class SomeClass.
myArrowFunc is being listed as a property, which is correct. We've run into issues in the past when trying to be more clever and show it as a function instead
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
let myArrowFunc = () => {console.log("Arrow func here")}
Arrowfunctions are currently treated as an object (SymbolKind 12) in javascript and typescript instead of a function (SymbolKind 11). I am writing a plugin that requests the symbol provider given by VSCode and navigates the symbols found. It needs to treat functions differently than simple object declarations.
Arrow functions are used a lot in classes for example and the following code would treat the arrow function
myArrowFunc
differently from the functionregularMethod
even though they are both methods of the classSomeClass
.Here is what the breadcrumbs show for myArrowFunc and regularMethod. They should both be of the same type.
Thank you
The text was updated successfully, but these errors were encountered: