wakatime / ssms-wakatime

SQL Server Management Studio plugin to quantify your coding with automatic time tracking and metrics about your programming. https://wakatime.com
BSD 3-Clause "New" or "Revised" License
41 stars 19 forks source link

API Key's are too long for the fields to enter in SSMS 2018 #33

Closed RobRukavina closed 4 months ago

RobRukavina commented 1 year ago

The only way I've found to work around this is to put the key in the field you access from vs code by pressing f1. Save that. (if you enter it from anywhere else in vs code extension settings it won't save and says it's invalid.) then reopen SSMS and the key is saved as it should be. I believe you can do this by adding the key to VS2022 extension as well and then opening SSMS. Nice to have a work around, but it would be even better if it just allowed the correct amount of characters to be input in the SSMS field and other vs code fields directly

alanhamlett commented 1 year ago

For now, try removing the waka_ prefix from your api key. We'll release a new plugin update to fix this.

RobRukavina commented 1 year ago

will try that on Monday. Thank you!

gandarez commented 1 year ago

Just released a new version today to support waka_ prefix for Api Key.

https://github.com/gandarez/ssms-wakatime/releases/tag/v4.0.0

alanhamlett commented 4 months ago

Received a report that v4.1.0 is still not allowing api keys with the waka_ prefix. It seems to be shortening/trimming the api key down to 36 characters.

alanhamlett commented 4 months ago

We're still limiting the max characters in the api key input field to 36, but with the new waka_ prefix the api key length is 41:

https://github.com/wakatime/ssms-wakatime/blob/d786eddae08462f7518e6a897aff58e1edc5c78d/SSMS18/Forms/SettingsForm.Designer.cs#L64

alanhamlett commented 4 months ago

Fixed with 7a4b3634d22e9dcc6c197db9a230e17cdde56dc9. I increased it to 50, to give a little extra typing room since we already validate it using regex.

gandarez commented 4 months ago

Released a new version. https://github.com/wakatime/ssms-wakatime/releases/tag/v4.1.1