#Visual studio code automatic typing
1 messages · Page 1 of 1 (latest)
typing in general can utilize the Lua Language Server by Sumneko. https://luals.github.io/
Lua Language Server uses the Language Server Protocol to offer a better Lua development experience for your favourite editors.
is it always automatic? I can't remember if it is ever automatic because I usually only use it to describe functions and stuff lol but give it a looksie
Do i have to do anything in the setting?
** You are now Level 4! **
if you are adding a definition file (file only used for defining annotations) then yes
but if you are just adding a traditional module (with annotations or not) that you will require directly, then no
oh thx i will go try it out
is working rn but it giving error like undefine variable like task, workspace etc.
It also not allow type
it does not allow typing luau types, but it does allow types
-- some comment
---@class SomeClass
---@field Yo integer
local SomeClass = {}
SomeClass.__index = SomeClass
-- Create a new SomeClass instance.
---@return SomeClass
function SomeClass.new()
return setmetatable({Yo = 69}, SomeClass)
end
for example
It's giving this error. It super annoy. ik i will still work
game and instance are all not defined
it's visual studio code, i don't know any extensions that port the roblox namespace to visual studio code
do i have to manually add item to gobal variable?
if you use sumneko's then yes
but if you're like actually looking to do this for luau typing (not lua), why not just use roblox