autometrics-dev / vscode-autometrics

A vscode extension to extract information from your autometrics enabled code.
https://marketplace.visualstudio.com/items?itemName=Fiberplane.autometrics
MIT License
13 stars 2 forks source link

🐛 Issues with rendering existing function docstrings inside autometrics tooltips for typescript #65

Open brettimus opened 1 year ago

brettimus commented 1 year ago

Environment information

VS-Code autometrics 0.5.0 inside VSCode Version: 1.82.0 (Universal)

Specifically, looking at a typescript file

What happened?

I added a docstring to a function that was wrapped by autometrics. When I hovered over the function, the docstring I added had been added many, many times to the tooltip.

https://github.com/autometrics-dev/vscode-autometrics/assets/3201327/b3927570-285b-42f5-a51f-cf3ff9a0ee5e

Expected result

I would expect existing docstrings to be preserved, and not repeated tens of times.