Autocomplete metatable class members

As a Roblox developer, it is currently too hard to type out metatable class member names in the script editor:

The identical code sample in VSCode suggests the names of these member variables:

Raw code sample from screenshot
local MyObject = {}
MyObject.__index = MyObject

function MyObject.new()
	local self = setmetatable({
		publicValue = 10;
		_privateValue = 5;
	}, MyObject)

	return self
end

function MyObject:getPrivateValue()
	return self._priv
end

return MyObject

If Roblox is able to address this issue, it would improve my development experience because Iā€™d be able to write code more rapidly and make fewer mistakes.

10 Likes