Area
Language server
What happened?
Currently, fields for many base classes such as panels (e.g. DPropertySheet.tabScroller) lead to an undefined field warning even though they are valid. This is due to the Garry's Mod wiki not defining fields, leading to it not being possible to generate annotations for with the current system.
The best fix seems to be expanding the current annotation generation system to also parse the base and sandbox gamemodes from: https://github.com/Facepunch/garrysmod
This will likely require a new module to be created as part of the language server, allowing for classes to be exported as meta files. Could potentially re-use the existing docs generation system from EmmyLua to do this? Need to look into that more.
The easier fix would probably be manually defining these classes, since they are very unlikely to change. Could likely just get an LLM to do it. Will see how much work converting the docs system is before deciding.
How can it be reproduced?
No response
Additional info
No response
Area
Language server
What happened?
Currently, fields for many base classes such as panels (e.g. DPropertySheet.tabScroller) lead to an undefined field warning even though they are valid. This is due to the Garry's Mod wiki not defining fields, leading to it not being possible to generate annotations for with the current system.
The best fix seems to be expanding the current annotation generation system to also parse the base and sandbox gamemodes from: https://github.com/Facepunch/garrysmod
This will likely require a new module to be created as part of the language server, allowing for classes to be exported as meta files. Could potentially re-use the existing docs generation system from EmmyLua to do this? Need to look into that more.
The easier fix would probably be manually defining these classes, since they are very unlikely to change. Could likely just get an LLM to do it. Will see how much work converting the docs system is before deciding.
How can it be reproduced?
No response
Additional info
No response