[DiscordArchive] What would such an integration do?
[DiscordArchive] What would such an integration do?
Archived author: Honey • Posted: 2023-06-03T05:51:41.307000+00:00
Original source
What would such an integration do?
Archived author: Deleted User • Posted: 2023-06-03T05:57:51.019000+00:00
Original source
like code completion intellisense on classes
Archived author: Honey • Posted: 2023-06-03T05:59:32.566000+00:00
Original source
I'm using intellisense idea with a Lua plugin. But it doesn't know the classes of the engine.
GitHub Copilot helps ofc.
Archived author: Rymercyble • Posted: 2023-06-03T05:59:59.427000+00:00
Original source
and if u are creating addon then u are completely out of luck there
Archived author: Anchy • Posted: 2023-06-03T06:36:31.206000+00:00
Original source
you could build your own intellisense
Archived author: Anchy • Posted: 2023-06-03T06:36:44.905000+00:00
Original source
using the VSCode Lua Language server, and then create your own annotations
Archived author: Anchy • Posted: 2023-06-03T06:37:43.368000+00:00
Original source
example annotation file:
```lua
---@enum PlayerEvents
PlayerEvents = {
PLAYER_EVENT_ON_CHARACTER_CREATE = 1
}
---@param event PlayerEvents
---@param func function
function RegisterPlayerEvent(event, func) end```
Archived author: Anchy • Posted: 2023-06-03T06:38:06.064000+00:00
Original source
```lua
function OnCharacterCreate(event, player)
...
end
RegisterPlayerEvent(PlayerEvents.PLAYER_EVENT_ON_CHARACTER_CREATE, OnCharacterCreate)```