I’ve been trying to fix bugs in my module regarding the autocomplete feature that Roblox has. I’ve fixed most of them that confuses autocomplete, but there’s this jarring one that I’ve not been able to solve.
--@param instance: instance to parent the window into
function self:setParent(instance:Instance)
self.instance.Parent = instance
return self
end
This method is meant to be chainable and can be chainable, but autocomplete always gets confused on this part and disables itself onto the remaining chains.
Before it gets confused, the autocomplete works completely fine with the other and even more complex methods.
I’ve tried to encase it in an if statement that’s true when window.instance exists and I’ve also tried to encase it in a pcall, but it still confuses the autocomplete. Does anyone have an idea of how to fix this? I’ve ran out of ideas.