tooltitude / support

Tooltitude Support
https://www.tooltitude.com
Other
21 stars 0 forks source link

Extract Interface not working as expected #16

Closed brennanjl closed 1 year ago

brennanjl commented 1 year ago

Tooltitude Version: v0.24.6

OS Version: Ventura 13.4

VS Code Version: 1.79.2

Go Version: 1.19

Code Repository (if open source): nil

What did you try to do?: When extracting an interface from a struct, it does not properly handle variadic parameters. This causes the struct to not actually be compatible with the interface. This is shown in the image below, where Call(ctx context.Context, vars ...string) is extracted as Call(ctx context.Context, vars []string) error:

Screenshot 2023-06-29 at 2 47 53 PM

Is there anything interesting in the tooltitude output channel? (should be open if you are reporting error from within VS Code): No

Steps to reproduce

tooltitude-support commented 1 year ago

Ok. Thanks. This one is pretty easy to fix. Just in time before releasing the thing tomorrow.

tooltitude-support commented 1 year ago

Ok. It's fixed now. Will be out tomorrow.

tooltitude-support commented 1 year ago

Closing, since 0.25.0 is out.