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

Automatic ENUM globals + better windows handling #44

Closed luttje closed 4 months ago

luttje commented 4 months ago

@robotboy655 in #41

Some considerations:

  • Perhaps enum globals should be automatic somehow?

  • local Weapon = {} is duplicated in the output. Not sure how to handle this, given that, at least on Windows, you cannot have the same file with different capitalization (class.WEAPON.lua and class.Weapon.lua)

IIRC I ignored the merging of class.WEAPON.lua and class.Weapon.lua, because it seemed to work fine with the VSCode Language server as is. However it would be cleaner if we prevented that duplication. Some options that come to mind: