luttje / glua-api-snippets

Scrapes the Garry's Mod Wiki in order to build Lua Language Server comments that will provide IDE suggestions and autocompletion.
MIT License
15 stars 5 forks source link

Need to run "npm run stylua-custom" #18

Closed luttje closed 11 months ago

luttje commented 11 months ago
          Need to run "npm run stylua-custom"

Originally posted by @luttje in https://github.com/luttje/glua-api-snippets/issues/16#issuecomment-1656987585

aske02 commented 11 months ago

The issue doesn't seem to be that the command needs to be run. My code in #16 didn't take into account that some deprecation warnings would be multi-lined resulting in. https://wiki.facepunch.com/gmod/table.GetFirstKey creating this deprecation warning:

---[SHARED AND MENU] Returns the first key found in the given table
---
---[(View on wiki)](https://wiki.facepunch.com/gmod/table.GetFirstKey)
---@param tab table Table to retrieve key from
---@return any #Key
---@deprecated Instead, expect the first key to be 1.

Non-numerically indexed tables are not ordered and do not have a first key.
function table.GetFirstKey(tab) end
luttje commented 11 months ago

Oh thanks so much for catching onto this.

I'd love to help you out, but I'm not going to be able to for another two weeks or so. If you make PR's I'll merge them ASAP.

Thanks for your continued contributions

luttje commented 11 months ago

Thanks @aske02 for fixing this in #20

Much appreciated 👍👍