You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Self variable show wrong class on hover
To Reproduce
Open code in editor and hover self var, sometimes it show random parent class instead of defined in method
---@class CEntityInstance
CEntityInstance = {}
---@class CBaseEntity:CEntityInstance
CBaseEntity = {}
---@class CBaseModelEntity:CBaseEntity
CBaseModelEntity = {}
---@class CBaseAnimating:CBaseModelEntity
CBaseAnimating = {}
---@class CBaseFlex:CBaseAnimating
CBaseFlex = {}
---@class CDOTA_BaseNPC:CBaseFlex
CDOTA_BaseNPC = {}
---@class CDOTA_BaseNPC_Hero:CDOTA_BaseNPC
CDOTA_BaseNPC_Hero = {}
function CEntityInstance:IsNull() end
function CDOTA_BaseNPC_Hero:FindAbilityByName(abilityName) end
function CDOTA_BaseNPC_Hero:HasTalent(talentName)
if self and not self:IsNull() then
local talent = self:FindAbilityByName(talentName)
if talent and talent:GetLevel() > 0 then return true end
end
return false
end
Screenshots
Environment
OS: Windows 10
Client: VSCode
The text was updated successfully, but these errors were encountered:
Describe the bug
Self variable show wrong class on hover
To Reproduce
Open code in editor and hover self var, sometimes it show random parent class instead of defined in method
Screenshots
Environment
The text was updated successfully, but these errors were encountered: